General ⇒ Equation numbering problem
Equation numbering problem
from equation 1,2,3,4 we get
I want to get in latex the equations as
from equation 1-4 we get
Please help me.
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
- localghost
- Site Moderator
- Posts: 9202
- Joined: Fri Feb 02, 2007 12:06 pm
Equation numbering problem
[1] View topic: Auto cross reference fixing
Best regards
Thorsten
Board Rules
Avoidable Mistakes
¹ System: TeX Live 2025 (vanilla), TeXworks 0.6.10
Re: Equation numbering problem
Equation numbering problem
For a very simple example matching your initial request, take this:
Code: Select all
\documentclass{article}
\usepackage{cleveref}
\newcommand{\crefrangeconjunction}{--}
\crefname{equation}{equation}{equations}
\begin{document}
\begin{equation}\label{mylabel}
2+2=4
\end{equation}
\begin{equation}\label{mynextlabel}
3+3=6
\end{equation}
\begin{equation}\label{anotherlabel}
4+4=8
\end{equation}
\begin{equation}\label{finallabel}
5+5=10
\end{equation}
From \cref{mylabel,mynextlabel,anotherlabel,finallabel}, we can see that I have too much time on my hands.
\end{document}