Hyphens, minus, and dashes in Debian man pages
Hyphens, minus, and dashes in Debian man pages
Posted Oct 24, 2023 0:43 UTC (Tue) by jkingweb (subscriber, #113039)In reply to: Hyphens, minus, and dashes in Debian man pages by branden
Parent article: Hyphens, minus, and dashes in Debian man pages
I am such a person (especially after reading this article), though I'm a complete neophyte. Thus far I've been writing Markdown and converting it using Pandoc, mainly because I had no idea where to begin to learn how to do things properly. And... I still don't. Should I start by reading man(7), or mdoc(7), or something else altogether? There seems to be many schools of thought (as is so common in the free software world), but I'd love an authoritative hand point me in *one* direction, whatever it is.
Posted Oct 24, 2023 3:07 UTC (Tue)
by branden (guest, #7029)
[Link] (1 responses)
My recommendation is the groff_man_style(7) page in the groff 1.23.0 release. It attempts to bring the reader from a state of no knowledge about man(7) or roff to a point where they can write a man page. It's not quite a tutorial--it doesn't start with a skeleton page that you fill in, but it covers the basics first and then discusses each group of man(7) macros in approximately the order you're likely to need to use them. So it starts with `TH` and `SH` and their relatives, then covers paragraphing macros, then synopsis macros, then hyperlink macros, and finally font styling macros.
You can start on page 253 of the collected groff man pages PDF. https://www.gnu.org/software/groff/manual/groff-man-pages...
> There seems to be many schools of thought (as is so common in the free software world), but I'd love an authoritative hand point me in *one* direction, whatever it is.
In the course of the past several years I've learned a great deal about the history of *roff and man pages, and I've attempted to reflect that learning in the content of the groff's own man pages.
But even authoritative voices are not infallible, so if you find errors, I'd appreciate hearing about them. (I find that the adjective sits on me uncomfortably, in any case.)
Posted Oct 30, 2023 22:33 UTC (Mon)
by jkingweb (subscriber, #113039)
[Link]
Hyphens, minus, and dashes in Debian man pages
Hyphens, minus, and dashes in Debian man pages
