Torquil Madonald S�rensen wrote:
> Greetings!
>
> How I can get satisfactory labels for each subfigure in a subfigure
> environment?
>
> This is what I have tried:
> I have put a \label{adsf} at the end of the "Caption" field on the
> "Extra Options" tab in the dialog window for each subfigure. These
> labels do not show up on the "Cross reference" list on the Lyx Insert
> menu, but I can still make references by using ERT and writing
> \ref{asdf}. If I have e.g. two subfigures I then get "1(a)" and "1(b)"
> when I reference them elsewhere in the document. Is there some "LyX"-way
> of doing this (no ERT) that is more elegant than the ugly method I just
> described?
>
> LyX 1.3.4
Nope. The 'best' way is currently even more ugly.
Put this in the preamble:
\usepackage{subfig}
Thereafter, using <SomeInset>...</SomeInset> to delimit each inset:
\usepackage{subfig}
</Preamble>
<ERT>
subfloat[
</ERT>
<LABEL>
my_label
</LABEL>
A funky title with math, wacky insets, etc.
<ERT>
]{
</ERT>
<GRAPHICS>
Insert your figure here. Don't touch the 'subfigure' field.
</GRAPHICS>
<ERT>
}
</ERT>
You'll probably have to grab the subfig package from CTAN. It replaces
subfigure.
--
Angus