TeX - LaTeX Stack Exchange is a question and answer site for users of TeX, LaTeX, ConTeXt, and related typesetting systems. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

Suppose I have the following code

a+b = c \label{eq.1}\\ 
d+e = f \label{eq.2}

I want now that upon giving the reference, it should appear as (1a-b). \eqref{eq.1} and \eqref{eq.2} will give output as 1a and 1b not what I want, which is (1a-b).

share|improve this question
Is this a convention you need to observe? Because it goes very much against the customs of scientific publications, AFAIK, and makes the document very hard to read. – Stephan Lehmke Aug 31 '12 at 16:52

I don't think it's a very good idea. However, this is how you can do it:

  \protected@edef\@currentlabel{\theparentequation a--\alph{equation}}\label{#1}%
a+b = c \label{eq.1}\\
d+e = f \label{eq.2}



The \eqref command will print


share|improve this answer

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.