On Wed, 9 Jan 2002, Dekel Tsur wrote:
> On Tue, Jan 08, 2002 at 06:13:22PM +0000, Jan Warnking wrote:
> >
> > Hello all,
> >
> > I have a (weird) question concerning figure captions. I am preparing a
> > manuscript for a scientific paper for submission, and I wonder if there is
> > a way to tell LyX (LaTeX) not to print the figure captions below each
> > figure. I incuded a table of figures, and all the captions appear in
> > there, (this is why I put captions on my figures in the first place), but
> > the figures should appear "nude" (without caption).
>
> Simply put the following line in the preamble:
>
> \def\@makecaption#1#2{}
Thank you, this is what I was looking for! I put something like this in
the preamble:
\renewcommand{\@makecaption}[2]{
\vspace{10pt}
{\begin{center}#1\end{center}}
}
This, together with the package "endfloat" almost does what I need: I get
a list of figures at the end of the document, containing the figure
captions, and then one figure per page with only a "Figure n" centered
below each one. Commenting out the \usepackage{endfloat} and the above
statements gives my a nice document with figures and captions in all the
right places.
Unfortunately, the references to the figures are now undefined, since the
corresponding labels are in the captions and do not get placed anywhere.
My solution is to comment out the above statements, view the document once
from Lyx, and then put them back in again. Latex retains the figure
numbers associated with the label keys from the previous run (I only refer
to figures by their number, not the page they are on) and all works fine
for the remaining lyx session.
Is there a way of doing this the Right Way? I guess it would be kind of
difficult to peel off all but the reference key from argument #2 to
"\@makecaption", and place a label with this key in the caption? Maybe
there is a far easier solution I don't see (an existing package that does
all this nicely, or the like)?
Thank you all for your valuable help!
Jan