On Thu, Jan 04, 2001 at 08:21:59PM +0100, Wolfgang Kilian wrote:
First, you should avoid sending large files to this mailing list.
In this particular case, you could have used ASCII art :)
> i want to have a small picture in a figure float and the Caption besides
> it. I finally managed it but in a very nasty way. is there a nicer one?
> This is my solution:
>
> \begin{figure}[hb]
>
> \parbox[b]{8cm}{ inlined-figure } \hfill \parbox[b]{7cm}
> {\caption[Energieniveauschema eines durchstimmbaren
> "Vierniveau"-Festkvrperlasers]
You can use the caption layout instead of using the putting \caption in
latex mode. See the attached file.
> I have three more questions to the figure float.
> I didn't manage to tell every single float where to stand (h,t,b,p). And
Global setting are in layout->document, in float placement field.
The setting of a single float can be changed by putting (for example) [b] in
latex mode as the beginning of the float.
> I didn't manage to make the difference in the \caption[]{} between the
> normal text and that one displayed in the figure list. And the last
You should either write the \caption command in latex mode.
Alternatively, you can use the following hack:
Insert the following lines to your .layout file
Style Caption
LatexName mycaption
Preamble
\newcommand{\mycaption}[1]{
\ifx \shortcaption \undefined
\caption{#1}
\else
\caption[\shortcaption]{#1}
\fi
}
EndPreamble
End
Style ShortCaption
CopyStyle Caption
LatexName setshortcaption
LabelString "Short Caption:"
LabelType Static
Preamble
\newcommand{\setshortcaption}[1]{
\newcommand{\shortcaption}{#1}
}
EndPreamble
End
and then, if you want to add a short caption, put a ShortCaption paragraph
before the Caption paragraph.
> question is how can I change that the the caption in the text is formatet
> like:
>
> Abbildung xx: bla lbal ........
> bla lbal lllllll
>
> I would prefere:
>
> Abbildung xx:
> bla labl .........
> bla labl ..........
Put the following in the preamble:
\usepackage{caption2}
\renewcommand{\captionlabeldelim}{:\\}
#LyX 1.1 created this file. For more info see http://www.lyx.org/
\lyxformat 2.16
\textclass article
\begin_preamble
\usepackage{caption2}
\renewcommand{\captionlabeldelim}{:\\}
\end_preamble
\language default
\inputencoding default
\fontscheme default
\graphics default
\paperfontsize default
\spacing single
\papersize Default
\paperpackage a4
\use_geometry 0
\use_amsmath 0
\paperorientation portrait
\secnumdepth 3
\tocdepth 3
\paragraph_separation indent
\defskip medskip
\quotes_language english
\quotes_times 2
\papercolumns 1
\papersides 1
\paperpagestyle default
\layout Standard
\begin_float fig
\layout Standard
\latex latex
[hb]
\backslash
parbox[b]{7cm}{
\latex default
\begin_inset Figure size 123 244
file test.eps
flags 9
\end_inset
\latex latex
}
\backslash
parbox[b]{7cm}{
\layout Caption
Test test test test test test test test test test test test test test test
test test test test test test test test test test test test test test test
test test test test test test.
\layout Standard
\latex latex
}
\end_float
\the_end