bigblop wrote:
Jürgen Spitzmüller wrote:
bigblop wrote:
I always convert to .pdf and don't like to see the image in the LyX
editor,
only in the created pdf. But are there other advantages that I don't get?
LyX watches if the image is externally modified.
Jürgen
Ok it also seems that its not possible to refer to labelled figures in plain
tex. Is it correct that I need to insert figures with lyx and label to refer
to them later?
You don't really need a "lyx figure", but you need a "lyx label"
in order to have the label show up in the cross reference dialog.
If you want to use ERT figures, just write everything up to the
label in ERT. Then, move out of ERT and insert a lyx label.
Finally, another ERT with the rest of the code for your figure.
Example:
ERT_START\begin{figure}[tbh]\caption{mycaptionERT_END<lyxlabel>ERT_START}\end{figure}ERT_END
Braces and environments are not balanced within each ERT,
but they are balanced as a whole. Make sure you don't
get a paragraph break between them, i.e. don't press enter.
Finally, you can reference a tex label from the cross reference
dialog, at least in 1.6. But it won't show up in the list, you'll have to
type the label text yourself.
Helge Hafting