Lyx Supports Notes.
It would be great to have any notes in lyx show up as Annotations in a draft produced PDF.
For example:
LyX:
PDF:
The use case I have in mind is when showing this draft work to someone for to get some early feedback, they can see that I have notes there reminding my of content I still need to work on.
I would like a method to do this using Luatex, as my current work (and my work in general) won't build in any other engine.
Closely related to: How to annotate PDF files generated by pdflatex?
I guess the trick would be getting LyX to convert the Notes into appropriate latex pdf annotation commands. I guess this could be done by insterting some kind of python or perl etc script in to the build pipe line.
Best Answer
As far as the yellow LyX notes are completely lost in the generated LaTeX source (i.e, the
.tex
file), your goal seem impossible without touching the LyX's guts or deal with the original.lyx
file. An easier starting point could be use the black comments for this purpose.With this approach, you only have to transform a
\begin{comment} note \end{comment}
of theverbatim
package in a\pdfcomment{note}
of thepdfcomment
package.How-to:
1) Go to Document > Configuration... > LaTex preamble
2) Paste the following lines:
3) Go to Insert > Note > Comment) and write some text.
This left a
comment
environment in the.tex
file. Example of the ouput in LyX:(you will see "Comment" instead of "Comentario" in a english OS, obviously...)
3) Go to File > Export > PDF(pdflatex)
4) Open the PDF open in Acrobat Reader:
LyX-generated LaTeX source:
Minimal working example in plain LaTeX