Multiple Corss-references
Helge Hafting
helge.hafting at ntnu.no
Thu Nov 7 13:28:58 UTC 2019
Den 04.11.2019 18:33, skrev Richard Bruch:
>
> Hi,
>
> I have a question regarding multiple corss-references. Is there a way
> to reference e.g. equations like that: …see Equation 3.20 and 3.21…
> without messing with hyperref? Here is more detailed description: Link
> <https://latex.org/forum/viewtopic.php?f=44&t=32968>
>
>
This is definitely possible, because it is the default behaviour.
To test, I made a short document (Article) with two formulas. (Einsteins
E=mc^2, and the wrong E=mc^3)
And then a line of text "See Equation Ref:eq:einstein and Ref:eq:wrong"
When I make a PDF, it compiles to "See Equation 1 and 2". To get the
word "Equation" once, I typed it myself.
The references are inserted with Insert->Cross-Reference. This brings up
a dialog, where I set "Reference Format:" to "<reference>". Then, I get
the reference number only. No text, and no page number.
"<reference> on page <page>" can be used as the format for the last
reference, yielding
"See Equation 1 and 2 on page 1".
I noticed that your equations use a double number (3.21), so I tried the
module "Number Equations by Section" and got:
"See Equation 1.1 and 1.2" (There is only one section in my test document).
You seem to struggle with the word "Equation" appearing when you don't
want it. Are you using a different document class, other modules, or
\usepackage commands in the preamble? LyX seems to do what you want,
when using a simple document with no modules or custom latex commands.
Helge Hafting
More information about the lyx-users
mailing list