[net.unix] "Idenification Keywords"

crc@abic.UUCP (Clive Charlwood) (01/22/86)

I need to include Identification strings within the text of a manual
page. I can't use get -k to suppress the expansion, because I then
lose the information from the header at the top. I turned to the
on line get(1) manual page to see how they did it.

Unfortunately it is incorrect, the section headed
"Identification Keywords" has a table thus:

          Keyword   Value
          get.1     Module name: either the value of the m flag in the
          	    ...

It Should Read:

          Keyword   Value
          %M%       Module name: either the value of the m flag in the
          	    ...

I have found a way around it by putting the string %Z% in the nroff
file as %\fBZ\fP%.  Which works but doesn't seem 'nice'.

Anybody got a 'nice' way of quoting Identification Strings against
expansion.


	Thanks in advance 

		Clive Charlwood.

jsdy@hadron.UUCP (Joseph S. D. Yao) (01/24/86)

In article <722@abic.UUCP> crc@abic.UUCP (Clive Charlwood) writes:
>Unfortunately it is incorrect, the section headed
>"Identification Keywords" has a table thus:
>          Keyword   Value
>          get.1     Module name: either the value of the m flag in the
>It Should Read:
>          Keyword   Value
>          %M%       Module name: either the value of the m flag in the

The %M% module keyword worked exactly as advertised.  When get.1
was extracted from s.get.1, the %M% keyword (a relatively late
addition, i think, to the document) was not protected and thus
expanded to the module name "get.1".

Try %\&M\&%, or %\&M% (or %M\&%).

Note that there is a similar problem when archiving C programs
that use multiple printf long-int formats together, as: "%D%O%X%s".
The solution here is to use the l-formats: "%ld%lo%lx%s".
-- 

	Joe Yao		hadron!jsdy@seismo.{CSS.GOV,ARPA,UUCP}