Guenter Milde <[email protected]> írta:
>On 2011-04-04, Richard Heck wrote:>
> On 04/04/2011 01:43 PM, Csikos Bela wrote:>
>
>> I want to use floatrow package, and I inserted \usepackage{floatrow}>
>> in the preamble. When I insert a float with setting "place it here>
>> definitely" lyx automatically loads the "float". This leads to error>
>> messages during pdf creation. I do not need float package as I use the>
>> floatrow package.>
>
>> Is there a way to disable the float package or prevent its loading?>
>
> Probably it will work to add a line like:>
>      Provides float 1>
> to some layout file you are using.>
>
If it does, the "LyX way" would be to create a "floatrow" module with>
>
#\DeclareLyXModule[floatrow.sty]{(floatrow)}>
AddToPreamble>
        \usepackage{floatrow}>
EndPreamble>
Provides float 1>
 >

Thank you, it is working.
One thing I don't understand (but I am not familiar with lyx layout and module 
syntax):

I made a floatrow.module file in ~/.lyx/layouts with the content exactly as 
above. When I add the module to the document, it adds this to the preamble:

%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% Textclass specific LaTeX commands.
 \usepackage{floatrow}
 \usepackage{floatrow}

The \usepackage{floatrow} command is inserted twice.
Why is it?

Nevertheless it works perfect.

Thanks!

bcsikos

Reply via email to