On Wed, Dec 13, 2017 at 03:39:38PM +0000, Paul Johnson wrote:
> Dear LyX-developers.
> 
> Happy Holidays to you from Kansas!
> 
> Would you consider making the preamble created by LyX more
> "predictable" from the settings, and less dependent on the actual
> content in the document?  Recently I wished, while using Logical
> Markup module, that it would insert preamble code,  *even if I did not
> use them yet in this particular document*. So far, the only example of
> this need I've found is this one:

I'm not sure, but I think I've come across a similar case.

I use the FiXme module, and I include the following in my preamble:

    % Makes it so FiXme notes always show up (e.g. without draft mode).
    % If not wrapped in "if" and if there do not happen to be any FiXme
    % insets, the following gives an undefined control sequence error
    % because LyX will not load the package.
    \@ifpackageloaded{fixme}{\fxsetup{draft,
    targetlayout=changebar,targetface=\bfseries\itshape}}

As you can guess by the above comment, I ran into a similar problem as
you did and had to add the "if" condition. Before, I did not protect it
with \@ifpackageloaded, so when I removed the FiXme insets, I received
an error.

Scott

Attachment: signature.asc
Description: PGP signature

Reply via email to