| 1 |
.\" Man page generated from reStructuredText |
| 2 |
.\" by the Docutils 0.23 manpage writer. |
| 3 |
. |
| 4 |
. |
| 5 |
.nr rst2man-indent-level 0 |
| 6 |
. |
| 7 |
.de1 rstReportMargin |
| 8 |
\\$1 \\n[an-margin] |
| 9 |
level \\n[rst2man-indent-level] |
| 10 |
level margin: \\n[rst2man-indent\\n[rst2man-indent-level]] |
| 11 |
- |
| 12 |
\\n[rst2man-indent0] |
| 13 |
\\n[rst2man-indent1] |
| 14 |
\\n[rst2man-indent2] |
| 15 |
.. |
| 16 |
.de1 INDENT |
| 17 |
.\" .rstReportMargin pre: |
| 18 |
. RS \\$1 |
| 19 |
. nr rst2man-indent\\n[rst2man-indent-level] \\n[an-margin] |
| 20 |
. nr rst2man-indent-level +1 |
| 21 |
.\" .rstReportMargin post: |
| 22 |
.. |
| 23 |
.de UNINDENT |
| 24 |
. RE |
| 25 |
.\" indent \\n[an-margin] |
| 26 |
.\" old: \\n[rst2man-indent\\n[rst2man-indent-level]] |
| 27 |
.nr rst2man-indent-level -1 |
| 28 |
.\" new: \\n[rst2man-indent\\n[rst2man-indent-level]] |
| 29 |
.in \\n[rst2man-indent\\n[rst2man-indent-level]]u |
| 30 |
.. |
| 31 |
.TH "rst2man" "1" "2006-10-22" "0.1" "text processing" |
| 32 |
.SH Name |
| 33 |
rst2man \- generate unix manpages from reStructured text |
| 34 |
.\" TODO: authors and author with name <email> |
| 35 |
. |
| 36 |
.SH SYNOPSIS |
| 37 |
.INDENT 0.0 |
| 38 |
.INDENT 3.5 |
| 39 |
rst2man inputfile outputfile |
| 40 |
.UNINDENT |
| 41 |
.UNINDENT |
| 42 |
.SH DESCRIPTION |
| 43 |
.sp |
| 44 |
rst2man transforms a reStructured text document into a unix man page. |
| 45 |
.sp |
| 46 |
In theory any valid reStructured text document should be processable, |
| 47 |
in reality this is |
| 48 |
.INDENT 0.0 |
| 49 |
.IP \(bu 2 |
| 50 |
a goal, that is not met yet |
| 51 |
.IP \(bu 2 |
| 52 |
a goal that might never be met, because only few constructs are |
| 53 |
used in man pages \fIand\fP because the common text file does not adhere |
| 54 |
to man page requirements. |
| 55 |
.sp |
| 56 |
For example a unix man page belongs into a numbered section, 1 is |
| 57 |
user commands, 8 contains administrator commands and the headlines |
| 58 |
of all manpages are collected into a database, queryable with the |
| 59 |
programm \fBapropos\fP, therefore the headline should contain a short |
| 60 |
text describing into which group this command belongs. |
| 61 |
.sp |
| 62 |
These informations are collected from title, subtitle and the |
| 63 |
docinfo, see this document as an example. |
| 64 |
.UNINDENT |
| 65 |
.SH OPTIONS |
| 66 |
.INDENT 0.0 |
| 67 |
.TP |
| 68 |
.BI \-\-config\fB= <file> |
| 69 |
Read configuration settings from <file>, if it exists. |
| 70 |
.TP |
| 71 |
.B \-\-version\fP,\fB \-V |
| 72 |
Show this program\(aqs version number and exit. |
| 73 |
.TP |
| 74 |
.B \-\-help\fP,\fB \-h |
| 75 |
Show this help message and exit. |
| 76 |
.UNINDENT |
| 77 |
.sp |
| 78 |
And a lot more standard docutils options. |
| 79 |
.SH FILES |
| 80 |
.sp |
| 81 |
None yet. |
| 82 |
.SH SEE ALSO |
| 83 |
.sp |
| 84 |
docutils \%<https://\:docutils\:.sourceforge\:.io> |
| 85 |
linux man page howto \%<http://\:tldp\:.org/\:HOWTO/\:Man-Page/> |
| 86 |
.sp |
| 87 |
and \fBman man\fP also \fBman 7 man\fP |
| 88 |
.SH BUGS |
| 89 |
.INDENT 0.0 |
| 90 |
.IP 1. 3 |
| 91 |
Format options are included as they are required. |
| 92 |
.IP 2. 3 |
| 93 |
bullet lists |
| 94 |
.IP 3. 3 |
| 95 |
number lists |
| 96 |
.IP 4. 3 |
| 97 |
math: The LaTeX source is shown, e.g. \fBn! + \esin(x_n^2)\fP\&. |
| 98 |
.UNINDENT |
| 99 |
.sp |
| 100 |
Discussion is still open. |
| 101 |
.SH Author |
| 102 |
[email protected] |
| 103 |
.SH Copyright |
| 104 |
public domain |
| 105 |
.\" End of generated man page. |