aboutsummaryrefslogtreecommitdiff
path: root/index.html
blob: b24d8b8428ded5fc884433f537966f352755dd95 (plain)
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
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
<table class="head" style="width: 100%;">
  <tr>
    <td class="head-ltitle">mht(1)</td>
    <td class="head-vol" style="text-align: center;">General Commands Manual</td>
    <td class="head-rtitle" style="text-align: right;">mht(1)</td>
  </tr>
</table>
<div class="manual-text">
<section class="Sh">
<h2 class="Sh" id="NAME"><a class="permalink" style="color: black; text-decoration: none;" href="#NAME">NAME</a></h2>
<code class="Nm">mht</code> &#x2014;
<div class="Nd">troff for HTML</div>
</section>
<section class="Sh">
<h2 class="Sh" id="SYNOPSIS"><a class="permalink" style="color: black; text-decoration: none;" href="#SYNOPSIS">SYNOPSIS</a></h2>
<table class="Nm">
  <tr>
    <td><code class="Nm">mht</code></td>
    <td>[<var class="Ar">file</var>]</td>
  </tr>
</table>
</section>
<section class="Sh">
<h2 class="Sh" id="DESCIPTION"><a class="permalink" style="color: black; text-decoration: none;" href="#DESCIPTION">DESCIPTION</a></h2>
<code class="Nm">mht</code> is a utility that generates HTML from
  <a class="Xr">troff(1)</a> source code.
<p class="Pp">While <code class="Nm">mht</code> is named like a troff macro
    package and uses troff syntax, it is a standalone utility that does not use
    troff itself. As such, it supports only a subset of the standard troff
    requests.</p>
</section>
<section class="Sh">
<h2 class="Sh" id="USAGE"><a class="permalink" style="color: black; text-decoration: none;" href="#USAGE">USAGE</a></h2>
This section describes the various types of requests supported by
  <code class="Nm">mht</code>. On the left side is the name of the request. On
  the right side is the HTML expansion.
<p class="Pp">In the HTML expansion of all element requests, a backslash and a
    dollar sign followed by a number (e.g. \$1) signify a parameter
  expansion.</p>
<p class="Pp">In block element requests, a percent sign (%) signifies the lines
    following the request until the next block element request.</p>
<p class="Pp">Finally, in contiguous element requests, whatever text is on the
    outside of the area delimited by braces ({...}) is removed when two of the
    same contiguous element requests are placed next to one another.</p>
<section class="Ss">
<h3 class="Ss" id="Standard_troff_requests"><a class="permalink" style="color: black; text-decoration: none;" href="#Standard_troff_requests">Standard
  troff requests</a></h3>
<dl class="Bl-tag">
  <dt><b class="Sy">br</b></dt>
  <dd>&lt;br/&gt;</dd>
</dl>
</section>
<section class="Ss">
<h3 class="Ss" id="Contiguous_element_requests"><a class="permalink" style="color: black; text-decoration: none;" href="#Contiguous_element_requests">Contiguous
  element requests</a></h3>
<dl class="Bl-tag">
  <dt><b class="Sy">Qp</b></dt>
  <dd>&lt;blockquote&gt;{&lt;p&gt;%&lt;/p&gt;}&lt;/blockquote&gt;</dd>
</dl>
</section>
<section class="Ss">
<h3 class="Ss" id="Block_element_requests"><a class="permalink" style="color: black; text-decoration: none;" href="#Block_element_requests">Block
  element requests</a></h3>
<dl class="Bl-tag">
  <dt><b class="Sy">Hh</b></dt>
  <dd>&lt;h\$1&gt;%&lt;/h\$1&gt;</dd>
  <dt><b class="Sy">Pp</b></dt>
  <dd>&lt;p&gt;%&lt;/p&gt;</dd>
  <dt><b class="Sy">Pr</b></dt>
  <dd>&lt;pre&gt;%&lt;/pre&gt;</dd>
  <dt><b class="Sy">Sh</b></dt>
  <dd>&lt;h3&gt;%&lt;/h3&gt;</dd>
  <dt><b class="Sy">Ti</b></dt>
  <dd>&lt;title&gt;%&lt;/title&gt;</dd>
</dl>
</section>
<section class="Ss">
<h3 class="Ss" id="Inline_element_requests"><a class="permalink" style="color: black; text-decoration: none;" href="#Inline_element_requests">Inline
  element requests</a></h3>
<dl class="Bl-tag">
  <dt><b class="Sy">Au</b></dt>
  <dd>&lt;meta name=&quot;author&quot; content=&quot;\$1&quot;/&gt;</dd>
  <dt><b class="Sy">Bd</b></dt>
  <dd>\$3&lt;b&gt;\$1&lt;/b&gt;\$2</dd>
  <dt><b class="Sy">Cd</b></dt>
  <dd>\$3&lt;code&gt;\$1&lt;/code&gt;\$2</dd>
  <dt><b class="Sy">Cs</b></dt>
  <dd>&lt;meta http-equiv=&quot;Content-Type&quot; content=&quot;text/html;
      charset=\$1&quot;/&gt;</dd>
  <dt><b class="Sy">Da</b></dt>
  <dd>&lt;meta name=&quot;created&quot; content=&quot;\$1&quot;/&gt;</dd>
  <dt><b class="Sy">Em</b></dt>
  <dd>\$3&lt;em&gt;\$1&lt;/em&gt;\$2</dd>
  <dt><b class="Sy">Hy</b></dt>
  <dd>&lt;a href=&quot;\$2&quot;&gt;\$1&lt;/a&gt;</dd>
  <dt><b class="Sy">Im</b></dt>
  <dd>&lt;img src=&quot;\$1&quot; alt=&quot;\$2&quot;/&gt;</dd>
  <dt><b class="Sy">It</b></dt>
  <dd>\$3&lt;i&gt;\$1&lt;/i&gt;\$2</dd>
  <dt><b class="Sy">St</b></dt>
  <dd>\$3&lt;strong&gt;\$1&lt;/strong&gt;\$2</dd>
  <dt><b class="Sy">Tt</b></dt>
  <dd>\$3&lt;tt&gt;\$1&lt;/tt&gt;\$2</dd>
  <dt><b class="Sy">Ul</b></dt>
  <dd>\$3&lt;u&gt;\$1&lt;/u&gt;\$2</dd>
</dl>
</section>
</section>
<section class="Sh">
<h2 class="Sh" id="AUTHORS"><a class="permalink" style="color: black; text-decoration: none;" href="#AUTHORS">AUTHORS</a></h2>
<code class="Nm">mht</code> is written by John Ankarstr&#x00F6;m
  &lt;<a class="Mt" href="mailto:john">john</a>
  <a class="Mt" href="mailto:(at)">(at)</a>
  <a class="Mt" href="mailto:ankarstrom.se">ankarstrom.se</a>&gt;.
</section>
</div>
<table class="foot" style="width: 100%;">
  <tr>
    <td class="foot-date">December 11, 2020</td>
    <td class="foot-os" style="text-align: right;">Linux 5.4.72-0-lts</td>
  </tr>
</table>