9fans - fans of the OS Plan 9 from Bell Labs
 help / color / mirror / Atom feed
From: Gregory Pavelcak <g.pavelcak@comcast.net>
To: 9fans@9fans.net
Subject: [9fans] troff, refer, and diversions
Date: Tue,  9 Dec 2008 22:43:06 -0500	[thread overview]
Message-ID: <b117dfacd6d1c48043904ed9c6a2abc6@comcast.net> (raw)

I've been writing a paper using -ms macros and refer and refer seems
to work as advertised. Recently I decided I wanted to get references in
endnotes instead of footnotes, so I added some very simple macros,
like FS/FE, around a diversion, thus:

.de XS
.ev2
.da XA
.br
..
.de XE
.br
.di
.ev
..

Aside from defining some number registers, the footnote macros
FJ and FK really don't seem to have much more to them than XS/XE,
and the XS/XE pair work as expected when I use them in the text.
However, when I replaced the FS/FE pairing under [2 in tmac.srefs,
the references are output in the text where I had the tags for refer
instead of being put into the diversion. I messed around with
variations on the macros much of the day and can't figure out what
I'm doing wrong. I can't see why FS and FE will work in the sref
macros, but XS/XE won't!

Thanks and Happy Holidays. I can't believe it's almost Christmas
again!

Greg



             reply	other threads:[~2008-12-10  3:43 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2008-12-10  3:43 Gregory Pavelcak [this message]
2008-12-11  2:22 ` Gregory Pavelcak

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=b117dfacd6d1c48043904ed9c6a2abc6@comcast.net \
    --to=g.pavelcak@comcast.net \
    --cc=9fans@9fans.net \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).