groff
[Top][All Lists]
Advanced

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

Re: [Groff] \n[rst] and \n[rsb] inside a string


From: Denis M. Wilson
Subject: Re: [Groff] \n[rst] and \n[rsb] inside a string
Date: Sat, 29 Sep 2012 10:48:19 +0100

Hello all,
explanation below
Denis

On Fri, 28 Sep 2012 16:21:05 -0500
Dave Kemper <address@hidden> wrote:

> Hi,
> 
> I'm having trouble understanding why the values of \n[rst] and
> \n[rsb], when used inside a string after a \w, are different
> depending on where the string is called from.
> 
> In the first case below, I call the string \*[direct] directly, and
> the values are as expected.
> 
> In the second case, I wrap the call to the string inside
> macro .indirect, and the values are 0, although the width is reported
> correctly.
> 
> If I add another call to \*[direct] at the bottom of the file, below
> the call to .indirect, this call again displays the correct values for
> \n[rst] and \n[rsb].
> 
> Thanks for any advice.
> 
> 
> .ds direct \
> Howdy: \w'Howdy', rst = \\n[rst], rsb = \\n[rsb]
> .
> .de indirect
> \*[direct]

Needs to be \\*[direct] as inside a macro

> ..
> .
> \*[direct]
> .br
> .
> .indirect
> 


-- 
()  ascii ribbon campaign - against html e-mail 
/\  www.asciiribbon.org   - against proprietary attachments



reply via email to

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