groff
[Top][All Lists]
Advanced

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

Pop quiz: How do YOU .do?


From: G. Branden Robinson
Subject: Pop quiz: How do YOU .do?
Date: Tue, 14 Apr 2020 19:54:24 +1000
User-agent: NeoMutt/20180716

How well do you know groff's .do request?  Put it to the test!

I found the existing man page documentation much too light and a certain
paragraph in the Texinfo manual confounding.

But I know there are people reading this list who are highly
experienced, or simply more clever than I am.

Pretend you are groff, running without the -C flag, writing to an
nroff device, and you are given the region between the SNIPs below as
input.

What will your output be?

A plain-text hint is attached, as well as the solution, base64-encoded.

---SNIP---
.pl 1v
.de mac1
FOO
..
.de1 mac2
groff
.mac1
..
.de mac3
compatibility
.mac1
..
.de ma
\\$1
..
.cp 1
.do mac1
.do mac2
.do mac3
.do ma \[ti]
---SNIP---

Regards,
Branden

Attachment: hint.txt
Description: Text document

Attachment: answer.base64
Description: Text document

Attachment: signature.asc
Description: PGP signature


reply via email to

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