\documentclass[letterpaper]{article}
\nonstopmode
\akai
\usepackage{linuxdoc-sgml}
\usepackage{qwertz}
\usepackage{url}
\usepackage[latin1]{inputenc}
\usepackage{t1enc}
\usepackage[english]{babel}
\usepackage{epsfig}
\usepackage{null}
\def\addbibtoc{
\addcontentsline{toc}{section}{\numberline{\mbox{}}\relax\bibname}
}%end-preamble
\setcounter{page}{1}
\title{SGML-Tools Ê¹ÓÃËµÃ÷ÖÐÒë°æ}
\author{×÷Õß: Matt Welsh. Updated by Greg Hankins. \\ 
ÒëÕß: \onlynameurl{C.W.Huang} {\ttfamily \onlynameurl{cwhuang@phys.ntu.edu.tw}}}
\date{v0.99.0, 29 November 1996.
·­ÒëÈÕÆÚ: 4-15 August 1997}
\abstract{Õâ·ÝÎÄ¼þÊÇ SGML-Tools µÄÊ¹ÓÃËµÃ÷£¬Ò»ÖÖÒÔ SGML Îª»ù´¡£¬ÈÃÄã²úÉú²»Í¬Êä³ö¸ñÊ½µÄ¹¤¾ß£®Äã¿ÉÒÔÓÃµ¥Ò»µÄ SGML Ô­Ê¼ÎÄ¼þ²úÉú´¿ÎÄ×Öµµ (ASCII Óë ISO-8859-1), DVI, PostScript, HTML, GNU info, LyX, Óë RTF µµ£®Õâ·ÝÎÄ¼þËµÃ÷ÒÔ SGML-Tools 0.99.0. Îª×¼£®}


\begin{document}
\maketitle
\tableofcontents

\section{¼ò½é}

ÕâÊÇÒ»·Ý SGML-Tools ÎÄ¼þ´¦ÀíÏµÍ³µÄÊ¹ÓÃËµÃ÷£®SGML-Tools Ìá¹©Ò»¸ö SGML DTD (ÎÄ¼þÐÎÌ¬¶¨Òå£¬Document Type Definition)
¼°Ò»×é¡¸ÖÃ»»µµ(replacement files)¡¹£¬¿ÉÒÔ½« SGML ×ª»»Îª groff, LaTeX, HTML, GNU info, LyX, Óë RTF µÄÔ­Ê¼µµ£®

SGML-Tools Ö÷ÒªÒÔ \nameurl{mailto:thomas.gordon@gmd.de}{Tom Gordon} µÄ QWERTZ DTD Îª»ù´¡·¢Õ¹µÄ£®




\subsection{¹Øì¶´ËÎÄ¼þ}

Õâ·ÝÎÄ¼þÒÔ¸½ÔÚ SGML-Tools ÉÏµÄ linuxdoc DTD Ëù×«Ð´µÄ£®
Ëü¼¸ºõ°üº¬ËùÓÐÊ¹ÓÃÕâ·Ý DTD À´Ð´ SGML ÎÄ¼þËùÐèÖªµÀµÄÊÂÇé£®
Çë²Î¿¼ {\ttfamily example.sgml} Õâ·Ý SGML ¡õÀý£¬Äã¿ÉÒÔÄÃËüµ±×÷Äã×Ô¼ºÎÄ¼þµÄ¡õ±¾£®




\subsection{ÎªºÎÓÃ SGML?}

ÎÒÑ¡ÔñÊ¹ÓÃ SGML ÊÇÒòÎª SGML ÊÇ×¨ÃÅÓÃÀ´×ª»»³ÉÆäËü¸ñÊ½µÄ£®
SGML ÊÇ Standard Generalized Markup Language µÄ¼ò³Æ£¬ËüÔÊÐíÄãÖ¸¶¨ÎÄ¼þµÄ{\itshape ½á¹¹\/}---Ò²¾ÍÊÇ£¬ÓÃºÎÖÖÊÂÎïÀ´±êÊ¾ÎÄ¼þ£®
ÄãÊ¹ÓÃÒ»·Ý DTD (ÎÄ¼þÐÎÌ¬¶¨Òå) À´Ö¸¶¨ÎÄ¼þµÄ½á¹¹£®linuxdoc ÊÇÒ»ÖÖÖ¸¶¨ Linux HOWTOs ÓëÆäËüÎÄ¼þµÄ DTD£®
QWERTZ ÊÇÁíÒ»ÖÖ DTD; SGML µÄ±ê×¼Ìá¹©Êé£¬ÎÄÕÂ£¬¼°ÆäâÅÒ»°ãÎÄ¼þËùÊ¹ÓÃµÄ DTD£®

DTD Ö¸¶¨ÎÄ¼þÖÐ¡¸×é³ÉÔªËØ¡¹µÄÃû³Æ£®×é³ÉÔªËØ¾ÍÊÇÒ»ÖÖ½á¹¹---ÀýÈçÕÂ£¬½Ú£¬¶ÎÂä£¬»òÊÇ¸üÐ¡µÄÏñÊÇÕâÑùµÄ
{\itshape Ç¿µ÷ÎÄ×Ö\/}£®È»¶ø¸ú LaTeX ²»Í¬µÄÊÇ£¬ÕâÐ©×é³ÉÔªËØ²¢·Ç SGML ±¾ÉíÄÚº¬µÄ£®linuxdoc DTD
¾Í¶¨ÒåÁËÀàËÆ LaTeX ÖÐµÄ×é³ÉÔªËØ---ÄãÓÐÕÂ£¬½Ú£¬»òÊÇ¡¸»·¾³¡¹µÈµÈ£®È»¶ø£¬ÀûÓÃ SGML 
Äã¿ÉÒÔÕÕÄãÏ²»¶¶¨ÒåÎÄ¼þµÄÈÎºÎ½á¹¹£®¾ÍÄ³·½ÃæÀ´Ëµ£¬SGML ¾ÍÏñÊÇµÍ½×µÄ TeX£¬¶ø linuxdoc DTD
ÔòÏñÊÇ LaTeX£®

±ð±»ÕâÀà±È¸ã»ìÁË£®SGML ²¢{\itshape ²»ÊÇ\/}Ò»ÖÖÎÄ¼þ¸ñÊ½»¯ÏµÍ³£®Ã»ÓÐËùÎ½µÄ¡¸SGML ¸ñÊ½¡¹£®
SGML µÄÔ­Ê¼µµ{\itshape Ö»ÊÇ\/}ÓÃÀ´×ª»»³ÉÆäËü¸ñÊ½ÒÔ±ã´¦ÀíµÄ£®»¹ÓÐ£¬SGML ±¾ÉíÊÇÓÃÀ´Ö¸¶¨ÎÄ¼þµÄ½á¹¹£®
Ã»ÓÐ SGML ±¾ÉíµÄÎÄ×Ö¸ñÊ½»¯¹¤¾ß»òÊÇ¡¸¾Þ¼¯¡¹Ö®ÀàµÄ£®ËùÓÐµÄÒ»ÇÐ¶¼¶¨Òåì¶ DTD ÖÐ£®
Ã»ÓÐ DTD Äã²»ÄÜÊ¹ÓÃ SGML£¬Ò»·Ý DTD ¶¨ÒåÁË SGML ¸Ã×öÊ²÷á£®




\subsection{ËüÈçºÎÔË×÷}

ÕâÀï½âÊÍÈçºÎÊ¹ÓÃ SGML-Tools ´¦ÀíÎÄ¼þ£®Ê×ÏÈ£¬ÄãÐèÒªÒ»·Ý DTD£®ÎÒÓÃµÄÊÇ QWERTZ DTD£¬
Ëü±¾À´ÊÇÒ»ÈºÈËÒòÎªÐèÒªÀàËÆ LaTeX µÄ DTD ¶ø×öµÄ£®ÎÒ½« QWERTZ DTD ÐÞ¸Ä³É linuxdoc DTD
ÒÔ·ûºÏÎÒÃÇµÄÐèÇó£®DTD ²»¹ýÉè¶¨ÁËÎÄ¼þµÄ½á¹¹£®Ëü¿´ÆðÀ´ÏñÊÇÕâ¸öÑù×ÓµÄ:

\begin{tscreen}
\begin{verbatim}
<!element article - -
    (titlepag, header?, 
     toc?, lof?, lot?, p*, sect*, 
     (appendix, sect+)?, biblio?) +(footnote)>
\end{verbatim}
\end{tscreen}


Õâ²¿·ÝÉè¶¨ÁË¡¸ÎÄ¼þ¡¹µÄÕû¸ö½á¹¹£¬¾ÍÏñÊÇ LaTeX µÄ¡¸documentstyle¡¹£®
ÕâÎÄ¼þ°üº¬ÁËÒ»¸öÊéÒ³Ãû({\ttfamily titlepag})£¬Ò»¸ö¿ÉÓÐ¿ÉÎÞµÄ±êÌâ({\ttfamily header})£¬Ò»¸ö¿ÉÑ¡ÓÃµÄÄÚÈÝÁÐ±í({\ttfamily toc})£¬¿ÉÑ¡ÓÃµÄÍ¼ÐÎÁÐ±í({\ttfamily lof})Óë±í¸ñÁÐ±í({\ttfamily lot})£¬ÈÎÒâÊýÁ¿µÄ¶ÎÂä({\ttfamily p})£¬ÈÎÒâÊýÁ¿µÄÕÂ½Ú({\ttfamily sect})£¬¿ÉÑ¡ÓÃµÄ¸½Â¼({\ttfamily appendix})£¬Ò»¸ö¿ÉÑ¡ÓÃµÄ²Î¿¼ÊéÄ¿({\ttfamily biblio})ÒÔ¼°×¢½â({\ttfamily footnote})£®

Äã¿É¿´³ö£¬DTD ²¢Î´ËµÃ÷ÎÄ¼þÓ¦ÈçºÎ±»¸ñÊ½»¯£¬»òËü¿´ÆðÀ´³¤µÃÔõ÷áÑù£®
ËüÖ»²»¹ý¶¨ÒåÁËÎÄ¼þÓÉºÎÖÖ²¿·ÝËù×é³É£®ÔÚÎÄ¼þµÄÁíÒ»¸öµØ·½¶¨ÒåÁË 
{\ttfamily titlepag}, {\ttfamily header}, {\ttfamily sect} ¼°ÆäâÅµÄ×é³ÉÔªËØ£®

Ð´ÎÄ¼þÊ±Äã²¢²»ÐèÒªÖªµÀÈÎºÎ¹Øì¶ DTD µÄÎÄ·¨¹æÔò£®ÎÒÖ»²»¹ýÈÃÄã¿´Ò»ÏÂËü³¤µÃÊ²÷áÑù×Ó»¹ÓÐËü×öÁËÊ²÷á£®
µ«Äã{\itshape ±ØÐè\/}ÊìÏ¤Õâ·Ý DTD Ëù¶¨ÒåµÄÎÄ¼þ{\itshape ½á¹¹\/}£®·ñÔò£¬ÔÚ³¢ÊÔÐ´ÎÄ¼þÊ±Äã¿ÉÄÜ»áÎ¥·´½á¹¹£¬
¶øÇÒ±»´íÎóÑ¶Ï¢¸ã»èÁË£®ÏÂÃæÎÒÃÇ»áÃèÊö SGML ÎÄ¼þ½á¹¹µÄÏ¸½Ú£®

½ÓÏÂÀ´¾ÍÊÇÓÃÕâ·Ý DTD Ëù¶¨ÒåµÄ½á¹¹À´Ð´ÎÄ¼þÁË£®ÔÙËµÒ»´Î£¬linuxdoc DTD Ê¹µÃÎÄ¼þ¿´ÆðÀ´³¤µÃÏñ 
LaTeX---ËùÒÔºÜÈÝÒ××ñ´Ó£®ÓÃ SGML µÄÊõÓïÀ´Ëµ£¬Ê¹ÓÃÄ³Ò»¸öÌØ±ðµÄ DTD À´×«Ð´µÄµ¥Ò»ÎÄ¼þ½Ð×öÄÇ·Ý
DTD µÄ¡¸°¸Àý(instance)¡¹£®

ÎªÁË½« SGML Ô­Ê¼µµ×ª»»³ÉÆäËü¸ñÊ½(ÀýÈç LaTex »ò groff)ÒÔ±ã´¦Àí£¬ÄãËùÐ´µÄ SGML Ô­Ê¼µµ±ØÐë¾­
SGML {\itshape ½âÎöÆ÷\/}´¦Àí¹ý£®ÎÒÓÃµÄÊÇ James Clark({\ttfamily \nameurl{mailto:jjc@jclark.com}{jjc@jclark.com}}) ËùÐ´µÄ {\ttfamily sgmls} ½âÎöÆ÷, 
ËûÒ²ÊÇ {\ttfamily groff} µÄ×÷Õß£®ËüÓÃÆðÀ´ºÜ·½±ã£®{\ttfamily sgmls} ¶ÁÈëÄãµÄÎÄ¼þ£¬¼ì²éËü×ñÑ­ DTD Ëù¶¨ÒåµÄ½á¹¹£®
ËüÍ¬Ê±½«ÄãÎÄ¼þÖÐµÄ¡¸¾Þ¼¯¡¹ºÍÔªËØÕ¹¿ª£¬ÒÔ·½±ãÏÂÒ»½×¶ÎµÄ {\ttfamily sgmlsasp} À´´¦Àí£®

{\ttfamily sgmlsasp} ÓÃÀ´½« {\ttfamily sgmls} µÄÊä³ö½á¹û×ª»»³ÉÁíÒ»ÖÖ¸ñÊ½(Èç LaTeX)£®
ËüÊ¹ÓÃ{\itshape ÖÃ»»µµ\/}½«Ô­Ê¼ SGML ÎÄ¼þÖÐµÄ×é³ÉÔªËØ×ª»»³É¡¸Ä¿±ê¡¹¸ñÊ½(Èç LaTeX »ò groff)¶ÔÓ¦µÄÔ­Ê¼µµ£®

ÀýÈç£¬Ò»²¿·Ý LaTeX µÄ{\itshape ÖÃ»»µµ\/}³¤µÃÏñÕâÑù£º
\begin{tscreen}
\begin{verbatim}
<itemize>    +    "\\begin{itemize}   +
</itemize>   +    "\\end{itemize}    +
\end{verbatim}
\end{tscreen}

ËüËµÃ÷ÁËµ±ÄãÔÚ SGML Ô­Ê¼µµÖÐÊ¹ÓÃ {\ttfamily itemize} ÔªËØÊ±£¬Ó¦¸Ã±»ÖÃ»»³É LaTeX Ô­Ê¼µµÖÐµÄ
\begin{tscreen}
\begin{verbatim}
\begin{itemize}
\end{verbatim}
\end{tscreen}

(ÎÒËµ¹ýÁË£¬DTD ÖÐµÄÔªËØÏñ¼«ÁËËüÃÇÔÚ LaTeX ÖÐµÄ¶ÔÓ¦Îï£®)

Òò´Ë£¬Òª½« SGML ×ª»»³ÉÆäËü¸ñÊ½£¬ÄãËùÒª×öµÄ¾ÍÊÇÎª´Ë¸ñÊ½Ð´Ò»¸öÐÂµÄ{\itshape ÖÃ»»µµ\/}£¬
ÔÚÐÂ¸ñÊ½ÖÐÎªÃ¿Ò» SGML ×é³ÉÔªËØÖ¸¶¨ÊÊµ±µÄ¶ÔÓ¦£®ÊÂÊµÉÏ£¬Ã»Õâ÷á¼òµ¥---ÀýÈç£¬
Èç¹ûÄã³¢ÊÔ×ª»»³ÉºÍÄãµÄ DTD ÍêÈ«²»Í¬µÄ½á¹¹£¬Äã¾ÍÓÐÂé·³£®²»¹ý£¬
±ÈÆðÒªÎªÃ¿Ò»ÖÖ¸ñÊ½Ð´µ¥¶ÀµÄ½âÎöÆ÷Óë×ª»»³ÌÊ½»¹ÊÇÒª¼òµ¥µÄ¶à£®
SGML Ìá¹©Ò»ÖÖÒ»°ãµÄÏµÍ³½«Ò»ÖÖÔ­Ê¼µµ×ª»»³ÉÐí¶à¸ñÊ½£®

Ò»µ« {\ttfamily sgmlsasp} ×ª»»Íê³É£¬Äã¾ÍÓÐÓëÔ­ÏÈ SGML Ô­Ê¼ÎÄ¼þÏà¶ÔÓ¦µÄ LaTeX Ô­Ê¼µµ£¬
Äã¿ÉÒÔÏñÒ»°ãµÄ LaTeX µµÒ»ÑùÀ´Ê¹ÓÃËü£®ÏÂÃæÎÒ»áÊ¾¡õÈçºÎ×öÕâÑùµÄ×ª»»Óë¸ñÊ½»¯£®
ÄãÖ»ÒªÓÃÒ»ÐÐÖ¸Áî¾Í¹»ÁË£®

²»¹ýÊ×ÏÈ£¬ÎÒÒªËµÃ÷ÈçºÎ°²×°¼°Éè¶¨ SGML-Tools£®




\section{°²×°}

Ê×ÏÈ´ÓÕâ¸öµØ·½
\begin{itemize}
\item {\ttfamily \onlynameurl{ftp://sunsite.unc.edu/pub/Linux/utils/text/sgml-tools-0.99.0.tar.gz}}
\end{itemize}

È¡µÃ {\ttfamily sgml-tools-0.99.9.tar.gz}£®

Äã¿ÉÒÔ´Ó {\ttfamily \nameurl{http://www.xs4all.nl/~cg/sgmltools/}{SGML-Tools WWW Page}} È¡µÃ×îÐÂµÄ×ÊÑ¶£®



{\ttfamily sgml-tools-0.99.0.tar.gz} °üº¬ÁËËùÓÐÄãÐèÒªÓÃÀ´Ð´ SGML ÎÄ¼þ²¢×ª»»Îª groff, LaTeX, HTML, GNU info, LyX,
Óë RTF µÄ¶«Î÷£®³ý´ËÖ®Íâ£¬Äã¿ÉÄÜ»¹ÐèÒªÏÂÁÐµÄ¹¤¾ß---SGML ÏµÍ³²¢²»ÐèÒªÕâÐ©£¬µ«ÎÒ½¨ÒéÄãÈ¡µÃÕâÐ©¹¤¾ßÒÔ·½±ãÄã×ª»»ÎÄ¼þ£¬ÔÚÄã¹«¿ªÉ¢²¼ÄãµÄÎÄ¼þÇ°½«ÏÈÈ·¶¨ËüÃÇ¿´ÆðÀ´Ã»ÎÊÌâ£®

\begin{enumerate}
\item {\ttfamily groff}.  Äã{\itshape ±ØÐë\/}Ê¹ÓÃ 1.08 »ò¸üÐÂµÄ°æ±¾£®Äã¿ÉÒÔ´Ó
{\ttfamily \onlynameurl{ftp://prep.ai.mit.edu/pub/gnu}} È¡µÃ£®ÔÚ
{\ttfamily \onlynameurl{ftp://sunsite.unc.edu/pub/Linux/utils/text}}
¿ÉÕÒµ½ Linux µÄÖ´ÐÐµµ£®Äã±ØÐèÊ¹ÓÃ {\ttfamily groff} ÈÃÄãµÄ SGML ÎÄ¼þ²úÉú´¿ÎÄ×Öµµ£®
{\ttfamily nroff} {\itshape ²»ÐÐ\/}!
\item {\ttfamily TeX Óë LaTeX}. Õâ¼¸ºõÔÚÃ¿¸öµØ·½¶¼ÓÐ£¬ÄãÓ¦¸Ã¿ÉÒÔºÁÎÞÀ§ÄÑµØÕÒµ½²¢°²×°
(ÔÚ {\ttfamily \onlynameurl{sunsite.unc.edu}} ¿ÉÒÔÕÒµ½ Linux µÄÖ´ÐÐµµ)
µ±È»£¬Èç¹ûÄãÒªÓÃ LaTeX À´¸ñÊ½»¯ÄãµÄ SGML ÎÄ¼þÄã²ÅÐèÒª TeX/LaTeX£® 
\item {\ttfamily flex}.  {\ttfamily lex} ¿ÉÄÜ²»ÐÐ£®Äã¿ÉÒÔ´Ó
{\ttfamily \onlynameurl{ftp://prep.ai.mit.edu/pub/gnu}} È¡µÃ£®
\item {\ttfamily gawk} Óë GNU info tools, ÓÃÀ´¸ñÊ½»¯ÓëÔ¤ÊÓ info µµ°¸£®
ÔÚ
{\ttfamily \onlynameurl{ftp://prep.ai.mit.edu/pub/gnu}}, »ò 
{\ttfamily \onlynameurl{ftp://sunsite.unc.edu/pub/Linux/utils/text}} ¿ÉÒÔÕÒµ½ {\ttfamily gawk}£¬
»¹ÓÐ
{\ttfamily \onlynameurl{ftp://sunsite.unc.edu/pub/Linux/system/Manual-pagers}} 
¿ÉÕÒµ½ GNU info tools.  {\ttfamily awk} ²»ÐÐ£®
\item LyX (Ò»¸ö°ëËù¼û¼´ËùµÃ(quasi-WYSIWYG) µÄ LaTeX ½çÃæ)£¬¿ÉÔÚ
{\ttfamily \onlynameurl{ftp://ftp.via.ecp.fr}} ÕÒµ½£®
\end{enumerate}





\subsection{°²×°ÈíÌå}

°²×°ÓëÉè¶¨ SGML-Tools ËùÐèµÄ²½ÖèÊÇ£º
\begin{enumerate}
\item Ê×ÏÈ£¬ÔÚÄ³´¦½â¿ª {\ttfamily sgml-tools-0.99.0.tar.gz} µÄÑ¹Ëõµµ£®  
Ëü½«²úÉú {\ttfamily sgml-tools-0.99.0} µÄÄ¿Â¼£®ÔÚÄÇÀï½â¿ª¶¼Ã»ÓÐ¹ØÏµ£¬Ö»ÊÇ²»Òª°ÑÀïÃæµÄ¶«Î÷°áÀë
{\ttfamily sgml-tools-0.99.0} Ä¿Â¼¾ÍÐÐ£®
\item ÔÄ¶Á {\ttfamily INSTALL} µµ£¬Ëü°üº¬ÁË°²×°¹ý³ÌµÄÏ¸½Ú£®
\end{enumerate}


Èç¹ûÒ»ÇÐË³Àû£¬Äã¾Í¿ÉÒÔÊ¹ÓÃËüÁË£®

Òë×¢: ÆäÊµ¾ÍÊÇÖ´ÐÐ {\ttfamily install} ÕâÖ§ shell script£¬»Ø´ðËüµÄÎÊÌâ¾ÍÐÐÁË!




\subsection{±àÅÅ SGML ÎÄ¼þ}

ÀýÈçËµÄãÏëÒª±àÅÅÒ»·Ý SGML ÎÄ¼þ½Ð {\ttfamily foo.sgml}£¬ÕâÀïÓÐÒ»·Ý¼ò¶ÌµÄËµÃ÷ÈçºÎÊä³ö³É²»Í¬µÄ¸ñÊ½£®ÍêÕûµÄÑ¡ÏîÁÐ±íÇë²Î¿¼ man pages£®




\subsubsection{²úÉú´¿ÎÄ×ÖÊä³ö}

Èç¹ûÄãÏë²úÉú´¿ÎÄ×Öµµ£¬Ê¹ÓÃÕâ¸öÖ¸Áî£º
\begin{tscreen}
\begin{verbatim}
% sgml2txt foo.sgml 
\end{verbatim}
\end{tscreen}




Çë×¢ÒâÎÒÒÑµ÷Õû groff ×ª»»Îª´¿ÎÄ×ÖÊä³ö£®Ò²¾ÍÊÇËµ£¬ÎÒ½«Ò³Ê×£¬Ò³Âë£¬±ß¿òµÈÈ¥µô£®
¾­¹ýÒ»Ð©ÐÞ¸ÄÄã¿ÉÒÔ´Ó groff µÄÊä³ö²úÉú PostScript Óë DVI ¸ñÊ½£¬µ«ÎÒ½¨ÒéÄãÓÃ LaTeX ±È½ÏºÃ£®



Äã¿ÉÒÔÎª man pages ²úÉú groff µÄÔ­Ê¼µµ£¬¶øÓÃ {\ttfamily groff -man} ½«Æä±àÅÅ£®
Ö´ÐÐÕâ¸öÖ¸Áî£º
\begin{tscreen}
\begin{verbatim}
% sgml2txt -man foo.sgml 
\end{verbatim}
\end{tscreen}





\subsubsection{²úÉú LaTeX, DVI »ò PostScript Êä³ö}

Òª´Ó SGML Ô­Ê¼µµ²úÉú LaTeX ÎÄ¼þ£¬¾ÍÓÃ£º
\begin{tscreen}
\begin{verbatim}
% sgml2latex foo.sgml 
\end{verbatim}
\end{tscreen}




Èç¹ûÄãÏ£Íû²úÉú PostScript Êä³ö(¾­ÓÉ {\ttfamily dvips})£¬¿ÉÓÃ {\ttfamily -p} Ñ¡Ïî£º
\begin{tscreen}
\begin{verbatim}
% sgml2latex -p foo.sgml 
\end{verbatim}
\end{tscreen}




»òÕßÄã¿ÉÒÔ¼ÓÉÏ {\ttfamily -d} Ñ¡Ïî²úÉú DVI µµ£º
\begin{tscreen}
\begin{verbatim}
% sgml2latex -d foo.sgml 
\end{verbatim}
\end{tscreen}





\subsubsection{²úÉú HTML Êä³ö}

Èç¹ûÄãÏ£ÍûÊä³ö HTML µµ£¬ÓÃÕâÖ¸Áî£º
\begin{tscreen}
\begin{verbatim}
% sgml2html -img foo.sgml 
\end{verbatim}
\end{tscreen}


Õâ½«²úÉú {\ttfamily foo.html}, {\ttfamily foo-1.html}, {\ttfamily foo-2.html}, µÈµÈ --- Ã¿Ò»ÕÂÒ»¸öµµ°¸£®{\ttfamily foo.html} ÊÇÊ×Ò³£¬¿ÉÒÔÓÃÄãµÄ WWW ä¯¡õÆ÷¹Û¿´£®
È·¶¨ÄãËùÓÐµÄ HTML µµÔÚÍ¬Ò»Ä¿Â¼ÏÂ£¬ÒòÎªËüÃÇÊÇÓÃÏà¶ÔµÄ URL ±Ë´Ë²Î¿¼µÄ£®
HTML µµµÄÍ¼Ê¾Ä¿Â¼Ö¸Ïò {\ttfamily \$SGMLTOOLSLIB/icons} Ëù¶¨ÒåµÄÄ¿Â¼£®
ÕâÐ©µµ¶¼Ó¦±»¿½±´µ½×îááµÄÎ»ÖÃÉÏ£®{\ttfamily \$SGMLTOOLSLIB/} ¶¨ÒåÔÚ SGML ×ª»»³ÌÐòµÄ×î¿ªÍ·£®



Èç¹ûÄãÊ¹ÓÃ {\ttfamily sgml2html} ¶øÃ»ÓÐ¼ÓÉÏ -img Ñ¡ÏîµÄ»°£¬²úÉúµÄ HTML ÎÄ¼þ»á¼ÓÉÏµ¼¶ÁÓÃµÄ "Previous", "Next", ÒÔ¼° "Table of Contents" ±êÇ©£®
Äã¿ÉÒÔ½åÓÉÔÚ {\ttfamily \$SGMLTOOLSLIB/rep/html/$<$filename$>$} ½¨Á¢Ò»¸öµµ°¸ÒÔ¸Ç¹ýÕâÐ©Ô¤Éè£¬
²¢ÇÒÒÔÄã×Ô¼ºµÄ»°À´È¡´úËüÃÇ£®¸Ãµµ°¸µÄ¸ñÊ½ÈçÏÂËùÊ¾£º
he following format:
\begin{tscreen}
\begin{verbatim}
        PrevPage:  newvalue
    NextPage:  newvalue
        TOC:     newvalue
\end{verbatim}
\end{tscreen}

¡õÀýÇë²ÎÔÄ {\ttfamily deutsch}£®




\subsubsection{²úÉú GNU Info ¸ñÊ½µÄÊä³ö}

Èç¹ûÄãÏëÒª½«ÄãµÄµµ°¸±àÅÅ³É GNU Info ä¯ÀÀ³ÌÊ½½ÓÊÜµÄ¸ñÊ½£¬Ö»ÒªÊ¹ÓÃÏÂÁÐÖ¸Áî£º
\begin{tscreen}
\begin{verbatim}
% sgml2info foo.sgml 
\end{verbatim}
\end{tscreen}





\subsubsection{²úÉú LyX ¸ñÊ½µÄÊä³ö}

Óû²úÉú LyX ¸ñÊ½µÄ³ö£¬Ê¹ÓÃÕâ¸öÖ¸Áî£º
\begin{tscreen}
\begin{verbatim}
% sgml2lyx foo.sgml 
\end{verbatim}
\end{tscreen}





\subsubsection{²úÉú RTF ¸ñÊ½µÄÊä³ö}

Èç¹ûÄãÏë²úÉú RTF ¸ñÊ½µÄÊä³ö£¬Ö´ÐÐÕâ¸öÖ¸Áî£º
\begin{tscreen}
\begin{verbatim}
% sgml2rtf foo.sgml 
\end{verbatim}
\end{tscreen}


Õâ½«»á²úÉú {\ttfamily foo.rtf}, ÒÔ¼° {\ttfamily foo-1.rtf}, {\ttfamily foo-2.rtf}, 
µÈµÈµµ°¸---ÎÄ¼þµÄÃ¿Ò»½Ú×Ô³ÉÒ»¸öµµ°¸£®




\subsubsection{¼ì²é SGML Óï·¨}

Èç¹ûÄãÖ»ÊÇÏë´Ó SGML ×ª»»ÖÐ×¥³öÄãµÄ´íÎó£¬¿ÉÒÔÊ¹ÓÃ {\ttfamily sgmlcheck} Õâ¸öÖ¸Áî¸å£®
ÀýÈç£º
\begin{tscreen}
\begin{verbatim}
% sgmlcheck foo.sgml 
\end{verbatim}
\end{tscreen}





\subsection{ISO 8859-1 ×ÖÔª¼¯}

ISO 8859-1 (latin1) ×ÖÔª¼¯¿ÉÒÔÓÃÔÚ´¿ÎÄ×Ö
LaTeX, HTML, LyX, ÒÔ¼° RTF Êä³öµÄ¹ú¼Ê×ÖÔª(GNU Info Î´À´¿ÉÄÜÖ§Ô® ISO 8859-1)£®
ÒªÊ¹ÓÃÕâÏî¹¦ÄÜµÄ»°£¬¿ÉÒÔ¼ÓÉÏ {\ttfamily -l} Ñ¡Ïî¸ø±àÅÅÖ¸Áî¸å£¬ÀýÈç£º
\begin{tscreen}
\begin{verbatim}
% sgml2txt -l foo.sgml 
\end{verbatim}
\end{tscreen}

ÄãÒ²¿ÉÒÔÔÚ SGML Ô­Ê¼ÎÄ¼þÖÐÊ¹ÓÃ ISO 8859-1 ×ÖÔª£¬ËüÃÇ»á×Ô¶¯±»×ª»»³É¶ÔÓ¦ÎÄ¼þ¸ñÊ½µÄÊÊµ±ÒÝ³ö×ÖÔª(escape codes)£®




\section{Ê¹ÓÃ SGML-Tools ×«Ð´ÎÄ¼þ}

Ê¹ÓÃ SGML-Tools DTD ×«Ð´ÎÄ¼þµÄ¹ý³Ì´ó²¿·ÖÊÇ·Ç³£ÈÝÒ×µÄ£¬¶øÇÒÓÐµãÀàËÆ LaTeX£®
È»¶ø£¬ÈÔÈ»ÓÐÐ©ÏÞÖÆÒª×¢Òâ£®ÕâÒ»½ÚÎÒ½«½éÉÜ SGML ÎÄ¼þµÄ×«Ð´£®
SGML ÎÄ¼þ¡õÀý(¼°Ð´×÷Ö¸Òý)Çë²ÎÔÄ {\ttfamily example.sgml} µµ°¸£¬Äã¿ÉÒÔÄÃÀ´µ±×÷×Ô¼ºÎÄ¼þµÄ¡õ±¾£®
ÔÚ´ËÎÒ½«ÌÖÂÛ SGML µÄ¸÷Ïî¹¦ÄÜ£¬µ«ÊÇÒÔÔ­Ê¼ÎÄ¼þ×÷Îª¡õÀý²»ÊÇºÜÓÐ¿É¶ÁÐÔ£®
Òò´Ë£¬Ó¡³ö {\ttfamily example.sgml} µÄÔ­Ê¼Âë(±àÅÅááµÄÊä³ö)£¬Èç´ËÄã¾ÍÓÐÕæÊµµÄ²Î¿¼¡õÀý¡£




\subsection{»ù±¾¸ÅÄî}

×ÐÏ¸¿´¡õÀýÎÄ¼þµÄÔ­Ê¼ÎÄ¼þ£¬Äã»á×¢Òâµ½ÀïÃæÓÐÐí¶àÒÔ½ÇÀ¨ºÅ({\ttfamily $<$} ¼° {\ttfamily $>$})±êÊ¾µÄ¡¸±êÇ©(tags)¡¹£®
±êÇ©µ¥´¿µØÖ¸³öÄ³×é³ÉÔªËØµÄÆðÊ¼£¬ÕâÀïËùÎ½µÄ×é³ÉÔªËØÊÇÒ»½Ú£¬Ò»¶Î£¬Ò»¾äÐ±ÌåµÄÎÄ¾ä£¬ÁÐ±íÖÐµÄÒ»¸öÏîÄ¿£¬ÒÔ¼°ÖîÈç´ËÀàµÄ½á¹¹£®
Ê¹ÓÃ±êÇ©¾ÍÏñÊ¹ÓÃ LaTeX Ö¸ÁîÈç {\ttfamily $\backslash$item} »òÊÇ {\ttfamily $\backslash$section$\{$...$\}$} µÈÒ»°ã£®

¾Ù¸ö¼òµ¥µÄÀý×Ó£¬Òª²úÉúÕâÒ»¶Î {\bfseries ´ÖÌåÎÄ×Ö}£¬ÎÒÔÚÔ­Ê¼ÂëÖÐ¼üÈë
\begin{tscreen}
\begin{verbatim}
¾Ù¸ö¼òµ¥µÄÀý×Ó£¬Òª²úÉúÕâÒ»¶Î <bf>´ÖÌåÎÄ×Ö</bf>, ...
\end{verbatim}
\end{tscreen}

{\ttfamily $<$bf{$>$}} ÊÇÕâ¶Î´ÖÌåÎÄ×ÖµÄ¿ªÍ·£¬¶ø {\ttfamily $<$/bf{$>$}} ÊÇ½áÎ²£®
ÄãÒ²¿ÉÒÔÊ¹ÓÃÕâ¸ö¼òÂÔÐÎÊ½£º
\begin{tscreen}
\begin{verbatim}
¾Ù¸ö¼òµ¥µÄÀý×Ó£¬Òª²úÉúÕâÒ»¶Î <bf/´ÖÌåÎÄ×Ö/, ...
\end{verbatim}
\end{tscreen}

¾ÍÊÇÓÃÐ±Ïß½«´ÖÌåÎÄ×Ö°ü×¡£®(µ±È»£¬Èç¹û±»°üº¬µÄÎÄ×Öº¬ÓÐÏß£¬Äã¾Í±ØÐëÊ¹ÓÃ³¤µÄÐÎÊ½£¬
ÀýÈç Unix µÄµµ°¸Ãû³Æ£®)

¹Øì¶ÌØÊâ×ÖÔª»¹ÓÐÆäËüµÃÒª×¢ÒâµÄÎÊÌâ
(Õâ¾ÍÊÇÎªÊ²÷áÈç¹ûÄã×ÐÏ¸¹Û²ìÔ­Ê¼ÎÄ¼þ¾Í»á×¢Òâµ½ÕâÐ©¿´ÆðÀ´ºÜ¹ÖÒì "\&" ±íÊ¾Ê½£»ÎÒ½«¼ò¶ÌµØËµÃ÷ÕâÐ©·ûºÅ)£®

ÔÚÄ³Ð©Çé¿öÏÂ£¬ÌØ¶¨µÄ×é³ÉÔªËØÖ®½áÎ²±êÇ©ÊÇ¿ÉÑ¡ÓÃµÄ£®
ÀýÈç£¬ÄãÔÚÄ³Ò»½ÚµÄ¿ªÊ¼Ê¹ÓÃ {\ttfamily $<$sect{$>$}} Õâ¸ö±êÇ©£¬È»¶ø£¬¸Ã½ÚµÄ½áÎ²±êÇ©
(¿ÉÒÔ³öÏÖÔÚ¸Ã½ÚÖ÷Ìå±¾Éí½áÊøµÄµØ·½£¬¶ø²»Ö»ÊÇ¸Ã½ÚµÄÃû³ÆááÃæ!)
ÊÇ¿ÉÑ¡ÓÃµÄ¶øµ±ÄãÔÚÍ¬Ò»¸ö²ã´Î¿ªÊ¼ÁíÍâÒ»½ÚµÄÊ±ºòÒ²¾Í°µÊ¾Öø¸Ã½ÚµÄ½áÊø£®
Ò»°ãÀ´ËµÄã²»ÐèÒªµ£ÐÄÕâÐ©Ï¸½Ú£»Ö»Òª¸úÖøÊ¹ÓÃÔÚ {\ttfamily example.sgml} Ö¸ÒýÀïµÄ¡õÀý¾Í¿ÉÒÔÁË¡£




\subsection{ÌØÊâ×ÖÔª}

ºÜÃ÷ÏÔµÄ£¬½ÇÀ¨ºÅËüÃÇ±¾Éí¾ÍÊÇ SGML Ô­Ê¼ÎÄ¼þÀïµÄÌØÊâ×ÖÔª£®ÁíÍâ»¹ÓÐÆäËü¸Ã×¢ÒâµÄ×ÖÔª£®
ÀýÈç£¬¼ÙÉèÄãÏë¼üÈëÓÉ½ÇÀ¨ºÅËùº­¸ÇµÄ±íÊ¾Ê½£¬ÏñÕâÑù: {\ttfamily $<$foo{$>$}}£®
ÎªÁË±íÊ¾×ó±ßµÄ½ÇÀ¨ºÅ£¬Äã±ØÐëÊ¹ÓÃ {\ttfamily \&lt;} Õâ¸ö×é³ÉÔªËØ£¬
ÕâÊÇÒ»¸ö»áÕ¹¿ª³É×óÀ¨ºÅ×ÖÔªµÄ¡¸¾Þ¼¯¡¹£®Òò´Ë£¬ÎÒÔÚÔ­Ê¼ÎÄ¼þÖÐ¼üÈë
\begin{tscreen}
\begin{verbatim}
angle brackets around it, as so: <tt>&lt;foo></tt>.
\end{verbatim}
\end{tscreen}

Ò»°ãÀ´Ëµ£¬ÒÔ½áºÏ×ÖÔª(\&)×÷Îª¿ªÊ¼±íÊ¾ÕâÊÇÒ»¸öÌØÊâµÄ¾Þ¼¯£®
ÀýÈç£¬²úÉú \% ·ûºÅµÄ {\ttfamily \&percnt;}
²úÉú $|$ µÄ {\ttfamily \&verbar;} µÈµÈ£®
¶Ôì¶ËùÓÐµÄ¡¸ÌØÊâ×ÖÔª¡¹¶¼ÓÐ½áºÏ¾Þ¼¯¿ÉÒÔ±íÊ¾ËüÃÇ£®

Í¨³££¬Äã²»ÐèÒªÊ¹ÓÃ½áºÏ¾Þ¼¯±íÊ¾Ä³ÌØÊâ×ÖÔª£¬È»¶ø£¬ÔÚÄ³Ð©Çé¿öÏÂÕâÊÇ±ØÐëµÄ¡£×î³£ÓÃµÄÊÇ£º
\begin{itemize}
\item Use {\ttfamily \&amp;} for the ampersand (\&), 
\item Use {\ttfamily \&lt;} for a left bracket ($<$),
\item Use {\ttfamily \&gt;} for a right bracket ($>$),
\item Use {\ttfamily \&lt;/} for a left bracket with a slash 
({\ttfamily $<$/})
\item Use {\ttfamily \&dollar;} for a dollar sign (\$),
\item Use {\ttfamily \&num;} for a hash (\#),
\item Use {\ttfamily \&percnt;} for a percent (\%),
\item Use {\ttfamily \&tilde;} for a tilde (\~{}),
\item Use {\ttfamily ``} and {\ttfamily ''} for quotes, or use
{\ttfamily \&ldquo;} for {``}, {\ttfamily \&rdquo;} for {''}.
\end{itemize}


ÍêÕûµÄÌØÊâ×ÖÔªÁÐ±í¿ÉÒÔ²é¿´ÆäÖÐÒ»¸öÌæ»»µµ£®
Í¨³£ LaTeX ×î»á±§Ô¹ÌØÊâ×ÖÔª£¬ËùÒÔ²éÔÄ 
{\ttfamily \$SGMLTOOLSLIB/rep/latex/general} »áÊÇ¸öºÃµÄ¿ªÊ¼£®
{\ttfamily \$SGMLTOOLSLIB} ¶¨ÒåÔÚ SGML ×ª»»³ÌÐòµÄ×îÇ°Ãæ£®




\subsection{Verbatim Óë Code »·¾³}

µ±ÎÒÃÇÕýÌÖÂÛÌØÊâ×ÖÔªÕâ¸öÖ÷ÌâÊ±£¬ÎÒÒ²±ØÐëÌáµ½¡¸verbatim »·¾³¡¹£¬
ÓÃÀ´ÔÚÊä³öÖÐº¬Èë²»¼Ó±ä¶¯µÄÎÄ×Ö(¿Õ°××ÖÔªÒÔ¼°ËõÅÅ£¬ºÍÖîÈç´ËÀà)£®
{\ttfamily verb} Õâ¸ö×é³ÉÔªËØ¾ÍÊÇ×ö´ËÓÃÍ¾µÄ£®Ëü¿´ÆðÀ´¾ÍÏñÕâÑù£º
\begin{tscreen}
\begin{verbatim}
<verb>
 Some literal text to include as example output.
</verb>
\end{verbatim}
\end{tscreen}

{\ttfamily verb} »·¾³²»ÔÊÐíÄãÔÚÆäÄÚÈÝÖÐÊ¹ÓÃ{\itshape ÈÎºÎ¶«Î÷\/}£®
ÌØ±ðµØ£¬ÔÚ {\ttfamily verb} »·¾³ÖÐÄã±ØÐë£º
\begin{itemize}
\item Ê¹ÓÃ {\ttfamily \&amp;} ´ú±í {\ttfamily \&}
\item Ê¹ÓÃ {\ttfamily \&lt;/} ´ú±í {\ttfamily $<$/}
\item ²»ÒªÔÚ {\ttfamily verb} »·¾³ÖÐÊ¹ÓÃ {\ttfamily $\backslash$end$\{$verbatim$\}$}£¬
ÒòÎªÕâÊÇ LaTeX ÓÃÀ´½áÊø {\ttfamily verbatim} »·¾³µÄ£®
(Î´À´Ó¦¸Ã¿ÉÄÜÍêÈ«µÄÒþ²Øµ×²ãµÄÎÄ×Ö±àÅÅ£¬µ«Ä¿Ç°µÄ½âÎöÆ÷»¹²»Ö§Ô®£®)
\end{itemize}

{\ttfamily code} »·¾³·Ç³£ÀàËÆ {\ttfamily verb} »·¾³£¬³ýÁËÔÚÎÄ×ÖÖÜÎ§¼ÓÈë·Ö¸ôÏß
\par
\addvspace{\medskipamount}
\nopagebreak\hrule
\begin{verbatim}
ÕâÊÇ code »·¾³µÄÀý×Ó£®
\end{verbatim} 
\nopagebreak\hrule 
\addvspace{\medskipamount}


ÄãÓ¦¸ÃÔÚÈÎºÎ {\ttfamily verb} »·¾³µÄÖÜÎ§Ê¹ÓÃ {\ttfamily tscreen} »·¾³£¬ÏñÕâÑù£º
\begin{tscreen}
\begin{verbatim}
<tscreen><verb>
ÕâÊÇÒ»¶ÎÀý¾ä£®
</verb></tscreen>
\end{verbatim}
\end{tscreen}

{\ttfamily tscreen} ÊÇÒ»¸ö»·¾³µ¥´¿µØËõÅÅ²¢Éè¶¨Ô¤Éè×ÖÐÍÎª {\ttfamily tt}£®
ÕâÊ¹µÃ¡õÀýÒªÂÛÔÚ LaTeX ÒÔ¼°´¿ÎÄ×ÖµÄ°æ±¾ÖÐ¿´ÆðÀ´ºÃ¶àÁË£®
Äã¿ÉÒÔÊ¹ÓÃ {\ttfamily tscreen} ¶ø²»¼Ó {\ttfamily verb}£¬²»¹ý£¬Èç¹ûÄãÔÚ¡õÀýÖÐÊ¹ÓÃÈÎºÎµÄÌØÊâ×ÖÔªÄÇ÷áÄã¾ÍÐèÒªËüÃÇÁ½¸ö£®
{\ttfamily tscreen} ÓëÌØÊâ×ÖÔªÎÞ¹Ø£®¡õÀýÇë²ÎÔÄ {\ttfamily example.sgml}£®

{\ttfamily quote} »·¾³ÀàËÆ {\ttfamily tscreen}£¬³ýÁË²»½«Ô¤Éè×ÖÐÍÉèÎª {\ttfamily tt}£®ËùÒÔ£¬Äã¿ÉÒÔÊ¹ÓÃ {\ttfamily quote} ì¶ÓëµçÄÔÎÞ¹ØµÄÒýÓÃ£¬Èç£º
\begin{tscreen}
\begin{verbatim}
<quote>
Here is some text to be indented, as in a quote.
</quote>
\end{verbatim}
\end{tscreen}

Õâ»á²úÉú£º
\begin{quotation}
Here is some text to be indented, as in a quote.
\end{quotation}





\subsection{ÎÄ¼þÄÚÈÝ¸Å¹Û}

ÔÚÎÒÃÇÉîÈëÑÐ¾¿Ï¸½ÚÖ®Ç°£¬ÎÒÒª¿ªÊ¼½éÉÜ linuxdoc DTD ¶¨ÒåµÄÎÄ¼þ¸Å¹Û£®ÎÄ¼þÈçºÎÉèÁ¢µÄ¡õÀýÇë×ÐÏ¸¹Û¿´ {\ttfamily example.sgml}£®




\subsubsection{ÐòÎÄ}

ÔÚÎÄ¼þµÄ¡¸ÐòÎÄ¡¹ÖÐÄãÉèÁ¢ÏñÊÇ±êÌâÒÔ¼°ÎÄ¼þÐÍÌ¬(style)µÄ¶«Î÷£®Linux HOWTO ÎÄ¼þ¿´ÆðÀ´Ó¦¸ÃÏñ£º
\begin{tscreen}
\begin{verbatim}
<!doctype linuxdoc system>

<article>

<title>Linux Foo HOWTO
<author>°¢Î°, <tt/cwhuang@phys.ntu.edu.tw/
<date>v1.0, 14 August 1997
<abstract>
Õâ·ÝÎÄ¼þËµÃ÷ÁËÈçºÎÊ¹ÓÃ <tt/foo/ Õâ¸ö¹¤¾ß£®
</abstract>

<toc>
\end{verbatim}
\end{tscreen}


ÕâÐ©×é³ÉÏîÄ¿¿ÉÒÔ×ÃÓèÔö¼õµ«Ðë°´´ËË³Ðò£®µÚÒ»ÐÐ¸æËß SGML ½âÎö³ÌÊ½Ê¹ÓÃ linuxdoc DTD£®
{\ttfamily $<$article{$>$}} Õâ¸ö±êÇ©¹æ¶¨ÎÄ¼þÊ¹ÓÃ¡¸article¡¹´ËÖÖÎÄ¼þÐÍÌ¬£®
(Ô­ÏÈµÄ QWERTZ DTD »¹¶¨Òå ¡¸report¡¹ÒÔ¼°¡¸book¡¹µÈÐÍÌ¬£»ÎÒ²¢Ã»ÓÐÐÞ¸ÄËüÃÇÒÔÔÚ SGML-Tools ÖÐÊ¹ÓÃ)£®

{\ttfamily title}, {\ttfamily author}, ÒÔ¼° {\ttfamily date} ÕâÐ©±êÇ©µÄÒâÒåÓ¦¸ÃÊÇºÜÃ÷ÏÔµÄ£¬
ÔÚ {\ttfamily date} ±êÇ©ÖÐ°üº¬ÎÄ¼þµÄ°æ±¾±àºÅÒÔ¼°×îááÐÞ¸ÄÊ±¼ä£®

{\ttfamily abstract} ±êÇ©Éè¶¨ÎÄ¼þ¶¥¶Ë{\itshape ÔÚÄÚÈÝÖ®Ç°\/}Ó¡³öµÄÎÄ×Ö£®
Èç¹ûÄã²»Ïëº¬ÈëÄÚÈÝÁÐ±í({\ttfamily toc} ±êÇ©)£¬ÄÇ÷áÄã¿ÉÄÜ²»ÐèÒª {\ttfamily abstract}£®




\subsubsection{ÕÂ½ÚÓë¶ÎÂä}

ÔÚÐòÎÄÖ®áá£¬Äã¾Í¿ÉÒÔ×¼±¸½øÈëÎÄ¼þ±¾Éí£®ÓÐÏÂÁÐµÄ·Ö½ÚÖ¸Áî¿ÉÒÔÊ¹ÓÃ£º
\begin{itemize}
\item {\ttfamily sect}: ×î¶¥²ãµÄÕÂ½Ú (Ò²¾ÍÊÇ 1, 2, µÈµÈ) 
\item {\ttfamily sect1}: µÚ¶þ²ãµÄ´ÎÕÂ½Ú (Ò²¾ÍÊÇ  1.1, 1.2, µÈµÈ)
\item {\ttfamily sect2}: µÚÈý²ãµÄÐ¡ÕÂ½Ú
\item {\ttfamily sect3}: µÚËÄ²ãµÄÐ¡Ð¡½Ú
\item {\ttfamily sect4}: µÚÎå²ãµÄÐ¡Ð¡Ð¡½Ú
\end{itemize}

ËüÃÇÏàµ±ì¶ LaTeX ÖÐ¶ÔÓ¦µÄ {\ttfamily section}, {\ttfamily subsection} µÈµÈ£®

ÔÚ {\ttfamily sect}  (»ò {\ttfamily sect}, {\ttfamily sect} µÈµÈ) ±êÇ©Ö®áá¸úÖøÊÇ¸Ã½ÚµÄÃû³Æ£®
ÀýÈç£¬ÔÚÎÄ¼þµÄ¶¥¶Ë£¬ÐòÎÄÖ®ááµÄÊÇ´Ë±êÇ©£º
\begin{tscreen}
\begin{verbatim}
<sect>¼ò½é
\end{verbatim}
\end{tscreen}

¶øÔÚ´Ë½Ú¿ªÊ¼µÄµØ·½(¶ÎÂä)£¬ÓÐ¸ö±êÇ©ÊÇ£º
\begin{tscreen}
\begin{verbatim}
<sect2>¶ÎÂä
\end{verbatim}
\end{tscreen}

ÔÚÒ»½ÚµÄ±êÇ©Ö®áá£¬Äã¿ªÊ¼ÎÄ¼þµÄÖ÷Ìå£®È»¶ø£¬Äã±ØÐëÒÔÒ»¸ö {\ttfamily $<$p{$>$}} ±êÇ©¿ªÊ¼£¬ÏñÕâÑù£º
\begin{tscreen}
\begin{verbatim}
<sect>¼ò½é
<p>
ÕâÊÇÒ»·Ý SGML-Tools ÎÄ¼þ´¦ÀíµÄÊ¹ÓÃÕßÖ¸Òý....
\end{verbatim}
\end{tscreen}

ÕâÊÇ¸æËß½âÎö³ÌÊ½ÄãÒÑÍê³ÉÒ»½ÚµÄ±êÌâ²¢ÇÒ×¼±¸ºÃ¿ªÊ¼±¾ÎÄÖ÷Ìå£®
Æäáá£¬ÐÂµÄ¶ÎÂäÊÇÒÔ¿Õ°×ÐÐ¿ªÊ¼(¾ÍÈçÍ¬ TeX)£®ÀýÈç£¬
\begin{tscreen}
\begin{verbatim}
ÕâÊÇµÚÒ»¶ÎµÄ½áÎ²£®

¶øÎÒÃÇ´ÓÕâÀï¿ªÊ¼ÐÂµÄÒ»¶Î£®
\end{verbatim}
\end{tscreen}

Ã»ÓÐÊ²÷áÀíÓÉÒªÔÚÃ¿¸ö¶ÎÂäµÄÇ°ÃæÊ¹ÓÃ {\ttfamily $<$p{$>$}} ±êÇ©£»Ö»ÒªÔÚ·Ö½ÚÖ¸ÁîááÃæµÄµÚÒ»¸ö¶ÎÂä¿ªÊ¼´¦¼Ó¾ÍÐÐ£®




\subsubsection{ÎÄ¼þ½áÎ²}

ÔÚÎÄ¼þ½áÊøµÄµØ·½£¬Äã±ØÐëÊ¹ÓÃÕâ¸ö±êÇ©£º
\begin{tscreen}
\begin{verbatim}
</article>
\end{verbatim}
\end{tscreen}


ÒÔ¸æËß½âÎö³ÌÊ½ÄãÒÑ¾­Íê³É {\ttfamily article} Õâ¸ö×é³ÉÔªËØ(º­¸ÇÕû·ÝÎÄ¼þ)£®


\subsection{½»»¥²Î¿¼\label{cross-ref}}

ÏÖÔÚÎÒÃÇÒª½øÈëÏµÍ³µÄÆäËü¹¦ÄÜ£®½»»¥²Î¿¼ºÜÈÝÒ×£®ÀýÈç£¬Èç¹ûÄãÏëÒªÖÆ×÷Ä³Ò»½ÚµÄ½»»¥²Î¿¼£¬ÄãµÃÏñÕâÑù±êÊ¾¸Ã½Ú:
\begin{tscreen}
\begin{verbatim}
<sect1>¼ò½é<label id="sec-intro">
\end{verbatim}
\end{tscreen}

½ÓÖøÄã¾Í¿ÉÒÔÔÚÎÄ¼þÖÐµÄÄ³¸öµØ·½Ê½ÓÃÕâ¸ö±íÊ¾Ê½²ÎÕÕ¸Ã½Ú£º
\begin{tscreen}
\begin{verbatim}
Çë²Î¿¼<ref id="sec-intro" name="¼ò½é">Ò»½ÚµÄ½éÉÜ£®
\end{verbatim}
\end{tscreen}

Õâ½«»áÒÔ {\ttfamily sec-intro} ±ê¼ÇµÄ½ÚºÅÌæ»»µôÕâ¸ö {\ttfamily ref} ±êÇ©£®
¶Ôì¶ groff ÒÔ¼° HTML ×ª»» {\ttfamily name} Õâ¸ö²ÎÊýÊÇ±ØÐëµÄ£®
SGML-Tools Ê¹ÓÃµÄ groff ¾Þ¼¯Éè¶¨Ä¿Ç°²¢Î´Ö§Ô®½»»¥²Î¿¼£¬¶øÇÒËü³£³£ÒÔÃû³ÆÈ¡´úÊý×Ö²ÎÕÕÄ³Ò»½Ú£®

ÀýÈç£¬±¾½ÚÊÇ\ref{cross-ref} {(½»»¥²Î¿¼)}£®

ÔÚÈ«Çò×ÊÑ¶ÍøÉÏÊ¹ÓÃµÄÍ¨ÓÃ×ÊÔ´¶¨Î»Æ÷£¬¼´ URL Ò²ÓÐ×é³ÉÔªËØ {\ttfamily url}£®
Õâ¸öÔªËØÓ¦¸ÃÓÃÀ´²ÎÕÕÆäËüÎÄ¼þ£¬FTP ÉÏµÄµµ°¸µÈµÈ£®ÀýÈç£º
\begin{tscreen}
\begin{verbatim}
Äã¿É´Ó´ËÈ¡µÃ Linux HOWTO ÎÄ¼þ
<url url="http://sunsite.unc.edu/mdw/HOWTO/" 
   name="The Linux HOWTO INDEX">£®
\end{verbatim}
\end{tscreen}

{\ttfamily url} Õâ¸ö²ÎÊýÖ¸¶¨Õâ¸ö URL ±¾Éí£®Á¬½á»á×Ô¶¯¼ÓÈëµ½ HTML ÎÄ¼þÖÐ£®
¿ÉÑ¡ÓÃµÄ {\ttfamily name} ²ÎÊýÖ¸¶¨Ó¦¸Ã¼ÓÉÏÁ¬½áµÄÎÄ×Ö(HTML ×ª»»)»òÊÇÎª URL ÃèÊöÃüÃû(LaTeX »ò groff)£®Èç¹ûÃ»ÓÐ¸ø {\ttfamily name} ²ÎÊý£¬»áÊ¹ÓÃÕâ¸ö URL ±¾Éí£®

ÀýÈç£¬Äã¿ÉÒÔ´ÓÕâÀïÈ¡µÃ SGML-Tools Ì×¼þ\\ 
{\ttfamily \onlynameurl{ftp://sunsite.unc.edu/pub/Linux/utils/text/sgml-tools-0.99.0.tar.gz}}.

Ò»¸öÓÐÓÃµÄ±äÐÎÊÇ {\ttfamily htmlurl}£¬³ýÁË HTML ÎÄ¼þÔÚÆäËüÃ¿ÖÖÎÄ¼þÖÐÕâ¸ö URL ²¿·Ý½«²»»á³öÏÖ£®
ËüÓÃÔÚÏñÊÇ¸öÈËµÄµç×ÓÓÊ¼þÎ»Ö·£»Äã¿ÉÒÔÐ´
\begin{tscreen}
\begin{verbatim}
<htmlurl url="mailto:esr@snark.thyrsus.com"
      name="esr@snark.thyrsus.com">
\end{verbatim}
\end{tscreen}

¶øÔÚ´¿ÎÄ×ÖÊä³öÖÐ»ñµÃ¡¸esr@snark.thyrsus.com¡¹
¶ø²»ÊÇÖØ¸´µÄ¡¸esr@snark.thyrsus.com $<$mailto:esr@snark.thyrsus.com$>$¡¹
µ«ÊÇÔÚ HTML ÎÄ¼þÖÐÈÔÈ»±£ÓÐÊÊµ±µÄ URL ²¿·Ý£®




\subsection{×ÖÐÍ}

»ù±¾ÉÏ£¬SGML-Tools Ö§Ô®Óë LaTeX ÏàÍ¬µÄ×ÖÐÍ£®
×¢Òâ£¬ÎÞÂÛÈçºÎ£¬´¿ÎÄ×ÖµÄ×ª»»(¾­ÓÉ {\ttfamily groff})²»Àí»áÓÐ¹Ø×ÖÐÍµÄ×ÊÑ¶£®
ËùÒÔ£¬Äã¿ÉÒÔ¾¡¿ÉÄÜµÄÊ¹ÓÃ¶àÖÖ×ÖÐÍ£¬Õâ¶Ô LaTeX µÄ×ª»»»áÓÐºÃ´¦£®
µ«ÊÇÔÚ´¿ÎÄ×ÖµÄ°æ±¾ÖÐ²»ÒªÖ¸ÍûÄÜÓÃ×ÖÐÍµã³öÖØµã£®

ÌØ±ðÊÇ£¬Ç°ÃæÃèÊö¹ýµÄ {\ttfamily tt} Õâ¸ö±êÇ©¿ÉÒÔÓÃÀ´»ñÖÂ¿í¶È¹Ì¶¨µÄ¡¸´ò×Ö»ú¡¹×ÖÐÍ£¬
ÕâÓ¦¸ÃÓÃÔÚËùÓÐµÄµç×ÓÓÊµÝÎ»Ö·£¬»úÆ÷Ãû³Æ£¬µµ°¸Ãû³ÆµÈµÈ£®
ÀýÈç£º
\begin{tscreen}
\begin{verbatim}
Here is some <tt>typewriter text</tt> to be included in the document.
\end{verbatim}
\end{tscreen}

Ïàµ±ì¶£º
\begin{tscreen}
\begin{verbatim}
Here is some <tt/typewriter text/ to be included in the document.
\end{verbatim}
\end{tscreen}

¼ÇµÃÈç¹û±»°üº¬µÄÎÄ×Ö²»º¬ÓÐÐ±ÏßÄã¿ÉÒÔÊ¹ÓÃ¼òÂÔÐÎÊ½£®

ÆäËüµÄ×ÖÐÍÓÐ {\bfseries ´ÖÌå×Ö} ÓÃµÄ {\ttfamily bf} ÒÔ¼° {\itshape Ð±Ìå×Ö\/} ÓÃµÄ {\ttfamily em}£®
ÁíÍâ»¹Ö§Ô®ÊýÖÖ×ÖÐÍ£¬µ«ÊÇÎÒ²»½¨ÒéÄãÊ¹ÓÃËüÃÇ£¬ÒòÎªËüÃÇ»á±»×ª»»³ÉÏñ HTML ²»Ö§Ô®µÄ×ÖÐÍ£®
´ÖÌå£¬´ò×Ö»úÌå£¬ÒÔ¼°Ð±ÌåÓ¦¸ÃÄÜÂú×ãÄãµÄÐèÒª£®




\subsection{ÁÐ±í}

´ËÏµÍ³Ö§Ô®ÊýÖÖ²»Í¬µÄÁÐ±í£®ËüÃÇÊÇ£º
\begin{itemize}
\item {\ttfamily itemize} ÏñÕâÑùµÄ¸æÊ¾ÁÐ±í
\item {\ttfamily enum} Êý×ÖÁÐ±í
\item {\ttfamily descrip} ÃèÊöÁÐ±í
\end{itemize}

ÔÚ {\ttfamily itemize} »òÊÇ {\ttfamily enum} ÀïµÄÏîÄ¿±ØÐëÒÔ {\ttfamily item} ±êÇ©¼ÓÒÔ±êÊ¾£®
ÔÚ {\ttfamily descrip} ÀïµÄÏîÄ¿±ØÐëÒÔ {\ttfamily tag} ±êÊ¾£®
ÀýÈç£¬
\begin{tscreen}
\begin{verbatim}
<itemize>
<item>ÕâÊÇÒ»¸öÏîÄ¿£®
<item>ÕâÊÇµÚ¶þ¸öÏîÄ¿£®
</itemize>
\end{verbatim}
\end{tscreen}

¿´ÆðÀ´ÏñÊÇÕâÑù£º
\begin{itemize}
\item ÕâÊÇÒ»¸öÏîÄ¿£®
\item ÕâÊÇµÚ¶þ¸öÏîÄ¿£®
\end{itemize}

ÔÚ {\ttfamily enum} ÖÐ
\begin{tscreen}
\begin{verbatim}
<enum>
<item>ÕâÊÇµÚÒ»¸öÏîÄ¿£®
<item>ÕâÊÇµÚ¶þ¸öÏîÄ¿£®
</enum>
\end{verbatim}
\end{tscreen}

ÄãÓ¦¿´µÃ³öÀ´£¬ÁÐ±í¿ÉÒÔÊÇ³²×´µÄ£®Ï¸½ÚÇë²ÎÔÄ¡õÀýÎÄ¼þ£®

{\ttfamily descrip} ÁÐ±íÉÔÓÐ²»Í¬£¬¶øÇÒÓÐµãÄÑ¿´£¬µ«ÊÇÔÚÄ³Ð©Çé¿öÏÂÄã¿ÉÄÜ»áÏëÊ¹ÓÃËü£º
\begin{tscreen}
\begin{verbatim}
<descrip>
<tag/Gnats./ Annoying little bugs that fly into your cooling fan.
<tag/Gnus./ Annoying little bugs that run on your CPU.
</descrip>
\end{verbatim}
\end{tscreen}

×îáá¿´ÆðÀ´Ïñ£º
\begin{description}
\item[Gnats.] \mbox{}

Annoying little bugs that fly into your cooling fan.

\item[Gnus.] \mbox{}

Annoying little bugs that run on your CPU.

\end{description}





\subsection{¸ü½øÒ»²½µÄ×ÊÑ¶}

\begin{enumerate}
\item QWERTZ Ê¹ÓÃÕßÖ¸Òý¿ÉÒÔ´ÓÕâÀïÈ¡µÃ
{\ttfamily \onlynameurl{ftp://ftp.cs.cornell.edu/pub/mdw/SGML}}.
QWERTZ (ÒÔ¼° SGML-Tools) »¹Ö§Ô®ÏñÊÇÊýÑ§¹«Ê½£¬±í¸ñ£¬Í¼ÐÎµÈÐí¶àÌØÐÔ£®
Èç¹ûÄãÏëÓÃ SGML Ð´Ò»°ãµÄÎÄ¼þ£¬ÎÒ½¨ÒéÄãÓÃÔ­À´µÄ QWERTZ DTD ¶ø²»ÒªÓÃÐÞ¸Ä¹ýµÄ linuxdoc DTD£¬
ÒòÎªÕâÊÇÎÒÌØ±ðÓÃÀ´Ð´ Linux HOWTOs ¼°ÆäËüÀàËÆÎÄ¼þÓÃµÄ£®
\item Tom Gordon µÄ QWERTZ tools ¿ÉÔÚ´ËÕÒµ½£º
{\ttfamily \onlynameurl{ftp://ftp.gmd.de/GMD/sgml}}.
\item ¸ü¶à¹Øì¶ SGML µÄ×ÊÑ¶¿ÉÒÔÔÚÏÂÃæÕâÐ©ÍøÒ³ÕÒµ½£º
\begin{itemize}
\item {\ttfamily \nameurl{http://www.w3.org/hypertext/WWW/MarkUp/SGML/}{SGML and the Web}}
\item {\ttfamily \nameurl{http://www.sil.org/sgml/sgml.html}{SGML Web Page}}
\item {\ttfamily \nameurl{http://www.yahoo.com/Computers_and_Internet/Information_and_Documentation/Data_Formats/SGML/}{Yahoo's SGML Page}}
\end{itemize}

\item James Clark µÄ {\ttfamily sgmls} ½âÎöÆ÷£¬¼°ááÀ´µÄ {\ttfamily nsgmls} »¹ÓÐÆäËü¹¤¾ß¿ÉÔÚÕâÕÒµ½£º
{\ttfamily \onlynameurl{ftp://ftp.jclark.com}} ÒÔ¼° {\ttfamily \nameurl{http://www.jclark.com}{James Clark's WWW Page}}.
\item {\ttfamily emacs psgml} ¿ÉÔÚ´ËÕÒµ½£º
{\ttfamily \onlynameurl{ftp://ftp.lysator.liu.se/pub/sgml}}£®Õâ¸ö¹¤¾ßÌá¹©Ðí¶à SGML µÄ¹¦ÄÜ£®
\item Äã¿ÉÒÔ¼Äµç×ÓÓÊ¼þµ½
{\ttfamily \onlynameurl{majordomo@via.ecp.fr}} 
ÒÔ²ÎÓë SGML-Tools mailing list£¬ÄÚÈÝÐ´ {\ttfamily subscribe sgml-tools}£®
Mailing list µÄµØÖ·ÊÇ
{\ttfamily \onlynameurl{sgml-tools@via.ecp.fr}}£®
\item ¹Øì¶ {\ttfamily LyX} µÄ¸ü¶à×ÊÑ¶¿ÉÒÔÔÚ´ËÕÒµ½£º
{\ttfamily \nameurl{http://wsiserv.informatik.uni-tuebingen.de/~ettrich/}{LyX WWW Page}}.  {\ttfamily LyX} ÊÇÒ»¸ö¸ø LaTeX ÓÃµÄ¸ß½×ÎÄ×Ö´¦ÀíÆ÷Ç°¶Ë£®
¾ß°ëËù¼û¼´ËùµÃ½çÃæ£¬»á×Ô¶¯²úÉúÐí¶à LaTeX µÄÑùÊ½¼°¸ñ¾Ö£®
¿ÉÒÔÔö¿ì LaTeX µÄÑ§Ï°¶øÇÒÊ¹¸´ÔÓµÄ¸ñ¾Ö±ä¼òµ¥ÇÒÖ±½Ó£®
\end{enumerate}


\end{document}
