dlangspec.pdf?

Philippe Sigaud philippe.sigaud at gmail.com
Sun Jan 6 09:31:49 PST 2013


On Sun, Jan 6, 2013 at 4:19 PM, H. S. Teoh <hsteoh at quickfur.ath.cx> wrote:

> On Sun, Jan 06, 2013 at 10:44:27AM +0100, Philippe Sigaud wrote:
> > > Philippe, please share with me as soon as you have anything significant
> > > done in terms of LaTeX production so we don't overlap work.
> > >
> > >
> > Nothing significant yet, that's my first dib into macro.
> > I use these, but have a problem for code highlighting: DMD inserts macros
> > to colour the code, these don't play well with my usual solutions
> (package
> > pygmentize or package listings). The same for \verbatim{} instruction.
> > Here, I just used a simple \texttt{} instruction, but in this case curly
> > braces are lost :(
>
> LaTeX has its own syntactic conventions. Curly braces must be escaped
> with backslash, and certain operators (^ in particular, which also
> affects ^^) will cause syntax errors, because they are metacharacters
> with a different meaning. All of them need to be properly escaped.
>

Exactly.


>
> You may be able to use \begin{verbatim} and \end{verbatim} (which
> doesn't suffer from the trailing brace problem) but you can't use it for
> inline spans of text.
>

Damn right.

I'll try with the listings package, but I don't have much hope to achieve
what I want.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.puremagic.com/pipermail/digitalmars-d/attachments/20130106/b46134a8/attachment-0001.html>


More information about the Digitalmars-d mailing list