On 09/28/2011 02:28 PM, Andreas Noack Jensen wrote:
> Dear list
>
> I am trying to make a module for the threeparttable package but I have some 
> problems i cannot solve. I am running LyX 2.0.1 on a MacBook Pro with Lion. 
> The code is
>
> #\DeclareLyXModule[threeparttable.sty]{Threeparttable}
> #DescriptionBegin
> #Enables the threeparttable environment to ease the use of table notes
> #DescriptionEnd
> # Author: Andreas Noack Jensen <andreas.noack.jen...@gmail.com>
>
> Format 21
>
> #AddToPreamble
> #\usepackage{threeparttable}
> #EndPreamble
>
> InsetLayout   Flex:Threeparttable
>       LyXType                 custom
>       LatexType               Environment
>       LatexName               threeparttable
>       Decoration              classic
>       LabelString             threeparttable
>       MultiPar                true
> End
>
> Style Tablenotes
>       LatexType               Item_Environment
>       LatexName               tablenotes
>       Font
>               Size            Tiny
>       EndFont
> End
>
> For Some reason the font size statement is completely ignored in the LaTeX 
> code even though the font i LyX gets smaller. My second problem is, that I 
> get the "senseless!!!" message when I make a caption in the custom inset. Any 
> ideas about how to get this to work?
>
On (i), the font declaration only affects the appearance in LyX. You
have to do something in the LaTeX itself if you want to font to be smaller.

On (ii), I think the problem is that captions must be in floats. So you
should declare tablenotes as a float, if that is what it really is. See
stdfloats.inc for examples.

Richard

Reply via email to