I want the ability to comment using % in a way that doesn't end up commenting out the entire line.
It is possible in html to do this with
Code: Select all
Alice in Wonderland <!-- by Lewis Carroll --> was the book this movie was based on.
Code: Select all
Alice in Wonderland <!-- by Lewis Carroll --> was the book this movie was based on.
NEW: TikZ book now 40% off at Amazon.com for a short time.
Code: Select all
In this work we \iffalse or me, who actually did all the work \fi could show something interesting.
I appreciate the suggestion...it might be a bit cumbersome for my purposes I'm afraid. I use comments a lot, and that would be too much effort and clutter... You're fairly confident no such commenting feature exists then? If you've used LaTeX regularly for a long time now, chances are your answer is definitive; but if you're only a light user there's still a chance such a feature might've eluded you. It was kind of you; I will stay open to any suggestions from yourself or anyone. Anybody else got ideas?5gon12eder wrote:I know this is not exactly what you asked for but I'm afraid that there simply is no built in LaTeX feature for inline comments. However, there is a workaround that allows you to do something similar:
Code: Select all
In this work we \iffalse or me, who actually did all the work \fi could show something interesting.
Code: Select all
\newcommand{\comment}[1]{}
Code: Select all
....although they may be observed at higher concentrations inside hosts~\cite{thompson_etal_2004}\comment{p 404}. Their geographical distribution correlates with salinity and temperatures...
Code: Select all
\newcommand{\comment}[1]{\ignorespaces}
Code: Select all
\documentclass[a4paper]{article}
\usepackage[T1]{fontenc}
\usepackage{xparse}
\NewDocumentCommand\{+u{}}{\ignorespaces}
\begin{document}
It is quite easy now \ thanks to the help of LaTeX Community to introduce
inline comments, which can even include \ this line is included in the inline comment
this line too
and even this one up to here blank lines in the source file.
\end{document}
How would I key in windows/apple logo exactly? I'm in Windows now, but when I try to enter window logo in the definition, it just triggers my start menu!Juanjo wrote:Choose a character in the keyboard you never use in your tex files. For example, if you are a Mac user, it could be the Apple logo ().
Code: Select all
\NewDocumentCommand\ZZ{+u{ZZ}}{\ignorespaces}
Code: Select all
It is quite easy now \ZZ thanks to the help of LaTeX Community ZZ to introduce...
NEW: TikZ book now 40% off at Amazon.com for a short time.