Index: head/usr.bin/sgmlfmt/sgmlfmt.1 =================================================================== --- head/usr.bin/sgmlfmt/sgmlfmt.1 (revision 10482) +++ head/usr.bin/sgmlfmt/sgmlfmt.1 (revision 10483) @@ -1,131 +1,164 @@ -.Dd August 28, 1995 +.Dd August 30, 1995 .Os FreeBSD 2.0.5 .Dt SGMLFMT 1 .Sh NAME .Nm sgmlfmt .Nd Formats SGML files tagged according to the linuxdoc DTD. .Sh SYNOPSIS .Nm -.Fl Ar format Op Fl Ar format... -.Op Fl Ar links -.Ar +.Fl f Ar format +.Op Fl links +.Op Fl i Ar name ... +.Ar file .Sh DESCRIPTION The .Nm command reads SGML files tagged according to the linuxdoc DTD, validates them using the .Xr sgmls 1 parser and then converts them to the specified output format. The input file must include the following document type declaration before any uncommented text: .Bd -literal -offset indent .Ed -.Pp -The -.Fl Ar format -options for output include the following: +.Pp Options for +.Nm +include the following: .Bl -tag -width Ds -.It Fl html +.It Fl f Ar format +Determines the output format which can be one of the following: +.Bl -tag -width Ds +.It Ar html Generates a set of linked HTML files suitable for use with an HTML browser. A top level file, .Pa file.html , contains the title, author, date, abstract and brief table of contents for the document. A file .Pa file_toc.html contains a complete table of contents. A series of files named .Pa file1.html , .Pa file2.html ... .Pa filen.html contain the actual text of the document. -.It Fl latex +.It Ar latex Generates a single output file with the extension .Pa .tex suitable for processing with LaTeX. Note that the LaTeX style file .Pa /usr/share/sgml/FreeBSD/lib/linuxdoc.sty must be accessible to LaTeX for correct processing. -.It Fl ascii +.It Ar ascii Generates a single output file with the extension .Pa .ascii suitable for viewing on an ASCII terminal. -.It Fl nroff +.It Ar nroff Generates a single output file with the extension .Pa .nroff suitable processing with .Xr nroff 1 or .Xr groff 1 . This is actually an intermediate conversion used by the -.Fl ascii +.Fl f Ar ascii format option. +.El .It Fl links When used with the -.Fl html -option, for each