groff
[Top][All Lists]
Advanced

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

Re: [Groff] Unexpected String Variable Interpolation in MS Document


From: Werner LEMBERG
Subject: Re: [Groff] Unexpected String Variable Interpolation in MS Document
Date: Thu, 04 Mar 2004 07:26:29 +0100 (CET)

>    I am trying to figure the proper number of escapes required to
> store the section number of a numbered heading in an MS document in
> a file to resolve a forward reference.  [...]
>
> I empirically derived the three backslashes on the .write request
> and, although the proper section number is stored in /tmp/book, it
> is prefaced by a backslash:
>
>     $ cat /tmp/book
>     .ds CovAnalysisSectNumber \7.5.
>
> If I remove one backslash on the .write request:
>
>     .write SecondPassFile ".ds CASection \\*(SN
>
> \*(SN is not interpolated in the string variable definition in
> /tmp/book:
>
>     .ds CovAnalysisSectNumber \*(SN
>
> What am I doing wrong?

What about a single backslash:

  .write SecondPassFile ".ds CASection \*(SN

You aren't in a macro, so direct expansion seems to be correct.  Or am
I missing something?


    Werner


reply via email to

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