<html><head><meta name="color-scheme" content="light dark"></head><body><pre style="word-wrap: break-word; white-space: pre-wrap;">% -*- coding: utf-8 -*-
% This is part of the book TeX for the Impatient.
% Copyright (C) 2003 Paul W. Abrahams, Kathryn A. Hargreaves, Karl Berry.
% See file fdl.tex for copying conditions.

\input macros
%\chapter{Examples}
\chapter{ä¾‹å­}

\chapterdef{examples}

%This section of the book contains a set of examples
%to help get you started and to show you how to do various things with \TeX.
%Each example has \TeX\ output on the left-hand page and the \TeX \
%input that led to that output on the right-hand page.
%You can use these examples both as forms to imitate and
%as a way of finding the
%\TeX\ commands that you need in order to achieve a particular effect.
%However, these examples can illustrate only a few of the
%about $900$ \TeX\ commands.
è¿™ä¸€ç«&nbsp;ä¸­åŒ…æ‹¬äº†ä¸€ç»„ä¾‹å­ï¼Œæ¥å¸®åŠ©ä½&nbsp;ç†Ÿæ‚‰ \TeX ï¼Œ
åŒæ—¶è¿™äº›ä¾‹å­è¿˜å±•ç¤ºäº†å¦‚ä½•ä½¿ç”¨ \TeX\ æ¥å®Œæˆå„ç§æŽ’ç‰ˆå·¥ä½œã€‚
æ¯ä¸ªä¾‹å­éƒ½æœ‰ä¸€ä¸ªæ”¾åœ¨å·¦é¡µçš„ \TeX\ æŽ’ç‰ˆçš„ç»“æžœå’Œæ”¾åœ¨å³é¡µçš„ç›¸å¯¹åº”çš„ \TeX\ è¾“å…¥æ–‡æœ¬ã€‚
ä½&nbsp;å¯ä»¥æŠŠè¿™äº›ä¾‹å­ä½œä¸ºæ¨¡ä»¿çš„æ&nbsp;·å¼ï¼Œä¹Ÿå¯ä»¥ç”¨æ¥æ‰¾åˆ°ä½&nbsp;æƒ³è¦çš„æ•ˆæžœçš„å®žçŽ°å‘½ä»¤ã€‚
ä¸è¿‡è¦æ³¨æ„çš„æ˜¯ï¼Œè¿™äº›ä¾‹å­ä»…èƒ½å±•ç¤º \TeX\ $900$ æ¡å·¦å³çš„å‘½ä»¤çš„ä¸€å°éƒ¨åˆ†ã€‚

%Some of the examples are self-descriptive---that is, they discuss the very
%features of \TeX\ that they are illustrating.  These discussions are
%necessarily sketchy because there isn't room in the examples for all the
%information you'd need.  The capsule summary of commands
%(\chapterref{capsule})
%and the index will help you
%locate the complete explanation of every \TeX\ feature shown in the
%examples.
è¿™é‡Œçš„æŸäº›ä¾‹å­æ˜¯å…¶ä¹‰è‡ªçŽ°çš„â€”â€”ä¹Ÿå°±æ˜¯è¯´ï¼Œå®ƒä»¬åœ¨ä»‹ç»æ¯ä¸ªæ‰€æŽ’å°å‡ºæ¥çš„åŠŸèƒ½ã€‚
è¿™ä¸ªä»‹ç»å¾ˆç²—ç•¥ï¼Œå›&nbsp;ä¸ºæ²¡æœ‰è¶³å¤Ÿçš„ç¯‡å¹…æ¥è®²æœ¯æ‰€æœ‰ä½&nbsp;æƒ³å¾—åˆ°çš„ä¿¡æ¯ã€‚
å‘½ä»¤é€ŸæŸ¥è¡¨ï¼ˆ\chapterref{capsule}ï¼‰å’Œç´¢å¼•å¯ä»¥å¸®ä½&nbsp;æ¥æ‰¾åˆ°ä¾‹å­ä¸­çš„æ¯ä¸ª \TeX\ åŠŸèƒ½ã€‚

%Because we've designed the examples to illustrate
%many things at once, some examples contain a great variety of
%typographical effects.  These examples generally are \emph{not} good
%models of typographical practice.  For instance, Example~8 has some of its
%equation numbers on the left and some on the right.  You'd never want to
%do that in a real publication.
å›&nbsp;ä¸ºæˆ‘ä»¬åœ¨è®¾è®¡è¿™äº›ä¾‹å­æ—¶ï¼ŒæŠŠå¾ˆå¤šçš„ä¸œè¥¿æ”¾åœ¨ä¸€èµ·æè¿°ï¼Œ
å›&nbsp;æ­¤ï¼Œè¿™äº›ä¾‹å­å±•ç¤ºäº†å¾ˆå¤šçš„æŽ’ç‰ˆæ•ˆæžœã€‚
è¿™äº›ä¾‹å­ä¸€èˆ¬å¹¶\emph{ä¸æ˜¯}å¥½çš„æŽ’ç‰ˆå®žè·µæ¨¡ç‰ˆã€‚
æ¯”å¦‚ä¾‹~8 æŠŠæœ‰äº›å…¬å¼ç¼–å·æ”¾åœ¨å·¦è¾¹ï¼ŒåˆæŠŠå¦ä¸€äº›æ”¾åœ¨äº†å³è¾¹ã€‚
ä½&nbsp;æ°¸è¿œä¸ä¼šåœ¨ä¸€ä¸ªå®žé™…çš„ç§‘å­¦å‡ºç‰ˆç‰©ä¸­ä½¿ç”¨è¿™æ&nbsp;·çš„å…¬å¼ç¼–å·ã€‚

%\xrdef{xmphead}
%Each example except for the first one starts with a macro (see
%\xref{macro}) named |\xmpheader|.  We've used |\xmpheader| in order to
%conserve space in the input, since without it each example would have
%several lines of material you'd already seen.
%|\xmpheader| produces the title of an example and the
%extra space that goes with it.  You can see in the first example
%what |\xmpheader| does, so you can imitate it if you wish.
%Except for |\xmpheader|, every command that we use in these examples is
%defined in \plainTeX.
\xrdef{xmphead}
é™¤äº†ç¬¬ä¸€ä¸ªä¾‹å­ä»¥å¤–ï¼Œæ¯ä¸ªä¾‹å­éƒ½ç”±ä¸€ä¸ªå« |\xmpheader| çš„å®å¼€å§‹ï¼ˆè§\xref{å®}ï¼‰ã€‚
æˆ‘ä»¬è¿™æ&nbsp;·åšæ˜¯ä¸ºäº†èŠ‚çœè¾“å…¥æ–‡æœ¬çš„ç¯‡å¹…ï¼Œ
å¦åˆ™æ¯ä¸ªä¾‹å­å¼€å¤´ä½&nbsp;éƒ½ä¼šçœ‹åˆ°å‡&nbsp;è¡Œä½&nbsp;å…ˆå‰å·²ç»çœ‹åˆ°çš„å†…å®¹ã€‚
|\xmpheader| ä¼šæŽ’å°å‡ºä¾‹å­çš„æ&nbsp;‡é¢˜å’Œæ&nbsp;‡é¢˜åŽçš„ç©ºç™½ã€‚
ä½&nbsp;å¯ä»¥å‚è§æ²¡æœ‰ä½¿ç”¨ |\xmpheader| çš„ç¬¬ä¸€ä¸ªä¾‹å­æ˜¯å¦‚ä½•å®žçŽ°è¿™ä¸€ç‚¹çš„ï¼Œ
ç„¶åŽä½&nbsp;å°±èƒ½æ¨¡ä»¿å®ƒäº†ã€‚
é™¤äº† |\xmpheader|ï¼Œåœ¨è¿™é‡Œä½¿ç”¨çš„æ¯ä¸ªå‘½ä»¤éƒ½æ˜¯åœ¨ \PlainTeX\ ä¸­å®šä¹‰è¿‡çš„ã€‚

% The first example does the necessary eject here.
{%
   \let\bye = \relax % We don't want to obey \bye in the example input.
   % These switches can't be done by a macro since \bye is outer.
   \doexamples {xmptext}% Typeset the actual examples.
}%

\ifoldeplain\else\ifcompletebook\else
\vfil\eject{\sectionfonts\leftline{æœ¬ç«&nbsp;ç´¢å¼•}}
\readindexfile{i}
\fi\fi

\endchapter
\byebye
</pre></body></html>