Jürgen Spitzmüller wrote:
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
That's very helpful, thanks. I altered the .module thus:
--------------------------todonotes.module----------------------------
#\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 <[EMAIL PROTECTED]>
Format 11
Preamble
\newcommand{\smalltodo}[1]{\todo[color=yellow, caption={#1},
size=\footnotesize]{\begin{spacing}{1}#1\end{spacing}}}
EndPreamble
InsetLayout Note:Comment
LabelString comment/todo
LatexType command
LatexName smalltodo
MultiPar false
End
----------------------------------------------------------------------
So that all todos are small, yellow and with single line spacing.
I also took the \requirepackage{todonotes} out of the module-preamble,
and put it in the document manually, so that I can disable todonotes
from time to time with \usepackage[disabled]{todonotes}.
Note that the todonotes package switches on hyperlinks in citations via
hyperref, even when the todonotes package is disabled - but you can fix
this in the Document Settings by enabling hyperref and making sure 'No
frames around links' is ticked.
I would like to get in touch with the author about (i) the hyperref
issue and (ii) the additional line space after the end of text in the
comment box. Does anyone know where I might find him? There's no address
on http://midtiby.blogspot.com/2008/07/todonotes-version-2008-07-28.html.
Many thanks - this is getting more fun!
Nick