\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{HOWTO HOWTO  }
\author{×÷Õß: Mark F. Komarinski {\ttfamily \onlynameurl{markk@cgipc.com}}\\ 
 ÒëÕß: ËÕ½­ÎÄ {\ttfamily \onlynameurl{softsprite@yeah.net}}
 }
\date{v0.13, 19 September 1999  ·­ÒëÈÕÆÚ: 09 Feb 1998}
\abstract{³ÉÎªÒ»¸öÐÂµÄ LDP ×÷Õß£¬ÕÆÎÕ LDP Ê¹ÓÃµÄ¹¤¾ß¡¢Ë¼Â·ºÍÔ¼¶¨¡£ }


\begin{document}
\maketitle
\tableofcontents

\section{¸ÅÊö\label{Introduction}
 }


\subsection{ÀúÊ·\label{History}
 }

±¾ÎÄÊÇ1999Äê8ÔÂ26ÈÕ Mark F. Komarinski \nameurl{mailto:markk@cgipc.com}{markk@cgipc.com} ÔÚ»¨·ÑÁËÁ½ÌìÕÒÑ°¹¤¾ßµÄ´ú¼Ûáá¿ªÊ¼Ð´×÷µÄ¡£Èç¹ûÈÎºÎÒ»¸ö LDP ×÷ÕßÄÜ´ÓÖÐµÃµ½°ïÖú£¬ÎÒ¾Í´ïµ½ÎÒµÄÔ¸ÍûÁË¡£


\subsection{ÐÂ°æ±¾ }

±¾ÎÄµÄ×îÐÂ°æ±¾¿ÉÒÔÔÚÎÒµÄÖ÷Ò³ \nameurl{http://www.cgipc.com/~markk}{http://www.cgipc.com/\~{}markk} ÕÒµ½ SGML Ô´ÎÄ¼þ¡£
ÆäËü²»Í¬¸ñÊ½µÄ°æ±¾¿ÉÒÔÔÚ LDP Ö÷Ò³ \nameurl{http://www.linuxdoc.org/}{http://www.linuxdoc.org/} ÕÒµ½¡£


\subsubsection{°æ±¾ÀúÊ·}

v0.25, 20 September 1999

\begin{itemize}
\item ÐÞ¸´ÁËÒ»Ð©¶Ï¿ªµÄÁ´½Ó
\item ÎªÐÂ×÷ÕßÔö¼ÓÕÂ½Ú
\item ´Ó×î³õ·¢ÐÐ°æ±¾Ôö¼ÓÒ»Ð©ÔÓÏîÐÞ¸Ä
\item Ôö¼Ó°æÈ¨ËµÃ÷È¡´úÒÔÇ°µÄ URL Á´½Ó
\end{itemize}


 v0.12, 2 September 1999
\begin{itemize}
\item Íê³É´ó¶àÊýÕÂ½Ú
\item ÌÖÂÛÁÐ±íµÄ×ÛºÏÐÞ¸Ä
\end{itemize}


 
v0.10, 27 August 1999
\begin{itemize}
\item Got up to section 3.4 written
\item Added to the outline some
\item Changed location of LDP mailing list to lists.debian.org from thepuffingroup.com.
\end{itemize}


v0.01, 27 August 27 1999
\begin{itemize}
\item ³õ²½Íê³É£¬ÉÏ´«Ö÷Ò³£¬¼òµ¥´ó¸ÙÐ´×÷
\item Take some of what I wrote with a grain of salt. Some things need to be
verified.
\end{itemize}



\subsection{°æÈ¨ºÍÉÌ±ê }

(c) 1999 Mark F. Komarinski

±¾Ö¸ÄÏ¿ÉÒÔ±»È«²¿»ò²¿·Ö¸´ÖÆ£¬²»ÐèÒª¸¶·Ñ£¬±ØÐë½ÓÊÜÒÔÏÂÏÞÖÆ£º

\begin{itemize}
\item The copyright notice above and this permission notice must be preserved
complete on all complete or partial copies
\item Any translation or derived work must be approved by the author in writing
before distribution.
\item If you distribute this work in part, instructions for obtaining the complete
version of this manual must be included, and a means for obtaining a complete
version provided.
\item Small portions may be reproduced as illustrations for reviews or quotes
in other works without this permission notice if proper citation is given.
\end{itemize}


Exceptions to these rules may be granted for academic purposes: Write to
the author and ask. These restrictions are here to protect us as authors, not
to restrict you as learners and educators. All source code in this document
is placed under the GNU General Public License, available via anonymous FTP
from \nameurl{ftp://prep.ai.mit.edu/pub/GNU/COPYING}{the GNU archive site}.


\subsection{¸ÐÐ» }

¸ÐÐ»ËùÓÐÔÚÎÒÐ´×÷¹ý³ÌÖÐ¸øÓèÎÒ°ïÖúµÄÈË£¬°üÀ¨ Deb Richardson ºÍ Daniel Barlow ÒÔ¼° LDP ÌÖÂÛÁÐ±íÉÏµÄÆäËüÈË¡£

²¿·ÖÕÂ½ÚÎÒÈ¡×Ô HOWTO Index ºÍ sgmltools ÎÄµµ¡£ÔÚ±¾ÎÄµÄÆäËü²¿·ÖÓÐÖ¸Ã÷µ½ºÎ´¦È¡µÃ sgmltools ºÍ LDP¡£


\section{LDP ºÍ SGML ±³¾°×ÊÁÏ }


\subsection{LDP
 }

Linux ÎÄµµ¼Æ»® (LDP) ÊÇÓÃÀ´Ìá¹©¸øÐÂÓÃ»§ÒÔ¿ìËÙÈ¡µÃÄ³¸öÏêÏ¸Ö÷ÌâÏà¹ØÐÅÏ¢¡£Ëü²¢²»½ö½ö°üº¬Ò»ÏµÁÐ¹Øì¶¹ÜÀí¡¢ÍøÂç¡¢±à³ÌµÈµÄÊé¼®£¬¶øÊÇ°üÈÝÁË´óÁ¿µÄÓÉÊ¹ÓÃ¹ýµÄÈËÊéÐ´µÄ¹Øì¶Ä³¸ö¸ö±ðÖ÷ÌâµÄ½â¾ö·½·¨¡£Èç¹ûÄãÏë²éÕÒ¹Øì¶´òÓ¡µÄ×ÊÁÏ£¬Äã¿ÉÒÔ²éÔÄ Printing HOWTO¡£Èç¹ûÄãÏë²éÕÒ¹Øì¶ÍøÂçµÄ×ÊÁÏ£¬Äã¿ÉÒÔ²éÔÄ Ethernet HOWTO£¬µÈµÈ¡£

¸Õ¿ªÊ¼£¬Ðí¶àÕâÐ©ÎÄµµÊÇÎÄ±¾»ò HTML ¸ñÊ½¡£ËæÖøÊ±¼äµÄÍÆÒÆ£¬±ØÐëÕÒ³öÒ»¸ö¹ÜÀíÕâÐ©ÎÄµµµÄºÃ·½·¨¡£Ò»ÖÖÄÜÈÃÄã´Ó Web ÍøÒ³ÉÏÔÄ¶Á¡¢´Ó¹âÅÌµÄÎÄ±¾ÎÄ¼þÔÄ¶Á£¬ÉõÖÁ´ÓÄãµÄ¸öÈËÊý×ÖÖúÀíÉÏÔÄ¶ÁµÄ·½·¨¡£´ð°¸ÒÑ¾­ÓÐÁË£¬¾ÍÊÇ SGML¡£


\subsection{SGML
 }

Standard Generalized Markup Language (SGML) ÊÇÒ»ÖÖ»ùì¶¼ÇºÅÎÄ±¾µÄÓïÑÔ¡£ÔÚÕâ·½Ãæ£¬ËüÀàËÆì¶ Tex »òÕß groff »òÕß HTML¡£
SGML µÄÇ¿´óÖ®ÔÚì¶Ëü²»Ïó WYSIWYG (Ëù¼û¼´ËùµÃ)ÄÇÑù£¬Äã²»ÐèÒª¶¨ÒåÏóÑÕÉ«¡¢×ÖÌåµÈ¸ñÊ½£¬ÄãÖ»Ðè¶¨ÒåÔªËØ(¶ÎÂä¡¢ÕÂ½Ú¡¢±àºÅÁÐ±í)¶ø
ÈÃ×îÖÕ´¦Àí³ÌÐòÀ´´¦ÀíÏóÎ»ÖÃ¡¢ÑÕÉ«¡¢×ÖÌåµÈ·³ÐÄµÄÊÂÇé¡£HTML Ò²ÊÇÕâ÷á×öµÄ£¬Êµ¼ÊÉÏËüÊÇ SGML µÄÒ»¸ö×Ó¼¯¡£

SGML °üº¬Á½²¿·Ö¡£Ê×ÏÈÊÇÒ»¸ö³ÆÎª DTD (»ò³ÆÎªÎÄµµÀàÐÍ¶¨Òå Document Type Definition) µÄ½á¹¹¡£
DTD ¶¨ÒåÃ¿Ò»¸öÔªËØÖ®¼äµÄ¹ØÏµ¡£The LinuxDoc DTD, used to create this document, is an example of this. 
DTD ÎªÃ¿Ò»¸öÊ¹ÓÃ DTD ´´½¨µÄÎÄµµÒ»¸öÍ¨ÓÃµÄÊÓ¾õºÍ¸Ð¾õÐ§¹û¡£Æä´ÎÊÇÄÚÈÝ(content)£¬¾ÍÊÇ½«ÒªÓÉ SGML ´¦ÀíÆ÷´¦Àí²¢±»ÓÃ»§ÔÄ¶ÁµÄ²¿·Ö¡£±¾¶ÎÂä¾ÍÊÇÄÚÈÝ£¬µ«Ò²¿ÉÒÔ°üº¬Í¼Ïñ¡¢±í¸ñ¡¢±àºÅÁÐ±íµÈµÈ¡£ÄÚÈÝ±»±ê¼Ç(tag)°üÎ§ÓÃÀ´·Ö¿ª²»Í¬µÄÔªËØ¡£

ËæÖøÊ±¼äµÄÍÆÒÆ£¬LinuxDoc DTD ½«±» DocBook DTD ËùÈ¡´ú£¬ÎªÆäËüµÄ SGML ÎÄµµÌá¹©Ò»¸öÍ³Ò»µÄÊÓ¾õºÍ¸Ð¾õÐ§¹û¡£
Èç¹ûÊµÏÖÁËÕâÒ»²½£¬ÎÒÃÇ½«Í¨¹ý±¾ HOWTO »òÕßÓÊ¼þÁÐ±íÎªÄãÉý¼¶¡£
LinuxDoc ºÍ DocBook Ö®¼ä×î´óµÄ²»Í¬ÔÚì¶ DocBook ·ÖÅä±ê¼Ç¸ø²»Í¬ÀàÐÍµÄÄÚÈÝ(¾ÍÏóÃüÁî¡¢ÎÄ¼þÃû¡¢µØÖ·Ä¿Â¼µÈµÈ)£¬¶ø LinuxDoc ·ÖÅä±ê¼Ç»ùì¶ÎÄ±¾½«ÒªÏÔÊ¾µÄ·½Ê½(±ÈÈçÄã¿ÉÒÔ·ÖÅäÇ¿µ÷»ò´ò×Ö)


\subsubsection{ÎªÊ²÷áÓÃ SGML È¡´ú HTML »òÆäËü¸ñÊ½£¿ }

SGML Ìá¹©µÄ²»½ö½öÊÇ¸ñÊ½¡£Äã¿ÉÒÔ×Ô¶¯½¨Á¢Ë÷Òý¡¢ÄÚÈÝ±íÒÔ¼°ÎÄµµÖÐµÄÁ´½Ó»òÕßÊÇ´ó¸Ù¡£sgmltools °üÒ²¿ÉÒÔÈÃÄãÊä³ö LaTeX ¡¢ info ¡¢ text ¡¢ HTML ºÍ RTF¡£´ÓÕâÐ©»ù±¾¸ñÊ½£¬Äã¿ÉÒÔ´´½¨ÆäËü¸ñÊ½ÎÄµµ(DOC¡¢PostScriptµÈµÈ)¡£SGML ²»»áÏó HTML ÄÇÑùÈß³¤¡£ÎÒ²»ÈÏÎªÄãºÜ¿ì»áÔÚ SGML ÖÐ¿´µ½ÉÁÁÁµÄ±ê¼Ç¡£ÕâÓÐÖúì¶±àÂë²»½ö½öÒ×ì¶´¦Àí£¬¶øÇÒÒ×ì¶ÊéÐ´¡£Ïó LyX (ÎÒÖÁ½ñÊ¹ÓÃµÄËù¼û¼´ËùµÃ±à¼­Æ÷)ÕâÑùµÄÈí¼þ¿ÉÒÔ°ïÖúÄãÊéÐ´ TeX¸ñÊ½ÎÄµµ²¢Êä³ö³É SGML ¸ñÊ½£¬È»ááÄã¾Í¿ÉÒÔ´Ó SGML Éú³ÉÈÎºÎÄãÐèÒªµÄ¸ñÊ½¡£

×îáá£¬SGML ¸ü×¢ÖØÔªËØµÄ¹¤×÷ÐÔÄÜ¶ø²»ÊÇÔªËØµÄÏÔÊ¾¡£ÕâÊÇÒ»¸öÏÔÖøµÄÌØÐÔ£¬ÓÐÖúÄã¸ü¿ìµØÊéÐ´£¬ÒòÎªÄã²»±Ø¹ØÐÄ¶ÎÂäµÄÎ»ÖÃ¡¢×ÖÌå´óÐ¡µÈµÈ¡£


\subsection{¹¤¾ß }

ÔÚ±¾ÕÂ½Ú£¬ÎÒ½«½éÉÜÒ»Ð©ÓÃÀ´´´½¨Äã×ÔÒÑµÄ LDP ÎÄµµµÄ¹¤¾ß¡£ÎÒ½«ÏÈ¼òµ¥½éÉÜ£¬È»ááÏêÏ¸ËµÃ÷£¬°üÀ¨ÈçºÎ°²×°ËüÃÇ¡£Èç¹ûÄãÊ¹ÓÃÆäËüµÄÒ»Ð©¹¤¾ßÀ´ÊéÐ´ LDP£¬Çë¸æËßÎÒ£¬ÎÒ»áÔÚÕâÀïÎªËüÃÇ×ö¹ã¸æµÄ¡£




\subsubsection{sgmltools
 }

±Ø±¸

sgmltools °ü°üº¬ÓÃÀ´´¦Àí SGML ³ÉÒÔÉÏËùËµ¸ñÊ½µÄ SGML ¹¤¾ß¡£ËüÒ²°üº¬´´½¨ LDP ÎÄµµËùÐèµÄ LinuxDoc DTD¡£Èç¹ûÖ»´´½¨ SGML ÎÄµµ£¬ÕâÐ©ÒÑ¾­×ã¹»ÁË¡£Èç¹ûÄãÏë´¦Àí³É±ÈÈç TeX ¸ñÊ½£¬Äã»¹ÐèÒªÒ»Ð©¹¤¾ß°ü¡£sgmltools °üÔÚÄãµÄ linux ·¢ÐÐ°æ±¾ÖÐ¿ÉÒÔÕÒµ½£¬»òÕßµ½ \nameurl{http://www.sgmltools.org/}{http://www.sgmltools.org/} ÏÂÔØ¡£


\subsubsection{TeX
 }

¿ÉÑ¡

TeX (rhymes with blech!) ÊÇÒ»ÖÖ¿É¹©¹ã·ºÑ¡ÔñµÄ±ê¼ÇÓïÑÔ£¬ÉõÖÁ°üÀ¨ÄÇÐ©ÊýÑ§ÊÀ½çÖÐµÄÈËÃÇ¡£
ÎÒ»¹¼ÇµÃÐí¶àÎ¢»ý·Ö¿¼ÊÔÊÇÓÉ TeX Ð´³ÉµÄ¡£ËüÒ²ÊÇÖÁ½ñÈÔÔÚÊ¹ÓÃµÄ×îÔçµÄ±ê¼ÇÓïÑÔÖ®Ò»¡£
TeX Êµ¼ÊÉÏºÍ SGML ¾ß±¸Ðí¶àÍ¬ÑùµÄ¸ÅÄî¡£TeX ´¦ÀíËüµÄÎÄ¼þ³É DVI (Éè±¸ÎÞ¹Ø)´Ó¶ø¿ÉÄÜ´¦Àí³ÉÆäËü¸ñÊ½¡£
²»ÐÒµÄÊÇ£¬DVI²»ÄÜÈÝÒ×µØ×ª»»³É´òÓ¡ÓïÑÔ(PostScript¡¢PCL)ÒÔÍâµÄÆäËü¸ñÊ½£¬ºÜÄÑÉú³É HTML¡£
TeX ÔÚ¶àÊý Linux ·¢ÐÐ°æ±¾ÖÐ¶¼ÒÑ°²×°»ò±»Ìá¹©¡£


\subsubsection{LyX
 }

¿ÉÑ¡

LyX ³ÌÐòÊÇÒ»¸öÍ¼ÐÎ»¯Ëù¼û¼´ËùµÃÈí¼þ£¬Ìá¹©·Ç³£±ØÐèµÄÒ×ÓÃÍ¼ÐÎÓ¦ÓÃÓë SGML ´¦ÀíÆ÷Ö®¼äµÄÁªÏµ¡£LyXÊÇÓÃì¶ÊéÐ´ TeX ÎÄµµ£¬ÊµÏÖÁËÐí¶à TeX ¹æÔò¡£¾Ù¸öÀý×Ó£¬µ±ÕÂ½Ú±»×Ô¶¯±àºÅ£¬ÄãÎÞ·¨ÇáÒ×µØ²åÈë¿Õ¸ñ¡£Õâ±» TeX Éè¼Æ³É½ûÖ¹¡£¶ø SGML Í¨³£ºöÂÔÍ¬ÑùµÄ¿Õ¸ñ¡£LyXÄÜ¹»¶ÁÈë LinuxDoc DTD ²¢ÇÒÌá¹©ÎÄµµÄ£°åÒÔ°ïÖúÄãÓÃÏ°¹ßµÄ·½Ê½´´½¨ÄãµÄ LDP ÎÄµµ£¬¶ø²»ÐèÒªÏó vi ÄÇÑùÒª¼Ç×¡Ðí¶à±ê¼Ç¡£ LyX ¿ÉÒÔÔÚ \nameurl{http://www.lyx.org/}{http://www.lyx.org/} ÕÒµ½¡£

ÔÚ KDE ÖÐÓÐÒ»¸öÊ¹ÓÃ Qt ¿âµÄ LyX¡£
Äã¿ÉÒÔ´ÓÒÔÏÂµØÖ·µÃµ½¸ü¶àÐÅÏ¢£º\nameurl{http://www.devel.lyx.org/~ettrich/klyx.html}{http://www.devel.lyx.org/\~{}ettrich/klyx.html}¡£
Èç¹ûÄãÊ¹ÓÃ KLyX À´Ð´ SGML £¬ÇëÍ¨¹ý \nameurl{mailto:markk@cgipc.com}{ÓÊ¼þ} ¸æËßÎÒÄãµÄÊ¹ÓÃ¾­Ñé¡£


\section{ÈÃÎÒÃÇ¿ªÊ¼ }

±¾ÕÂ½ÚÏÔÊ¾ÈçºÎ»ñÈ¡¹Øì¶ÈçºÎÊéÐ´Äã×Ô¼ºµÄ LDP ÎÄµµµÄÐÅÏ¢¡£»ñÈ¡²¢°²×°¹¤¾ß£¬Óë LDP ÁªÏµ£¬´ÓÄÇÀïÏòËùÓÐ Linux ÓÃ»§·¢²¼ÄãËùÕÆÎÕµÄÖªÊ¶¡£


\subsection{Ð´¸øÐÂ×÷Õß }

Èç¹ûÄã¸Õ¸ÕÁË½â LDP ²¢ÇÒÏëÒªÑ¡ÔñÒ»¸öÃ»ÈËÎ¬»¤µÄ HOWTO »òÕßÏëÐ´Ò»¸öÐÂµÄ HOWTO »òÕß mini-HOWTO ÎÄµµ£¬ÇëÁªÏµ \nameurl{mailto:linux-howto@metalab.unc.edu}{linux-howto@metalab.unc.edu} ¡£

Õâ½«ÈÃ HOWTO Ð­µ÷ÈËÕÆÎÕË­ÔÚÎ¬»¤ÄÄÆªÎÄµµ¡£Í¬Ê±Òª×¢ÒâËùÓÐµÄ HOWTO ¶¼Ê¹ÓÃ SGML ¸ñÊ½(µ±Ç°Ê¹ÓÃ LinuxDoc DTD)¡£mini-HOWTO Ê¹ÓÃ SGML »òÕß HTML ¸ñÊ½£¬µ«Ö»ÓÐ SGML ¸ñÊ½½«±»°üº¬½ø HOWTO µÄ´òÓ¡°æ±¾ÖÐ¡£


\subsection{ÓÊ¼þÁÐ±í }

ÓÐÒ»Ð©ÓÊ¼þÁÐ±í¿ÉÒÔ¶©ÔÄÒÔÈÃÄãÁË½â LDP Ä¿Ç°¹¤×÷Çé¿ö¡£Ê×ÏÈÊÇ \nameurl{mailto:ldp-discuss@lists.linuxdoc.org}{ldp-discuss@lists.linuxdoc.org}£¬ÕâÊÇ LDP µÄÖ÷ÒªÌÖÂÛ×é¡£Èç¹ûÒª¶©ÔÄ£¬·¢ËÍÖ÷ÌâÎª "subscribe" µÄÓÊ¼þµ½ \nameurl{mailto:ldp-discuss-request@lists.linuxdoc.org}{ldp-discuss-request@lists.linuxdoc.org}¡£ÍË¶©Ôò·¢ËÍÖ÷ÌâÎª "unsubscribe" µÄÓÊ¼þµ½ \nameurl{mailto:ldp-discuss-request@lists.linuxdoc.org}{ldp-discuss-request@lists.linuxdoc.org}¡£


\subsection{ÏÂÔØ²¢°²×°¹¤¾ß\label{tools}
 }


\subsubsection{sgmltools
 }

´Ó \nameurl{http://www.sgmltools.org/}{http://www.sgmltools.org/}ÏÂÔØ sgmltools °ü£¬»òÕßÖ±½Ó´ÓÄãµÄ Linux ·¢ÐÐ°æ±¾ÖÐÈ¡µÃ¡£´Ó sgmltools.org È¡µÃµÄÈí¼þÊÇÔ´Âë¸ñÊ½£¬Òò´ËÄã±ØÐëÔÚÄãµÄ»úÆ÷ÉÏ±àÒëÕâÐ©Ô´Âë¡£´ÓÄãµÄ Linux ·¢ÐÐ°æ±¾ÖÐÈ¡µÃµÄÔ¤½¨Á¢ºÃµÄ°ü¸üÈÝÒ×Ð©£¬Äã¿ÉÒÔ²»ÓÃ±àÒë¶øÖ±½Ó¿ªÊ¼±à¼­¹¤×÷¡£(ÌØ±ðÊÇÈç¹ûÄã²»ÊÇÒ»¸ö³ÌÐòÔ±)

RedHat ÖÐ°üº¬ sgmltools¡£ Èç¹ûÃ»ÓÐ£¬Äã¿ÉÒÔ´Ó ftp.redhat.com »òÕßÆäËü¾µÏñÕ¾µãÏÂÔØ¡£

Èç¹ûÄãÊ¹ÓÃ Debian£¬ÔÚ±ê×¼·¢ÐÐ°æ±¾ÖÐÒ²°üº¬ sgmltools ¡£Èç¹ûÄãÃ»ÓÐÒÑ°²×°µÄ°ü£¬Äã¿ÉÒÔÊ¹ÓÃ apt-get ÃüÁîÏÂÔØ²¢°²×°£º

\par
\addvspace{\medskipamount}
\nopagebreak\hrule
\begin{verbatim}
# apt-get install sgml-tools
 
\end{verbatim} 
\nopagebreak\hrule 
\addvspace{\medskipamount}


ÒªÁË½â¸ü¶à¹Øì¶ Debian °üµÄÐÅÏ¢£¬Äã¿ÉÒÔ²éÔÄ \nameurl{http://www.debian.org/Packages/stable/text/sgml-tools.html}{http://www.debian.org/Packages/stable/text/sgml-tools.html}

Èç¹û´ÓÔ´Âë±àÒë£¬ËùÓÐÄãÐèÒª×öµÄÊÇ£º

\begin{verbatim}
# tar -zxvf sgmltools-x.x.x.tar.gz
# cd sgmltools-x.x.x
# ./configure
# make
# make install

 
\end{verbatim}


Ìæ»» {\ttfamily sgmltools-x.x.x} ³ÉÄãµ±Ç° sgmltools µÄ°æ±¾ºÅ¡£Ö§³Ö LinuxDoc µÄµ±Ç°°æ±¾ºÅÊÇ 1.0.9¡£Ö§³Ö DocBook µÄµ±Ç°°æ±¾ºÅÊÇ 2.0.2¡£Á½ÕßÔÚÒÔÉÏËùÊöÕ¾µãÖÐ¶¼¿ÉÒÔÕÒµ½¡£

Ò»µ©¹¤¾ß°²×°ºÃáá£¬Äã¾Í¿ÉÒÔÊ¹ÓÃºÜ¶àÃüÁîÁË¡£

{\ttfamily sgmlcheck file.sgml}- ¼ì²é¸ø¶¨ÎÄµµµÄ¾ä·¨¡£

{\ttfamily sgml2html file.sgml}- ×ª»» SGML ÎÄ¼þ³É HTML¡£ ´´½¨Ò»¸öÃûÎª {\ttfamily file.html} µÄÎÄ¼þ°üº¬ÄÚÈÝ±í£¬È»áá´´½¨Ò»ÏµÁÐÃûÎª {\ttfamily file-x.html} µÄÎÄ¼þ£¬ÕâÀï {\ttfamily x} ÊÇÕÂ½ÚºÅ¡£

{\ttfamily sgml2rtf file.sgml}- ×ª»» SGML ÎÄ¼þ³É Rich Text Format (RTF)¡£´´½¨Á½¸öÎÄ¼þ£¬µÚÒ»¸öÊÇ {\ttfamily file.rtf} °üº¬ TOC£¬ÒÔ¼° {\ttfamily file-0.rtf} °üº¬ËùÓÐµÄÕÂ½Ú¡£

{\ttfamily sgml2txt file.sgml}- ×ª»» SGML ÎÄ¼þ³É ASCII ÎÄ±¾¡£ËùÓÐÄÚÈÝ·ÅÔÚ {\ttfamily file.txt}ÖÐ¡£

{\ttfamily sgml2info file.sgml}- Blah SGML blah INFO, ÄÜ±» info ÃüÁîÊ¹ÓÃ¡£ËùÓÐµÄÊä³ö´«ËÍµ½ {\ttfamily file.info}¡£

{\ttfamily sgml2latex file.sgml}- Blah SGML blah TeX.

{\ttfamily sgml2lyx file.sgml}- SGML yadda LyX graphical editor. This is great if you
have pre-generated SGML files and want to convert them for use in LyX.


\subsection{ÊÖ¹¤ÊéÐ´ SGML  }

·Ç³£Ïó HTML£¬Äã¿ÉÒÔÊÖ¹¤ÊéÐ´ SGML , Ö»ÒªÄãÕÆÎÕÁËËùÓÐÐèÒªÊ¹ÓÃµÄ±ê¼Ç´úÂë±¾ÕÂ½Ú½«½²Êö¾¡¿ÉÄÜ¶àµÄÕâÐ©´úÂë£¬²¢ÎªÃ¿Ò»¸öÌá¹©Àý×Ó¡£¿ªÊ¼µÄ×îºÃµÄµØ·½¾ÍÊÇ±¾ÎÄµÄÔ´Âë£¬¿ÉÒÔ´ÓÕâÀï¿´¿´£º \ref{Introduction} {(Introduction)}. 
ÒòÎª SGML µÄ´¦Àí·½Ê½ÒÀÀµì¶ÎÄ¼þ¸ñÊ½µÄ²»Í¬¶ø²»Í¬£¬ÎÒ½«¾¡¿ÉÄÜËµÃ÷ÔÚÎÄ¼þÐ´×÷ÖÐÓ¦¸ÃÖªµÀµÄÊÂÇé¡£


\subsubsection{³ö·¢ }

ÏÖÔÚ¿ªÊ¼Ð´×÷ÁË£¬Ê×ÏÈÓÃÄãÏ²°®µÄ±à¼­Æ÷´´½¨Ò»¸öÐÂÎÄ¼þ£¬ÎÄ¼þµÄ¿ªÍ·ÈçÏÂ£º

\begin{verbatim}
<!doctype linuxdoc system>
 
\end{verbatim}


Õâ½«¶¨Òå SGML ´¦ÀíÊä³öÎÄ¼þÊ±Ê¹ÓÃµÄÎÄµµÀàÐÍ(ÎÒÃÇÕâ¸öÀý×ÓÊ¹ÓÃ LinuxDoc)¡£Õâ¸ö±ê¼Ç±¾Éí²»²úÉúÈÎºÎÊä³ö¡£

½ÓÏÂÀ´ÄãÐèÒª°ÑÄãÆäÓàµÄÄÚÈÝ°üº¬ÔÚ±ê¼Ç {\ttfamily $<$article$>$} ºÍ {\ttfamily $<$/article$>$} Ö®ÖÐ¡£ÕâÒâÎ¶ÖøÄÚÈÝµÄ¿ªÊ¼¡£Èç¹ûÄãÊìÏ¤ HTML µÄ»°£¬ÕâÀàËÆì¶½«ËùÓÐÄÚÈÝ°üº¬ÔÚ±ê¼Ç {\ttfamily $<$html$>$} ºÍ {\ttfamily $<$/html$>$} Ö®¼ä¡£


\subsubsection{Í·²¿ÐÅÏ¢Header information
 }

ÄÚÈÝµÄµÚÒ»²¿·ÖÓ¦¸Ã°üº¬ÄÚÈÝÆäÓà²¿·ÖµÄ¸ÅÀ¨ÐÅÏ¢¡£ÕâÀàËÆì¶Ò»±¾ÊéµÄÍ·¼¸Ò³£¬ÄÇÀïÓÐ±êÌâÒ³(Êé±¾µÄ±êÌâ¡¢×÷Õß¡¢³ö°æÈÕÆÚ¡¢ÄÚÈÝÄ¿Â¼µÈµÈ)¡£

ÄÚÈÝµÄ±êÌâ°üº¬ÔÚ±ê¼Ç {\ttfamily $<$title$>$} ºÍ {\ttfamily $<$/title$>$} Ö®¼ä¡£×÷Õß°üº¬ÔÚ±ê¼Ç {\ttfamily $<$author$>$} ºÍ {\ttfamily $<$/author$>$} Ö®¼ä¡£ÈÕÆÚÔòÊ¹ÓÃ±ê¼Ç {\ttfamily $<$date$>$} ºÍ {\ttfamily $<$/date$>$} ¡£ 

ÓÐÁ½¸ö±£ÁôµÄÕÂ½ÚÊÇ£º {\ttfamily $<$abstract$>$} ºÍ {\ttfamily $<$/abstract$>$} ±ê¼ÇÃèÊöÄÚÈÝÕªÒª£»{\ttfamily $<$toc$>$} ±ê¼ÇÖ¸³öÄÚÈÝÄ¿Â¼µÄÎ»ÖÃ¡£ÄÚÈÝÄ¿Â¼(TOC)ÊÇÓÉ SGML ×Ô¶¯Éú³ÉµÄ¡£ÎÒÃÇááÃæ½«ÒýÈëÕÂ½Ú¡£

ÏÖÔÚÎÒÃÇËù×öµÄÒ»ÇÐ¿´ÆðÀ´ÊÇÊ²÷áÑù×ÓÄØ£¿°Ñ¸Õ²ÅËµ¹ýµÄ SGML ´úÂë×éºÏÆðÀ´£¬¾ÍÏó£º

\begin{verbatim}
<!doctype linuxdoc system>
<!-- LinuxDoc file was created by LyX 1.0 (C) 1995-1999 by <markk>
 Fri Aug 27 09:42:28 1999 -->
<article>
<title>HOWTO HOWTO
</title>
<author>Mark F. Komarinski
</author> 
<date>Aug 27, 1999 
</date> 
<abstract>Getting a new LDP author up and running with tools, ideas,
 and conventions used by the LDP 
</abstract> 
<toc>
 
\end{verbatim}


µ±ÄãÊ¹ÓÃ RTF »ò HTML ¸ñÊ½¿´Õâ¶Î´´½¨Ö÷Ò³ÃæµÄÄÚÈÝÊ±£¬ËùÓÐµÄÐÅÏ¢¶¼ÔÚÒ»Ò³ÖÐ¡£


\subsubsection{ÕÂ½Ú(Sections)
 }

ÎªÁË½¨Á¢ÄÚÈÝÄ¿Â¼£¬Äã±ØÐë×öÒ»Ð©±ê¼Ç¡£
ÔÚ SGML ÖÐµÄÕÂ½Ú(Sections)ÀàËÆì¶´«Í³³ö°æÖÐµÄÕÂµÄ¸ÅÄî¡£Äã¿ÉÒÔÓÐ¶à¸öÕÂ½Ú£¬Ã¿¸öÕÂ½Ú¿ÉÒÔÓÐ×ÓÕÂ½Ú£¬×ÓÕÂ½ÚÏÂ»¹¿ÉÒÔÓÐ×ÓÕÂ½Ú¡£

ÔÚÄãµÄÎÄµµÖÐÊ¹ÓÃÕÂ½Ú£¬ÓÐÖúì¶Äã½¨Á¢Ö÷Ìâ´ó¸Ù¡£Äã¿ÉÒÔ½«Ö÷Ìâ·Ö¸ô³É¶à¸öÐ¡ÕÂ½Ú¡£ÎÒÔÚÐ´±¾ÎÄÊ±¾ÍÊÇÕâÑù×öµÄ¡£

ÕÂ½ÚÊÇ SGML ÖÐÉÙÊý¼¸¸ö²»ÐèÒª³É¶Ô³öÏÖµÄ±ê¼Ç¡£Ò²¾ÍÊÇËµ£¬Ã»ÓÐ {\ttfamily $<$/sect$>$} ±ê¼Ç¡£ Äã²»ÓÃ¹Øì¶ÕÂ½ÚµÄ±àºÅ£¬SGML ÔÚÊä³ö³ÉÆäËü¸ñÊ½Ê±»á×Ô¶¯´¦ÀíµÄ¡£

ÕÂ½ÚÊÇÊ¹ÓÃ {\ttfamily $<$sect$>$} ±ê¼Ç×÷Îª¿ªÊ¼µÄ¡£Ã¿Ò»¸öÐÂÕÂ½Ú¿ªÊ¼ì¶Ò»¸ö {\ttfamily $<$sect$>$} ±ê¼Ç¡£ µÚÒ»¸öÕÂ½Ú±»±àºÅÎª 1¡£

´´½¨×ÓÕÂ½Ú (±ÈÈç 1.1) ¿ÉÒÔÊ¹ÓÃ {\ttfamily $<$sect1$>$} ±ê¼Ç¡£ËüÒ²´Ó 1 ¿ªÊ¼±àºÅ¡£

×ÓÕÂ½Ú (1.1.1) Ê¹ÓÃ {\ttfamily $<$sect2$>$} ±ê¼Ç£¬²¢ÇÒËüÒ²´Ó 1 ¿ªÊ¼±àºÅ¡£

µ± SGML ´¦ÀíÆ÷´¦Àíµ½ {\ttfamily $<$toc$>$} ±ê¼ÇÊ±£¬Ëü¿ªÊ¼É¨ÃèÎÄµµµÄÆäÓà²¿·Ö£¬ÀûÓÃÆäÖÐµÄÕÂ½Ú±ê¼Ç±àºÅ´´½¨ÎÄµµÄ¿Â¼¡£ÕÂ½Ú±»±àºÅÅÅÁÐÔÚÄÚÈÝÄ¿Â¼(TOC)ÖÐ£¬È»áá±»ÎÄµµµÄÆäÓà²¿·ÖÊ¹ÓÃ¡£×ÓÕÂ½Ú (1.1.1) ²¢²»³öÏÖÔÚ TOC ÖÐ£¬µ«Èç¹û¿ÉÄÜµÄ»°»á±»ÖÃ³ÉÇ¿µ÷ÎÄ±¾¸ñÊ½¡£


\subsubsection{±ê×¼¶ÎÂä }

Ð´ÄÚÈÝ¶ÎÂä¾ÍÏó HTMLÒ»Ñù¡£Ê¹ÓÃÒ»¸ö {\ttfamily $<$p$>$} ±ê¼ÇÖ¸Ã÷Ò»¸öÐÂÐÐµÄ¿ªÊ¼¡£SGML »áºöÂÔ TAB¡¢¿Õ¸ñ¡¢¿ÕÐÐ¡£µ± SGML ¼ì²éµ½ {\ttfamily $<$p$>$} ±ê¼ÇÊ±£¬Ëü¿ªÊ¼Ò»¸öÐÂÐÐ¡£·ÅÖÃ {\ttfamily $<$/p$>$} ±ê¼Ç½áÊø¸Ã¶ÎÂä¡£


\subsubsection{ÔöÇ¿ÎÄ±¾ }

ÄãÅ¼¶ø»áÐèÒªÈÃÒ»Ð©ÎÄ±¾Ã÷ÏÔ²»Í¬ì¶ÆäËüÎÄ±¾¡£¿ÉÄÜÊÇ{\itshape ÖØÒª´úÂë\/}»òÕß{\ttfamily ÃüÁîÁÐ±í}¡£Ç¿µ÷ÎÄ±¾¿ÉÒÔÊ¹ÓÃ {\ttfamily $<$em$>$} ºÍ {\ttfamily $<$/em$>$} ±ê¼Ç¡£Ð±Ìå×Ö¿ÉÒÔÊ¹ÓÃ {\ttfamily $<$tt$>$} ºÍ {\ttfamily $<$/tt$>$} ±ê¼Ç¡£


\subsubsection{ÁÐ±í }

ÔÚ SGML ÖÐÓÐÁ½ÖÖÐÎÊ½µÄÁÐ±í¡£µÚÒ»ÖÖÊÇÁÐ¾ÙÁÐ±í£¬´Ó1¿ªÊ¼ÎªÃ¿Ò»¸öÁÐ±íÏî±àºÅ¡£

\begin{enumerate}
\item This is the first entry in the enumerated list.
\item This is the second.
\item Third.
\end{enumerate}


ÒÔÉÏµÄ´úÂëÈçÏÂ£º

\begin{verbatim}
<enum>
<item>This is the first entry in the enumerated list. 
<item>This is the second.
<item>Third.
</enum>

 
\end{verbatim}


{\ttfamily $<$enum$>$} ±ê¼ÇÖ¸³ö½ôËæÆäááµÄÁÐ±íÏîÒª¿ªÊ¼±àºÅ¡£

ÁíÒ»ÖÖÐÎÊ½ÊÇÖðÏîÁÐ±í£¬Ã¿Ò»¸öÁÐ±íÏîÇ°ÃæÖ»·ÅÒ»¸öÐÇ»òÔ²È¦»òµã»òÆäËü¶«Î÷¡£

\begin{itemize}
\item This is the first entry in the itemized list
\item This is the second
\item Third
\end{itemize}


ÒÔÉÏµÄ´úÂëÈçÏÂ£º

\begin{verbatim}
<itemize>
<item>This is the first entry in the itemized list 
<item>This is the second.
<item>Third. 
</itemize>
 
\end{verbatim}


¾ÍÏóÄãËù¿´µ½µÄ£¬{\ttfamily $<$item$>$} ±ê¼ÇÔÚÁ½ÖÖÐÎÊ½ÁÐ±íÖÐ¶¼Ò»Ñù¡£

µÚÈýÖÖÐÎÊ½ÊÇÃèÊöÁÐ±í£¬°üÀ¨±»ÃèÊöµÄÊõÓïÒÔ¼°ÃèÊö¸ÃÊõÓïµÄ¶ÌÓï¡£

\begin{description}
\item[LDP] \mbox{}

The Linux Documentation Project

\item[SGML] \mbox{}

Standard Generalized Markup Language

\end{description}


ÒÔÉÏµÄ´úÂëÈçÏÂ£º

\begin{verbatim}
<descrip>
<tag>LDP</tag>The Linux Documentation Project
<tag>SGML</tag>Standard
 Generalized Markup Language
</descrip>
 
\end{verbatim}


ÕâÖÖÐÎÊ½²»Í¬ì¶Ç°ÃæÁ½ÖÖ£¬Õû¸öÁÐ±í°üº¬ÔÚ±ê¼Ç {\ttfamily $<$descrip$>$} ºÍ {\ttfamily $<$/descrip$>$} ÖÐ£¬Ã¿Ò»ÐÐÖÐµÄÃ¿Ò»Ïî£¬Ò²¾ÍÊÇ¶¨ÒåµÄ¶ÌÓï£¬±»°üº¬ÔÚ {\ttfamily $<$tag$>$} ºÍ {\ttfamily $<$/tag$>$} ÖÐ¡£ÐÐµÄÊ£Óà²¿·ÖÊÇ¶Ô¶ÌÓïµÄ¶¨Òå¡£




\subsubsection{Öð×ÖÎÄ±¾ }

ÓÐÊ±ÄãÐèÒªÍêÈ«ÏÔÊ¾ÄãËùÐ´µÄÄÚÈÝ£¬Äã¿ÉÒÔÊ¹ÓÃ {\ttfamily $<$verb$>$} ºÍ {\ttfamily $<$/verb$>$} ±ê¼ÇÀ´°üº¬¶ÎÂä¡£ÔÚ{\ttfamily $<$/verb$>$} ±ê¼ÇÖ®Ç°µÄ¿Õ¸ñ¡¢»Ø³µÒÔ¼°ÆäËüÎÄ±¾(°üÀ¨ÌØ±ð×Ö·û)¶¼½«±»±£Áô¡£

\begin{verbatim}
ÒÔÏÂ¾ÍÊÇÖð×ÖÎÄ±¾
 
\end{verbatim}



\subsubsection{Í³Ò»×ÊÔ´¶¨Î»(URL)
 }

SGML Ò²ÔÊÐíÍ³Ò»×ÊÔ´¶¨Î»(URL)¡£×¢ÒâÕâÔÚÊä³ö³É HTML ¸ñÊ½Ê±²ÅÓÐÓÃ£¬ÆäËü¸ñÊ½¿ÉÄÜÒ²ÓÐÒ»Ð©ÓÃ£¬±ÈÈçËµ RTF ¸ñÊ½¡£

Ò»¸ö URL Ã»ÓÐ½áÊø±ê¼Ç£¬ËùÓÐÐÅÏ¢¶¼·ÅÔÚ {\ttfamily $<$url$>$} ±ê¼ÇÀïÃæ¡£ÕâÊÇÒ»¸öÖ¸Ïò LDP Ö÷Ò³µÄ URL£º\nameurl{http://www.linuxdoc.org/}{http://www.linuxdoc.org/} ¡£ÒÔÏÂÊÇ´úÂë£º

\begin{verbatim}
<url url="http://www.linuxdoc.org/" name="http://www.linuxdoc.org/">
 
\end{verbatim}


{\ttfamily url={\tt\char`\"}http://www.linuxdoc.org/{\tt\char`\"}} ¸æËßä¯ÀÀÆ÷Ä¿±êµØÖ·£¬¶ø {\ttfamily name}={\ttfamily {\tt\char`\"}http://www.linuxdoc.org/{\tt\char`\"}} Ôò¸æËßä¯ÀÀÆ÷ÈçºÎÏÔÊ¾¡£ÔÚ±¾ÀýÖÐÁ½ÕßÊÇÒ»ÑùµÄ£¬µ«ÎÒ¿ÉÒÔ´´½¨Ò»¸öÈçÏÂµÄ URL ±ê¼Ç£º

\begin{verbatim}
<url url="http://www.linuxdoc.org/" name="LDP">
 
\end{verbatim}


ÔÚÒ³ÃæÉÏµÄÏÔÊ¾¾ÍÏóÕâÑù£º \nameurl{http://www.linuxdoc.org/}{LDP}.


\subsubsection{²Î¿¼(References)
 }

URL ÊÊºÏì¶Á´½Óµ½ LDP ÎÄµµÖ®ÍâµÄÄÚÈÝ£¬µ«²»ÊÊºÏì¶Á´½Óµ½ÎÄµµÄÚÈÝ×ÔÉí¡£ÎªÊµÏÖÕâÒ»¹¦ÄÜ£¬¿ÉÒÔÊ¹ÓÃ {\ttfamily $<$label$>$ } ºÍ {\ttfamily $<$ref$>$} ±ê¼Ç¡£{\ttfamily $<$label$>$} ±ê¼Ç´´½¨Ò»¸ö½«À´ÄÜÌø×ª»ØÀ´µÄ¼ÇºÅ£¬·Ç³£ÏóÒ»¸öÊéÇ©¡£ ´´½¨ {\ttfamily $<$label$>$} ºÜ¼òµ¥¡£ÕÒµ½ÒÔááÐèÒªÌø×ª»ØÀ´µÄÎ»ÖÃ£¬È»áá²åÈëÒÔÏÂ£º

\begin{verbatim}
<label id="Introduction">
 
\end{verbatim}


ÄãÏÖÔÚÒÑ¾­ÔÚÎÄµµÄÚÈÝÖÐ´´½¨ÁËÒ»¸ö¿ÉÒÔÌø×ª»ØÀ´µÄ¼ÇºÅ "Introduction"¡£Õâ¸ö±êÇ©È·Êµ³öÏÖÔÚÎÄµµµÄ¿ªÍ·¡£µ±ÄãÒÔááÐèÒªÌø×ª»ØÀ´Ê±£¬²åÈëÒÔÏÂ£º



\begin{verbatim}
<ref id="Introduction" name="here">
 
\end{verbatim}


SGML ¾ÍÄÜÃ÷°×·ÅÈëÒ»¸ö½Ð "here" µÄÁ´½Ó¿ÉÒÔÌø×ªÖÁ Introduction ÕÂ½ÚµÄÎ»ÖÃ¡£

²Î¿¼µÄÁíÒ»²¿·ÖÊÇË÷Òý (indexing)¡£ÓÉì¶ LDP ÎÄµµ¾­³£ÊÇ´óÁ¿ÎÄµµ£¬±ØÐëÔÚÊéµÄááÃæ½¨Á¢»ùì¶µ¥´ÊºÍÖ÷ÌâµÄË÷Òý¡£




\subsubsection{ÌØÊâ×Ö·û(Special characters)
 }

·Ç³£Ïó HTML£¬Äã±ØÐë±ÜÃâÐí¶à·ÇÎÄ×Ö×Ö·ûÒÔ·ÀÖ¹ SGML ½«Æä½âÊÍ³É SGML ´úÂë¡£ÕâÀïÓÐÒ»¸ö SGML ´úÂëµÄÁÐ±í¡£¸ü¶àµÄ¿ÉÒÔ²éÔÄ sgmltools ÓÃ»§Ö¸ÄÏ£º\nameurl{http://www.sgmltools.org/guide/guide.html}{http://www.sgmltools.org/guide/guide.html}¡£

\begin{itemize}
\item Use \&amp; for the ampersand (\&)
\item Use \&lt; for a left bracket ($<$) 
\item Use \&gt; for a right bracket ($>$) 
\item Use \&etago; for a left bracket with a slash ($<$/) 
\item Use \&dollar; for a dollar sign (\$) 
\item Use \&num; for a hash (\#) 
\item Use \&percnt; for a percent (\%) 
\item Use \&tilde; for a tilde (\~{}) 
\item Use `` and '' for quotes, or use \&dquot for {\tt\char`\"} 
\item Use \&shy; for a soft hyphen (that is, an indication that this is a
good place to break a word for horizontal justification).
\end{itemize}



\subsection{Ê¹ÓÃÆäËü¹¤¾ßÊéÐ´ SGML  }


\subsubsection{LyX
 }

ÎÒÒ»Ö±Ê®·ÖÏ²°® LyX£¬Òò´ËÎÒÆ«°®Õâ¸öÈí¼þ¡£ËüÌá¹©³£¹æ×Ö´¦ÀíÆ÷Ò×ì¶Ê¹ÓÃµÄ·½Ê½ÊéÐ´ SGML¡£Ëü²»ÊÇÒ»¸öËù¼û¼´ËùµÃ³ÌÐò£¬¶øÊÇËùµÃ¼´ËùÏëÓ¦ÓÃ¡£

ÒªÓÃ LyX ´´½¨Ò»¸ö LinuxDoc ÎÄµµ£¬ÏÂÔØ²¢°²×°Ó¦ÓÃ³ÌÐò¡£È·±£ÄãÒÑ°²×° TeX ºÍ sgmltools (²Î¼û \ref{tools} {(°²×°¹¤¾ß)} )¡£È»ááÆô¶¯ LyX ²¢ÇÒÑ¡Ôñ "file-$>$new from template..."¡£Ñ¡Ôñ "Templates" È»ááµã»÷ {\ttfamily linuxdoctemplate.lyx} £¬ÕâÑùÄã½«µÃµ½Ò»¸ö´ø LDP ÎÄµµÍ·ÐÅÏ¢µÄÎÄµµÄ£°å¡£¸ü¸ÄºÏÊÊÄãµÄÊý¾Ý(Ò²¾ÍÊÇ£¬ÌîÐ´±êÌâ¡¢×÷Õß¡¢ÈÕÆÚ¡¢ÕªÒªµÈµÈ)£¬È»áá¿ªÊ¼Ð´×÷¡£×óÉÏ½ÇµÄÏÂÀ­²Ëµ¥¿ÉÒÔÓÃÀ´Ñ¡ÔñÄÚÈÝµÄÀàÐÍ(±ê×¼¡¢ÁÐ±í¡¢ÕÂ½Ú)¡£¸ÐÌ¾ºÅÓÃÀ´Ç¿µ÷ÎÄ±¾¡£Äã¼È¿ÉÒÔµã»÷Ëü½øÈëÇ¿µ÷Ä£Ê½£¬Ò²¿ÉÒÔÓÃÊó±ê¸ßÁÁÑ¡ÔñÎÄ±¾ÔÙµã»÷Ëü£¬½«Ñ¡ÔñµÄÎÄ±¾ÖÃÎªÇ¿µ÷ÎÄ±¾¡£Ðí¶àÆäËüµÄ SGML ÌØÐÔ¿ÉÒÔÔÚ Insert ²Ëµ¥ÌõÖÐÕÒµ½¡£ Äã¿ÉÒÔ²åÈë URL¡¢½»²æ²Î¿¼¡¢Ë÷ÒýÒÔ¼°ÆäËüÀàÐÍµÄÊý¾Ý¡£µ±Íê³ÉÄãµÄÎÄµµáá£¬Äã¿ÉÒÔ±£´æ³É LyX ¸ñÊ½£¬È»ááÊä³öµ½ LinuxDoc µÃµ½ .sgml áá×ºµÄÎÄ¼þ¡£Õâ¸öÎÄ¼þ¿ÉÒÔ±» sgmlcheck ¼ì²éºÍÊä³ö³ÉÄãÏëÒªµÄ¸ñÊ½¡£


\subsubsection{Emacs
 }

ÎÒ²»Ê¹ÓÃ Emacs£¬µ«ÎÒ²¢²»ÅÅ³âËü¡£ÓÐ Emacs Ê¹ÓÃ¾­ÑéµÄÈË»á¾õµÃËü·Ç³£ÓÐÓÃ¡£


\subsubsection{ÆäËü SGML ¹¤¾ß }

Èç¹ûÓÐ³ý´ËÖ®ÍâµÄÆäËü SGML ¹¤¾ß£¬»òÕß¼´Ê¹ÊÇÉÌÒµ°æ±¾£¬Ö»ÒªÊÇÄÜ±» LinuxDoc DTD ÓÃÀ´´´½¨ LDP ÎÄµµ£¬Çë¸æËßÎÒ¡£


\subsection{CVS »ù´¡ }

µ½ÏÖÔÚÎªÖ¹£¬LDP »¹Ã»ÓÐÒ»¸ö¹²Ïí²Ö¿â¿É¹©ÄãÔÚÏß±£´æÄãµÄÎÄµµÄÚÈÝ¡£·Ç³£Ï£Íû¸Ä±äÕâÖÖ×´¿ö¡£ÓÐºÜ¶àÐèÒªÊ¹ÓÃ CVS µÄÔ­Òò£º

\begin{enumerate}
\item CVS ½«±£´æÒ»¸öÄãµÄÎÄµµµÄÍâ²¿±¸·Ý¡£ÔÚÄã½«ÎÄµµ´«¸øÁíÍâÒ»¸ö×÷ÕßÊ±£¬ËûÖ»ÐèÒª´Ó CVS È¡µÃÎÄµµ¾Í¿ÉÒÔ¼ÌÐø¹¤×÷¡£ÔÚÄãÐèÒªÈ¡µÃÒ»¸öÎÄµµµÄÔçÆÚ°æ±¾£¬ÄãÒ²¿ÉÒÔºÜ¿ìµÃµ½¡£
\item ÔÚ¶àÈËÎ¬»¤Í¬Ò»ÎÄµµÊ±·Ç³£ÓÐÓÃ¡£Äã¿ÉÒÔ´Ó CVS µÃÖªÔÚÄã±à¼­ÄãµÄ¿½±´Ê±ÆäËû×÷Õß×öÁËÄÄÐ©ÐÞ¸Ä£¬´Ó¶ø½«ËùÓÐµÄÐÞ¸ÄºÜºÃµØ½áºÏÔÚÒ»Æð¡£
\item ±£´æÐÞ¸ÄµÄ¼ÇÂ¼¡£ÔÚ SGML ´¦ÀíÆ÷´¦ÀíÖ®Ç°£¬Äã¿ÉÒÔÊ¹ÓÃÒ»Ð©ÌØÊâµÄ±ê¼Ç£¬ÕâÐ©¼ÇÂ¼(ÒÔ¼°Ò»¸öÊ±¼ä´Á)»á±»×Ô¶¯µØ²åÈëµ½ÎÄµµÖÐ¡£
\item Ìá¹©Ò»¸öÍ¾¾¶£¬ÔÚÐÂÎÄµµÍê³É²¢Ìá½»ááÍ¨¹ýÒ»¸ö³ÌÐò×Ô¶¯µØ¸üÐÂ LDP Õ¾µã¡£
\end{enumerate}



\subsection{·¢²¼ÄãµÄÎÄµµ }


\subsubsection{·¢²¼Ö®Ç° }

ÔÚÄã½«ÎÄµµ·¢²¼¸ø³ÉÇ§ÉÏÍòµÄÇ±ÔÚ¶ÁÕßÖ®Ç°£¬ÎÒ±ØÐë×öÒ»Ð©ÊÂÇé¡£

Ê×ÏÈ£¬¶ÔÄãµÄÎÄµµ×öÆ´Ð´¼ì²é¡£Ã»ÓÐÊ²÷á±ÈÆ´Ð´´íÎó¸ü¿ìÈÃÈË¾õµÃÊÇÔÚ»¥ÁªÍøÊÀ½çÖÐËµ¡°ºÙ£¬ÎÒÊÇÉµ¹Ï¡±¡£Ðí¶àÄã¿ÉÒÔÓÃÀ´Ð´ SGML µÄÓ¦ÓÃ³ÌÐò(emacs¡¢LyX...)¶¼ÄÚÖÃÓÐÆ´Ð´¼ì²é¹¦ÄÜ¡£Èç¹ûÃ»ÓÐ£¬¾ÍÔÚËùÓÐµÄlinux·¢ÐÐ°æ±¾ÖÐ¶¼°²×°ÁËÒ»¸ö ispell ³ÌÐò¡£Í¬ÑùÒªÊ¹ÓÃ sgmltools ÖÐµÄ sgmlcheck ÃüÁî¼ì²é SGML ±ê¼Ç¡£

Æä´Î£¬ÕÒÒ»Ð©ÈËÆÀ¼ÛÄãµÄÎÄµµ¡£ÓÉ LDP ·¢²¼µÄÎÄµµÓ¦¾¡¿ÉÄÜ±£Ö¤ÕæÊµ¡¢ÕýÈ·£¬ÒòÎªÓÐ³ÉÇ§ÉÏÍòµÄLinuxÓÃ»§¿ÉÄÜ»á¶ÁËü¡£Èç¹ûÄã²Î¼ÓÁËÒ»¸öÏà¹ØÖ÷ÌâµÄ½Ï´ó¹æÄ£µÄÓÊ¼þÁÐ±í£¬¿ÉÒÔÇëÇóÁÐ±íÖÐµÄÆäËûÈË°ïÖúÄã¡£

µÚÈý£¬½¨Á¢Ò»¸ö·¢²¼ÄãµÄÎÄµµµÄÍøÕ¾¡£Õâ²¢²»ÊÇ±ØÐëµÄ£¬µ«ÓÐÖúì¶ÈËÃÇÕÒµ½ÄãµÄÎÄµµµÄÔ­Ê¼³ö´¦¡£


\subsubsection{°æÈ¨ºÍÐí¿É }

In order for an LDP document to be accepted by the LDP, it must be licensed
to allow for free (as in beer) distribution and publishing. As an author, you
may retain the copyright and add other restrictions (for example, you must
approve any translations or derivative works). A sample license is available
at \nameurl{http://www.linuxdoc.org/COPYRIGHT.html}{http://www.linuxdoc.org/COPYRIGHT.html}. If you choose to use the boilerplate copyright, simply copy it into your
source code under a section called "Copyright and Licenses" or similar. Also
include a copyright statement of your own (since you still own it). If you
are a new maintainer for an already-existing HOWTO, you must include the previous
copyright statements of the previous author(s) and the dates they maintained
that document.


\subsubsection{×ñ´Ó LDP
 }

Ò»µ©ÄãµÄÎÄµµ±»Ò»²¿·ÖÈË¿´¹ý²¢ÇÒÄãÒÑÎüÊÕÁËËûÃÇµÄÒâ¼û£¬Äã¾Í¿ÉÒÔ½«ÎÄµµËÍÍù LDP¡£·¢ËÍÓÊ¼þµ½ \nameurl{mailto:ldp-submit@lists.linuxdoc.org}{ldp-submit@lists.linuxdoc.org} ¡£24Ð¡Ê±Ö®ÄÚÄã¾Í¿ÉÒÔÖªµÀËüÊÇ·ñÒÑ±»½ÓÊÜ²¢ËÍÍùÖ÷ÒªµÄ LDP Õ¾µã¡£


\section{·ç¸ñÖ¸ÄÏ }

Õâ²¢²»ÊÇÒ»¸öÐ´³öÉ«ÎÄµµµÄÇ¿ÖÆºÍ¿ìËÙµÄÖ¸ÄÏ£¬µ«¶ÔÄãµÄÐ´×÷ÓÐËù°ïÖú¡£

\begin{itemize}
\item ÇåÎú¡£ËùÓÐÈËÐèÒªÖªµÀÄãÔÚËµÊ²÷á¡£
\item ÔÚ¿ÉÄÜµÄµØ·½Ê¹ÓÃÀý×Ó¡£ÕâÈÃËùÓÐÈË¿´µ½ÄãÔÚËµÊ²÷á¡£
\item ×éÖ¯¡£²»ÒªÔÚÍ¬Ò»ÕÂ½ÚÖÐ£¬ÔÚÁ½¸ö²»Ïà¹ØÖ÷Ìâ¼äÌøÀ´ÌøÈ¥¡£
\end{itemize}


Äã¿ÉÒÔ´ÓÒÔÏÂµØÖ·µÃµ½¸ü¶àµÄ LDP ·ç¸ñÖ¸ÄÏ£º \nameurl{http://www.linuxdoc.org/HOWTO/LDP-Style-Guide.html}{http://www.linuxdoc.org/HOWTO/LDP-Style-Guide.html}.


\section{¹Øì¶ LDP µÄ³£¼ûÎÊÌâ }


\subsection{ÎÒÏëÎª LDP ³öÒ»·ÝÁ¦£¬ÎÒ¸ÃÈçºÎÈ¥×÷£¿ }

×î¼òµ¥µÄ°ì·¨¾ÍÊÇÕÒ³öÒ»Ð©¶«Î÷È»ááÐ´³öÀ´¡£Ò²¿ÉÒÔ²éÕÒÃ»ÈËÎ¬»¤µÄ HOWTO È»áá¿´¿´ÊÇ·ñÓÐÒ»¸öÄãÁË½âµÄÖ÷Ìâ¿ÉÒÔ¼ÌÐøÐ´ÏÂÈ¥¡£


\subsection{ÎÒÏë³ö°æ LDP ÎÄµµ¡£LDP µÄÎÄµµÐí¿ÉÊÇÔõÑù¹æ¶¨µÄ£¿ }

Çë²ÎÔÄ \nameurl{http://www.linuxdoc.org/COPYRIGHT.html}{http://www.linuxdoc.org/COPYRIGHT.html}.


\subsection{ÎÒÔÚÒ»¸ö LDP ÎÄµµÖÐÕÒµ½Ò»¸ö´íÎó¡£ÎÒÄÜÐÞÕýËüÂð£¿ }

ÁªÏµÎÄµµµÄ×÷Õß£¬»òÕß LDP ×éÖ¯Õß£¬¸æËßËûÃÇ´æÔÚµÄÎÊÌâÒÔ¼°ÈçºÎÐÞÕý¡£

\end{document}
