X9hRRDys / latex-labeler

Simplify equation labeling in LaTeX documents using Emacs.
GNU General Public License v3.0
2 stars 1 forks source link

Difference to reftex? #1

Open ouboub opened 1 day ago

ouboub commented 1 day ago

Hi

can you please tell me what is the difference betwenn your pkg and reftex?

thanks

Uwe Brauer

X9hRRDys commented 9 hours ago

Hi.

Typing C-c ( (the reftex-label command) in a math environment allows RefTeX to insert an equation label; however, the label number does not always match the equation number in the compiled PDF, even when using M-x reftex-renumber-simple-labels.

LaTeX Labeler is designed to create labels that are consistent with the numbers in the output PDF.

ouboub commented 6 hours ago

"X" == X9hRRDys @.***> writes:

Hi. Typing C-c ( (the reftex-label command) in a math environment allows RefTeX to insert an equation label; however, the label number does not always match the equation number in the compiled PDF, even when using M-x reftex-renumber-simple-labels.

LaTeX Labeler is designed to create labels that are consistent with the numbers in the output PDF.

Just to get this straight.

If I have 100 equations in my file and I decide to add a new equation at the beginning of the file, LaTeX labeler will run a global replace of all labels. Is this correct?

-- I strongly condemn Hamas heinous despicable pogroms/atrocities on Israel I strongly condemn Putin's war of aggression against Ukraine. I support to deliver weapons to Ukraine's military. I support the EU and NATO membership of Ukraine.

X9hRRDys commented 5 hours ago

Yes, that is correct.

ouboub commented 4 hours ago

"X" == X9hRRDys @.***> writes: Yes, that is correct. And all the corresponding references I presume?

There is a disadvantage with your method.

I use a file prefix for my reftex labels like

    \label{eq:continuation-criterion:5}

from the file continue-criterion.tex

That allows me in a different file (and not using include or subfiles) to use

\usepackage{xr-hyper}
\usepackage[colorlinks]{hyperref}
\externaldocument[D-]{continuation-criterion}

And then cite \label{eq:continuation-criterion:5} for example as \eqref{D-eq:continuation-criterion:5}

That would not work with your package I understand