Joerg Hau wrote:

> That's already more than I got, but the caption is still outside the
> box  :-(

You should also try out the "ruled" option instead of "boxed".

"\usepackage[labelfont=sf]{caption}" leads to an error here (LyX 1.3.5 on a SuSE 9.0)., but with "\usepackage[sf]{caption}", it works as intended ...

Then you are using an old version of the caption-package. The actual version is "caption 2004/07/16 v3.0c"

however, this command only sets the caption label, not the whole caption.

This was only an example. The caption package provides more options to format captions, see its manual.


The problem is that both are overridden if you change the float style to "boxed" (which is a nice style for code) ...

To avoid this, you have to load the caption package after the redefinition of the float (like I did in my example).


regards Uwe

Reply via email to