On Mon, Dec 14, 2009 at 11:06 AM, Manveru <manv...@manveru.pl> wrote:
> 2009/12/14 Rainer M Krug <r.m.k...@gmail.com>: > > Hi > > > > I created myself a TODO module, which adds text in green to the text > > (below). it works nicely,, but I would like to have brackests arount the > > TODO: and the text, i.e., at the moment I get: > > > > (TODO:) I still heve to do this > > > > I want: > > > > (TODO: I still have to do this) > > > > How can I achieve this? > > > > Thanks > > > > Rainer > > > > > > #\DeclareLyXModule{TODO} > > #DescriptionBegin > > #Inserts green TODO note in tesxt > > #DescriptionEnd > > # Author: Rainer M Krug <rai...@krugs.de> > > > > Format 11 > > > > InsetLayout TODO > > LyXType custom > > LabelString TODO > > LatexType command > > LatexName > > textcolor{green}{\textbf(TODO):~}\textcolor{green} > > Decoration classic > > LabelFont > > Color green > > Size Large > > Series Bold > > EndFont > > OptionalArgs 1 > > MultiPar false > > Preamble > > \RequirePackage{xcolor} > > EndPreamble > > End > > > > > > -- > > 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 > > > > The line: > > textcolor{green}{\textbf(TODO):~}\textcolor{green} > > I think it should be (move the bracket): > > textcolor{green}{\textbf(TODO:~)}\textcolor{green} > Thanks - but this produces: (TODO: )I still have to do this The ~ is a protected space, and the test which is entered in the TODO field, is added AFTER the LatexName is executed. > -- > Manveru > jabber: manv...@manveru.pl > gg: 1624001 > http://www.manveru.pl > -- 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