groff
[Top][All Lists]
Advanced

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

Re: [Groff] Side coments


From: Tadziu Hoffmann
Subject: Re: [Groff] Side coments
Date: Fri, 13 Nov 2009 14:47:55 +0100
User-agent: Mutt/1.5.17 (2007-11-01)

> Thanks but a string defined by DS (where from?) is not
> accepted as a parameter to a macro.

Not sure what you mean.  ".DS" is just a wrapper around ".ds"
with the purpose of processing the arguments through groff's
macro argument parser, which allows you to enclose arguments
in double quotes and therefore enables you to terminate the
argument already before the whitespace preceding the comment
escape.

Here's a modified version which redefines ".ds" with new
semantics:

.rn ds ds-orig
.de ds
.ds-orig \\$1 "\\$2
..
Demo:
.ds yy " foo bar "      \" argument terminated by 2nd double quote
-\*(yy-






reply via email to

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