> Uwe Brauer <[email protected]> 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.
\documentclass[12pt]{amsart}
\usepackage{amsmath}
\usepackage{mathtools}
\mathtoolsset{showonlyrefs=true,showmanualtags=true}
%\mathtoolsset{showonlyrefs=true} %This numbers only equations that are labeled and referred to
%Use \mathtoolsset{showonlyrefs=true,showmanualtags=true} to show also manual tags
%For issues with subequations, use \noeqref to silently reference the equations, see:
%https://tex.stackexchange.com/questions/62037/mathtools-showonlyrefs-fails-with-subequations
%% \usepackage[notcite, notref]{showkeys}
%% \usepackage{refcheck}
\begin{document}
This is a test, this is the equation environment with a label and a reference.
\begin{equation}
\label{eq:testshowonly:1}
\int
\end{equation}
we belive that \eqref{eq:testshowonly:1} is correct
This is a test, this is the equation environment with a label and
without a reference.
\begin{equation}
\label{eq:testshowonly:2}
\sum
\end{equation}
\end{document}
smime.p7s
Description: S/MIME cryptographic signature
