[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: reftex-reference and insert \eqref{} not (\ref{})
From: |
Uwe Brauer |
Subject: |
Re: reftex-reference and insert \eqref{} not (\ref{}) |
Date: |
Mon, 02 Dec 2019 12:20:09 +0100 |
User-agent: |
Gnus/5.13 (Gnus v5.13) Emacs/27.0.50 (gnu/linux) |
> Uwe Brauer <address@hidden> writes:
> Not my experience for using amsmath and document parsing enabled. Does
> the mathtools package load amsmath? If it does, then maybe AUCTeX
> should have an appropriate style file?
I have both, amsmath and document parsing enabled. I attach the file in
question.
What does work is
(setq reftex-label-alist '(AMSTeX))
However that overrides my other settings. So I tried
(setq reftex-label-alist
'(("equation" ?e "eq:%f" "~(\\ref{%s})" t
("Equation" "Eq." "Eqn." "Gleichung" "Gl."))
("equation" ?g "eq:%f:" "~\\eqref{%s}" t
("Equation" "Eq." "Eqn." "Gleichung" "Gl."))
("\\step{*}{}" ?P "st:" "~\\stepref{%s}" 2 ("Step" "St."))
("\\begin{step+}{*}" ?P "st:" "~\\stepref{%s}" 1000)
("axiom" ?a "ax:%f:" "~\\ref{%s}" nil ("Axiom" "Ax.")-1)
("func" ?F "fnc:%f:" "~\\ref{%s}" nil ("Funci\'on" "Fnc"))
("fact" ?C "fct:%f:" "~\\ref{%s}" nil ("Fact" "Fct"))
("script" ?T "scpt:%f:" "~\\ref{%s}" nil ("Script" "scpt")-1)
("thm" ?h "thr:%f:" "~\\ref{%s}" t ("Theorem" "Theor." "Th.")-1)
("claim" ?k "clm:%f:" "~\\ref{%s}" t ("Claim" "claim" )-1)
("example" ?E "ex:%f:" "~\\ref{%s}" t ("Example" "Ejemplo")-1)
("ex" ?A "ex:%f:" "~\\ref{%s}" t ("Ejercicio" "ejercicio")-1)
("cor" ?c "cor:%f:" "~\\ref{%s}" t ("Corollary" "Cor." "C.")-1)
("Rem" ?R "rem:%f:" "~\\ref{%s}" t ("Remark" "rem." "R.")-1)
("SaveListing" ?V "SvL:%f:" "~\\ref{%s}" t ("SaveL" )-1)
("prop" ?p "prop:%f:" "~\\ref{%s}" t ("Proposicion" "proposition"
"prop." "P.")-1)
("sol" ?O "sol:%f:" "~\\ref{%s}" t ("Solucion" "sol." "S.")-1)
("lstlisting" ?G "lstl:%f:" "~\\ref{%s}" t ("lstlisting" "lst."
"L.")-1)
("lem" ?L "lem:%f:" "~\\ref{%s}" nil ("Lemma" "Lema" )-1)
("slide" ?l "slide:%f:" "~\\ref{%s}" t ("slide" )-1)
("Slide" ?S "slide:%f:" "~\\ref{%s}" t ("slide" )-1)
("\\myfig" ?f "fig:%f:" nil 2)
("defn" ?D "def:%f:" "~\\ref{%s}" nil ("Definition"
"Definici'on")-1)
("enumerate" ?i "item:%f:" "~\\ref{%s}" nil
(regexp "Items?" "Punkte?"))
AMSTeX
))
Then g, appears as a choice when calling reftex-references, but when I select
it seems not to be able to
scan the labels so it is not really helpful. Strange indeed.
testshowonly.tex
Description: Text Data
smime.p7s
Description: S/MIME cryptographic signature