1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
|
.TH MHTML 7
.SH NAME
mhtml \- macros for formatting HTML
.SH SYNOPSIS
.B pic
.B |
.B tbl
.B |
.B eqn
.B |
.B htmlroff
[
.B -man
|
.B -ms
]
.B -mhtml
.I file
\&...
.SH DESCRIPTION
This package of
.IR htmlroff (1)
macro definitions provides convenient macros for formatting HTML.
It is usually used along with
.IR troff (1)
macro packages such as
.IR man (7)
and
.IR ms (7).
.I Mhtml
replaces some macros defined in the other packages,
so it should be listed after them on the
.I htmlroff
command line.
.PP
The following macros are defined:
.TP
.B .HTML \fItitle
Print an HTML header marking the output as
HTML 4.01 loose transitional encoded in UTF.
If given, the
.I title
is printed inside
.B <title>
tags.
This macro opens the
.B <html>
tag, opens and closes the
.B <head>
section, and opens
.B <body> .
It invokes the
.B .HEAD
macro inside the
.B <head>
section.
To add arbitrary lines to the header,
append to
.B .HEAD
before invoking
.BR .HTML .
.TP
.B .FS\fR, \fP.FE
Accumulate footnotes and print them at the end of the
document under a \fBNotes\fP heading.
These replace the macros in
.IR ms (7).
To emit the notes accumulated so far, invoke
.BR .NOTES .
.TP
.B .PS\fR, \fP.PE
Replace input bracketed
.B .PS
and
.B .PE
with a PNG image corresponding to the output of
running
.IR troff (1)
on the input.
.TP
.B .TS\fR, \fP.TE
Identical to
.B .PS
and
.BR .PE .
.TP
.B .B1 \fImargin\fP \fIwidth\fR, \fL.B2
Format the input between
.B .B1
and
.B .B2
inside a box, with
.I margin
(default 10)
pixels between the box and the text.
The box is set to be
.I width
(default 60)
percent of the current output width.
.SH FILES
.B \*9/tmac/tmac.html
.SH SEE ALSO
.IR htmlroff (1),
.IR htmlroff (7),
.IR ms (7)
|