Juergen,

On Fri, Sep 3, 2010 at 5:20 PM, Jürgen Spitzmüller <sp...@lyx.org> wrote:
> * Put the attached module in the layouts folder of your user directory
> (About>LyX tells you where the user directory is, if there is no layouts
> folder yet, create it)
>
> * Restart LyX
>
> * Go to Documents>Settings...>Modules, select the module "Boxed Float" and hit
> "Add"
>
> You should not be able to select a framed float from Insert>Floats. The float
> does not exactly look like you want (the caption is outside the box). If you
> want to have the caption inside the box, the following definition in your
> document preamble (while using the Boxed Float module) should help:
>
Would you consider contributing this module to our wiki:
http://wiki.lyx.org/Layouts/Modules ? It seems like a useful module,
that we might perhaps even consider including in base LyX.

Thanks,
Liviu


> \usepackage{framed}
> \newcommand\floatc@simplerule[2]{{\@fs@cfont #1 #2}\par}
> \renewcommand\fs@boxed{%
>  \def\@fs@cfont{\bfseries}\let\@fs@capt\floatc@simplerule
>   \def\@fs@pre{\begin{framed}}%
>   \def\@fs@post{\end{framed}}%
>   \def\@fs@mid{\kern8pt}%
>   \let\@fs@iftopcapt\iftrue}
>
> HTH,
> Jürgen



-- 
Do you know how to read?
http://www.alienetworks.com/srtest.cfm
http://goodies.xfce.org/projects/applications/xfce4-dict#speed-reader
Do you know how to write?
http://garbl.home.comcast.net/~garbl/stylemanual/e.htm#e-mail

Reply via email to