groff
[Top][All Lists]
Advanced

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

Re: [Groff] Refer and mysterious comma


From: Patrik Schindler
Subject: Re: [Groff] Refer and mysterious comma
Date: Sun, 26 Dec 2010 20:22:41 +0100

Hi Tadziu,

Am 05.12.2010 um 01:04 schrieb Tadziu Hoffmann:

I've looked at e.tmac, and "bug" maybe is too harsh a word.
The macros just seem to expect certain fields to be defined.
You can fix the problem you have by simply redefining macro
"[3" (which typesets "article-in-book" references) to
whatever suits your needs, for example something like this:


Thanks. I didn't realize that every macro package as their own hooks to handle references!

I took a look at your reply today and with your proposal, the messages about non-existing macros on stderr persist, but at least the stray comma problem has gone. Thank you very much! But now, a space is missing before the title, which I got fixed myself.

I have a good deal of problems interpreting the gore of troff macros, to me it looks a bit like PPP LCP frames in an VT100 terminal, so please forgive me if I ask dumb questions. ;-)


Anyway, this is my proposal for a german reference index entry within me.

Old version:

.de [3
.(f
.ip "\\*([F.\0"
\\*([A, \\*(lq\\*([T,\\*(rq
.if !"\\*([P"" pp. \\*([P
in \\f2\\*([B\\f1, \c
.if !"\\*([E"" ed. \\*([E, \c
.if !"\\*([I"" \\*([I\c
.if !"\\*([C"" , \\*([C\c
 (\\*([D).
.if !"\\*([O"" \\*([O
.)f
..


New version:

.de [3
.(f
.ip "\\*([F.\0"
\\*([A\c
.if !"\\*([T"" , \\f2\\*([T\\f1\c
 in \\f2\\*([B\\f1\c
.if !"\\*([S"" , \\*([S\c
.if !"\\*([V"" , Band \\*([V\c
.if !"\\*([E"" , bearb. \\*([E\c
.if !"\\*([I"" , \\*([I\c
.if !"\\*([C"" , \\*([C\c
 \\*([D
.if !"\\*([P"" , S. \\*([P\c
\&.
.if !"\\*([O"" \\*([O
.)f
..

It still has the following glitches which I am unable to solve. Bad brain, so it seems.

- space between %D and a following comma from %P.
- space before the full stop when %P is not used.

I don't quite get the point with the commas in the definitions. Any help greatly appreciated!

:wq! PoC

PNG image


reply via email to

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