On Mon, Jan 07, 2013 at 02:35:09AM -0500, Andrei Alexandrescu wrote: > On 1/7/13 2:17 AM, Walter Bright wrote: > >On 1/6/2013 9:31 AM, Philippe Sigaud wrote: > >>Exactly. > > > >At one point I looked into doing Latex macros for Ddoc, but > >unfortunately it didn't look like it was doable without some > >extensive modifications to Ddoc.
I think the simplest way would be to allow the definition of some kind of post-processing filter that escapes LaTeX metacharacters with their appropriate substitutions. It can be as easy as a ddoc macro (or list of macros) that translates a given character into its LaTeX equivalent, with the default of no-op. So to adapt ddoc output to a particular format, you just have to override that particular set of metacharacters, and leave everything else as pass-through. > ??? I already have something in progress. [...] Curious ears want to hear what that something is. :-) T -- Arise, you prisoners of Windows / Arise, you slaves of Redmond, Wash, / The day and hour soon are coming / When all the IT folks say "Gosh!" / It isn't from a clever lawsuit / That Windowsland will finally fall, / But thousands writing open source code / Like mice who nibble through a wall. -- The Linux-nationale by Greg Baker
