auctex-devel
[Top][All Lists]
Advanced

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

Re: reftex and babel


From: Uwe Brauer
Subject: Re: reftex and babel
Date: Mon, 10 Jan 2022 18:36:14 +0100
User-agent: Gnus/5.13 (Gnus v5.13) Emacs/29.0.50 (gnu/linux)

>>> "AE" == Arash Esbati <arash@gnu.org> writes:

> Uwe Brauer <oub@mat.ucm.es> writes:
>> Thanks. Just a small observation, it seems that reftex is not really
>> supporting cleverref. 
>> 
>> I activated the cleverref option in reference style, but when I run 
>> reftex-reference
>> and chose both references to the equations then again 
>> (\ref{eq:test-ref:1}) and (\ref{eq:test-ref:2}) is inserted, 
>> *NOT*  \cref{eq:test-ref:1,eq:test-ref:2}

> This is what I see in RefTeX Select buffer when I hit C-c ) in your .tex
> file:


I see something very different (see the attached screenshot, but also
note that I cannot scroll down that buffer!


Attachment: refetex.png
Description: PNG image


So I chose e as in equations

So may be my setting of reftex-label-alist  is the culprit?


(setq reftex-label-alist 
        '((nil ?e "eq:%f:" nil t
               ("Equation" "Eq." "Eqn." "Gleichung"  "Gl."))
          ("enumerate" ?i "item:%f:" "~\\ref{%s}" item
           (regexp "Items?" "Punkte?"))
          ("axiom"   ?a "ax:%f:"  "~\\ref{%s}" nil ("Axiom"   "Ax."))
          ("frame"   ?F "frm:"  "~\\ref{%s}" nil ("frame"  "slide"))
          ("fact"   ?C "fct:%f:"  "~\\ref{%s}" nil ("Fact"   "Fct"))
          ("algorithm"   ?y "alg:%f:"  "~\\ref{%s}" nil ("Algorithm"   
"algorithm"))
          ("script"   ?T "scpt:%f:"  "~\\ref{%s}" nil ("Script"   "scpt"))
          ("titledquestion" ?t "exm:%f:"  "~\\ref{%s}" nil ("ejercicio"  ))
          ("claim" ?k "clm:%f:" "~\\ref{%s}" t   ("Claim" "claim" ))
          ("thm" ?h "thr:%f:" "~\\ref{%s}" t   ("Theorem" "Theor." "Th."))
          ("example" ?E "ex:%f:" "~\\ref{%s}" t   ("Example" "Ejemplo"))
          ("ex" ?A "ex:%f:" "~\\ref{%s}" t   ("Ejercicio" "ejercicio"))
          ("cor" ?c "cor:%f:" "~\\ref{%s}" t   ("Corollary" "Cor." "C."))
          ("rem" ?R "rem:%f:" "~\\ref{%s}" t   ("Remark" "rem." "R."))
          ("SaveListing" ?V "SvL:%f:" "~\\ref{%s}" t   ("SaveL" )-1)
          ("prop" ?p "prop:%f:" "~\\ref{%s}" t   ("Proposicion" "proposition" 
"prop." "P."))
          ("sol" ?O "sol:%f:" "~\\ref{%s}" t   ("Solucion" "sol." "S."))
          ("lstlisting" ?G "lstl:%f:" "~\\ref{%s}" t   ("lstlisting" "lst." 
"L."))
          ("lem" ?L "lem:%f:" "~\\ref{%s}" nil   ("Lemma" "Lema" ))
          ("slide" ?l "slide:%f:" "~\\ref{%s}" t   ("slide" ))
          ("Slide" ?S "slide:%f:" "~\\ref{%s}" t   ("slide" ))
          ("prop" ?M "prop:%f:" "~\\ref{%s}" t   ("Proposicion" "prop." "P."))
          ("\\myfig" ?f "fig:%f:" nil          2)
          ("defn" ?D "def:%f:" "~\\ref{%s}" nil   ("Definition" "Definici'on"))
          ("enumerate" ?i "item:%f:" "~\\ref{%s}" nil
           (regexp "Items?" "Punkte?"))
          ))
> Then I choose 'c', then 'SPACE', mark the 2 labels with '+' and finally
> 'a' and get \cref{eq:test-ref:1,eq:test-ref:2}.

> What is your workflow?

> Best, Arash

Attachment: smime.p7s
Description: S/MIME cryptographic signature


reply via email to

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