auctex-devel
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: reftex and babel


From: Arash Esbati
Subject: Re: reftex and babel
Date: Mon, 10 Jan 2022 11:12:18 +0100
User-agent: Gnus/5.13 (Gnus v5.13) Emacs/29.0.50

Hi Uwe,

Uwe Brauer <oub@mat.ucm.es> writes:

> Reftex inserted the reference to the equations (I chose one equation and
> the other by hitting +) and connected the  reference with the word «and»
>
> Given that this is a Spanish document «y» would be more appropriate. In
> if it were German, then «und» etc etc.
>
> In other words reftex should be using babel to chose its syntax.
>
> What do others think?

I'm not sure if it is job of the text editor to do this.  I suggest you
use a LaTeX package like cleveref or varioref (not sure about it) to do
the job since they are specialized on these tasks.  Take for example:

,----
| \documentclass[12pt]{article}
| \usepackage[utf8]{inputenc}
| \usepackage[spanish]{babel}
| \usepackage[spanish]{cleveref}
| \begin{document}
| 
| \section{Introducción}
| \label{sec:introduccion}
| 
| Dado 
| \begin{equation}
|   \label{eq:test-ref:1}
|   \int f dx=0
| \end{equation}
| y también 
| \begin{equation}
|   \label{eq:test-ref:2}
|   \sum\limits_a^{b}
| \end{equation}
| ahora (\ref{eq:test-ref:1}) and (\ref{eq:test-ref:2})\\
| \cref{eq:test-ref:1,eq:test-ref:2}
| 
| \end{document}
`----

Best, Arash



reply via email to

[Prev in Thread] Current Thread [Next in Thread]