groff
[Top][All Lists]
Advanced

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

Re: Using the mm package, how to display journal title and author affili


From: G. Branden Robinson
Subject: Re: Using the mm package, how to display journal title and author affiliations?
Date: Tue, 21 Nov 2023 15:42:42 -0600

Hi Oliver,

At 2023-11-21T18:56:51+0100, Oliver Corff wrote:
> the first steps with mm look quite promising, and the (optional) goal
> of approaching the typesetting appearance of the original in the
> translation (for the benefit of the reader who wants to consult the
> original) is definitely achievable.
> 
> Two small hurdles remain:
> 
> 1. In mm, I did not find a macro for putting a journal title. Not a
> big problem, the journal title can appear in the running page header.

I don't think mm, or any *roff macro package for that matter (except may
be mom(7), of which I know little), keeps track of datum as
particular as a "journal title".  (refer(1) does, but that's a different
tool.)

I would define a string if you expect to make multiple references to the
journal title, and or configure the page headers/footers appropriately,
with `PH`, `PF`, or their recto/verso-aware alternatives.

> 2. Author affiliations of multiple authors. In the original document I
> have a centered line
> 
> Author I¹ Author II¹ Author-III² Author-IV¹ Author-V³
> 
> followed by
> 
> (1. Institution 1; 2. Institution 2; 3. Institution 3)
> 
> The mm macros provide .AF (author's firm), but in my document that
> never produces any output. Am I again missing the obvious here?

I don't think so; only some document types do anything with the author
firm datum.

Checking the DWB 3.3 mm manual, `AF` is scantily documented.
This manual also expands "AF" as "Alternate First-Page Format".  Here's
what it says.

--snip--
§6.1.7.2 Alternate First-Page Format.  One can specify an alternate
format for the first page of memoranda and change the company name used
for any document style.

  .AF [company-name]

If an argument is given, company-name replaces the default company name
on the first page of a released paper and in the letterhead block of a
memoranda [sic].  If the argument is null, the company name is
suppressed; in this case, an extra blank line is inserted to allow room
for stamping the document with an appropriate name or signature element.
--end snip--

Our mm describes it a bit differently.

groff_mm(7):
     AF [firm‐name]
             Specify firm associated with the document.  At most one can
             be declared; the firm name is used by memorandum types and
             available to cover sheets.  AF terminates a document title
             started with TL, and can be called without an argument for
             that purpose.  See MT and COVER.

It looks like only `AF` is used per document; this is a notable
difference from ms(7)'s `AI` macro.

The code for groff mm's `AF` is pretty simple.

.de AF
.cov@title-end
.if !''\\$1' .ds cov*firm \\$1
..

I therefore think you will need to handle author institutional
affiliations with bespoke logic in your document.

Regards,
Branden

Attachment: signature.asc
Description: PGP signature


reply via email to

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