At 2024-11-13T20:44:23+0100, Oliver Corff via GNU roff typesetting system discussion wrote: > Recently I started using groff for writing business letters. In my > particular case, I experimented with the macro package me following > the example letter I found in the documentationm, but my question is > not linked to the choice of any particular macro package. > > In me, adding a footer with .fo 'arg left'arg center'arg right' works > as expected, with the blatantly obvious limitation that the elements > of the footer should not contain line breaks. > > However, I'd like to have information in two lines --- perhaps best to > be imagined like a tbl with two rows and three columns: > > .TS > center expand nospaces tab(|); > l c r. > Contact | Tax ID|Bank Account / IBAN > me@org|12334|DE12123123450100 > .TE
Here's a solution using mm(7). Seems okay, can't say that it's "best". $ cat ATTIC/oliver-letter.mm .BS .tl 'Contact'Tax ID'Bank Account/IBAN' .tl 'me@org'12334'DE12123123450100' .BE .ND "17 May 2023" .WA "Epi G. Netic" "Head of Research" 123 Main Street Anytown, ST 10101 .WE .IA "Rufus T. Arbogast" "Autovectorization Guru" 456 Elsewhere Avenue Nirvana, PA 20406 .IE .LT .P We have a research leak! The next person I catch embedding engineering samples of our Lightspeed Overdrive 2048-core processors in cork coasters distributed at trade shows is going to regret it. .FC .SG .NS sundry careless people .NE .\" vim: set noexpandtab textwidth=72: $ nroff -mm ATTIC/oliver-letter.mm | cat -s ‐ 1 ‐ We have a research leak! The next person I catch embedding engineering samples of our Lightspeed Overdrive 2048‐core processors in cork coasters distributed at trade shows is going to regret it. Yours very truly, Epi G. Netic Head of Research Copy to sundry careless people Contact Tax ID Bank Account/IBAN me@org 12334 DE12123123450100 Regards, Branden
signature.asc
Description: PGP signature