<br><br><div class="gmail_quote">On Sun, Jan 6, 2013 at 4:19 PM, H. S. Teoh <span dir="ltr"><<a href="mailto:hsteoh@quickfur.ath.cx" target="_blank">hsteoh@quickfur.ath.cx</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
<div class="im">On Sun, Jan 06, 2013 at 10:44:27AM +0100, Philippe Sigaud wrote:<br>
> > Philippe, please share with me as soon as you have anything significant<br>
> > done in terms of LaTeX production so we don't overlap work.<br>
> ><br>
> ><br>
> Nothing significant yet, that's my first dib into macro.<br>
> I use these, but have a problem for code highlighting: DMD inserts macros<br>
> to colour the code, these don't play well with my usual solutions (package<br>
> pygmentize or package listings). The same for \verbatim{} instruction.<br>
> Here, I just used a simple \texttt{} instruction, but in this case curly<br>
> braces are lost :(<br>
<br>
</div>LaTeX has its own syntactic conventions. Curly braces must be escaped<br>
with backslash, and certain operators (^ in particular, which also<br>
affects ^^) will cause syntax errors, because they are metacharacters<br>
with a different meaning. All of them need to be properly escaped.<br></blockquote><div><br></div><div>Exactly.</div><div> </div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">

<br>
You may be able to use \begin{verbatim} and \end{verbatim} (which<br>
doesn't suffer from the trailing brace problem) but you can't use it for<br>
inline spans of text.<br></blockquote><div><br></div><div>Damn right.</div><div><br></div><div>I'll try with the listings package, but I don't have much hope to achieve what I want.</div></div>