nroff -mm macro question

Jeff Burch burch at hpcc01.HP.COM
Wed Apr 10 04:07:44 AEST 1991


I want to thank everyone who replied to my basenote.
I have learned that \e in a macro will ALWAYS output a single \

Also, when nroff/troff read anything, a \\ will be converted to a \
In otherwords, the number of backslashes gets reduced by two.
The tricky part is "how many times will nroff/troff read a macro?"
It turns out that the .LI macro gets read 4 times. Therefore, eight
back slashes will be reduced by 4*2 into a single back slash.

So,

	.LI test\e.dat

	.LI test\\\\\\\\.dat

both give

	test.dat

for output!

Thanks again!



More information about the Comp.unix.questions mailing list