Text FormattingAuto cross reference fixing

Information and discussion about LaTeX's general text formatting features (e.g. bold, italic, enumerations, ...)
Post Reply
yotama9
Posts: 61
Joined: Thu Sep 24, 2009 2:59 pm

Auto cross reference fixing

Post by yotama9 »

Hi.

Say I have the following three equations:

Code: Select all

\begin{equation}
x_t = x_0 + vt + \frac{1}{2} at^2
\label{a}
\end{equation}
\\
\begin{equation}
v_t = v_0  + at
\label{b}
\end{equation}
\\
\begin{equation}
F = ma
\label{c}
\end{equation}
If I write the following:

Code: Select all

Equations \ref{a}, \ref{b}, \ref{c} where first introduced by... 
I'll get the following:
Equations 1.1, 1.2, 1.3 where first introduced by...
Is there a way to tell latex to fix it into:
Equations 1.1 - 1.3 where first introduced by...
Thanks.

Recommended reading 2024:

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

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

And: Currently, Packt sells ebooks for $4.99 each if you buy 5 of their over 1000 ebooks. If you choose only a single one, $9.99. How about combining 3 LaTeX books with Python, gnuplot, mathplotlib, Matlab, ChatGPT or other AI books? Epub and PDF. Bundle (3 books, add more for higher discount): https://packt.link/MDH5p

magicmoose
Posts: 90
Joined: Fri Nov 06, 2009 7:29 am

Auto cross reference fixing

Post by magicmoose »

You might try looking into the cleveref package.
yotama9
Posts: 61
Joined: Thu Sep 24, 2009 2:59 pm

Re: Auto cross reference fixing

Post by yotama9 »

Hi.

I just noticed I haven't answered you.

Thanks, that helped a lot.
Post Reply