Math & ScienceHow to disable(hide) equations?

Information and discussion about LaTeX's math and science related features (e.g. formulas, graphs).
Post Reply
san
Posts: 9
Joined: Mon Feb 02, 2009 1:40 pm

How to disable(hide) equations?

Post by san »

I mean to hide equations completely. Left only white space instead of them.

I need to temporary hide all equations in the document ($...$, $$...$$, \begin{equation}...\end{equation}, \begin{multline}...\end{multline}, etc...)

Recommended reading 2024:

LaTeXguide.org • LaTeX-Cookbook.net • TikZ.org

Learn LaTeX easily with newest books:

The LaTeX Beginner's Guide: 2nd edition and perfect for students writing a thesis

The LaTeX Cookbook: 2nd edition full of practical examples for mathematics, physics, chemistry, and more

LaTeX Graphics with TikZ: the first book about TikZ for perfect drawings in your LaTeX thesis

User avatar
Stefan Kottwitz
Site Admin
Posts: 10397
Joined: Mon Mar 10, 2008 9:44 pm

How to disable(hide) equations?

Post by Stefan Kottwitz »

Hi san,

try \everymath and \everydisplay:

Code: Select all

\usepackage{color}
\everymath{\color{white}}
\everydisplay{\color{white}}
Stefan
LaTeX.org admin
san
Posts: 9
Joined: Mon Feb 02, 2009 1:40 pm

Re: How to disable(hide) equations?

Post by san »

Using \everydisplay produce strange errors on "gather", "multline" and some others.
Without \everydisplay some equations are still shown.

In fact I need to completely remove formulas from the final document, not to make them white, but leave an empty space.

I tried \everymath={\phantom } but got strange error "TeX capacity exceeded".
Post Reply