adding an icon to a toolbar

30 views
Skip to first unread message

andrew

unread,
Nov 2, 2012, 8:46:09 PM11/2/12
to tufte-latex
i have tried to add an icon to the toolbar for the insert todo
command. the package todo is installed and can be used via the menu.
i added the line
Item "Insert TODO" "todo"

to the file stdtoolbars.inc (in ~/.lyx/ui) in the first toolbar before
"check spelling".
an icon for todo.png is in my ~/.lyx/images (and also in the global
images directory)
(the icon is a copy from another icon, which i do not intend to use)
then reconfigure and restart. the changed stdtoolbars file is read
(visible when i change the tooltip for another icon), but the icon
does not appear.

what could be wrong? -- helpl is appreciated! - andrew

the layout file for todo is
#\DeclareLyXModule{TODO notes}
#DescriptionBegin
#Inserts TODO-notes in the output. A list of todo notes can be
produced
#by inserting \listoftodos in ERT.
#DescriptionEnd
# Author: Juergen Spitzmueller <sp...@lyx.org>

Format 11

InsetLayout TODO
LyXType custom
LabelString TODO
LatexType command
LatexName todo
Decoration classic
LabelFont
Color magenta
Size Small
EndFont
MultiPar false
OptionalArgs 1
Preamble
\RequirePackage{todonotes}
EndPreamble
End

Kevin Godby

unread,
Nov 3, 2012, 12:12:09 AM11/3/12
to tufte-latex
Hello, Andrew.

I'm afraid I don't know anything about LyX. I'd suggest trying their
mailing list at <http://www.lyx.org/MailingLists>.

--Kevin
Reply all
Reply to author
Forward
0 new messages