<html><head><meta name="color-scheme" content="light dark"></head><body><pre style="word-wrap: break-word; white-space: pre-wrap;">\chapter[post]{čŽŠćçŤ&nbsp;ćĺŽčŻĽćçć&nbsp;ˇĺ­}

čľ°ĺşć°ććďźćäťŹççŹŹä¸ä¸ŞäťťĺĄćŻďźčŽŠä¸çŻćçŤ&nbsp;ćĺŽčŻĽćçć&nbsp;ˇĺ­ăäťäšć&nbsp;ˇĺ­ĺ˘ďźčłĺ°čŚćć&nbsp;é˘ďźćä˝čäżĄćŻďźčżĺŻč˝ććŹĄć&nbsp;é˘ďźćŹĄćŹĄć&nbsp;é˘âŚâŚčżčŚćéĄľç&nbsp;ďźĺ˝çśćéčŚçćŻďźčŚććŽľč˝ââć°ććéćäťŹçčćĺăĺŻšäşĺ¤§ĺ¤ć°ćĺ­Śĺä˝ĺˇĽä˝ččč¨ďźčżäşĺˇ˛çťčśłĺ¤äşďźčżĺ°ąćŻä¸çŻćçŤ&nbsp;čŻĽćçć&nbsp;ˇĺ­ăčłäşç§ćĺˇĽä˝čéĺ¸¸ćéčŚçĺčĄ¨ăčĄ¨ć&nbsp;źăćĺžăć°ĺ­ŚĺŹĺźç­ĺ˝˘ĺźďźćŻĺ¨ćçŤ&nbsp;čŻĽćçć&nbsp;ˇĺ­çĺşçĄä¸čżä¸ć­Ľçćé&nbsp;ďźç°ĺ¨ä¸ĺżćĽäşçäźă

\section{ć&nbsp;é˘}

ĺ¨ \ConTeXt\ ä¸­ďźć&nbsp;é˘ĺä¸şä¸¤ç§ďźć&nbsp;çźĺˇçĺćçźĺˇçăćŻç§ć&nbsp;é˘ĺĺä¸şčŻ¸ĺ¤çş§ĺŤăć&nbsp;çźĺˇçć&nbsp;é˘ďźçş§ĺŤäťéŤĺ°ä˝ďźćçĺ˝äť¤äžĺşćŻ

\starttyping[option=TEX]
\title{...} % ä¸çş§ć&nbsp;é˘
\subject{...} % ćŹĄçş§ć&nbsp;é˘
\subsubject{...} % ćŹĄćŹĄçş§ć&nbsp;é˘
\subsubsubject{...} % ćŹĄćŹĄćŹĄçş§ć&nbsp;é˘
... ... ...
\stoptyping

\noindent ćçźĺˇçć&nbsp;é˘ďźçş§ĺŤäťéŤĺ°ä˝ďźćçĺ˝äť¤äžĺşćŻ

\starttyping[option=TEX]
\title{...} % ä¸çş§ć&nbsp;é˘
\section{...} % ćŹĄçş§ć&nbsp;é˘
\subsection{...} % ćŹĄćŹĄçş§ć&nbsp;é˘
\subsubsection{...} % ćŹĄćŹĄćŹĄçş§ć&nbsp;é˘
... ... ...
\stoptyping

\noindent ĺşčŻĽä¸éžçĺşä¸¤ç§ć&nbsp;é˘ĺčŞçćŹĄçş§ć&nbsp;é˘éçş§č§ĺžăä¸ĺťşčŽŽä˝żç¨çş§ĺŤĺąćŹĄĺ¤Şćˇąçć&nbsp;é˘ďźĺŚĺäźčŽŠčŻťčč§ĺžčşŤéˇčżˇĺŽŤďźéĺ¸¸ĺä¸çş§ć&nbsp;é˘čśłĺ¤ä˝żç¨ăčĽćŻĺä¸çŻćŁćďźć&nbsp;é˘ĺŞéčŚç¨ \type{\title}ăčĽćŻĺä¸ćŹĺ°čŻ´ďźĺŞéç¨ \type{\title} ĺśä˝äšŚĺďźç¨ \type{\chapter} ĺśä˝çŤ&nbsp;ĺă

\section{ĺä¸çŻćŁć}

ç¤şäž \in[zaoshu] čćäşä¸çŻćŁćďźćĺŞçťĺşäşĺłéŽçćşäťŁç&nbsp;ââä¸şĺŽćĺťşĺŽć´çĺŻçźčŻçćşäťŁç&nbsp;ďźĺŻšä˝&nbsp;ĺşčŻĽä¸ćŻéžäşăčŻĽç¤şäžčŽžç˝ŽäşćŽľč˝éŚčĄçźŠčżčˇçŚťďźĺšśä¸ä˝żç¨ \type{\title} ĺĺťşäşćçŤ&nbsp;ć&nbsp;é˘ăçŽĺĺ°ć&nbsp;ä˝čçĺĺ­ďźĺ&nbsp;ä¸şĺŽäźĺŻźč´ä˝&nbsp;ć&nbsp;ćłçĺ° \ConTeXt\ ć&nbsp;é˘äšĺçćŽľč˝ďźéŚčĄćŻä¸çźŠčżçďźčżćŻčĽżćçćçäš&nbsp;ćŻăĺ¨ä˝żç¨ć&nbsp;é˘ĺďźĺŞéĺŻšć&nbsp;é˘ä˝ĺŚä¸čŽžĺŽďźäžżĺŻĺźşčżŤ \ConTeXt\ ĺżéĄťĺŻšćŻä¸Şć&nbsp;é˘ĺççŹŹä¸ä¸ŞćŽľč˝čżčĄçźŠčżă

\starttyping[option=TEX]
\setupheads[indentnext=yes]
\stoptyping

\startsample
\setupindenting[first,always,2em]
\title{é˛čżĺŽśçĺĺ­}

ĺ¨é˛čżĺŽśçĺĺ­ďźĺŻäťĽçč§ĺ˘ĺ¤ćä¸¤ć&nbsp;Şć&nbsp;ă
ä¸ć&nbsp;ŞćŻćŁć&nbsp;ďźčżćä¸ć&nbsp;ŞäšćŻćŁć&nbsp;ă

čżä¸é˘çĺ¤çĺ¤ŠçŠşďźĺĽćŞčéŤďźé˛čżçĺšł
ć˛Ąćč§čżčżć&nbsp;ˇĺĽćŞčéŤçĺ¤ŠçŠşă
\stopTEXpage
\stopsample
\sample[option=TEX][zaoshu]{ćŁćç¤şäž 1}{\externalfigure[04/zaoshu.pdf]}

ç°ĺ¨ĺŻäťĽä¸şćçŤ&nbsp;ĺ˘ĺ&nbsp;ä˝čäżĄćŻäşďźč˝çśäťĺŤć&nbsp;ĺć°ďźč§ç¤şäž \in[zaoshu-2]ďźĺŞćŻä˝ččˇçŚťć­Łćĺ¤Şčżäşăä¸čŚĺ°čŻä˝żç¨ä¸äşçŠşčĄĺťĺ˘ĺ¤§čŻĽčˇçŚťďźĺ&nbsp;ä¸ş \TeX\ ĺźćĺ¨éĺ°ĺ¤ä¸ŞçŠşčĄćśďźĺŽäšĺŞćŻćĺŽäťŹĺ˝ćä¸ä¸ŞçŠşčĄďźĺšśĺ°ĺśč§ä¸ş \type{\par}ă

\startsample
\setupheads[indentnext=yes]
\setupindenting[first,always,2em]
\title{é˛čżĺŽśçĺĺ­}
\midaligned{ć&nbsp;ĺć°}
% ççĽäşć­ŁćĺĺŽš
\stopTEXpage
\stopsample
\sample[option=TEX][zaoshu-2]{ćŁćç¤şäž 2}{\externalfigure[04/zaoshu-2.pdf]}

ĺ¨çé˘ççŤç´ćšĺďźćŽľč˝äšé´ďźćć&nbsp;é˘ä¸ćŽľč˝äšé´ďźćć&nbsp;é˘ä¸ć&nbsp;é˘äšé´âŚâŚĺ˘ĺ&nbsp;çŠşç˝ďźéĺ¸¸ĺŻäťĽä˝żç¨ \type{\blank} ĺ˝äť¤ăäžĺŚďźĺ¨ä˝čĺć­Łćäšé´ĺ˘ĺ&nbsp;ä¸ä¸ŞçŠşčĄçčˇçŚťďźĺŞé \type{\blank[line]}ďźčŚĺ˘ĺ&nbsp; $n$ ä¸ŞçŠşčĄçčˇçŚťďźĺŞé \type{\blank[n*line]}ă

\startsample
\midaligned{ć&nbsp;ĺć°}
\blank[line]
% ççĽäşć­ŁćĺĺŽš
\stopsample
\sample[option=TEX][zaoshu-3]{ćŁćç¤şäž 3}{\externalfigure[04/zaoshu-3.pdf]}

ĺčĽéčŚĺ°ć&nbsp;é˘ĺąä¸­ďźčééťčŽ¤çĺąĺˇŚďźĺŞéä˝żç¨ \type{\setuphead}ĺçŹä¸ş \type{\title} čŽžĺŽć&nbsp;ˇĺźďź

\starttyping[option=TEX]
\setuphead[title][align=middle]
\stoptyping

čĽćąĺ­ĺ­ćéĺˇ˛çťčŽžĺŽäşç˛ä˝ďźäšĺŻäťĽĺ°ć&nbsp;é˘çć&nbsp;ˇĺźčŽžä¸şç˛ä˝ďźĺšśćĺŽĺŽçĺ¤§ĺ°çş§ĺŤďź

\starttyping[option=TEX]
\setuphead[title][style=\bfc,align=middle]
\stoptyping

ç¤şäž \in[zaoshu-4] ĺ°ä¸čż°čŽžĺŽçťźĺčľˇćĽďźćççťćĺˇ˛çťä¸­č§ä¸­çŠäşďźĺŞćŻć&nbsp;é˘éçćąĺ­çĺĺ¸ćäşçćžďźčżćŻ \type{\setscript[hanzi]} ĺ˝äť¤ĺ¨ćąĺ­äšé´ćĺĽçç˛čżçäź¸éżçšć§č˘Ť \ConTeXt\ ćżć´ťĺŻźč´çďźčĺŽäťŹäšćäťĽč˘Ťćżć´ťďźĺ¤§ćŚćŻ \ConTeXt\ čżäşčż˝ćąç˛žçĄŽćĺ­ĺąä¸­ĺŻšé˝čĺŻźč´çďźäť¤ \type{\setuphead} çĺć° \type{align} çĺźä¸ş \type{{middle,broad}} ĺŻäťĽčŽŠ \ConTeXt\ ĺ¨ćĺ­ĺąä¸­ĺŻšé˝ćšé˘ĺŽ˝ćžä¸äş\cite[contextref](p86)ďźçťćĺŻčŽŠćąĺ­çĺĺ¸ĺä¸şç´§ĺŻďźč§ç¤şäž \in[zaoshu-5]ă

\startsample
\setupheads[indentnext=yes]
\setuphead[title][style=\bfc,align=middle]
\setupindenting[first,always,2em]

\title{é˛čżĺŽśçĺĺ­}
\midaligned{ć&nbsp;ĺć°}
% ççĽäşć­ŁćĺĺŽš
\stopsample
\sample[option=TEX][zaoshu-4]{ćŁćç¤şäž 4}{\externalfigure[04/zaoshu-4.pdf]}

ä¸çĽ \ConTeXt\ äťĺŞä¸ŞçćŹčľˇďźćäşä¸ä¸Şć°çĺŻšé˝ćšĺź \type{center}ďźĺŽä¸ \type{{middle,broad}} ç­äťˇăčŻˇčŽ°ä˝čżä¸ŞçĽčŻďźĺ&nbsp;ä¸şäťĽĺĺŻč˝äźçťĺ¸¸éčŚčŽžĺŽĺąä¸­ĺŻšé˝ă

\startsample
\setupheads[indentnext=yes]
\setuphead
  [title][style=\bfc,align=center]
\setupindenting[first,always,2em]

\title{é˛čżĺŽśçĺĺ­}
\midaligned{ć&nbsp;ĺć°}
% ççĽäşć­ŁćĺĺŽš
\stopsample
\sample[option=TEX][zaoshu-5]{ćŁćç¤şäž 5}{\externalfigure[04/zaoshu-5.pdf]}

\section[context-world]{ć­Łĺźč¸ĺĽ \ConTeXt\ ä¸ç}

ć°ććçťçŠśĺ¤Şĺ°äşďźĺ°ĺ°ĺˇ˛çťä¸ĺ¤ŞĺŽšćčŽŠä˝&nbsp;ĺ°čŻčśćĽčśĺ¤ç \ConTeXt\ ćçĺ˝äť¤äşăäşĺŽä¸ďźçć­Łç \ConTeXt\ ä¸çç¨čľˇćĽčŚćŻć°ććć´ä¸şçŽĺďźĺŞéä˝żç¨ \type{\starttext ...\stoptext} çŻĺ˘ĺäťŁć°ććĺłĺŻďźĺŚĺ¤ďźä¸ĺčŽžç˝Žćçć&nbsp;ˇĺźçĺ˝äť¤çĺŻćžĺ¨ \type{\starttext} äšĺăĺ¨ \type{text} çŻĺ˘éďźćäťŹéĺ¸¸ĺŞéčŚĺłĺżćçŤ&nbsp;ćäšŚçąçĺĺŽšă

äťĽä¸äťŁç&nbsp;ĺşĺ˝ćĺŠäşä˝&nbsp;çĺ° \ConTeXt\ ä¸çĺ¤§č´é˘çŽăĺŽćŻĺŽć´çďźäşŚĺłĺŻĺ°ĺśäżĺ­ä¸ş \ConTeXt\ ćşćäťśďźä˝żç¨ \type{context} ç¨ĺşčżčĄçźčŻă

\starttyping[option=TEX]
% ćçć&nbsp;ˇĺź
\definefontfamily[myfonts][rm][nsimsun][bf=simhei]
\setupbodyfont[myfonts,10.5pt]
\setscript[hanzi]
\setupheads[indentnext=yes]
\setuphead[title][style=\bfc,align=center]
\setupindenting[first,always,2em]
% čĄčˇďź1.5 ĺçć­Łćĺ­ä˝ĺ°şĺŻ¸ďźĺł1.5 * 10.5pt
\setupinterlinespace[line=15.75pt]
% ć­Łć
\starttext
\title{é˛čżĺŽśçĺĺ­}
\midaligned{ć&nbsp;ĺć°}
\blank[line]
ĺ¨ćçĺĺ­ďźĺŻäťĽçč§ĺ˘ĺ¤ćä¸¤ć&nbsp;Şć&nbsp;ďźä¸ć&nbsp;ŞćŻćŁć&nbsp;ďźčżćä¸ć&nbsp;ŞäšćŻćŁć&nbsp;ă

čżä¸é˘çĺ¤çĺ¤ŠçŠşďźĺĽćŞčéŤďźćçĺšłć˛Ąćč§čżčżć&nbsp;ˇçĺĽćŞčéŤçĺ¤ŠçŠşăäťäťżä˝čŚçŚťĺźäşşé´čĺťďźä˝żäşşäťŹäť°é˘ä¸ĺçč§ăçśčç°ĺ¨ĺ´éĺ¸¸äščďźéŞéŞĺ°ç¨çĺ&nbsp;ĺä¸ŞććççźďźĺˇçźăäťçĺŁč§ä¸ç°ĺşĺžŽçŹďźäźźäščŞäťĽä¸şĺ¤§ććˇąćďźčĺ°çšéć´ĺ¨ćçĺ­éçéčąčä¸ă

... ... ...
\stoptext
\stoptyping

\section[style]{ĺĺŽšä¸ć&nbsp;ˇĺźĺçŚť}

ćčŽ¸ä˝&nbsp;ç°ĺ¨ĺˇ˛çťĺŻšćŻćŹĄćçćśďźäźćĺżćĽĺéčŚéĺ¤čžĺĽčŽ¸ĺ¤äťŁç&nbsp;ďźĺŽäťŹä¸ťčŚç¨äşčŽžĺŽćçćç¨çĺ­ä˝ďźć&nbsp;é˘çĺŻšé˝ćšĺźăĺ­ä˝çĺ¤§ĺ°ç˛çťăćŽľč˝çźŠčżăčĄé´čˇç­ăć&nbsp;éćć­¤ćĺżďźĺ&nbsp;ä¸şäťťä˝ä¸ç§ \TeX\ é˝ćŻććçĺĺŽšä¸ć&nbsp;ˇĺźçĺçŚťă

ĺŚĺž \in[style-file] čĽĺ° \in[context-world] čä¸­çäťŁç&nbsp;ä¸­ä˝äş \type{\starttext} äšĺçé¨ĺäżĺ­ä¸şćäťśďźäžĺŚ foo-env.texďźçśĺĺ°čżé¨ĺäťŁç&nbsp;äšĺçććäťŁç&nbsp;äšäżĺ­ä¸şćäťśďźäžĺŚ foo.texăčŽŠ foo-env.tex ĺ foo.tex ä˝äşĺä¸çŽĺ˝ďźçśĺĺ¨ foo.tex çĺźĺ¤´ćˇťĺ&nbsp;

\starttyping[option=TEX]
\input foo-env
\stoptyping

\noindent ćĺďźçźčŻ foo.texďźćççťćĺżĺŽä¸ \in[context-world] čä¸­çäťŁç&nbsp;ççźčŻçťćç¸ĺă\type{\input} ćŻ \TeX\ ĺąé˘çĺ˝äť¤ďźĺŽçä˝ç¨č˝˝ĺĽćĺŽçćŠĺąĺä¸ş \type{.tex} çćäťśďźä˝ćŠĺąĺĺŻççĽă\ConTeXt\ ćäžäş \type{\input} ç­ćä¸ç¨ćłç¸ĺçĺ˝äť¤ \type{\environment}ďźäťĽä˝ç°ćč˝˝ĺĽçćäťśäťćśĺćçć&nbsp;ˇĺźçčŽžĺŽă

\placefigure
  [here,force][style-file]
  {ĺĺŽšä¸ć&nbsp;ˇĺźĺçŚť}{\blueframed{\externalfigure[04/style-file.png][width=.8\textwidth]}}

ä¸ćŚçćäşĺŚä˝ĺŽç°ćçĺĺŽšä¸ć&nbsp;ˇĺźçĺçŚťďźĺ¨ä˝żç¨ \ConTeXt\ ćçćĺĺ¤ćçĺĺŽšćśďźä˝&nbsp;çć&nbsp;ˇĺźćäťś foo-env.tex çĺĺŽšäžżäźćĽçä¸°ĺŻăéżć­¤äťĽĺžďźä˝&nbsp;ćťćŻč˝ćĺşä¸äşć&nbsp;ˇĺźćäťśďźäžä¸ĺçććĄŁĺ˝˘ĺźä˝żç¨ăćçĺĺŽšćťćŻĺĺä¸ĺďźä˝ć&nbsp;ˇĺźĺ´ćťćŻĺŻĽĺŻĽć°ç§ä¸ććä¸äťäşşĺäşŤďźčżäžżćŻ \TeX\ çäźçšďźä˝ĺććŻďźä˝&nbsp;éčŚć¸ć°ĺ°çč§Łä˝&nbsp;ćčŽžĺŽçäťťä˝ä¸ä¸Şćçć&nbsp;ˇĺźăäşĺŽä¸ďźčżäšć­ŁćŻĺ­Śäš&nbsp;äťťä˝ä¸ç§ \TeX\ çłťçťçäščśŁćĺ¨ă

\section{éĄľç&nbsp;}

ĺŚćä˝&nbsp;äş˛čŞĺ¨ćçźčŻäş \in[style] ç foo.texďźĺşĺ˝č˝çĺ°ďźéĄľçćŻćéĄľç&nbsp;çďźĺŚĺž \in[pagenumber] ćç¤şăčżćŻ \ConTeXt\ éťčŽ¤çéĄľç&nbsp;ć&nbsp;ˇĺźďźĺłéĄľç&nbsp;ĺşç°ĺ¨ćŻä¸éĄľďźä¸ĺąä¸­ä˝äşéĄľçďźčżĺšśä¸ĺäšä¸­ćçćçäš&nbsp;ćŻďźéčŚĺŻšéĄľç&nbsp;čżčĄć&nbsp;ˇĺźčŽžĺŽă

\placefigure
  [here,force][pagenumber]
  {éĄľç&nbsp;}{\blueframed{\externalfigure[04/pagenumber.png][width=.8\textwidth]}}

éŚĺďźćçŤ&nbsp;ć&nbsp;é˘ćĺ¨éĄľé˘ďźéĺ¸¸ä¸éčŚéĄľç&nbsp;ăčŻĽčŚćąďźĺŞéĺ¨ć&nbsp;é˘ć&nbsp;ˇĺźĺ°éĄľçĺéĄľčç˝ŽçŠşďźĺł

\starttyping[option=TEX]
\setuphead
 [title]
 [header=empty,
  footer=empty,
  % ĺşčŻĽčżćĺśäťčŽžĺŽĺ§
  ...=...]
\stoptyping

çśĺďźäżŽćšéĄľç&nbsp;ććžä˝ç˝ŽďźäžĺŚćžĺ¨éĄľčĺłäž§ďź

\starttyping[option=TEX]
\setuppagenumbering[location={footer,right}]
\stoptyping

ĺ°ä¸čż°čŽžĺŽéććˇťĺ&nbsp;ĺ°ć&nbsp;ˇĺźćäťśéďźçśĺçźčŻ \ConTeXt\ ćşććĄŁďźćĽçĺśććĺ§ăćĽĺďźĺčĽćŻćçäšŚçąďźčżéčŚĺŻšć&nbsp;é˘ĺéĄľç&nbsp;ć&nbsp;ˇĺźçčŽžčŽĄä˝ć´ĺ¤çč°ć´ă

\section{ĺ°çť}

ç°ĺ¨ďźä˝&nbsp;ĺˇ˛çťĺŻäťĽç¨ \ConTeXt\ ĺćĽčŽ°ćéçŹäşăĺčĽĺ¨ćĺ°čŻäş \type{\chapter}ďźä˝&nbsp;çčłč˝ç¨ \ConTeXt\ ĺä¸ćŹćéďźĺŞćŻéŁć&nbsp;źčżäşć´ç´&nbsp;ăčĽćłčŽŠćççťćć´ä¸şç˛žč´ďź\ConTeXt\ ĺĺ¤§ç˛žćˇąďźéĺ¸¸ćťćéĺžč˝ĺ¤ĺŽç°ä˝&nbsp;çćłćłďźĺććŻä˝&nbsp;éčŚć´ĺ&nbsp;ç¨ĺżă\TeX\ äšçś Donald Knuth ćžćä¸č¨ďźăćäťćĽäšä¸ćçź {\TeX} äźćä¸şćç§ä¸č˝çćçĺˇĽĺˇďźç¨äşĺśä˝ä¸äşĺżŤéččçä¸čĽżďźćĺŞćŻĺ°ĺśč§ä¸şä¸ç§ĺŞčŚä˝&nbsp;čśłĺ¤ç¨ĺżĺ°ąč˝ĺžĺ°ćĺĽ˝çťćçä¸čĽżăďźĺźç¨äşć­¤ďźä¸ĺĺąĺă</pre></body></html>