|
|
|
|
14.1. Markup languages
14.1. Markup languages
Most markup languages are more suitable for large or repetitive
projects, where you want the computer to control the layout of the
text to make things uniform.
-
nroff
-
This was one of the first markup languages on the
original version of Unix. Man pages
are the most common examples of things formatted in *roff
macros; many people swear by them, but nroff has, to me at
least, a more arcane syntax than needed (see Figure 12), and probably makes a poor choice for
new works. It is worth knowing, though, that you can typeset
a man page directly into postscript with groff. Most man
commands will do this for you with man -t foo
| lpr.
- TeX
-
TeX, and the macro package LaTeX, are one of the most
widely used markup languages on Un*x systems, although TeX did
not originate on Unix and is available to run on a wide
variety of systems. Technical works are frequently written in
LaTeX because it greatly simplifies the layout issues and isstill one of the few text processing
systems to support mathematics both completely and well.
TeX's output format is dvi, and is
converted to PostScript or Hewlett Packard's PCL with dvips or dvilj. If you
wish to install TeX or LaTeX, install the whole teTeX group of
packages; it contains everything. Recent TeX installations
include pdfTeX and pdfLaTeX, which produce Adobe PDF files
directly. Commands are available do create hyperlinks and
navigation features in the PDF file.
- SGML
-
There is at least one free SGML parser available for Un*x
systems; it forms the basis of Linuxdoc-SGML's homegrown
document system. It can support other DTD's, as well, most
notably DocBook. This document is written in DocBook-DTD
SGML; see Figure 14 for an example.
|
|
|