Am Dienstag, 05.08.03 um 10:46 Uhr schrieb Juergen Spitzmueller:


Katrin Pietzsch wrote:
1. i'd like to set the captions width to the tables/ figures width.
Which package do i need and how do I set the captionwidth?

If you're using a (fairly recent) koma class, you can use \setcapwidth[alignment]{width} (have a look at scrguide, section 3.6)

Else the package caption2 provides a command \captionwidth

i am using the standard book class, so i suppose
\setcapwidth[alignment]{width}
is no option for me, unless there is a possibility to tell lyx to use this specific koma-script-command - is there?


i tried using caption2 instead, but something went wrong. In the latex-preamble (layout -> latex-preamble) i inserted a
\usepackage{caption2}
and right before the tablecaption i wrote in TeX-mode: \captionwidth{10cm}. Judging by the error-messages i got, this is not the right way to do it. The error-messages are as follows:


! Missing number, treated as zero.
<to be read again>
{
l.5421 \captionwidth{
10cm}
A number should have been here; I inserted '0'. (If you can't figure out why I needed to see a number, look up 'weird error' in the index to The TeXbook.)


and

! Illegal unit of measurement (pt inserted).
<to be read again>
{
l.5421 \captionwidth{
10cm}
Dimensions can be in units of em, ex, in, pt, pc, cm, mm, dd, cc, bp, or sp; but yours is a new one! I'll assume that you meant to say pt, for printer's points. [...]


Actually, I meant to say cm, so what did I do wrong? What's the proper way of telling lyx to use caption2? I don't have the TeXbook, otherwise I'd give it a shot to learn more about weird errors. :)


2. is there a way to tell the list of figures/ list of tables to make
shorter entries (some of my tables have the source added in brackets,
but i don't want this displayed in the list of tables).

At the beginning of the caption text: Insert->Short Title

The short title will be used for headings and lof/lot.

that worked fine! thanks :)


Regards,
Katrin



Reply via email to