Scott Kostyshak
2014-09-11 13:21:57 UTC
I ran into a problem that might be best left alone, but wanted to check in here.
In my document I use the FiXme module. Recently I did some editing and
got an error because I happened to have deleted the last inset offered
by FiXme in my document. The reason I got the error is because LyX no
longer loaded the FiXme package (because there were no more insets) so
the command I use in the preamble caused an undefined control sequence
error:
% Makes it so FiXme notes always show up (e.g. without draft mode).
\fxsetup{draft}
This system makes perfect sense to me and I understand that all rules
are off when I use the preamble. My guess is that this is expected,
but I just wanted to make sure? The only alternatives I can think of
would be to either always load the package specified by the module or
to have an option system like we have for Math Options (this seems
like overkill though).
I think I've narrowed this down to one question: Is there an advantage
to not loading the package fixme if there is no fixme inset used?
Note that I fixed the issue by instead using the following in my preamble:
I fixed this by instead using:
\@ifpackageloaded{fixme}{\fxsetup{draft}}
Scott
In my document I use the FiXme module. Recently I did some editing and
got an error because I happened to have deleted the last inset offered
by FiXme in my document. The reason I got the error is because LyX no
longer loaded the FiXme package (because there were no more insets) so
the command I use in the preamble caused an undefined control sequence
error:
% Makes it so FiXme notes always show up (e.g. without draft mode).
\fxsetup{draft}
This system makes perfect sense to me and I understand that all rules
are off when I use the preamble. My guess is that this is expected,
but I just wanted to make sure? The only alternatives I can think of
would be to either always load the package specified by the module or
to have an option system like we have for Math Options (this seems
like overkill though).
I think I've narrowed this down to one question: Is there an advantage
to not loading the package fixme if there is no fixme inset used?
Note that I fixed the issue by instead using the following in my preamble:
I fixed this by instead using:
\@ifpackageloaded{fixme}{\fxsetup{draft}}
Scott