On Mon, Dec 14, 2009 at 1:03 PM, Rudi van der Linde <rudi...@ansys.co.za>wrote:
> <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" > Thanks - that's it. It is working. For reference: below find the TODO module: #################### #\DeclareLyXModule{TODO} #DescriptionBegin #Inserts green TODO note in text #DescriptionEnd # Author: Rainer M Krug <rai...@krugs.de> Format 11 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 ]} } EndPreamble End #################### The advantage: if yiou load the "TODO notes" module from Juergen, it automatically uses those instead of the in-text-TODO notes! Cheers, Rainer > hth > > -- > > Rudi van der Linde > Senior Development Engineer > > Phone: +27 12 424 8539 > ------------------------------ > [image: ANSYS Logo] ANSYS Limited > ansys.co.za <http://www.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 <http://www.ansys.co.za/?page_id=136> or > e-mail <geni...@ansys.co.za> for full details. > -- NEW GERMAN FAX NUMBER!!! Rainer M. Krug, PhD (Conservation Ecology, SUN), MSc (Conservation Biology, UCT), Dipl. Phys. (Germany) Centre of Excellence for Invasion Biology Natural Sciences Building Office Suite 2039 Stellenbosch University Main Campus, Merriman Avenue Stellenbosch South Africa Cell: +27 - (0)83 9479 042 Fax: +27 - (0)86 516 2782 Fax: +49 - (0)321 2125 2244 email: rai...@krugs.de Skype: RMkrug Google: r.m.k...@gmail.com
<<ansyslogo.png>>