groff
[Top][All Lists]
Advanced

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

Re: [Groff] how to use amsmath symbols ingroff␛


From: Pierre-Jean
Subject: Re: [Groff] how to use amsmath symbols ingroff␛
Date: Mon, 04 Feb 2013 11:45:05 +0100
User-agent: Heirloom mailx 12.5 7/5/10

Hello alls,

It appears that I inserted some escape sequence in the
content of my previous mail, which explain it appears empty.

That was not my intention, of course. Here was my message,
and sorry for the noise...

Pierre-Jean.

> Shiv Shankar Dayal <address@hidden> wrote:
> 
> > Also, how can I do syntax highlighting?  Should I write custom
> > scripts to format my piece of code?
> 
> > > Syntax highlighting on the input or the output side?
> 
> > On the output side. I guess I can write a Python script which can be invoked
> > along with Pygments to output code to produce colorized output in PS/DVI.
> 
> At least, the old vgrind script, and it's preprocessor
> vfontedpr, doest that. They are part of the heirloom
> doctools archive.
> 
> Since they were not very conveniant for today use, I've
> worked on the vfontedpr pre-processor, to make it
> independant and easier to use. I renamed it "grind",
> since it's no more compatible with older versions.
> 
> * Grind acts by default as a filter, and highlight code
> between .vS and .vE macros. The first argument of the .vS
> macro tell to grind which language to highlight.
> 
> * Grind will highlight the whole file if the language is
> given by the -l option.
> 
> * Code is highlighted by inserting string around keywords,
> variables, strings, and so on. You should defined these
> strings in your file or macro package.
> 
> * Except for troff, how to highlight code is defined in the
> grindefs file, which one can (not easilly) modify. It does a
> very basic job, but correct for short pieces of code.
> 
> * To highlight troff sources, grind use an hardcoded parser,
> which does a better job, thought certainly not perfect yet.
> 
> * the manpage should be enought to use it, and the grindefs
> file is commented to help people to modify it.
> 
> * Grind is distributed under the original BSD licence. The
> grindefs file is distributed under the CDDL1.0 licence.
> 
> Since it might be usefull now, I share it here, just in case it
> passes throught the list robot.
> 
> Cheers,
> 
> Pierre-Jean.




reply via email to

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