Alex Simma wrote:
> I am writing up my thesis in LyX and want to use the todonotes
> package. I found Jürgen Spitzmüller's layout and it's very useful.
Glad to hear that. I do not use it myself, so feedback and requests are
appreciated.
> The basic way the that the todo package is used is as \todo[options]
> {todoEntry} and I want to know how to pass options to the todo
> command. For example, one valid option is 'inline.' I created a
> second, TODOInline inset where the corresponding LatexName is
> todo[inline] and that works but does not scale when I want more types
> of todos with more options. It feels like creating a new inset type
> for each permutation of options is clearly the wrong way. However,
> optional-insert does not work with the todo inset.
>
> What's the LyX way of having inset commands that accept options?
Unless I have overlooked something, this is not yet possible, unfortunately.
The InsetLayout does not know OptionalArgs. So the only solution now is the
one you have chosen.
Jürgen