<SNIP>
This has not been tested but try something along the lines of:

InsetLayout TODO
       LyXType               custom
       LabelString           TODO
       LatexType             command
       LatexName
myOwnTodo
      

       Decoration            classic
       LabelFont
         Color               green
         Size                Large
         Series              Bold
       EndFont
       OptionalArgs          1
       MultiPar              false
       Preamble
           \RequirePackage{xcolor}
      
                                    \newcommand{\myOwnTodo}[1]{\textcolor{green}{\textbf{TODO:~} #1}\textcolor{green}
       EndPreamble
End
      
<SNIP>

i.e. do the following: 
1. Declare your own command in the Preamble section to do exactly what you need, e.g. \myOwnTodo
2. Make that the LatexName in the layout, i.e. "LatexName myOwnTodo"

hth

--


Rudi van der Linde
Senior Development Engineer

Phone: +27 12 424 8539


ANSYS Logo ANSYS Limited
ansys.co.za Reg. No. 1987/001222/06

Phone: +27 12 346 3141 Fax: +27 12 346 3720
170 Outeniqua Avenue, Waterkloof Park, Pretoria
P.O.Box 95361, Waterkloof, 0145, South Africa

This message (and attachments) is subject to restrictions and a disclaimer. Please refer to ansys.co.za or e-mail for full details.

Reply via email to