\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{³o¥÷¤å¥ó¬O SGML-Tools ªº¨Ï¥Î»¡©ú¡A¤@ºØ¥H SGML ¬°°òÂ¦¡AÅý§A²£¥Í¤£¦P¿é¥X®æ¦¡ªº¤u¨ã¡D§A¥i¥H¥Î³æ¤@ªº SGML ­ì©l¤å¥ó²£¥Í¯Â¤å¦rÀÉ (ASCII »P ISO-8859-1), DVI, PostScript, HTML, GNU info, LyX, »P RTF ÀÉ¡D³o¥÷¤å¥ó»¡©ú¥H SGML-Tools 0.99.0. ¬°·Ç¡D}


\begin{document}
\maketitle
\tableofcontents

\section{Â²¤¶}

³o¬O¤@¥÷ SGML-Tools ¤å¥ó³B²z¨t²Îªº¨Ï¥Î»¡©ú¡DSGML-Tools ´£¨Ñ¤@­Ó SGML DTD (¤å¥ó§ÎºA©w¸q¡ADocument Type Definition)
¤Î¤@²Õ¡u¸m´«ÀÉ(replacement files)¡v¡A¥i¥H±N SGML Âà´«¬° groff, LaTeX, HTML, GNU info, LyX, »P RTF ªº­ì©lÀÉ¡D

SGML-Tools ¥D­n¥H \nameurl{mailto:thomas.gordon@gmd.de}{Tom Gordon} ªº QWERTZ DTD ¬°°òÂ¦µo®iªº¡D




\subsection{Ãö©ó¦¹¤å¥ó}

³o¥÷¤å¥ó¥Hªþ¦b SGML-Tools ¤Wªº linuxdoc DTD ©Ò¼¶¼gªº¡D
¥¦´X¥G¥]§t©Ò¦³¨Ï¥Î³o¥÷ DTD ¨Ó¼g SGML ¤å¥ó©Ò»Ýª¾¹Dªº¨Æ±¡¡D
½Ð°Ñ¦Ò {\ttfamily example.sgml} ³o¥÷ SGML ½d¨Ò¡A§A¥i¥H®³¥¦·í§@§A¦Û¤v¤å¥óªº½d¥»¡D




\subsection{¬°¦ó¥Î SGML?}

§Ú¿ï¾Ü¨Ï¥Î SGML ¬O¦]¬° SGML ¬O±Mªù¥Î¨ÓÂà´«¦¨¨ä¥¦®æ¦¡ªº¡D
SGML ¬O Standard Generalized Markup Language ªºÂ²ºÙ¡A¥¦¤¹³\§A«ü©w¤å¥óªº{\itshape µ²ºc\/}---¤]´N¬O¡A¥Î¦óºØ¨Æª«¨Ó¼Ð¥Ü¤å¥ó¡D
§A¨Ï¥Î¤@¥÷ DTD (¤å¥ó§ÎºA©w¸q) ¨Ó«ü©w¤å¥óªºµ²ºc¡Dlinuxdoc ¬O¤@ºØ«ü©w Linux HOWTOs »P¨ä¥¦¤å¥óªº DTD¡D
QWERTZ ¬O¥t¤@ºØ DTD; SGML ªº¼Ð·Ç´£¨Ñ®Ñ¡A¤å³¹¡A¤Î¨ä¾l¤@¯ë¤å¥ó©Ò¨Ï¥Îªº DTD¡D

DTD «ü©w¤å¥ó¤¤¡u²Õ¦¨¤¸¯À¡vªº¦WºÙ¡D²Õ¦¨¤¸¯À´N¬O¤@ºØµ²ºc---¨Ò¦p³¹¡A¸`¡A¬q¸¨¡A©Î¬O§ó¤pªº¹³¬O³o¼Ëªº
{\itshape ±j½Õ¤å¦r\/}¡DµM¦Ó¸ò LaTeX ¤£¦Pªº¬O¡A³o¨Ç²Õ¦¨¤¸¯À¨Ã«D SGML ¥»¨­¤º§tªº¡Dlinuxdoc DTD
´N©w¸q¤FÃþ¦ü LaTeX ¤¤ªº²Õ¦¨¤¸¯À---§A¦³³¹¡A¸`¡A©Î¬O¡uÀô¹Ò¡vµ¥µ¥¡DµM¦Ó¡A§Q¥Î SGML 
§A¥i¥H·Ó§A³ßÅw©w¸q¤å¥óªº¥ô¦óµ²ºc¡D´N¬Y¤è­±¨Ó»¡¡ASGML ´N¹³¬O§C¶¥ªº TeX¡A¦Ó linuxdoc DTD
«h¹³¬O LaTeX¡D

§O³Q³oÃþ¤ñ·d²V¤F¡DSGML ¨Ã{\itshape ¤£¬O\/}¤@ºØ¤å¥ó®æ¦¡¤Æ¨t²Î¡D¨S¦³©Ò¿×ªº¡uSGML ®æ¦¡¡v¡D
SGML ªº­ì©lÀÉ{\itshape ¥u¬O\/}¥Î¨ÓÂà´«¦¨¨ä¥¦®æ¦¡¥H«K³B²zªº¡DÁÙ¦³¡ASGML ¥»¨­¬O¥Î¨Ó«ü©w¤å¥óªºµ²ºc¡D
¨S¦³ SGML ¥»¨­ªº¤å¦r®æ¦¡¤Æ¤u¨ã©Î¬O¡u¥¨¶°¡v¤§Ãþªº¡D©Ò¦³ªº¤@¤Á³£©w¸q©ó DTD ¤¤¡D
¨S¦³ DTD §A¤£¯à¨Ï¥Î SGML¡A¤@¥÷ DTD ©w¸q¤F SGML ¸Ó°µ¤°»ò¡D




\subsection{¥¦¦p¦ó¹B§@}

³o¸Ì¸ÑÄÀ¦p¦ó¨Ï¥Î SGML-Tools ³B²z¤å¥ó¡D­º¥ý¡A§A»Ý­n¤@¥÷ DTD¡D§Ú¥Îªº¬O QWERTZ DTD¡A
¥¦¥»¨Ó¬O¤@¸s¤H¦]¬°»Ý­nÃþ¦ü LaTeX ªº DTD ¦Ó°µªº¡D§Ú±N QWERTZ DTD ­×§ï¦¨ linuxdoc DTD
¥H²Å¦X§Ú­Ìªº»Ý¨D¡DDTD ¤£¹L³]©w¤F¤å¥óªºµ²ºc¡D¥¦¬Ý°_¨Ó¹³¬O³o­Ó¼Ë¤lªº:

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


³o³¡¥÷³]©w¤F¡u¤å¥ó¡vªº¾ã­Óµ²ºc¡A´N¹³¬O LaTeX ªº¡udocumentstyle¡v¡D
³o¤å¥ó¥]§t¤F¤@­Ó®Ñ­¶¦W({\ttfamily titlepag})¡A¤@­Ó¥i¦³¥iµLªº¼ÐÃD({\ttfamily header})¡A¤@­Ó¥i¿ï¥Îªº¤º®e¦Cªí({\ttfamily toc})¡A¥i¿ï¥Îªº¹Ï§Î¦Cªí({\ttfamily lof})»Pªí®æ¦Cªí({\ttfamily lot})¡A¥ô·N¼Æ¶qªº¬q¸¨({\ttfamily p})¡A¥ô·N¼Æ¶qªº³¹¸`({\ttfamily sect})¡A¥i¿ï¥Îªºªþ¿ý({\ttfamily appendix})¡A¤@­Ó¥i¿ï¥Îªº°Ñ¦Ò®Ñ¥Ø({\ttfamily biblio})¥H¤Îµù¸Ñ({\ttfamily footnote})¡D

§A¥i¬Ý¥X¡ADTD ¨Ã¥¼»¡©ú¤å¥óÀ³¦p¦ó³Q®æ¦¡¤Æ¡A©Î¥¦¬Ý°_¨Óªø±o«ç»ò¼Ë¡D
¥¦¥u¤£¹L©w¸q¤F¤å¥ó¥Ñ¦óºØ³¡¥÷©Ò²Õ¦¨¡D¦b¤å¥óªº¥t¤@­Ó¦a¤è©w¸q¤F 
{\ttfamily titlepag}, {\ttfamily header}, {\ttfamily sect} ¤Î¨ä¾lªº²Õ¦¨¤¸¯À¡D

¼g¤å¥ó®É§A¨Ã¤£»Ý­nª¾¹D¥ô¦óÃö©ó DTD ªº¤åªk³W«h¡D§Ú¥u¤£¹LÅý§A¬Ý¤@¤U¥¦ªø±o¤°»ò¼Ë¤lÁÙ¦³¥¦°µ¤F¤°»ò¡D
¦ý§A{\itshape ¥²»Ý\/}¼ô±x³o¥÷ DTD ©Ò©w¸qªº¤å¥ó{\itshape µ²ºc\/}¡D§_«h¡A¦b¹Á¸Õ¼g¤å¥ó®É§A¥i¯à·|¹H¤Ïµ²ºc¡A
¦Ó¥B³Q¿ù»~°T®§·d©ü¤F¡D¤U­±§Ú­Ì·|´y­z SGML ¤å¥óµ²ºcªº²Ó¸`¡D

±µ¤U¨Ó´N¬O¥Î³o¥÷ DTD ©Ò©w¸qªºµ²ºc¨Ó¼g¤å¥ó¤F¡D¦A»¡¤@¦¸¡Alinuxdoc DTD ¨Ï±o¤å¥ó¬Ý°_¨Óªø±o¹³ 
LaTeX---©Ò¥H«Ü®e©ö¿í±q¡D¥Î SGML ªº³N»y¨Ó»¡¡A¨Ï¥Î¬Y¤@­Ó¯S§Oªº DTD ¨Ó¼¶¼gªº³æ¤@¤å¥ó¥s°µ¨º¥÷
DTD ªº¡u®×¨Ò(instance)¡v¡D

¬°¤F±N SGML ­ì©lÀÉÂà´«¦¨¨ä¥¦®æ¦¡(¨Ò¦p LaTex ©Î groff)¥H«K³B²z¡A§A©Ò¼gªº SGML ­ì©lÀÉ¥²¶·¸g
SGML {\itshape ¸ÑªR¾¹\/}³B²z¹L¡D§Ú¥Îªº¬O James Clark({\ttfamily \nameurl{mailto:jjc@jclark.com}{jjc@jclark.com}}) ©Ò¼gªº {\ttfamily sgmls} ¸ÑªR¾¹, 
¥L¤]¬O {\ttfamily groff} ªº§@ªÌ¡D¥¦¥Î°_¨Ó«Ü¤è«K¡D{\ttfamily sgmls} Åª¤J§Aªº¤å¥ó¡AÀË¬d¥¦¿í´` DTD ©Ò©w¸qªºµ²ºc¡D
¥¦¦P®É±N§A¤å¥ó¤¤ªº¡u¥¨¶°¡v©M¤¸¯À®i¶}¡A¥H¤è«K¤U¤@¶¥¬qªº {\ttfamily sgmlsasp} ¨Ó³B²z¡D

{\ttfamily sgmlsasp} ¥Î¨Ó±N {\ttfamily sgmls} ªº¿é¥Xµ²ªGÂà´«¦¨¥t¤@ºØ®æ¦¡(¦p LaTeX)¡D
¥¦¨Ï¥Î{\itshape ¸m´«ÀÉ\/}±N­ì©l SGML ¤å¥ó¤¤ªº²Õ¦¨¤¸¯ÀÂà´«¦¨¡u¥Ø¼Ð¡v®æ¦¡(¦p LaTeX ©Î groff)¹ïÀ³ªº­ì©lÀÉ¡D

¨Ò¦p¡A¤@³¡¥÷ LaTeX ªº{\itshape ¸m´«ÀÉ\/}ªø±o¹³³o¼Ë¡G
\begin{tscreen}
\begin{verbatim}
<itemize>    +    "\\begin{itemize}   +
</itemize>   +    "\\end{itemize}    +
\end{verbatim}
\end{tscreen}

¥¦»¡©ú¤F·í§A¦b SGML ­ì©lÀÉ¤¤¨Ï¥Î {\ttfamily itemize} ¤¸¯À®É¡AÀ³¸Ó³Q¸m´«¦¨ LaTeX ­ì©lÀÉ¤¤ªº
\begin{tscreen}
\begin{verbatim}
\begin{itemize}
\end{verbatim}
\end{tscreen}

(§Ú»¡¹L¤F¡ADTD ¤¤ªº¤¸¯À¹³·¥¤F¥¦­Ì¦b LaTeX ¤¤ªº¹ïÀ³ª«¡D)

¦]¦¹¡A­n±N SGML Âà´«¦¨¨ä¥¦®æ¦¡¡A§A©Ò­n°µªº´N¬O¬°¦¹®æ¦¡¼g¤@­Ó·sªº{\itshape ¸m´«ÀÉ\/}¡A
¦b·s®æ¦¡¤¤¬°¨C¤@ SGML ²Õ¦¨¤¸¯À«ü©w¾A·íªº¹ïÀ³¡D¨Æ¹ê¤W¡A¨S³o»òÂ²³æ---¨Ò¦p¡A
¦pªG§A¹Á¸ÕÂà´«¦¨©M§Aªº DTD §¹¥þ¤£¦Pªºµ²ºc¡A§A´N¦³³Â·Ð¡D¤£¹L¡A
¤ñ°_­n¬°¨C¤@ºØ®æ¦¡¼g³æ¿Wªº¸ÑªR¾¹»PÂà´«µ{¦¡ÁÙ¬O­nÂ²³æªº¦h¡D
SGML ´£¨Ñ¤@ºØ¤@¯ëªº¨t²Î±N¤@ºØ­ì©lÀÉÂà´«¦¨³\¦h®æ¦¡¡D

¤@¦ý {\ttfamily sgmlsasp} Âà´«§¹¦¨¡A§A´N¦³»P­ì¥ý SGML ­ì©l¤å¥ó¬Û¹ïÀ³ªº LaTeX ­ì©lÀÉ¡A
§A¥i¥H¹³¤@¯ëªº LaTeX ÀÉ¤@¼Ë¨Ó¨Ï¥Î¥¦¡D¤U­±§Ú·|¥Ü½d¦p¦ó°µ³o¼ËªºÂà´«»P®æ¦¡¤Æ¡D
§A¥u­n¥Î¤@¦æ«ü¥O´N°÷¤F¡D

¤£¹L­º¥ý¡A§Ú­n»¡©ú¦p¦ó¦w¸Ë¤Î³]©w SGML-Tools¡D




\section{¦w¸Ë}

­º¥ý±q³o­Ó¦a¤è
\begin{itemize}
\item {\ttfamily \onlynameurl{ftp://sunsite.unc.edu/pub/Linux/utils/text/sgml-tools-0.99.0.tar.gz}}
\end{itemize}

¨ú±o {\ttfamily sgml-tools-0.99.9.tar.gz}¡D

§A¥i¥H±q {\ttfamily \nameurl{http://www.xs4all.nl/~cg/sgmltools/}{SGML-Tools WWW Page}} ¨ú±o³Ì·sªº¸ê°T¡D



{\ttfamily sgml-tools-0.99.0.tar.gz} ¥]§t¤F©Ò¦³§A»Ý­n¥Î¨Ó¼g SGML ¤å¥ó¨ÃÂà´«¬° groff, LaTeX, HTML, GNU info, LyX,
»P RTF ªºªF¦è¡D°£¦¹¤§¥~¡A§A¥i¯àÁÙ»Ý­n¤U¦Cªº¤u¨ã---SGML ¨t²Î¨Ã¤£»Ý­n³o¨Ç¡A¦ý§Ú«ØÄ³§A¨ú±o³o¨Ç¤u¨ã¥H¤è«K§AÂà´«¤å¥ó¡A¦b§A¤½¶}´²§G§Aªº¤å¥ó«e±N¥ý½T©w¥¦­Ì¬Ý°_¨Ó¨S°ÝÃD¡D

\begin{enumerate}
\item {\ttfamily groff}.  §A{\itshape ¥²¶·\/}¨Ï¥Î 1.08 ©Î§ó·sªºª©¥»¡D§A¥i¥H±q
{\ttfamily \onlynameurl{ftp://prep.ai.mit.edu/pub/gnu}} ¨ú±o¡D¦b
{\ttfamily \onlynameurl{ftp://sunsite.unc.edu/pub/Linux/utils/text}}
¥i§ä¨ì Linux ªº°õ¦æÀÉ¡D§A¥²»Ý¨Ï¥Î {\ttfamily groff} Åý§Aªº SGML ¤å¥ó²£¥Í¯Â¤å¦rÀÉ¡D
{\ttfamily nroff} {\itshape ¤£¦æ\/}!
\item {\ttfamily TeX »P LaTeX}. ³o´X¥G¦b¨C­Ó¦a¤è³£¦³¡A§AÀ³¸Ó¥i¥H²@µL§xÃø¦a§ä¨ì¨Ã¦w¸Ë
(¦b {\ttfamily \onlynameurl{sunsite.unc.edu}} ¥i¥H§ä¨ì Linux ªº°õ¦æÀÉ)
·íµM¡A¦pªG§A­n¥Î LaTeX ¨Ó®æ¦¡¤Æ§Aªº SGML ¤å¥ó§A¤~»Ý­n TeX/LaTeX¡D 
\item {\ttfamily flex}.  {\ttfamily lex} ¥i¯à¤£¦æ¡D§A¥i¥H±q
{\ttfamily \onlynameurl{ftp://prep.ai.mit.edu/pub/gnu}} ¨ú±o¡D
\item {\ttfamily gawk} »P GNU info tools, ¥Î¨Ó®æ¦¡¤Æ»P¹wµø info ÀÉ®×¡D
¦b
{\ttfamily \onlynameurl{ftp://prep.ai.mit.edu/pub/gnu}}, ©Î 
{\ttfamily \onlynameurl{ftp://sunsite.unc.edu/pub/Linux/utils/text}} ¥i¥H§ä¨ì {\ttfamily gawk}¡A
ÁÙ¦³
{\ttfamily \onlynameurl{ftp://sunsite.unc.edu/pub/Linux/system/Manual-pagers}} 
¥i§ä¨ì GNU info tools.  {\ttfamily awk} ¤£¦æ¡D
\item LyX (¤@­Ó¥b©Ò¨£§Y©Ò±o(quasi-WYSIWYG) ªº LaTeX ¬É­±)¡A¥i¦b
{\ttfamily \onlynameurl{ftp://ftp.via.ecp.fr}} §ä¨ì¡D
\end{enumerate}





\subsection{¦w¸Ë³nÅé}

¦w¸Ë»P³]©w SGML-Tools ©Ò»Ýªº¨BÆJ¬O¡G
\begin{enumerate}
\item ­º¥ý¡A¦b¬Y³B¸Ñ¶} {\ttfamily sgml-tools-0.99.0.tar.gz} ªºÀ£ÁYÀÉ¡D  
¥¦±N²£¥Í {\ttfamily sgml-tools-0.99.0} ªº¥Ø¿ý¡D¦b¨º¸Ì¸Ñ¶}³£¨S¦³Ãö«Y¡A¥u¬O¤£­n§â¸Ì­±ªºªF¦è·hÂ÷
{\ttfamily sgml-tools-0.99.0} ¥Ø¿ý´N¦æ¡D
\item ¾\Åª {\ttfamily INSTALL} ÀÉ¡A¥¦¥]§t¤F¦w¸Ë¹Lµ{ªº²Ó¸`¡D
\end{enumerate}


¦pªG¤@¤Á¶¶§Q¡A§A´N¥i¥H¨Ï¥Î¥¦¤F¡D

Ä¶µù: ¨ä¹ê´N¬O°õ¦æ {\ttfamily install} ³o¤ä shell script¡A¦^µª¥¦ªº°ÝÃD´N¦æ¤F!




\subsection{½s±Æ SGML ¤å¥ó}

¨Ò¦p»¡§A·Q­n½s±Æ¤@¥÷ SGML ¤å¥ó¥s {\ttfamily foo.sgml}¡A³o¸Ì¦³¤@¥÷Â²µuªº»¡©ú¦p¦ó¿é¥X¦¨¤£¦Pªº®æ¦¡¡D§¹¾ãªº¿ï¶µ¦Cªí½Ð°Ñ¦Ò man pages¡D




\subsubsection{²£¥Í¯Â¤å¦r¿é¥X}

¦pªG§A·Q²£¥Í¯Â¤å¦rÀÉ¡A¨Ï¥Î³o­Ó«ü¥O¡G
\begin{tscreen}
\begin{verbatim}
% sgml2txt foo.sgml 
\end{verbatim}
\end{tscreen}




½Ðª`·N§Ú¤w½Õ¾ã groff Âà´«¬°¯Â¤å¦r¿é¥X¡D¤]´N¬O»¡¡A§Ú±N­¶­º¡A­¶½X¡AÃä®Øµ¥¥h±¼¡D
¸g¹L¤@¨Ç­×§ï§A¥i¥H±q groff ªº¿é¥X²£¥Í PostScript »P DVI ®æ¦¡¡A¦ý§Ú«ØÄ³§A¥Î LaTeX ¤ñ¸û¦n¡D



§A¥i¥H¬° man pages ²£¥Í groff ªº­ì©lÀÉ¡A¦Ó¥Î {\ttfamily groff -man} ±N¨ä½s±Æ¡D
°õ¦æ³o­Ó«ü¥O¡G
\begin{tscreen}
\begin{verbatim}
% sgml2txt -man foo.sgml 
\end{verbatim}
\end{tscreen}





\subsubsection{²£¥Í LaTeX, DVI ©Î PostScript ¿é¥X}

­n±q SGML ­ì©lÀÉ²£¥Í LaTeX ¤å¥ó¡A´N¥Î¡G
\begin{tscreen}
\begin{verbatim}
% sgml2latex foo.sgml 
\end{verbatim}
\end{tscreen}




¦pªG§A§Æ±æ²£¥Í PostScript ¿é¥X(¸g¥Ñ {\ttfamily dvips})¡A¥i¥Î {\ttfamily -p} ¿ï¶µ¡G
\begin{tscreen}
\begin{verbatim}
% sgml2latex -p foo.sgml 
\end{verbatim}
\end{tscreen}




©ÎªÌ§A¥i¥H¥[¤W {\ttfamily -d} ¿ï¶µ²£¥Í DVI ÀÉ¡G
\begin{tscreen}
\begin{verbatim}
% sgml2latex -d foo.sgml 
\end{verbatim}
\end{tscreen}





\subsubsection{²£¥Í HTML ¿é¥X}

¦pªG§A§Æ±æ¿é¥X HTML ÀÉ¡A¥Î³o«ü¥O¡G
\begin{tscreen}
\begin{verbatim}
% sgml2html -img foo.sgml 
\end{verbatim}
\end{tscreen}


³o±N²£¥Í {\ttfamily foo.html}, {\ttfamily foo-1.html}, {\ttfamily foo-2.html}, µ¥µ¥ --- ¨C¤@³¹¤@­ÓÀÉ®×¡D{\ttfamily foo.html} ¬O­º­¶¡A¥i¥H¥Î§Aªº WWW Âsø°¾¹Æ[¬Ý¡D
½T©w§A©Ò¦³ªº HTML ÀÉ¦b¦P¤@¥Ø¿ý¤U¡A¦]¬°¥¦­Ì¬O¥Î¬Û¹ïªº URL ©¼¦¹°Ñ¦Òªº¡D
HTML ÀÉªº¹Ï¥Ü¥Ø¿ý«ü¦V {\ttfamily \$SGMLTOOLSLIB/icons} ©Ò©w¸qªº¥Ø¿ý¡D
³o¨ÇÀÉ³£À³³Q«þ¨©¨ì³Ì«áªº¦ì¸m¤W¡D{\ttfamily \$SGMLTOOLSLIB/} ©w¸q¦b SGML Âà´«µ{§Çªº³Ì¶}ÀY¡D



¦pªG§A¨Ï¥Î {\ttfamily sgml2html} ¦Ó¨S¦³¥[¤W -img ¿ï¶µªº¸Ü¡A²£¥Íªº HTML ¤å¥ó·|¥[¤W¾ÉÅª¥Îªº "Previous", "Next", ¥H¤Î "Table of Contents" ¼ÐÅÒ¡D
§A¥i¥HÂÇ¥Ñ¦b {\ttfamily \$SGMLTOOLSLIB/rep/html/$<$filename$>$} «Ø¥ß¤@­ÓÀÉ®×¥H»\¹L³o¨Ç¹w³]¡A
¨Ã¥B¥H§A¦Û¤vªº¸Ü¨Ó¨ú¥N¥¦­Ì¡D¸ÓÀÉ®×ªº®æ¦¡¦p¤U©Ò¥Ü¡G
he following format:
\begin{tscreen}
\begin{verbatim}
        PrevPage:  newvalue
    NextPage:  newvalue
        TOC:     newvalue
\end{verbatim}
\end{tscreen}

½d¨Ò½Ð°Ñ¾\ {\ttfamily deutsch}¡D




\subsubsection{²£¥Í GNU Info ®æ¦¡ªº¿é¥X}

¦pªG§A·Q­n±N§AªºÀÉ®×½s±Æ¦¨ GNU Info ÂsÄýµ{¦¡±µ¨üªº®æ¦¡¡A¥u­n¨Ï¥Î¤U¦C«ü¥O¡G
\begin{tscreen}
\begin{verbatim}
% sgml2info foo.sgml 
\end{verbatim}
\end{tscreen}





\subsubsection{²£¥Í LyX ®æ¦¡ªº¿é¥X}

±ý²£¥Í LyX ®æ¦¡ªº¥X¡A¨Ï¥Î³o­Ó«ü¥O¡G
\begin{tscreen}
\begin{verbatim}
% sgml2lyx foo.sgml 
\end{verbatim}
\end{tscreen}





\subsubsection{²£¥Í RTF ®æ¦¡ªº¿é¥X}

¦pªG§A·Q²£¥Í RTF ®æ¦¡ªº¿é¥X¡A°õ¦æ³o­Ó«ü¥O¡G
\begin{tscreen}
\begin{verbatim}
% sgml2rtf foo.sgml 
\end{verbatim}
\end{tscreen}


³o±N·|²£¥Í {\ttfamily foo.rtf}, ¥H¤Î {\ttfamily foo-1.rtf}, {\ttfamily foo-2.rtf}, 
µ¥µ¥ÀÉ®×---¤å¥óªº¨C¤@¸`¦Û¦¨¤@­ÓÀÉ®×¡D




\subsubsection{ÀË¬d SGML »yªk}

¦pªG§A¥u¬O·Q±q SGML Âà´«¤¤§ì¥X§Aªº¿ù»~¡A¥i¥H¨Ï¥Î {\ttfamily sgmlcheck} ³o­Ó«ü¥O½Z¡D
¨Ò¦p¡G
\begin{tscreen}
\begin{verbatim}
% sgmlcheck foo.sgml 
\end{verbatim}
\end{tscreen}





\subsection{ISO 8859-1 ¦r¤¸¶°}

ISO 8859-1 (latin1) ¦r¤¸¶°¥i¥H¥Î¦b¯Â¤å¦r
LaTeX, HTML, LyX, ¥H¤Î RTF ¿é¥Xªº°ê»Ú¦r¤¸(GNU Info ¥¼¨Ó¥i¯à¤ä´© ISO 8859-1)¡D
­n¨Ï¥Î³o¶µ¥\¯àªº¸Ü¡A¥i¥H¥[¤W {\ttfamily -l} ¿ï¶µµ¹½s±Æ«ü¥O½Z¡A¨Ò¦p¡G
\begin{tscreen}
\begin{verbatim}
% sgml2txt -l foo.sgml 
\end{verbatim}
\end{tscreen}

§A¤]¥i¥H¦b SGML ­ì©l¤å¥ó¤¤¨Ï¥Î ISO 8859-1 ¦r¤¸¡A¥¦­Ì·|¦Û°Ê³QÂà´«¦¨¹ïÀ³¤å¥ó®æ¦¡ªº¾A·í¶h¥X¦r¤¸(escape codes)¡D




\section{¨Ï¥Î SGML-Tools ¼¶¼g¤å¥ó}

¨Ï¥Î SGML-Tools DTD ¼¶¼g¤å¥óªº¹Lµ{¤j³¡¤À¬O«D±`®e©öªº¡A¦Ó¥B¦³ÂIÃþ¦ü LaTeX¡D
µM¦Ó¡A¤´µM¦³¨Ç­­¨î­nª`·N¡D³o¤@¸`§Ú±N¤¶²Ð SGML ¤å¥óªº¼¶¼g¡D
SGML ¤å¥ó½d¨Ò(¤Î¼g§@«ü¤Þ)½Ð°Ñ¾\ {\ttfamily example.sgml} ÀÉ®×¡A§A¥i¥H®³¨Ó·í§@¦Û¤v¤å¥óªº½d¥»¡D
¦b¦¹§Ú±N°Q½× SGML ªº¦U¶µ¥\¯à¡A¦ý¬O¥H­ì©l¤å¥ó§@¬°½d¨Ò¤£¬O«Ü¦³¥iÅª©Ê¡D
¦]¦¹¡A¦L¥X {\ttfamily example.sgml} ªº­ì©l½X(½s±Æ«áªº¿é¥X)¡A¦p¦¹§A´N¦³¯u¹êªº°Ñ¦Ò½d¨Ò¡C




\subsection{°ò¥»·§©À}

¥J²Ó¬Ý½d¨Ò¤å¥óªº­ì©l¤å¥ó¡A§A·|ª`·N¨ì¸Ì­±¦³³\¦h¥H¨¤¬A¸¹({\ttfamily $<$} ¤Î {\ttfamily $>$})¼Ð¥Üªº¡u¼ÐÅÒ(tags)¡v¡D
¼ÐÅÒ³æ¯Â¦a«ü¥X¬Y²Õ¦¨¤¸¯Àªº°_©l¡A³o¸Ì©Ò¿×ªº²Õ¦¨¤¸¯À¬O¤@¸`¡A¤@¬q¡A¤@¥y±×Åéªº¤å¥y¡A¦Cªí¤¤ªº¤@­Ó¶µ¥Ø¡A¥H¤Î½Ñ¦p¦¹Ãþªºµ²ºc¡D
¨Ï¥Î¼ÐÅÒ´N¹³¨Ï¥Î LaTeX «ü¥O¦p {\ttfamily $\backslash$item} ©Î¬O {\ttfamily $\backslash$section$\{$...$\}$} µ¥¤@¯ë¡D

Á|­ÓÂ²³æªº¨Ò¤l¡A­n²£¥Í³o¤@¬q {\bfseries ²ÊÅé¤å¦r}¡A§Ú¦b­ì©l½X¤¤Áä¤J
\begin{tscreen}
\begin{verbatim}
Á|­ÓÂ²³æªº¨Ò¤l¡A­n²£¥Í³o¤@¬q <bf>²ÊÅé¤å¦r</bf>, ...
\end{verbatim}
\end{tscreen}

{\ttfamily $<$bf{$>$}} ¬O³o¬q²ÊÅé¤å¦rªº¶}ÀY¡A¦Ó {\ttfamily $<$/bf{$>$}} ¬Oµ²§À¡D
§A¤]¥i¥H¨Ï¥Î³o­ÓÂ²²¤§Î¦¡¡G
\begin{tscreen}
\begin{verbatim}
Á|­ÓÂ²³æªº¨Ò¤l¡A­n²£¥Í³o¤@¬q <bf/²ÊÅé¤å¦r/, ...
\end{verbatim}
\end{tscreen}

´N¬O¥Î±×½u±N²ÊÅé¤å¦r¥]¦í¡D(·íµM¡A¦pªG³Q¥]§tªº¤å¦r§t¦³½u¡A§A´N¥²¶·¨Ï¥Îªøªº§Î¦¡¡A
¨Ò¦p Unix ªºÀÉ®×¦WºÙ¡D)

Ãö©ó¯S®í¦r¤¸ÁÙ¦³¨ä¥¦±o­nª`·Nªº°ÝÃD
(³o´N¬O¬°¤°»ò¦pªG§A¥J²ÓÆ[¹î­ì©l¤å¥ó´N·|ª`·N¨ì³o¨Ç¬Ý°_¨Ó«Ü©Ç²§ "\&" ªí¥Ü¦¡¡F§Ú±NÂ²µu¦a»¡©ú³o¨Ç²Å¸¹)¡D

¦b¬Y¨Ç±¡ªp¤U¡A¯S©wªº²Õ¦¨¤¸¯À¤§µ²§À¼ÐÅÒ¬O¥i¿ï¥Îªº¡D
¨Ò¦p¡A§A¦b¬Y¤@¸`ªº¶}©l¨Ï¥Î {\ttfamily $<$sect{$>$}} ³o­Ó¼ÐÅÒ¡AµM¦Ó¡A¸Ó¸`ªºµ²§À¼ÐÅÒ
(¥i¥H¥X²{¦b¸Ó¸`¥DÅé¥»¨­µ²§ôªº¦a¤è¡A¦Ó¤£¥u¬O¸Ó¸`ªº¦WºÙ«á­±!)
¬O¥i¿ï¥Îªº¦Ó·í§A¦b¦P¤@­Ó¼h¦¸¶}©l¥t¥~¤@¸`ªº®É­Ô¤]´N·t¥ÜµÛ¸Ó¸`ªºµ²§ô¡D
¤@¯ë¨Ó»¡§A¤£»Ý­n¾á¤ß³o¨Ç²Ó¸`¡F¥u­n¸òµÛ¨Ï¥Î¦b {\ttfamily example.sgml} «ü¤Þ¸Ìªº½d¨Ò´N¥i¥H¤F¡C




\subsection{¯S®í¦r¤¸}

«Ü©úÅãªº¡A¨¤¬A¸¹¥¦­Ì¥»¨­´N¬O SGML ­ì©l¤å¥ó¸Ìªº¯S®í¦r¤¸¡D¥t¥~ÁÙ¦³¨ä¥¦¸Óª`·Nªº¦r¤¸¡D
¨Ò¦p¡A°²³]§A·QÁä¤J¥Ñ¨¤¬A¸¹©Ò²[»\ªºªí¥Ü¦¡¡A¹³³o¼Ë: {\ttfamily $<$foo{$>$}}¡D
¬°¤Fªí¥Ü¥ªÃäªº¨¤¬A¸¹¡A§A¥²¶·¨Ï¥Î {\ttfamily \&lt;} ³o­Ó²Õ¦¨¤¸¯À¡A
³o¬O¤@­Ó·|®i¶}¦¨¥ª¬A¸¹¦r¤¸ªº¡u¥¨¶°¡v¡D¦]¦¹¡A§Ú¦b­ì©l¤å¥ó¤¤Áä¤J
\begin{tscreen}
\begin{verbatim}
angle brackets around it, as so: <tt>&lt;foo></tt>.
\end{verbatim}
\end{tscreen}

¤@¯ë¨Ó»¡¡A¥Hµ²¦X¦r¤¸(\&)§@¬°¶}©lªí¥Ü³o¬O¤@­Ó¯S®íªº¥¨¶°¡D
¨Ò¦p¡A²£¥Í \% ²Å¸¹ªº {\ttfamily \&percnt;}
²£¥Í $|$ ªº {\ttfamily \&verbar;} µ¥µ¥¡D
¹ï©ó©Ò¦³ªº¡u¯S®í¦r¤¸¡v³£¦³µ²¦X¥¨¶°¥i¥Hªí¥Ü¥¦­Ì¡D

³q±`¡A§A¤£»Ý­n¨Ï¥Îµ²¦X¥¨¶°ªí¥Ü¬Y¯S®í¦r¤¸¡AµM¦Ó¡A¦b¬Y¨Ç±¡ªp¤U³o¬O¥²¶·ªº¡C³Ì±`¥Îªº¬O¡G
\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}


§¹¾ãªº¯S®í¦r¤¸¦Cªí¥i¥H¬d¬Ý¨ä¤¤¤@­Ó´À´«ÀÉ¡D
³q±` LaTeX ³Ì·|©ê«è¯S®í¦r¤¸¡A©Ò¥H¬d¾\ 
{\ttfamily \$SGMLTOOLSLIB/rep/latex/general} ·|¬O­Ó¦nªº¶}©l¡D
{\ttfamily \$SGMLTOOLSLIB} ©w¸q¦b SGML Âà´«µ{§Çªº³Ì«e­±¡D




\subsection{Verbatim »P Code Àô¹Ò}

·í§Ú­Ì¥¿°Q½×¯S®í¦r¤¸³o­Ó¥DÃD®É¡A§Ú¤]¥²¶·´£¨ì¡uverbatim Àô¹Ò¡v¡A
¥Î¨Ó¦b¿é¥X¤¤§t¤J¤£¥[ÅÜ°Êªº¤å¦r(ªÅ¥Õ¦r¤¸¥H¤ÎÁY±Æ¡A©M½Ñ¦p¦¹Ãþ)¡D
{\ttfamily verb} ³o­Ó²Õ¦¨¤¸¯À´N¬O°µ¦¹¥Î³~ªº¡D¥¦¬Ý°_¨Ó´N¹³³o¼Ë¡G
\begin{tscreen}
\begin{verbatim}
<verb>
 Some literal text to include as example output.
</verb>
\end{verbatim}
\end{tscreen}

{\ttfamily verb} Àô¹Ò¤£¤¹³\§A¦b¨ä¤º®e¤¤¨Ï¥Î{\itshape ¥ô¦óªF¦è\/}¡D
¯S§O¦a¡A¦b {\ttfamily verb} Àô¹Ò¤¤§A¥²¶·¡G
\begin{itemize}
\item ¨Ï¥Î {\ttfamily \&amp;} ¥Nªí {\ttfamily \&}
\item ¨Ï¥Î {\ttfamily \&lt;/} ¥Nªí {\ttfamily $<$/}
\item ¤£­n¦b {\ttfamily verb} Àô¹Ò¤¤¨Ï¥Î {\ttfamily $\backslash$end$\{$verbatim$\}$}¡A
¦]¬°³o¬O LaTeX ¥Î¨Óµ²§ô {\ttfamily verbatim} Àô¹Òªº¡D
(¥¼¨ÓÀ³¸Ó¥i¯à§¹¥þªºÁôÂÃ©³¼hªº¤å¦r½s±Æ¡A¦ý¥Ø«eªº¸ÑªR¾¹ÁÙ¤£¤ä´©¡D)
\end{itemize}

{\ttfamily code} Àô¹Ò«D±`Ãþ¦ü {\ttfamily verb} Àô¹Ò¡A°£¤F¦b¤å¦r©P³ò¥[¤J¤À¹j½u
\par
\addvspace{\medskipamount}
\nopagebreak\hrule
\begin{verbatim}
³o¬O code Àô¹Òªº¨Ò¤l¡D
\end{verbatim} 
\nopagebreak\hrule 
\addvspace{\medskipamount}


§AÀ³¸Ó¦b¥ô¦ó {\ttfamily verb} Àô¹Òªº©P³ò¨Ï¥Î {\ttfamily tscreen} Àô¹Ò¡A¹³³o¼Ë¡G
\begin{tscreen}
\begin{verbatim}
<tscreen><verb>
³o¬O¤@¬q¨Ò¥y¡D
</verb></tscreen>
\end{verbatim}
\end{tscreen}

{\ttfamily tscreen} ¬O¤@­ÓÀô¹Ò³æ¯Â¦aÁY±Æ¨Ã³]©w¹w³]¦r«¬¬° {\ttfamily tt}¡D
³o¨Ï±o½d¨Ò­n½×¦b LaTeX ¥H¤Î¯Â¤å¦rªºª©¥»¤¤¬Ý°_¨Ó¦n¦h¤F¡D
§A¥i¥H¨Ï¥Î {\ttfamily tscreen} ¦Ó¤£¥[ {\ttfamily verb}¡A¤£¹L¡A¦pªG§A¦b½d¨Ò¤¤¨Ï¥Î¥ô¦óªº¯S®í¦r¤¸¨º»ò§A´N»Ý­n¥¦­Ì¨â­Ó¡D
{\ttfamily tscreen} »P¯S®í¦r¤¸µLÃö¡D½d¨Ò½Ð°Ñ¾\ {\ttfamily example.sgml}¡D

{\ttfamily quote} Àô¹ÒÃþ¦ü {\ttfamily tscreen}¡A°£¤F¤£±N¹w³]¦r«¬³]¬° {\ttfamily tt}¡D©Ò¥H¡A§A¥i¥H¨Ï¥Î {\ttfamily quote} ©ó»P¹q¸£µLÃöªº¤Þ¥Î¡A¦p¡G
\begin{tscreen}
\begin{verbatim}
<quote>
Here is some text to be indented, as in a quote.
</quote>
\end{verbatim}
\end{tscreen}

³o·|²£¥Í¡G
\begin{quotation}
Here is some text to be indented, as in a quote.
\end{quotation}





\subsection{¤å¥ó¤º®e·§Æ[}

¦b§Ú­Ì²`¤J¬ã¨s²Ó¸`¤§«e¡A§Ú­n¶}©l¤¶²Ð linuxdoc DTD ©w¸qªº¤å¥ó·§Æ[¡D¤å¥ó¦p¦ó³]¥ßªº½d¨Ò½Ð¥J²ÓÆ[¬Ý {\ttfamily example.sgml}¡D




\subsubsection{§Ç¤å}

¦b¤å¥óªº¡u§Ç¤å¡v¤¤§A³]¥ß¹³¬O¼ÐÃD¥H¤Î¤å¥ó«¬ºA(style)ªºªF¦è¡DLinux HOWTO ¤å¥ó¬Ý°_¨ÓÀ³¸Ó¹³¡G
\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>
³o¥÷¤å¥ó»¡©ú¤F¦p¦ó¨Ï¥Î <tt/foo/ ³o­Ó¤u¨ã¡D
</abstract>

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


³o¨Ç²Õ¦¨¶µ¥Ø¥i¥H°u¤©¼W´î¦ý¶·«ö¦¹¶¶§Ç¡D²Ä¤@¦æ§i¶D SGML ¸ÑªRµ{¦¡¨Ï¥Î linuxdoc DTD¡D
{\ttfamily $<$article{$>$}} ³o­Ó¼ÐÅÒ³W©w¤å¥ó¨Ï¥Î¡uarticle¡v¦¹ºØ¤å¥ó«¬ºA¡D
(­ì¥ýªº QWERTZ DTD ÁÙ©w¸q ¡ureport¡v¥H¤Î¡ubook¡vµ¥«¬ºA¡F§Ú¨Ã¨S¦³­×§ï¥¦­Ì¥H¦b SGML-Tools ¤¤¨Ï¥Î)¡D

{\ttfamily title}, {\ttfamily author}, ¥H¤Î {\ttfamily date} ³o¨Ç¼ÐÅÒªº·N¸qÀ³¸Ó¬O«Ü©úÅãªº¡A
¦b {\ttfamily date} ¼ÐÅÒ¤¤¥]§t¤å¥óªºª©¥»½s¸¹¥H¤Î³Ì«á­×§ï®É¶¡¡D

{\ttfamily abstract} ¼ÐÅÒ³]©w¤å¥ó³»ºÝ{\itshape ¦b¤º®e¤§«e\/}¦L¥Xªº¤å¦r¡D
¦pªG§A¤£·Q§t¤J¤º®e¦Cªí({\ttfamily toc} ¼ÐÅÒ)¡A¨º»ò§A¥i¯à¤£»Ý­n {\ttfamily abstract}¡D




\subsubsection{³¹¸`»P¬q¸¨}

¦b§Ç¤å¤§«á¡A§A´N¥i¥H·Ç³Æ¶i¤J¤å¥ó¥»¨­¡D¦³¤U¦Cªº¤À¸`«ü¥O¥i¥H¨Ï¥Î¡G
\begin{itemize}
\item {\ttfamily sect}: ³Ì³»¼hªº³¹¸` (¤]´N¬O 1, 2, µ¥µ¥) 
\item {\ttfamily sect1}: ²Ä¤G¼hªº¦¸³¹¸` (¤]´N¬O  1.1, 1.2, µ¥µ¥)
\item {\ttfamily sect2}: ²Ä¤T¼hªº¤p³¹¸`
\item {\ttfamily sect3}: ²Ä¥|¼hªº¤p¤p¸`
\item {\ttfamily sect4}: ²Ä¤­¼hªº¤p¤p¤p¸`
\end{itemize}

¥¦­Ì¬Û·í©ó LaTeX ¤¤¹ïÀ³ªº {\ttfamily section}, {\ttfamily subsection} µ¥µ¥¡D

¦b {\ttfamily sect}  (©Î {\ttfamily sect}, {\ttfamily sect} µ¥µ¥) ¼ÐÅÒ¤§«á¸òµÛ¬O¸Ó¸`ªº¦WºÙ¡D
¨Ò¦p¡A¦b¤å¥óªº³»ºÝ¡A§Ç¤å¤§«áªº¬O¦¹¼ÐÅÒ¡G
\begin{tscreen}
\begin{verbatim}
<sect>Â²¤¶
\end{verbatim}
\end{tscreen}

¦Ó¦b¦¹¸`¶}©lªº¦a¤è(¬q¸¨)¡A¦³­Ó¼ÐÅÒ¬O¡G
\begin{tscreen}
\begin{verbatim}
<sect2>¬q¸¨
\end{verbatim}
\end{tscreen}

¦b¤@¸`ªº¼ÐÅÒ¤§«á¡A§A¶}©l¤å¥óªº¥DÅé¡DµM¦Ó¡A§A¥²¶·¥H¤@­Ó {\ttfamily $<$p{$>$}} ¼ÐÅÒ¶}©l¡A¹³³o¼Ë¡G
\begin{tscreen}
\begin{verbatim}
<sect>Â²¤¶
<p>
³o¬O¤@¥÷ SGML-Tools ¤å¥ó³B²zªº¨Ï¥ÎªÌ«ü¤Þ....
\end{verbatim}
\end{tscreen}

³o¬O§i¶D¸ÑªRµ{¦¡§A¤w§¹¦¨¤@¸`ªº¼ÐÃD¨Ã¥B·Ç³Æ¦n¶}©l¥»¤å¥DÅé¡D
¨ä«á¡A·sªº¬q¸¨¬O¥HªÅ¥Õ¦æ¶}©l(´N¦p¦P TeX)¡D¨Ò¦p¡A
\begin{tscreen}
\begin{verbatim}
³o¬O²Ä¤@¬qªºµ²§À¡D

¦Ó§Ú­Ì±q³o¸Ì¶}©l·sªº¤@¬q¡D
\end{verbatim}
\end{tscreen}

¨S¦³¤°»ò²z¥Ñ­n¦b¨C­Ó¬q¸¨ªº«e­±¨Ï¥Î {\ttfamily $<$p{$>$}} ¼ÐÅÒ¡F¥u­n¦b¤À¸`«ü¥O«á­±ªº²Ä¤@­Ó¬q¸¨¶}©l³B¥[´N¦æ¡D




\subsubsection{¤å¥óµ²§À}

¦b¤å¥óµ²§ôªº¦a¤è¡A§A¥²¶·¨Ï¥Î³o­Ó¼ÐÅÒ¡G
\begin{tscreen}
\begin{verbatim}
</article>
\end{verbatim}
\end{tscreen}


¥H§i¶D¸ÑªRµ{¦¡§A¤w¸g§¹¦¨ {\ttfamily article} ³o­Ó²Õ¦¨¤¸¯À(²[»\¾ã¥÷¤å¥ó)¡D


\subsection{¥æ¤¬°Ñ¦Ò\label{cross-ref}}

²{¦b§Ú­Ì­n¶i¤J¨t²Îªº¨ä¥¦¥\¯à¡D¥æ¤¬°Ñ¦Ò«Ü®e©ö¡D¨Ò¦p¡A¦pªG§A·Q­n»s§@¬Y¤@¸`ªº¥æ¤¬°Ñ¦Ò¡A§A±o¹³³o¼Ë¼Ð¥Ü¸Ó¸`:
\begin{tscreen}
\begin{verbatim}
<sect1>Â²¤¶<label id="sec-intro">
\end{verbatim}
\end{tscreen}

±µµÛ§A´N¥i¥H¦b¤å¥ó¤¤ªº¬Y­Ó¦a¤è¦¡¥Î³o­Óªí¥Ü¦¡°Ñ·Ó¸Ó¸`¡G
\begin{tscreen}
\begin{verbatim}
½Ð°Ñ¦Ò<ref id="sec-intro" name="Â²¤¶">¤@¸`ªº¤¶²Ð¡D
\end{verbatim}
\end{tscreen}

³o±N·|¥H {\ttfamily sec-intro} ¼Ð°Oªº¸`¸¹´À´«±¼³o­Ó {\ttfamily ref} ¼ÐÅÒ¡D
¹ï©ó groff ¥H¤Î HTML Âà´« {\ttfamily name} ³o­Ó°Ñ¼Æ¬O¥²¶·ªº¡D
SGML-Tools ¨Ï¥Îªº groff ¥¨¶°³]©w¥Ø«e¨Ã¥¼¤ä´©¥æ¤¬°Ñ¦Ò¡A¦Ó¥B¥¦±`±`¥H¦WºÙ¨ú¥N¼Æ¦r°Ñ·Ó¬Y¤@¸`¡D

¨Ò¦p¡A¥»¸`¬O\ref{cross-ref} {(¥æ¤¬°Ñ¦Ò)}¡D

¦b¥þ²y¸ê°Tºô¤W¨Ï¥Îªº³q¥Î¸ê·½©w¦ì¾¹¡A§Y URL ¤]¦³²Õ¦¨¤¸¯À {\ttfamily url}¡D
³o­Ó¤¸¯ÀÀ³¸Ó¥Î¨Ó°Ñ·Ó¨ä¥¦¤å¥ó¡AFTP ¤WªºÀÉ®×µ¥µ¥¡D¨Ò¦p¡G
\begin{tscreen}
\begin{verbatim}
§A¥i±q¦¹¨ú±o Linux HOWTO ¤å¥ó
<url url="http://sunsite.unc.edu/mdw/HOWTO/" 
   name="The Linux HOWTO INDEX">¡D
\end{verbatim}
\end{tscreen}

{\ttfamily url} ³o­Ó°Ñ¼Æ«ü©w³o­Ó URL ¥»¨­¡D³sµ²·|¦Û°Ê¥[¤J¨ì HTML ¤å¥ó¤¤¡D
¥i¿ï¥Îªº {\ttfamily name} °Ñ¼Æ«ü©wÀ³¸Ó¥[¤W³sµ²ªº¤å¦r(HTML Âà´«)©Î¬O¬° URL ´y­z©R¦W(LaTeX ©Î groff)¡D¦pªG¨S¦³µ¹ {\ttfamily name} °Ñ¼Æ¡A·|¨Ï¥Î³o­Ó URL ¥»¨­¡D

¨Ò¦p¡A§A¥i¥H±q³o¸Ì¨ú±o SGML-Tools ®M¥ó\\ 
{\ttfamily \onlynameurl{ftp://sunsite.unc.edu/pub/Linux/utils/text/sgml-tools-0.99.0.tar.gz}}.

¤@­Ó¦³¥ÎªºÅÜ§Î¬O {\ttfamily htmlurl}¡A°£¤F HTML ¤å¥ó¦b¨ä¥¦¨CºØ¤å¥ó¤¤³o­Ó URL ³¡¥÷±N¤£·|¥X²{¡D
¥¦¥Î¦b¹³¬O­Ó¤Hªº¹q¤l¶l¥ó¦ì§}¡F§A¥i¥H¼g
\begin{tscreen}
\begin{verbatim}
<htmlurl url="mailto:esr@snark.thyrsus.com"
      name="esr@snark.thyrsus.com">
\end{verbatim}
\end{tscreen}

¦Ó¦b¯Â¤å¦r¿é¥X¤¤Àò±o¡uesr@snark.thyrsus.com¡v
¦Ó¤£¬O­«½Æªº¡uesr@snark.thyrsus.com $<$mailto:esr@snark.thyrsus.com$>$¡v
¦ý¬O¦b HTML ¤å¥ó¤¤¤´µM«O¦³¾A·íªº URL ³¡¥÷¡D




\subsection{¦r«¬}

°ò¥»¤W¡ASGML-Tools ¤ä´©»P LaTeX ¬Û¦Pªº¦r«¬¡D
ª`·N¡AµL½×¦p¦ó¡A¯Â¤å¦rªºÂà´«(¸g¥Ñ {\ttfamily groff})¤£²z·|¦³Ãö¦r«¬ªº¸ê°T¡D
©Ò¥H¡A§A¥i¥HºÉ¥i¯àªº¨Ï¥Î¦hºØ¦r«¬¡A³o¹ï LaTeX ªºÂà´«·|¦³¦n³B¡D
¦ý¬O¦b¯Â¤å¦rªºª©¥»¤¤¤£­n«ü±æ¯à¥Î¦r«¬ÂI¥X­«ÂI¡D

¯S§O¬O¡A«e­±´y­z¹Lªº {\ttfamily tt} ³o­Ó¼ÐÅÒ¥i¥H¥Î¨ÓÀò­P¼e«×©T©wªº¡u¥´¦r¾÷¡v¦r«¬¡A
³oÀ³¸Ó¥Î¦b©Ò¦³ªº¹q¤l¶l»¼¦ì§}¡A¾÷¾¹¦WºÙ¡AÀÉ®×¦WºÙµ¥µ¥¡D
¨Ò¦p¡G
\begin{tscreen}
\begin{verbatim}
Here is some <tt>typewriter text</tt> to be included in the document.
\end{verbatim}
\end{tscreen}

¬Û·í©ó¡G
\begin{tscreen}
\begin{verbatim}
Here is some <tt/typewriter text/ to be included in the document.
\end{verbatim}
\end{tscreen}

°O±o¦pªG³Q¥]§tªº¤å¦r¤£§t¦³±×½u§A¥i¥H¨Ï¥ÎÂ²²¤§Î¦¡¡D

¨ä¥¦ªº¦r«¬¦³ {\bfseries ²ÊÅé¦r} ¥Îªº {\ttfamily bf} ¥H¤Î {\itshape ±×Åé¦r\/} ¥Îªº {\ttfamily em}¡D
¥t¥~ÁÙ¤ä´©¼ÆºØ¦r«¬¡A¦ý¬O§Ú¤£«ØÄ³§A¨Ï¥Î¥¦­Ì¡A¦]¬°¥¦­Ì·|³QÂà´«¦¨¹³ HTML ¤£¤ä´©ªº¦r«¬¡D
²ÊÅé¡A¥´¦r¾÷Åé¡A¥H¤Î±×ÅéÀ³¸Ó¯àº¡¨¬§Aªº»Ý­n¡D




\subsection{¦Cªí}

¦¹¨t²Î¤ä´©¼ÆºØ¤£¦Pªº¦Cªí¡D¥¦­Ì¬O¡G
\begin{itemize}
\item {\ttfamily itemize} ¹³³o¼Ëªº§i¥Ü¦Cªí
\item {\ttfamily enum} ¼Æ¦r¦Cªí
\item {\ttfamily descrip} ´y­z¦Cªí
\end{itemize}

¦b {\ttfamily itemize} ©Î¬O {\ttfamily enum} ¸Ìªº¶µ¥Ø¥²¶·¥H {\ttfamily item} ¼ÐÅÒ¥[¥H¼Ð¥Ü¡D
¦b {\ttfamily descrip} ¸Ìªº¶µ¥Ø¥²¶·¥H {\ttfamily tag} ¼Ð¥Ü¡D
¨Ò¦p¡A
\begin{tscreen}
\begin{verbatim}
<itemize>
<item>³o¬O¤@­Ó¶µ¥Ø¡D
<item>³o¬O²Ä¤G­Ó¶µ¥Ø¡D
</itemize>
\end{verbatim}
\end{tscreen}

¬Ý°_¨Ó¹³¬O³o¼Ë¡G
\begin{itemize}
\item ³o¬O¤@­Ó¶µ¥Ø¡D
\item ³o¬O²Ä¤G­Ó¶µ¥Ø¡D
\end{itemize}

¦b {\ttfamily enum} ¤¤
\begin{tscreen}
\begin{verbatim}
<enum>
<item>³o¬O²Ä¤@­Ó¶µ¥Ø¡D
<item>³o¬O²Ä¤G­Ó¶µ¥Ø¡D
</enum>
\end{verbatim}
\end{tscreen}

§AÀ³¬Ý±o¥X¨Ó¡A¦Cªí¥i¥H¬O±_ª¬ªº¡D²Ó¸`½Ð°Ñ¾\½d¨Ò¤å¥ó¡D

{\ttfamily descrip} ¦Cªíµy¦³¤£¦P¡A¦Ó¥B¦³ÂIÃø¬Ý¡A¦ý¬O¦b¬Y¨Ç±¡ªp¤U§A¥i¯à·|·Q¨Ï¥Î¥¦¡G
\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}

³Ì«á¬Ý°_¨Ó¹³¡G
\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{§ó¶i¤@¨Bªº¸ê°T}

\begin{enumerate}
\item QWERTZ ¨Ï¥ÎªÌ«ü¤Þ¥i¥H±q³o¸Ì¨ú±o
{\ttfamily \onlynameurl{ftp://ftp.cs.cornell.edu/pub/mdw/SGML}}.
QWERTZ (¥H¤Î SGML-Tools) ÁÙ¤ä´©¹³¬O¼Æ¾Ç¤½¦¡¡Aªí®æ¡A¹Ï§Îµ¥³\¦h¯S©Ê¡D
¦pªG§A·Q¥Î SGML ¼g¤@¯ëªº¤å¥ó¡A§Ú«ØÄ³§A¥Î­ì¨Óªº QWERTZ DTD ¦Ó¤£­n¥Î­×§ï¹Lªº linuxdoc DTD¡A
¦]¬°³o¬O§Ú¯S§O¥Î¨Ó¼g Linux HOWTOs ¤Î¨ä¥¦Ãþ¦ü¤å¥ó¥Îªº¡D
\item Tom Gordon ªº QWERTZ tools ¥i¦b¦¹§ä¨ì¡G
{\ttfamily \onlynameurl{ftp://ftp.gmd.de/GMD/sgml}}.
\item §ó¦hÃö©ó SGML ªº¸ê°T¥i¥H¦b¤U­±³o¨Çºô­¶§ä¨ì¡G
\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} ¸ÑªR¾¹¡A¤Î«á¨Óªº {\ttfamily nsgmls} ÁÙ¦³¨ä¥¦¤u¨ã¥i¦b³o§ä¨ì¡G
{\ttfamily \onlynameurl{ftp://ftp.jclark.com}} ¥H¤Î {\ttfamily \nameurl{http://www.jclark.com}{James Clark's WWW Page}}.
\item {\ttfamily emacs psgml} ¥i¦b¦¹§ä¨ì¡G
{\ttfamily \onlynameurl{ftp://ftp.lysator.liu.se/pub/sgml}}¡D³o­Ó¤u¨ã´£¨Ñ³\¦h SGML ªº¥\¯à¡D
\item §A¥i¥H±H¹q¤l¶l¥ó¨ì
{\ttfamily \onlynameurl{majordomo@via.ecp.fr}} 
¥H°Ñ»P SGML-Tools mailing list¡A¤º®e¼g {\ttfamily subscribe sgml-tools}¡D
Mailing list ªº¦a§}¬O
{\ttfamily \onlynameurl{sgml-tools@via.ecp.fr}}¡D
\item Ãö©ó {\ttfamily LyX} ªº§ó¦h¸ê°T¥i¥H¦b¦¹§ä¨ì¡G
{\ttfamily \nameurl{http://wsiserv.informatik.uni-tuebingen.de/~ettrich/}{LyX WWW Page}}.  {\ttfamily LyX} ¬O¤@­Óµ¹ LaTeX ¥Îªº°ª¶¥¤å¦r³B²z¾¹«eºÝ¡D
¨ã¥b©Ò¨£§Y©Ò±o¬É­±¡A·|¦Û°Ê²£¥Í³\¦h LaTeX ªº¼Ë¦¡¤Î®æ§½¡D
¥i¥H¼W§Ö LaTeX ªº¾Ç²ß¦Ó¥B¨Ï½ÆÂøªº®æ§½ÅÜÂ²³æ¥Bª½±µ¡D
\end{enumerate}


\end{document}
