<html><body bgcolor="#FFFFFF"><div><br><br>Sent from my iPad</div><div><br>On 19/07/2010, at 6:25 AM, Jung-Tsung Shen <<a href="mailto:jushen@gmail.com">jushen@gmail.com</a>> wrote:<br><br></div><div></div><blockquote type="cite"><div><span>This is a general LaTeX question, rather than a specific OS X LaTeX question.</span><br><span></span><br><span>Is there a way to do an "inline comment" in LaTeX? Currently, the two</span><br><span>ways that I know of to do comments in LaTeX are: 1) using %; and 2)</span><br><span>using \begin{comment} with the verbatim package.</span><br><span></span><br><span>These two methods however do not meet some particular needs; for</span><br><span>example, in writing an article, when there are two words to choose and</span><br><span>I haven't decided which one, I'd rather to keep the two words</span><br><span>together, with one being commented, but without breaking the flow of</span><br><span>the writing. The following simple example illustrates my point:</span><br><span></span><br><span>"... thus, the method proposed here provides (* presents *) a unique</span><br><span>approach ..."</span><br></div></blockquote><div><br></div><div>Sure, just break the line, as follows</div><div><span class="Apple-style-span" style="-webkit-tap-highlight-color: rgba(26, 26, 26, 0.292969); -webkit-composition-fill-color: rgba(175, 192, 227, 0.226562); -webkit-composition-frame-color: rgba(77, 128, 180, 0.226562);"><span class="Apple-style-span" style="-webkit-tap-highlight-color: rgba(26, 26, 26, 0.300781); -webkit-composition-fill-color: rgba(175, 192, 227, 0.234375); -webkit-composition-frame-color: rgba(77, 128, 180, 0.234375);"><br></span></span></div><span class="Apple-style-span" style="-webkit-tap-highlight-color: rgba(26, 26, 26, 0.296875); -webkit-composition-fill-color: rgba(175, 192, 227, 0.230469); -webkit-composition-frame-color: rgba(77, 128, 180, 0.230469); "><blockquote type="cite"><div><span>"... thus, the method proposed here provides %presents </span></div></blockquote><blockquote type="cite"><div><span> a unique </span><span>approach ..."</span></div></blockquote></span><div><br></div><div>Alternatively define a macro that gobbles it's argument, but<span class="Apple-style-span" style="-webkit-tap-highlight-color: rgba(26, 26, 26, 0.296875); -webkit-composition-fill-color: rgba(175, 192, 227, 0.230469); -webkit-composition-frame-color: rgba(77, 128, 180, 0.230469); "> you will need to be careful about how it handles any following spaces.</span></div><br><blockquote type="cite"><div><span></span><br><span>In Mathematica, (* and *) are used for inline comments.</span><font class="Apple-style-span" color="#000000"><font class="Apple-style-span" color="#0023A3"><br></font></font></div></blockquote><div><br></div>All the keyboard characters have other meanings, so only % and \ are available in ordinary manuscripts.<div><br><br><blockquote type="cite"><div><span>Thanks in advance.</span><br><span></span><br><span>JT</span><br></div></blockquote><div><br></div><div>Hope this helps,</div><div><br></div><div> Ross</div><br></div></body></html>