Math & ScienceOnly number referenced equations.

Information and discussion about LaTeX's math and science related features (e.g. formulas, graphs).
Post Reply
smcateer
Posts: 1
Joined: Mon Aug 17, 2009 7:17 am

Only number referenced equations.

Post by smcateer »

(First post!!!)

Hi, my query is as to whether it is possible to have LaTeX automatically number only those equations which are referenced by \eqref{...} somewhere within the document.

It's a bit clunky to have to add \nonumber or \begin{align*} manually as required.

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
gmedina
Posts: 2313
Joined: Wed Jul 11, 2007 11:45 pm

Only number referenced equations.

Post by gmedina »

Hi,

the mathtools package allows you to achieve this. Please refer to the package documentation (subsection 3.3.2 "Showing only referenced tags" (pp 9 and 10)).
1,1,2,3,5,8,13,21,34,55,89,144,233,...
Post Reply