groff
[Top][All Lists]
Advanced

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

Re: [Groff] Question on string registers and requests


From: Clarke Echols
Subject: Re: [Groff] Question on string registers and requests
Date: Fri, 21 Sep 2007 14:47:46 -0600
User-agent: Thunderbird 2.0.0.6 (Windows/20070728)

Doesn't work that way.

If you use:

.de U
.\" troff/groff requests and other stuff here
..

to define macro U, then use

.ds U \\s-1UNIX\\s0

to define a string named U, the namespace conflict causes macro U
to be overwritten by the defined string.

Executing

.U

does nothing because macro U was never defined by a .de statement.
You can interpolate the string using \*U, but that is the only way
to get the string contents back from the definition.

andlabs wrote:
Hello. I noticed, that given

.ds U \\s-2UNIX\\s0

in a troff file after -ms, and neither -ms nor that file define a macro .U,
I could do

.U

and it would be replaced with the contents of that string. Is that a feature
of groff? I'd like to clear things up. Thanks.




reply via email to

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