SGML2LATEX(1)
π SGML2LATEX β the group chat edition β¨
okay bestie, so sgml2latex is a General Commands Manual girlie, and she's here to turn your LinuxDoc DTD SGML source into LaTeX, DVI, PostScript or PDF. yes she's old. yes she's obsoleted. we'll get to that. π«Ά
πΈ NAME πΈ
sgml2latex β create LaTeX, DVI, PostScript or PDF output from a LinuxDoc DTD SGML source file. that's the whole job. that's her whole thing. π
β¨ SYNOPSIS β¨
sgml2latex [generic-option...] [--output=tex|dvi|ps|pdf] [--bibtex]
[--makeindex] [--pagenumber=n] --quick [--latex=hlatexp|platex]
[--dvips=dvips|dvi2ps] [--verbosity=n] file[.sgml]
like, look at her. she's got range. π
π¦ DESCRIPTION π¦
so sgml2latex is an old and obsoleted form of the latex converter command of LinuxDoc-Tools. and ngl, the name is a lil misleading β she is not a tool for any SGML DTD, she only supports the SGML LinuxDoc DTD. periodt.
bestie, please switch to the new form: linuxdoc -B latex. do it for me. do it for us. π
what she does: she converts a LinuxDoc DTD SGML source file into LaTeX output, using the nsgmls(1) or onsgmls(1) parser, and the sgmlsasp(1) translator. then, taking that LaTeX output plus the latex(1) text formatter, you can create DVI output, and PostScript output using the dvips(1) converter. π
where does stuff land?
file.texfor LaTeX outputfile.dvifor DVI outputfile.psfor PostScript output
...where file is the name of the SGML source file. iconic behaviour fr fr.
and if you take the LaTeX output and pair it with the pdflatex(1) text formatter? you get a nice PDF output π
suitable for viewing with PDF viewers like xpdf(1), acroread(1) or ghostview(1). main character energy.
also, the attribute/value pair "output=latex2e" is set for conditionals. iykyk. β¨
π OPTIONS π
sgml2latex accepts all the generic options described in linuxdoc(1), plus these specific ones, bestie:
--output=fmt,-oβ specify the desired output format. the specifier fmt may betex,dvi,ps, orpdf. pick your fighter. π
Note: this version does not overwrite/remove the intermediate files: the tex file for dvi output, or the tex/dvi files for ps output. this is different behavior from the original SGML-Tools 1.0.9, so you are warned here. consider yourself warned. π
--bibtex,-bβ process the generated TeX withbibtex(1). citations girlies rise. π--makeindex,-mβ generate a TeX index file suitable for processing withmakeindex(1)from and<idx>and<cdx>tags present in the SGML source.--pagenumber,-nβ set the starting page number in the output DVI or PS file. numbering? we're starting from wherever you say. slay. π₯--quick,-qβ do only one pass of LaTeX formatting. this is often not sufficient to produce final output (because of references, etc.) but is useful for spotting TeX errors and justification problems. lowkey a vibe check for your errors. π--pass,-Pβ the argument of the pass option is inserted just after the LaTeX preamble generated by the document-type tag. specify the desired output format. the specifier fmt may betex,dvi,ps, orpdf.--latex=alternate_latex_command,-xβ this option is currently for Korean and Japanese. the alternate_latex_command can belatex(default),hlatexp(for Korean),platexorjlatex(for Japanese). this option can be used to render Korean document using HLaTeXp, or to render Japanese document using pLaTeX/jLaTeX. if not, HLaTeX should be installed to render Korean document. on the other hand, Japanese document can be rendered with jLaTeX (which is the default when-c nipponis specified), so if you already have jLaTeX, you may not need to install the pLaTeX. π§--dvips=alternate_dvips_command,-sβ this option is currently for Japanese. the alternate_dvips_command can bedvipsordvi2ps. if you don't know this, then you may not need this. π honestly? fair.--verbosity,-Vβ set verbosity.'0'(default) will show info about LaTeX run only in case of errors.'1'will always show info for last run.'2'will show info for all runs.
pick your chattiness level, bestie. π¬
fileβ the SGML source file, named either file or file.sgml. π¦
π FILES π
many files and executables in /usr/share/linuxdoc-tools and /usr/bin are used. she's got friends everywhere. πΈ
π BUGS π
None known. not one. she's perfect. (allegedly. π€) no cap.
π AUTHOR π
originally written by Greg Hankins <greg.hankins@cc.gatech.edu>, based on scripts by Tom Gordon and Alexander Horz. later rewritten by Cees de Groot <cg@cdegroot.com>. PDF patches by Juan Jose Amor <jjamor@hispalinux.es>. previously maintained by Taketoshi Sano <sano@debian.org> for Linuxdoc-Tools. currently maintained by Agustin Martin <agustin6martin AT gmail com>. legends, all of them. π«Άβ¨
π SEE ALSO π
linuxdoc(1), sgml2html(1), sgml2info(1), sgml2lyx(1), sgml2rtf(1), sgml2txt(1), sgmlcheck(1).
go read the whole squad. you'll be obsessed. π
okay that's the whole page bestie!! this one's from the General Commands Manual era, dated 2025-04-06, and yeah the page title is still just SGML2LATEX(1) β but honestly at this point she's answering to sgml2latex and that's that. π
β¨ bye ily, go use linuxdoc -B latex instead tho fr fr ππ¦
π¦ where this page comes from
- arch rolling: linuxdoc-tools 0.9.86-1 Β· GPL
- debian trixie: linuxdoc-tools 0.9.86-1 Β· PD-SGMLUG
- ubuntu questing: linuxdoc-tools 0.9.86-1
- ubuntu resolute: linuxdoc-tools 0.9.86-1build1 Β· PD-SGMLUG
- ubuntu stonking: linuxdoc-tools 0.9.86-1build1 Β· PD-SGMLUG
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash on : a language model's rewrite of the original, under its terms