[prev in list] [next in list] [prev in thread] [next in thread] 

List:       lyx-users
Subject:    Re: Print list of notes
From:       Jürgen Spitzmüller <j.spitzmueller () gmx ! de>
Date:       2008-11-18 15:16:04
Message-ID: gfum7n$k1m$1 () ger ! gmane ! org
[Download RAW message or body]

Nick Bell wrote:

> Thanks for that, but how do I print a list of comments? Nick

With some trickery, you can redefine the LyX comments (not Notes, though) to be \
output as todonotes. Using the todonotes package [1], this gives output that might \
look like what you want. Attached is an example. Provided that you use LyX LyX 1.6, \
you can use the attached module (save it in your (layouts folder), which will, if it \
is loaded, automatically output all your comments as todonotes. The list of todonotes \
is produced by the ERT command \listoftodos.

Shortcomings:
- it gives an error if you have comments with multiple paragraphs and a \listoftodos \
                (\todo notes are only for single paragraphs)
- it inserts blanks in the text (this is done by the package)

HTH,
Jürgen

[1] http://ctan.org/tex-archive/macros/latex/contrib/todonotes


["todonotes.module" (text/plain)]

#\DeclareLyXModule{Todo-notes}
#DescriptionBegin
#Displays the LyX notes in the output. A list of todo notes can be produced
#by inserting \listoftodos in ERT.
#DescriptionEnd
# Author: Juergen Spitzmueller <spitz@lyx.org>

Format 11

Preamble
	\RequirePackage{todonotes}
EndPreamble

InsetLayout Note:Comment
	LabelString           comment/todo
	LatexType             command
	LatexName             todo
	MultiPar              false
End


["todonotes.pdf" (application/pdf)]

[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic