Next Previous Contents

17. Converting the SGML File

Having made the SGML file we are now ready to convert it to the various output formats we need. The following is my script to process my Multi Disk HOWTO:


sgml2txt -f disk.sgml
sgml2html disk.sgml

sgml2latex --papersize=a4 --language=english  --output=ps ~stein/doc/disk.sgml
mv disk.ps disk-A4.ps
gzip -9 disk-A4.ps

sgml2latex --papersize=letter --language=english  --output=ps ~stein/doc/disk.sgml
mv disk.ps disk-US.ps
gzip -9 disk-US.ps

The template can be converted as is, substitute "disk.sgml" with the filename of this template to see what it looks like.

If your document is small (such as this template) you might find it more convenient to keep formatted versions in one single file rather than splitting it for every chapter:


sgml2html --split=0 template.sgml


Next Previous Contents