[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: reftex and captionof
From: |
Uwe Brauer |
Subject: |
Re: reftex and captionof |
Date: |
Sun, 09 Jan 2022 08:18:44 +0100 |
User-agent: |
Gnus/5.13 (Gnus v5.13) Emacs/29.0.50 (gnu/linux) |
>>> "AE" == Arash Esbati <arash@gnu.org> writes:
Hi Arash,
> Hi Uwe,
> Uwe Brauer <oub@mat.ucm.es> writes:
>> I try to avoid using the figure environment since it sometimes causes
>> problems and chose instead
> What for problems are you facing? Can you elaborate?
Its location. I can never be sure that since the figure is a floating element
that it is placed, where I desire.
>> \begin{center}
>> \includegraphics[width=.7\textwidth]{./impulso.png}
>> \captionof{figure}{\label{impulso}La gráfica de función impulso}
>> \end{center}
>>
>> However it seems that reftex is not able to localize this label by its
>> interface. Am I right?
> Can't confirm. I put your example in a random .tex file and hit `C-c )'
> and RefTeX sees the label (which was also my expection). RefTeX looks
> for a literal \label{foo} when it parses a file. In this case, it
> doesn't matter that it is inside an argument.
Hm, when I run reftex-reference, I see the following screenshot:
Maybe the culprit is the setting of reftex-label-alist
Which in my case is:
(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?"))
))
But if this is the case, what shall I change?
BTW since you answered Arash, what's about adding your nifty table align
function to auctex?
Regards
Uwe
refetex.png
Description: PNG image
smime.p7s
Description: S/MIME cryptographic signature