[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: reftex and captionof
From: |
Arash Esbati |
Subject: |
Re: reftex and captionof |
Date: |
Sun, 09 Jan 2022 19:56:46 +0100 |
User-agent: |
Gnus/5.13 (Gnus v5.13) Emacs/29.0.50 |
Uwe Brauer <oub@mat.ucm.es> writes:
>>>> "AE" == Arash Esbati <arash@gnu.org> writes:
>
>> Uwe Brauer <oub@mat.ucm.es> writes:
>
>> 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.
So the standard problems with floats :-) I can only recommend that you
try to solve that by using some available packages and/or change the
standard settings for float placement. Putting your floats into a
center environment wouldn't be my first choice because you get different
spacing for in text floats (i.e., the value von \intextsep). I'm
attaching a snippet posted by B. Raichle in 1995 which helps here for
non-floating environments. Maybe you want to give it a roll:
--8<---------------cut here---------------start------------->8---
% nofloat.sty
%
% definiert `nfigure' und `ntable' Umgebungen, die nicht floaten,
% d.h. mit erzwungenem ``placement'' `here'.
%
% 9.8.91 br
%
\newif\if@nofloatinvmode
\newenvironment{@nofloat}[1]{%
% merken, ob wir gerade im hmode oder vmode sind
% je nachdem wird danach \parskip eingefuegt
\ifhmode
\@bsphack
\@nofloatinvmodefalse
\else
\@nofloatinvmodetrue
\fi
% Abstand einfuegen und caption type setzen
\vskip\intextsep
\def\@captype{#1}%
% nun wird die float in eine Box gesetzt
\vbox\bgroup
\hsize\columnwidth
\@parboxrestore
}{%
% wie mit ``normalen'' floats sollte auch hier
% die `depth' der Box 0pt sein.
\vskip 0pt
\egroup
\penalty\interlinepenalty
\vskip\intextsep
% je nachdem ob wie zu Beginn im hmode waren, wird
% \parskip eingefuegt.
\if@nofloatinvmode
\vskip -\parskip
\else
\@esphack
\fi
}
% und jetzt noch die Umgebungen:
\newenvironment{nfigure}{%
\begin{@nofloat}{figure}%
}{%
\end{@nofloat}%
}
\newenvironment{ntable}{%
\begin{@nofloat}{table}%
}{%
\end{@nofloat}%
}
\endinput
--8<---------------cut here---------------end--------------->8---
You'll understand the comments 😎
> Hm, when I run reftex-reference, I see the following screenshot:
>
> Maybe the culprit is the setting of reftex-label-alist
I simply hit 'space' to get all labels. And I see that you've found
that out yourself.
Best, Arash