Uwe Stöhr schrieb:
> what do you mean with own paragraph?
LyX currently allows to put Images to captions like this:
\caption{test\includegraphics{image}}
If the user does this, we use this code to make it at least compile:
\caption{test\protect\includegraphics{image}}
But if possible we should not allow images to be inserted to captions,
se we then have
why not? It is an absolutely common way to use \includegraphics when
you need a special character which is not available by any font.
You can have _everything_ in a caption unless you use \protect. There
is no difference here in using \includegraphics or \cite or \url or ...
\caption{test}
\includegraphics{image}
makes no sense to me. When the user wants a LaTeX macro inside the
caption, then a \protect does it all.
That was what I meant. "own paragraph" was a bit misleading.
That people insert tables and images to the caption is one of the most
frequent problems in the lyx-users list as this often causes LaTeX
troubles or leads to an output the user didn't expect and want.
this is another problem and depends not to the caption. You can
also put images in a title or elsewhere ...
Herbert