MHTML(7)

πŸ“¦ version 0_git20260208, in alpine 3.24, arch rolling, nixos 26.05, nixpkgs unstable

🌸 MHTML(7) β€” bestie, it’s the mhtml page 🌸

Okay so we’re on the MHTML(7) page from the Miscellaneous Information Manual, and it’s giving β€œmacros for formatting HTML” main character energy. Let’s get into it. πŸ’…βœ¨

πŸ¦‹ NAME πŸ¦‹

mhtml β€” macros for formatting HTML. Short, sweet, slay.

πŸ’– SYNOPSIS πŸ’–

pic | tbl | eqn | htmlroff [ -man | -ms ] -mhtml file ...

πŸŽ€ DESCRIPTION πŸŽ€

This package of htmlroff(1) macro definitions provides convenient macros for formatting HTML. It’s usually used along with troff(1) macro packages such as man(7) and ms(7). Mhtml replaces some macros defined in the other packages, so it should be listed after them on the htmlroff command line.

The following macros are defined:

  • .HTML title β€” Prints an HTML header marking the output as HTML 4.01 loose transitional encoded in UTF. If given, the title is printed inside <title> tags. This macro opens the <html> tag, opens and closes the <head> section, and opens <body>. It invokes the .HEAD macro inside the <head> section. To add arbitrary lines to the header, append to .HEAD before invoking .HTML.
  • .FS, .FE β€” Accumulate footnotes and print them at the end of the document under a Notes heading. These replace the macros in ms(7). To emit the notes accumulated so far, invoke .NOTES.
  • .PS, .PE β€” Replace input bracketed .PS and .PE with a PNG image corresponding to the output of running troff(1) on the input.
  • .TS, .TE β€” Identical to .PS and .PE.
  • .B1 margin width, .B2 β€” Format the input between .B1 and .B2 inside a box, with margin (default 10) pixels between the box and the text. The box is set to be width (default 60) percent of the current output width.

🌈 FILES 🌈

  • /tmac/tmac.html

πŸ‘‘ SEE ALSO πŸ‘‘

htmlroff(1), htmlroff(7), ms(7)


Footer check, bestie: the bottom of the page says MHTML(7) β€” no separate source/version/date line is hanging out there, so that’s the whole cute sign-off. πŸ«ΆπŸ’–