Discussion:
Best way to center caption and 'captionwidth' in Lyx floats
viveksharma
2004-01-09 19:45:06 UTC
Permalink
Hi
I have three questions:
1.This has been discussed before but can the lyx-latex gurus point me to
the best way of centering tables, figures and their captions in floats
I remember having read that using the layout->paragraph->center command
is not the appropriate way. I remember some discussion about having an
appropriate vspace between the caption and figure/table.
2.I use Komabook and is their someway to define this in preamble and
make the default table caption to be above and default figure caption
below the figure.
3.Is there some way to regulate the width of the caption to be equal to
the figure or table width?
Thanks
Vivek
Paul Smith
2004-01-10 00:00:32 UTC
Permalink
Post by viveksharma
1.This has been discussed before but can the lyx-latex gurus point me to
the best way of centering tables, figures and their captions in floats
I remember having read that using the layout->paragraph->center command
is not the appropriate way. I remember some discussion about having an
appropriate vspace between the caption and figure/table.
2.I use Komabook and is their someway to define this in preamble and
make the default table caption to be above and default figure caption
below the figure.
3.Is there some way to regulate the width of the caption to be equal to
the figure or table width?
Thanks
Vivek
Hi, Vivek,

I had similar questions and I suspect that you may find useful the
following discussion:

http://www.mail-archive.com/lyx-***@lists.lyx.org/msg31301.html

Paul
Juergen Spitzmueller
2004-01-10 09:53:22 UTC
Permalink
Post by viveksharma
1.This has been discussed before but can the lyx-latex gurus point me to
the best way of centering tables, figures and their captions in floats
I remember having read that using the layout->paragraph->center command
is not the appropriate way. I remember some discussion about having an
appropriate vspace between the caption and figure/table.
layout->paragraph in floats currently produces not-so-nice output (additional
space between figure and caption; this is fixed in the developement tree for
1.4). For now, you better use ERT \centering{} (at the beginning of the
caption.
Post by viveksharma
2.I use Komabook and is their someway to define this in preamble and
make the default table caption to be above and default figure caption
below the figure.
If you use the document option "tablecaptionabove" (layout->document->extra
options), KOMA will adjust the space for table captions. You still have to
put the captions above the table yourself, though.
(alternatively, you can use the layouts "captionabove" and "captionbelow").
Post by viveksharma
3.Is there some way to regulate the width of the caption to be equal to
the figure or table width?
Cf. the thread mentioned by Paul.

Jürgen.
Herbert Voss
2004-01-10 10:23:08 UTC
Permalink
Post by Juergen Spitzmueller
Post by viveksharma
1.This has been discussed before but can the lyx-latex gurus point me to
the best way of centering tables, figures and their captions in floats
I remember having read that using the layout->paragraph->center command
is not the appropriate way. I remember some discussion about having an
appropriate vspace between the caption and figure/table.
layout->paragraph in floats currently produces not-so-nice output (additional
space between figure and caption; this is fixed in the developement tree for
1.4). For now, you better use ERT \centering{} (at the beginning of the
caption.
always at first line in the float ... the caption is centered anyway.

Herbert
Juergen Spitzmueller
2004-01-10 10:23:01 UTC
Permalink
Post by Herbert Voss
Post by Juergen Spitzmueller
1.4). For now, you better use ERT \centering{} (at the beginning of the
caption.
always at first line in the float ... the caption is centered anyway.
umm yes, that's what I actually meant *sigh*

Jürgen.

Loading...