69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
|
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
|
-
+
+
+
+
+
+
+
+
+
+
+
+
+
|
File structure:
* Commands like .xx always at the beginning of a line.
* Comands like \xx may be within the text.
Some used markup:
* <tt>.SH "Text"</tt>: Section header. Text included in html TOC.
* <tt>.SS "Text"</tt>: Subsection header. Text included in html TOC.
* <tt>.SS "Text"</tt>: Subsection header. Text included in html TOC. Text must be in capital letters to be found by links.
* <tt>.TP</tt> : Paragraph label, start of indented text, text included in html TOC. The paragraph label occupies the next source line. It is often followed by a line with a single <tt>.</tt> on it (which does nothing, but makes the nroff code easier to read).
* <tt>\fBText\fR</tt> : Bold font
* <tt>\fIText\fR</tt> : Italic font (\fR (for Roman font) must always follow)
* <tt>.RS</tt> : Indent paragraph 3 to right start
* <tt>.RE</tt> : Indent end
* <tt>.PP</tt> : New line and reset font, margin and indent to default values
We add the following markup ourselves (i.e., these are rules defined in the <tt>man.macros</tt> file):
* <tt>.BS</tt> : Box Start. Puts this part in a box in some versions. (HTML version could do with updating to support this)
* <tt>.BE</tt> : Box End.
* <tt>.VS "Text"</tt>: Mark as new version, "<tt>Text</tt>" describes version (marks as a change in some renderings, but not the HTML version at the moment)
* <tt>.VE "Text"</tt>: End of mark (the text is just a reminder)
* <tt>.CS</tt> : Source code examples
* <tt>.CE</tt> : Source code example end
* <tt>.QW "Text"</tt>: Quoted Word, puts the <tt>Text</tt> in magic quotes when rendered on systems that support that (such as html).
* <tt>.PQ "Text"</tt>: Parenthesized Quoted word; puts the <tt>Text</tt> in parentheses and magic quotes. Gets the spacing right which .QW doesn't in this case.
<h2>Cross references within the file</h2>
There is some magic about cross referencing. The following creates a link to a section header:
<verbatim>
.SS "LINK TARGET"
...
See section \fBLINK TARGET\fR.
</verbatim>
This linking only happens if the text after ".SS" is in capital caracters.
|