Is it possible to tag sections of your .tex file so that you can make text appear or not?
I have a long document and would like to be able to comment a certain section in each chapter, and produce two different pdfs, one with the comments, and one without.
I read here about the \begin{comment}
tag in the verbatim
package. Is it possible to make this appear if I redefined the comment tag? How is this done?
Thank you.
On suggestion, included the question to 开发者_StackOverflowtex.stackexchange.com here, however there is not much traffic on that site.
Just found the pdfcomment package, which is working out very nicely: http://pdfcomment.berlios.de/
allows one to add sticky-note type comments throughout the resulting pdf file.
simply set a global option for pdfcomment in your preable to either 'draft' or 'final' to make the comments show up or not.
I'm finding this extremely helpful for reminding myself where i need to add a reference/figure etc. However, I'm using Mac OS & pdftex (default for TexLive 2009), which has excellent support for PDF comments (in both Safari & Preview.app). Not really sure how well supported this is on Linux/Windows type OS's.
Example preamble:
\usepackage{pdfcomment}
\pdfcommentsetup{draft} % set to 'final' to prevent all comments from showing up
\pdfcommentsetup{color={1.0 1.0 0.0}, open=true}
Example usage:
... diffuse into the substrate in every direction - ie. radially.\pdfcomment{Need reference for this type of model.} ...
Answer provided by: https://stackoverflow.com/users/1968/konrad-rudolph on tex.stackexchange.com
Yes, this is indeed possible, and it’s very simple, too: just redefine the comment environment as follows:
\renewenvironment{comment}{}{}
This will cause the comment text to be included as normal text.
精彩评论