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

NEW: TikZ book now 40% off at Amazon.com for a short time.

User avatar
Stefan Kottwitz
Site Admin
Posts: 10324
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

Code, edit and compile here:
\usepackage{color}
\everymath{\color{white}}
\everydisplay{\color{white}}
הההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההה
XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX
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