Questions tagged [comments]
{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.
408 questions
1 vote
1 answer
53 views
Using includecomment and include causes runaway fragile frames
I customized my Beamer files to have: different backgrounds depending on the programming language (from Changing the background color of a listing depending on the language) some frames shown ...
0 votes
1 answer
51 views
Renaming of cutfile of comment package not working
According to the comment package documentation p.2 section 3.1 one should be able to rename the cutfile's file name. Given the following MWE this does not seem to work: \documentclass{article} \...
2 votes
2 answers
87 views
Is there a way to "comment out" (temporarily remove) a column in a latex table? [duplicate]
In a latex table, it is easy to temporarily remove a certain row--just comment it out. But is there an easy way to temporarily remove a column in a table? I'm asking because I have a large table and ...
2 votes
2 answers
109 views
Removing opening and closing whitespaces in a comment environment
I want to remove these two whitespaces. \documentclass{article} \usepackage[a5paper,hmargin=5mm,bottom=12mm,top=5mm]{geometry} \usepackage{fouriernc} \usepackage{amsmath} \usepackage{xcolor} \...
3 votes
1 answer
71 views
unrecognized comments in newtcblistings enviroment
I have defined an environment for various shell scripts. I have other configuration files I want to do the same thin with. When I try to use \tcbuselibrary{listings} and define an environment for ...
4 votes
3 answers
148 views
usepackage comment: conditional output inside environment
I'm using package comment in my projects with great success. Recently I tried to define conditional output inside a tabularx environment, to no avail. MWE: \documentclass{article} \usepackage{tabularx}...
1 vote
1 answer
50 views
How to remove ### comments from bibtool-generated BibLaTeX file?
bibtool -s -d produces the following output when there are duplicates: @Article{key ... } ###Article{key, ... } How to remove all the ### entries from the .bib file?
1 vote
1 answer
172 views
How comment package is supposed to work?
I am playing with the package comment. I read the doc (not very detailed, but ok). But I am not able to understand why the following MWE is not compiling: \documentclass{article} \usepackage{...
1 vote
1 answer
63 views
Is it possible to have multiple layers of \begin{comment} \end{comment}, that is, a \begin{comment} \end{comment} inside another one?
Is it possible to have multiple layers of \begin{comment} \end{comment}, that is, a \begin{comment} \end{comment} inside another one? e.g. \begin{comment} \section{optional section} blah blah... \...
0 votes
1 answer
81 views
Using `\input` inside documentation (.dtx) files
The different category codes active in .dtx files cause problems with commands that use \input inside them. An example is the \worldflag command from the worldflags package. Comments within included ...
0 votes
0 answers
92 views
How to personalize the style of a comment?
I want to create a comment which is removable. Therefore I'm using the comment package, but I want to change the style of the comment to make it more visible, like this : And, this is my code (I ...
2 votes
2 answers
152 views
biblatex, biber and comments in bib files
Here is a MWE: \documentclass[12pt]{article} \usepackage[backend=biber,style=authoryear,citestyle=authoryear,backref]{biblatex} \usepackage[colorlinks]{hyperref} \addbibresource{bibgraf.bib} \begin{...
0 votes
2 answers
101 views
Command for ignoring all upcoming lines in tex
I know % can ignore a certain line or paragraph of tex document. Suppose I have a document \begin{document} para1 para2 para3 etc... \end{document} If I use % sign in para 1 as "%para1" it ...
0 votes
2 answers
131 views
Why the % symbol comments also the leading spaces after the newline?
I have this minimal working example (MWE): \documentclass[11pt]{article} \begin{document} Foo% bar \end{document} When I compile the .tex file, I get "Foobar". Why are the spaces ...
0 votes
2 answers
434 views
Stripping comments in LaTeX
I am struggling to strip comments from a LaTeX file. I tried the two main answers from this question, but it doesn't work. Here is a test file: é %comment When I run latexpand test.tex > stripped....