groff
[Top][All Lists]
Advanced

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

Re: [Groff] Groff conversion with 190 characters in each line


From: Tadziu Hoffmann
Subject: Re: [Groff] Groff conversion with 190 characters in each line
Date: Mon, 14 Jan 2013 13:11:02 +0100
User-agent: Mutt/1.5.21 (2010-09-15)

> Playing around a little with changing the escape character,
> I'm confused...

It seems the situation is not entirely symmetrical between "\"
and "x" as escape characters.  With "\", "\\" is a backslash
and "\x" is the extra-line-space function.  With "x", "x\"
is also a backslash (though groff warns that it is ignoring
the escape character), and "xx" is still the extra-line-space
function (and needs an argument, hence the error you got).

In *copy mode*, however, "xx" appears to be copied as "x",
so when defining macros you use, for example, "xx$1" instead
of "\\$1"; an "x" at the end of the line means an escaped
newline; etc.   I found that to get the extra-line-space
function, you must use "xxxx", which gets copied as "xx"
and is interpreted as function "x" when the macro is reread.

Most functions are *not* interpreted in copy mode, and need
not be extra-escaped.  E.g., for the overstrike function
you can simply use "xo'abc'" instead of "xxo'abc'", although
the latter does not seem to hurt.  So with the backslash as
escape, you can simply say "\x'10p'".  The exception seems
to be when the function letter is the same as the escape
character, which kind of makes sense.





reply via email to

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