MHTML(7)
πΈ 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:
.HTMLtitle β 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.HEADmacro inside the<head>section. To add arbitrary lines to the header, append to.HEADbefore invoking.HTML..FS,.FEβ Accumulate footnotes and print them at the end of the document under a Notes heading. These replace the macros inms(7). To emit the notes accumulated so far, invoke.NOTES..PS,.PEβ Replace input bracketed.PSand.PEwith a PNG image corresponding to the output of runningtroff(1)on the input..TS,.TEβ Identical to.PSand.PE..B1margin width,.B2β Format the input between.B1and.B2inside 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. π«Άπ
π¦ where this page comes from
- alpine 3.24: plan9port-doc 0_git20260208-r0 Β· LPL-1.02
- arch rolling: plan9port 20261021-2 Β· custom
- nixos 26.05: plan9port 0-unstable-2025-11-10
- nixos 26.05: plan9port-wayland 0-unstable-2025-11-26
- nixpkgs unstable: plan9port 0-unstable-2025-11-10
- nixpkgs unstable: plan9port-wayland 0-unstable-2025-11-26
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash-1017 on : a language model's rewrite of the original, under its terms