Hi Uwe et al.,

> > I'm currently writing a long document with a number of table
> > floats (actually they contain code snippets). I would like to put
> > a frame around those, and/or use a shaded background.
>
> With the LaTeX-package "float", you can define your own float or
> redefine an existing one. But the package does only provide four
> float styles: plain, plaintop, boxed, and ruled
>
> In the attached example, I redefined the table float in the
> preamble in the style boxed. 

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

> Because the float package defines the caption label as bold, 
> I used the LaTeX-package "caption" to set the label in sansserif.

"\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 ... however, this command only sets the caption label, not 
the whole caption. I like to have the whole caption in a different 
font, so I use the following code in the LaTeX Preamble: 

\usepackage{caption2}
\renewcommand\captionfont{\itshape\small}

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

> I'm interested in a floatstyle with a colored background. In the
> description of "float" the code is described to define own styles,
> but my plain TeX knowledge lacks.

There are some ideas in the 'fancybox' package, but still is _nothing_ 
about shading the background ...

Thanks & best regards,

- Joerg


-- 
joerg.hau(at)swissonline.ch * Lausanne, Switzerland
"All standard disclaimers apply."
Never take life seriously. You won't get out alive anyway.

Reply via email to