{comments} are annotations written by a user to document their code. A common package used for comments in code, apart from the traditional use of %, is the comment package.
16
votes
1answer
6k views
Personal notes when preparing a talk with LaTeX-beamer class
Suppose I prepare a talk using the beamer class. To each slides I want to take personal notes (what I exactly want to say, frequently asked questions etc.). So is there a smart way to write those ...
9
votes
1answer
121 views
Add area for readers to write comments on a page
I would expect this question to have already been answered, but I could not find an answer on point, so I am looking for thoughts and suggestions. The problem is as follows:
I have a document which I ...
4
votes
1answer
160 views
Comment Multi-line Text on Counter Condition
I have a document which I want to print in several (let's say 10) different versions. Some parts are just a draft, others are more or less finished, some are ready for publication and so on. I would ...
3
votes
2answers
182 views
Problem with \specialcomment-command and equation/align-environments
I'm using the specialcomment-command from the comment package around equation and align environments. This leads to an unwanted blank line after the math environment. When just using the simple ...
5
votes
1answer
195 views
Suppressing remarks when not needed
I have written some remarks in some of my works that are somewhat informal and repetitive in nature (mainly for my own clarification). I was wondering if there is a way of suppressing them when I ...
6
votes
1answer
292 views
hide proof environment for restructuring
I am writing my thesis,
and i am in restructuring phase - sorting theorems where they should belong thematically. And it would be helpful to have all the proofs hidden so i am not laden with the ...
0
votes
1answer
1k views
Comment package not working
I have added the package \usepackage{comment} in my .tex file. But when I am adding \begin{comment} and \end{comment} it is not commenting the text I want to comment. What to do?
20
votes
2answers
8k views
Multiline comment
In tex there is a way to do a comment multiline like in C, C++ /* comment */ or in HTML <!-- comment -->? I'm currently using \ifx
\ifx true false
My multiline comment
that will not be in the
...
5
votes
1answer
136 views
Can latexmk be told to ignore specific intermediate files completely?
One latex run suffices to generate the DVI/PDF version of the LaTeX document
\documentclass{article}
\usepackage{comment}
\includecomment{comment}
\begin{document}
\begin{comment}
\noindent
...
32
votes
2answers
594 views
When or why should I use %% as opposed to %?
I've noticed that many (all?) style and class files have "documentation blocks" with a double comment character at the beginning of the line,
%% like so
instead of the usual style of comments,
% ...
15
votes
2answers
5k views
Block comments with *% and %*
I know the package comment which allows to use :
\begin{comment}
Lines
to
comment
\end{comment}
This is not very friendly to use. I would like to have the following possibility:
*%
Lines
to
...
4
votes
4answers
3k views
How do you add a comment to pseudocode in LaTeX?
Is there a special formatting to add comments to code? I mean I want to show comments in pseudocode that I write in LaTeX.
this is code // this is comment part (the part that I want)
Edit: To be ...
8
votes
3answers
583 views
Skip compilation of parts of a document [duplicate]
Possible Duplicate:
Commenting out large sections
I have a long document where sometimes I need to omit some parts for the compilation, and sometimes other parts. I do it by just commenting ...
0
votes
1answer
158 views
convention for marking LaTeX in programming comments?
Is there a convention for marking the beginning of LaTeX-based material placed inside the comments of (say) a C++ or Python program? Or does one simply jump into LaTeX syntax?
7
votes
5answers
809 views
\newenvironment issues with environment comment
I am trying to setup the formatting for a LaTeX document (it's got the class memoir), so that it would be fairly simple to add to it in the future.
Two of the features I'd like are:
Be able to mark ...
3
votes
1answer
725 views
Enable PDF commenting with TexShop
I'm using TexShop (Mac OS 10.5) to typeset a manuscript and I would like to share the generated PDF with some colleagues. In the process, I would like to add some comments to the generated PDF and ...
30
votes
1answer
7k views
Comments in BibTex
Basic question (though I haven't found it here):
How do I comment out parts (some lines within an entry which I would like to save for later) of a BibTex file?
Apparently, @ can be used to comment ...
21
votes
3answers
573 views
Seeking review on a document with people unfamiliar with TeX
I am a great fan of TeX, LaTeX and LyX, but recently I wrote some minutes and then tried to send them off for other people to review.
There was no way I could send a TeX file; no-one would know what ...
34
votes
3answers
761 views
Where are the necessary places to be appended with % to remove unwanted spaces?
I have experience where empty spaces cause unwanted effects. It is not easy to trace the cause of these unwanted effects. In order to eliminate any doubt, I often overuse % as follows.
\usepackage%
...
1
vote
1answer
130 views
matching comment environments, no longer able to comment out text
I have a long LaTeX document and I am trying to comment out lines of text using \begin{comment} text \end{comment} and while compiling the document I have the interpreter giving out:
<recently ...
41
votes
5answers
13k views
Commenting out large sections
So to "comment out" a line, I need to insert a % at the beginning of the line (so that line will not be compiled).
Is there way to comment out a large section without having to manually putting a % ...
6
votes
1answer
633 views
Source Code Margin Comments
In the paper "Beautiful Code Compelling Evidence", by J.R. Heard -- Code is formated in a particular way which includes margin comments. I am looking for a way to do this as I think it is a very clear ...
0
votes
0answers
124 views
Environment for NOT compiling things [duplicate]
Possible Duplicate:
'Dummy' LaTeX environment
Since the explanation why on earth I need this is longer than the actual question, I begin with the latter. I would like to define an ...
1
vote
2answers
558 views
In Lyx turn greyed out text into comments
In Lyx I would like to convert greyed out text into comments. The Lyx environment is lyxgreyedout. I have considered switching to another IDE already and it is not an acceptable solution.
The ...
6
votes
1answer
2k views
How can I escape % in a lstlisting?
I have a little lstlisting to show a snippet of code but since the code has % in it for modulo calculation the listing breaks down. How can I escape it?
I have tried the backslash, verbatim and \text ...
7
votes
1answer
698 views
Inline comments in LaTeX
Is it possible to make inline comments in LaTeX that do not extend until the end of the line?
The actual problem I'm trying to solve is vim's annoying highlighting of the non-curly end-bracket here:
...
5
votes
1answer
1k views
\excludecomment and \newcommand using it
I have a problem with \excludecomment from comment package and a \newcommand.
The following codes work good, which means, it can generate the desired pdf output.
\documentclass{article}
...
24
votes
4answers
7k views
How to write hidden notes in a LaTeX file?
How can I write notes in a LaTeX file, that don't appear in the PDF file?
11
votes
1answer
3k views
LaTeX Listings Package, No Line Number for Comments
I am trying to get only the actual code to be line numbered rather than both code and comments. Example:
\lstset{basicstyle=\footnotesize, xleftmargin=40pt, frame =
single, numbers = left,caption = ...
84
votes
4answers
2k views
What is the use of percent signs (%) at the end of lines?
I see that the code in many packages and examples contains percent signs % at the end of (many) lines. What are they used for? Do they affect the parsing of those lines?
10
votes
2answers
565 views
Create an annotation for table text on the page border
I have a table with 2 columns (for vocables, but also complete sentences) and for one of these 2 columns I want to add annotations on the page border. It must however be possible to associate the ...
24
votes
6answers
2k views
What is a good strategy for obtaining comments on a LaTeX document from non-LaTeX using collaborators?
Context: I prepare my scientific documents using LaTeX and compile to a PDF.
I often need to seek comments on drafts from collaborators who do not use LaTeX.
Most of these collaborators use Windows ...
13
votes
5answers
866 views
Including parts of a LaTeX document in another document WITHOUT splitting up original document
I'm working on a paper with some collaborators. At the same time, I'm writing my dissertation for my defense next month.
I need to include the paper in the dissertation, but it doesn't just become a ...
7
votes
4answers
1k views
Latex tag for making a comment appear or disappear in pdf?
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 ...
8
votes
2answers
1k views
'Dummy' LaTeX environment
I have a big LaTeX file which I would like to compile so that certain environments like figure are not shown. To that end I wanted to make use of the renewenvironment command. But the facilities of ...
1
vote
1answer
523 views
In WinEdt 6, how do I highlight a block of just typed text with no effect on the compiled document? [closed]
I hope WinEdt6 is recognised as one of the best LaTeX's friends.
I write my latex stuff, and when a para is considered done, I want to \done{the completed para text} so that it differ from what I ...