groff
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Groff] Stroustrup-style code typesetting?


From: Jorgen Grahn
Subject: [Groff] Stroustrup-style code typesetting?
Date: Fri, 10 Jan 2003 14:41:11 +0100
User-agent: Mutt/1.2.5i

A short question: is anyone out there aware of a vgrind-like preprocessor
which formats snippets of C and C++ code in the style that Bjarne Stroustrup
uses in his books and articles?

Most of it is trivial to do with a small Perl script, but some of it
(aligning end-of-line comments) is a little harder.

I find myself agreeing with what he writes somewhere in 'The C++ Programming
Language' -- on paper, code typeset in Courier isn't really that easy to read.

[This is, by the way, my first mail to the groff mailing list. I've used
troff for things other than nroffed man pages for slightly less than two
years, and learning more about it for two months.  Before that, I was a
LaTeX user, but I guess I got bored.

I wasn't aware until recently that there was *that* much happening around
groff. Excellent!]

rgds,
Jörgen

-- 
  // Jörgen Grahn       "And then the design was ignored, and small children
\X/ <address@hidden>  with crayons were given the O'Reilly Perl books and
                         told to Create.  And lo, it was done."
                                                         -- Teo de H, in ASR

reply via email to

[Prev in Thread] Current Thread [Next in Thread]