<html><head><meta name="color-scheme" content="light dark"></head><body><pre style="word-wrap: break-word; white-space: pre-wrap;">\chapter{ç›’ĺ­}

ĺś¨ \in[item-sym-diy] čŠ‚ä¸­ďĽŚä˝&nbsp;ĺ·˛ç»Źč§čż‡ç›’ĺ­äş†ďĽŚĺŹŞćŻé‚Łć—¶ĺŹŻč˝ä˝&nbsp;čżä¸ŤçźĄĺ…¶ç©¶ç«źďĽŚćś¬ç«&nbsp;ĺ°†ćŹ­ĺĽ€ĺ®ä»¬çš„ä¸€äş›ç«Żĺ€Şă€‚äąźćś‰ĺŹŻč˝ä˝&nbsp;ć—©ĺ·˛é’»ç&nbsp;”čż‡ Knuth çš„ă€ŠThe \TeX\ Bookă€‹ďĽŚĺŻąç›’ĺ­çš„ç&nbsp;”ç©¶äą‹ć·±ĺ·˛ç»Źč®©ć‘ćś›éŁŽč€Ść‹śďĽŚä˝†ćŻćśŞĺż…ç†źć‚‰ \ConTeXt\ çš„ç›’ĺ­ďĽŚć•…č€Śćś¬ç«&nbsp;ä»Ťćś‰é¨ĺ†ĺ†…ĺ®ąĺ€Ľĺľ—ä¸€çťąă€‚

\section{\TeX\ ç›’ĺ­}

ĺ‰Ťéť˘ĺ·˛ç»Źĺ¤šć¬ˇćš—ç¤şĺ’ŚćŽç¤şďĽŚ\TeX\ çł»ç»źćŻ \ConTeXt\ çš„ĺş•ĺ±‚ďĽŚäşŚč€…çš„ĺ…łçł»çŠąĺ¦‚ĺĽ•ć“ŽďĽĺŹ‘ĺŠ¨ćśşďĽ‰ĺ’Ść±˝č˝¦çš„ĺ…łçł»ă€‚ĺŻą \TeX\ ĺĽ•ć“Žä¸ťćŻ«ä¸Ťć‡‚ďĽŚĺą¶ä¸Ťĺ˝±ĺ“Ťä˝&nbsp;ĺ­¦äą&nbsp;ĺ’Śä˝żç”¨ \ConTeXt\ ćŽ’ç‰ä¸€ä»˝ç˛ľč‡´çš„ć–‡ćˇŁďĽŚä˝†ćŻć‡‚ä¸€äş›ĺĽ•ć“Žĺ±‚éť˘ĺ·Ąä˝śĺŽźç†ďĽŚćśŞĺż…äĽšćś‰ç”¨ĺ¤„ďĽŚä˝†ćŻä˝&nbsp;çŽ°ĺś¨äąźĺą¶ä¸Ťč˝çˇ®ĺ®šĺ°†ćťĄäĽšä¸ŤäĽšćä¸şä¸€ĺŤ \TeX\ é»‘ĺ®˘ďĽŚĺ¦‚ĺŚä˝&nbsp;ä»Žĺ‰Ťäąźä»ŽćśŞćłčż‡ćś‰ä¸€ĺ¤©äĽšĺ­¦äą&nbsp; \ConTeXtă€‚

ĺś¨ \TeX\ çł»ç»źä¸­ďĽŚç›’ĺ­ćŻĺľé‡Ťč¦çš„é¨ä»¶ă€‚äľ‹ĺ¦‚ďĽŚĺś¨ \ConTeXt\ çš„ćŽ’ç‰çš„ćŻŹä¸€ä¸Şć®µč˝ďĽŚćŻä¸€ä¸Şç«–ĺ‘ç›’ĺ­ďĽŚĺŤł \type{\vbox}ďĽŚčŻĄç›’ĺ­äą‹ĺ†…ĺŹćś‰ä¸€äş›ć¨Şĺ‘ç›’ĺ­ďĽŚĺŤł \type{\hbox}ďĽŚĺ®ä»¬ćŻć®µč˝çš„ćŻŹä¸€čˇŚă€‚ć‘ä»¬ĺŹŻä»Ąç›´ćŽĄç”¨čż™ä¸¤ç§Ťç›’ĺ­ćž„é€&nbsp;ä¸€ä¸Şä¸Ťç”šč§„ć•´çš„ć®µč˝ďĽš

\startsample
\vbox{
  \hbox{ç¦»ç¦»ĺŽźä¸ŠčŤ‰}\hbox{ä¸€ĺ˛ä¸€ćžŻčŤŁ}\hbox{é‡Žç«ç§ä¸Ťĺ°˝}\hbox{ćĄéŁŽĺąĺŹç”ź}
}
\stopsample
\sample[option=TEX][todo-list]{ç«–ĺ‘ç›’ĺ­ĺ’Ść¨Şĺ‘ç›’ĺ­}{\externalfigure[11/vbox-and-hbox.pdf]}

ć¨Şĺ‘ç›’ĺ­ĺŹŻä»ĄćŚ‡ĺ®šĺ®çš„é•żĺş¦ďĽŚç«–ĺ‘ç›’ĺ­ĺŹŻä»ĄćŚ‡ĺ®šĺ®çš„é«ĺş¦ă€‚äľ‹ĺ¦‚ďĽŚ

\starttyping[option=TEX]
\hbox to 5cm {čµ‹ĺľ—ĺŹ¤ĺŽźčŤ‰é€ĺ«}
\vbox to 3cm {
  \hbox{ç¦»ç¦»ĺŽźä¸ŠčŤ‰}\hbox{ä¸€ĺ˛ä¸€ćžŻčŤŁ}\hbox{é‡Žç«ç§ä¸Ťĺ°˝}\hbox{ćĄéŁŽĺąĺŹç”ź}
}
\stoptyping

ĺś¨ç¤şäľ‹ \in[rsquare] ä¸­ďĽŚ\type{\hbox} ç”¨äşŽĺŚ…ĺ«ä¸€ĺ‰Żä˝żç”¨ \METAPOST\ čŻ­č¨€ç»ĺ¶çš„çź˘é‡ŹćŹ’ĺ›ľďĽŚĺ…łé”®ä»Łç&nbsp;ĺ¦‚ä¸‹ďĽš

\starttyping[option=TEX]
\startuseMPgraphic{foo}
... ... ...
\stopuseMPgraphic
\lower.2ex\hbox{\useMPgraphic{foo}}
\stoptyping

\noindent ĺ…¶ä¸­ \type{useMPgraphic} çŽŻĺ˘ä¸­çš„ \METAPOST\ ä»Łç&nbsp;äĽšč˘« \type{\useMPgraphic{foo}} ćŹäş¤ç»™ \TeX\ ĺĽ•ć“Žă€‚\TeX\ ĺĽ•ć“ŽäĽšč°ç”¨ metapost ç¨‹ĺşŹĺ°† \METAPOST\ ä»Łç&nbsp;çĽ–čŻ‘ć PDF ć&nbsp;ĽĺĽŹçš„ĺ›ľç‰‡ďĽŚç„¶ĺŽäş¤ç»™ \ConTeXtă€‚ćś€ĺŽç”± \ConTeXt\ ĺ°†ĺ›ľç‰‡ćŹ’ĺ…Ąĺ° \type{\useMPgraphic{foo}} ć‰€ĺś¨çš„ć¨Şĺ‘ç›’ĺ­é‡Śă€‚\type{\lower .2ex} ĺŹŻä»¤ä˝ŤäşŽĺ…¶ĺŽçš„ć¨Şĺ‘ç›’ĺ­ä¸‹ć˛‰ 0.2 exă€‚é•żĺş¦ĺŤ•ä˝Ť ex ç±»äĽĽäşŽ emďĽŚäąźćŻä¸€ä¸Şç›¸ĺŻąĺ°şĺŻ¸ďĽŚĺ®ćŻĺ˝“ĺ‰Ťć‰€ç”¨ĺ­—ä˝“ä¸­çš„ĺ­—ćŻŤ x ĺŻąĺş”çš„ĺ­—ĺ˝˘çš„é«ĺş¦ă€‚ä»ŽçŽ°ĺś¨ĺĽ€ĺ§‹č¦č®°ä˝ŹďĽŚć¨Şĺ‘č·ťç¦»ç”¨ emďĽŚç«–ĺ‘č·ťç¦»ç”¨ exďĽŚä¸Ťčż‡čż™ĺŹŞćŻĺ»şč®®ďĽŚĺą¶éťž \TeX\ ä¸–ç•Śçš„ćł•ĺľ‹ă€‚

čżćś‰ä¸€ç§Ťć¨Şĺ‘ç›’ĺ­ \type{\line}ďĽŚĺ®çš„ĺ®˝ĺş¦ćŻĺ˝“ĺ‰Ťć®µč˝çš„ĺ®˝ĺş¦ďĽŚĺŹŻč®©ĺ…¶ä¸­çš„ć–‡ĺ­—ĺ‘ä¸¤čľąäĽ¸ĺ±•ĺą¶ä¸Žčľąç•ŚĺŻąé˝ďĽŚäľ‹ĺ¦‚

\starttyping[option=TEX]
\line{\darkred\bf ć‘č˝ĺžä¸‹çŽ»ç’č€Śä¸ŤäĽ¤čş«ä˝“ă€‚}
\stoptyping
\line{\darkred\bf ć‘č˝ĺžä¸‹çŽ»ç’č€Śä¸ŤäĽ¤čş«ä˝“ă€‚}

çś‹ĺ°ä¸Ščż°ç¤şäľ‹ďĽŚćłĺż…ä˝&nbsp;ćłčµ·äş†äą‹ĺ‰Ťć‘ä»¬ć›ľĺś¨ć–‡ç«&nbsp;ć&nbsp;‡é˘çš„ć&nbsp;·ĺĽŹč®ľĺ®šć—¶ďĽŚç”¨ \type{{middle,broad}} ćŠ‘ĺ¶çš„ \ConTeXt\ č§¦ĺŹ‘ć±‰ĺ­—é—´éš™çš„äĽ¸é•żç‰ąć€§ďĽŚčŻĄç‰ąć€§ä¸Ž\type{\line} çš„ć•ćžśéťžĺ¸¸ç›¸äĽĽă€‚

ä˝żç”¨ \type{\hfill} ć– \type{\hss} ĺŹŻĺŻąć¨Şĺ‘ç›’ĺ­é‡Śçš„ĺ†…ĺ®ąčż›čˇŚćŚ¤ĺŽ‹ă€‚äľ‹ĺ¦‚

\starttyping[option=TEX]
\line{\hfill ć‘č˝ĺžä¸‹çŽ»ç’č€Śä¸ŤäĽ¤čş«ä˝“ă€‚}
\line{ć‘č˝ĺžä¸‹çŽ»ç’č€Śä¸ŤäĽ¤čş«ä˝“ă€‚\hfill}
\line{\hfill ć‘č˝ĺžä¸‹çŽ»ç’č€Śä¸ŤäĽ¤čş«ä˝“ă€‚\hfill}
\line{\hss ć‘č˝ĺžä¸‹çŽ»ç’č€Śä¸ŤäĽ¤čş«ä˝“ă€‚}
\line{ć‘č˝ĺžä¸‹çŽ»ç’č€Śä¸ŤäĽ¤čş«ä˝“ă€‚\hss}
\line{\hss ć‘č˝ĺžä¸‹çŽ»ç’č€Śä¸ŤäĽ¤čş«ä˝“ă€‚\hss}
\stoptyping

\blueframed{
  \vbox{
  \line{\hfill ć‘č˝ĺžä¸‹çŽ»ç’č€Śä¸ŤäĽ¤čş«ä˝“ă€‚}
  \line{ć‘č˝ĺžä¸‹çŽ»ç’č€Śä¸ŤäĽ¤čş«ä˝“ă€‚\hfill}
  \line{\hfill ć‘č˝ĺžä¸‹çŽ»ç’č€Śä¸ŤäĽ¤čş«ä˝“ă€‚\hfill}
  \line{\hss ć‘č˝ĺžä¸‹çŽ»ç’č€Śä¸ŤäĽ¤čş«ä˝“ă€‚}
  \line{ć‘č˝ĺžä¸‹çŽ»ç’č€Śä¸ŤäĽ¤čş«ä˝“ă€‚\hss}
  \line{\hss ć‘č˝ĺžä¸‹çŽ»ç’č€Śä¸ŤäĽ¤čş«ä˝“ă€‚\hss}
  }
}

\type{\hfill} ĺ’Ś \type{\hss}ďĽŚé˝ćŻĺŹŻć—&nbsp;é™äĽ¸çĽ©çš„ç˛čżžďĽŚčżćś‰ä¸€ä¸ŞäĽ¸çĽ©č˝ĺŠ›ĺĽ±äşŽ \type{\hfill} çš„ \type{\hfil}ă€‚ç«–ĺ‘çš„ĺŹŻć—&nbsp;é™äĽ¸çĽ©çš„ç˛čżžćś‰ \type{\vfil}ďĽŚ\type{\vfill} ĺ’Ś \type{\vss}ă€‚

\section{\ConTeXt\ ç›’ĺ­}

ĺś¨ \ConTeXt\ ĺ±‚éť˘ďĽŚé€šĺ¸¸ĺľĺ°‘ä˝żç”¨ \TeX\ ç›’ĺ­ďĽŚč€ŚćŻä˝żç”¨ \type{\inframed} ĺ’Ś \type{\framed}â€”â€”ĺ‰Ťč€…ćŻĺŽč€…çš„ç‰ąäľ‹ă€‚ä¸Ž \TeX\ ç›’ĺ­ç›¸ćŻ”ďĽŚ\ConTeXt\ ĺ±‚éť˘çš„ç›’ĺ­ĺŹŻä»Ąćľç¤şčľąćˇ†ďĽŚä¸”ćś‰éťžĺ¸¸ĺ¤šçš„ĺŹ‚ć•°ĺŹŻä»Ąĺ®šĺ¶ĺ®ä»¬çš„ĺ¤–č§‚ă€‚

\type{\inframed} ç”¨äşŽć­Łć–‡ďĽŚĺŹŻç”¨äşŽç»™ä¸€čˇŚć–‡ĺ­—ĺ˘žĺŠ&nbsp;čľąćˇ†ďĽŚäľ‹ĺ¦‚

\starttyping[option=TEX]
\type{\inframed{\type{\inframed{...}}}}
\stoptyping

\noindent ç»“ćžśä¸ş \inframed{\type{\inframed{...}}}ă€‚ĺ€č‹Ąä˝żç”¨ \type{\framed}ďĽŚäľ‹ĺ¦‚

\starttyping[option=TEX]
\type{\framed{\type{\framed{...}}}}
\stoptyping

\noindent ç»“ćžśä¸ş \framed{\type{\framed{...}}}ă€‚ĺŹŻä»ĄĺŹ‘çŽ°ďĽŚ\type{\inframed} ć›´é€‚ĺĺś¨ć­Łć–‡ä¸­ä˝żç”¨ďĽŚĺ›&nbsp;ä¸şĺ®č˝ä¸Žć–‡ĺ­—ĺźşçşżĺŻąé˝ă€‚äş‹ĺ®žä¸ŠďĽŚ\type{\inframed} ä¸Ž \type{\framed[location=low]} ç­‰ć•ďĽŚć•…č€Śĺ‰Ťč€…ćŻĺŽč€…çš„ç‰ąäľ‹ă€‚äľ‹ĺ¦‚

\starttyping[option=TEX]
\framed[location=low]{\type{\framed[location=low]{...}}}
\stoptyping

\noindent ç»“ćžśä¸ş \framed[location=low]{\type{\framed[location=low]{...}}}ă€‚

ĺ¦‚ćžśä¸Ťĺ¸Śćś› \type{\framed} ćľç¤şčľąćˇ†ďĽŚĺŹŞéś€ \type{\framed[frame=off]{...}}ďĽŚäąźĺŹŻä»ĄĺŤ•ç‹¬ćľç¤şćźćťˇčľąçşżďĽŚĺą¶č®ľĺ®ščľąçşżç˛—ĺş¦ĺ’Śé˘śč‰˛ďĽš

\starttyping[option=TEX]
\line{
  \framed[frame=off,leftframe=on,rulethickness=4pt,framecolor=red]{foo}
  \framed[frame=off,topframe=on,rulethickness=4pt,framecolor=green]{foo}
  \framed[frame=off,rightframe=on,rulethickness=4pt,framecolor=blue]{foo}
  \framed[frame=off,bottomframe=on,rulethickness=4pt,framecolor=magenta]{foo}
}
\stoptyping
\line{
  \framed[frame=off,leftframe=on,rulethickness=4pt,framecolor=red]{foo}
  \framed[frame=off,topframe=on,rulethickness=4pt,framecolor=green]{foo}
  \framed[frame=off,rightframe=on,rulethickness=4pt,framecolor=blue]{foo}
  \framed[frame=off,bottomframe=on,rulethickness=4pt,framecolor=magenta]{foo}
}

\blank

ĺŹŻä»Ąč®ľĺ®šç›’ĺ­çš„ĺ®˝ĺş¦ĺ’Śé«ĺş¦ďĽŚäľ‹ĺ¦‚ĺ®˝ 10cmďĽŚé« 2 cm çš„ç›’ĺ­ďĽš

\starttyping[option=TEX]
\hbox to \textwidth{\hfill\framed[width=10cm,height=2cm]{foo}\hfill}
\stoptyping
\hbox to \textwidth{\hfill\framed[width=10cm,height=2cm]{foo}\hfill}

\section{ĺŻąé˝}

\ConTeXt\ ç›’ĺ­çš„ĺ†…ĺ®ąé»č®¤ĺ±…ä¸­ďĽŚĺŤł \type{align=center}ďĽŚć­¤ĺ¤–čżćś‰ 8 ç§ŤĺŻąé˝ć–ąĺĽŹďĽš

\starttyping[option=TEX]
\line{
  \setupframed[width=1.95cm,height=1.95cm]
  \framed[align={flushleft,high}]{A}
  \framed[align={middle,high}]{A}
  \framed[align={flushright,high}]{A}
  \framed[align={flushright,lohi}]{A}
  \framed[align={flushright,low}]{A}
  \framed[align={middle,low}]{A}
  \framed[align={flushleft,low}]{A}
  \framed[align={flushleft,lohi}]{A}
}
\stoptyping
\line{
  \setupframed[width=1.95cm,height=1.95cm]
  \framed[align={flushleft,high}]{A}
  \framed[align={middle,high}]{A}
  \framed[align={flushright,high}]{A}
  \framed[align={flushright,lohi}]{A}
  \framed[align={flushright,low}]{A}
  \framed[align={middle,low}]{A}
  \framed[align={flushleft,low}]{A}
  \framed[align={flushleft,lohi}]{A}
}

\type{\setupframed} ć‰€ä˝śçš„č®ľĺ®šäĽšĺ˝±ĺ“Ťĺ°ĺ…¶ĺŽçš„ć‰€ćś‰ \type{\framed}ďĽŚä˝†ćŻä¸ŤäĽšĺ˝±ĺ“Ťĺ°ĺ…¶ć‰€ĺ¤„çĽ–ç»„\footnote{čżč®°ĺľ— \TeX\ çĽ–ç»„ĺ—ďĽźĺŤł \type[escape=no]{{...}}ă€‚}äą‹ĺ¤–çš„ \type{\framed}ă€‚

\section{čŚć™Ż}

ĺŹŻĺ°†é˘śč‰˛ä˝śä¸ş \type{\framed} çš„čŚć™Żă€‚äľ‹ĺ¦‚

\starttyping[option=TEX]
\inframed
  [background=color,
   backgroundcolor=lightgray,
   width=2cm,
   frame=off]{\bf foo}
\stoptyping

\noindent ç»“ćžśä¸ş \inframed[background=color,backgroundcolor=lightgray,width=2cm,frame=off]{\bf foo}ă€‚

é€ščż‡ overlayďĽŚĺŹŻĺ°†ä¸€äş›ä»Łç&nbsp;ç‰‡ć®µçš„ćŽ’ç‰ç»“ćžśä˝śä¸ş \type{\framed} çš„čŚć™Żă€‚äľ‹ĺ¦‚

\starttyping[option=TEX]
\defineoverlay
  [foo]
  [{\framed[width=3cm,frame=off,bottomframe=on]{}}]
\midaligned{\inframed[background=foo,frame=off]{ä˝&nbsp;ĺĄ˝ĺ•ŠďĽ}}
\stoptyping

\defineoverlay
  [foo]
  [{\framed[width=3cm,frame=off,bottomframe=on]{}}]
\midaligned{\inframed[background=foo,frame=off]{ä˝&nbsp;ĺĄ˝ĺ•ŠďĽ}}
\blank

é€ščż‡ä¸Ščż°ç¤şäľ‹ďĽŚçŽ°ĺś¨ä˝&nbsp;ĺş”čŻĄč˝ćś‰ćś‰ä¸ĺ…«ĺ†ćŽç™˝ \in[item-sym-diy] čŠ‚ä¸­ĺ¸¦ĺść•°ĺ­—ćŻĺ¦‚ä˝•ĺ®žçŽ°çš„äş†ďĽŚĺ…¶ĺ…łé”®ä»Łç&nbsp;ĺ¦‚ä¸‹ďĽš

\starttyping[option=TEX]
\startuseMPgraphic{foo}
  path p;
  p := fullcircle scaled 12pt;
  draw p withpen pencircle scaled .4pt
         withcolor darkred;
\stopuseMPgraphic
\defineoverlay[rsquare][\useMPgraphic{foo}]
\def\fooframe#1{%
  \inframed[frame=off,background=rsquare]{#1}%
}
\stoptyping
\startuseMPgraphic{foo}
  path p;
  p := fullcircle scaled 12pt;
  draw p withpen pencircle scaled .4pt
         withcolor darkred;
\stopuseMPgraphic
\defineoverlay[rsquare][\useMPgraphic{foo}]
\def\fooframe#1{%
  \inframed[frame=off,background=rsquare]{#1}%
}
\noindent ć—&nbsp;éťžćŻĺ°†ä¸€ä¸Şĺś†ĺśĺ›ľĺ˝˘ä˝śä¸ş \type{\inframed} çš„čŚć™Żç˝˘äş†ďĽŚč€Śä¸”ĺŻąĺśĺ†…çš„ć–‡ĺ­—çš„é•żĺş¦ćś‰é™ĺ¶ďĽŚĺ­—ć•°ç•Ąĺ¤šä¸€äş›ďĽŚäľżĺ‡şĺśäş†ďĽŚäľ‹ĺ¦‚ \type{\fooframe{123}}ďĽŚç»“ćžśä¸ş \fooframe{123}ă€‚ä¸Ťčż‡ďĽŚĺŹŞéś€ĺŻąä¸Ščż°ä»Łç&nbsp;ç•ĄĺŠ&nbsp;äż®ć”ąďĽŚ

\starttyping[option=TEX]
  p := fullcircle scaled \overlaywidth;
\stoptyping
\startuseMPgraphic{foo}
  path p;
  p := fullcircle scaled \overlaywidth;
  draw p withpen pencircle scaled .4pt
         withcolor darkred;
\stopuseMPgraphic
\defineoverlay[rsquare][\useMPgraphic{foo}]
\def\fooframe#1{%
  \inframed[frame=off,background=rsquare]{#1}%
}

\noindent äľżĺŹŻč§Łé™¤čŻĄé™ĺ¶ă€‚ćŠ€ĺ·§ćŻďĽŚç”¨ overlay çš„ĺ®žé™…ĺ®˝ĺş¦ä˝śä¸şĺŤ•ä˝Ťĺś†çš„ć”ľĺ¤§ĺ€Ťć•°ďĽŚć•…č€ŚĺŹŻäżťčŻĺś†ĺśçš„ç›´ĺľ„ĺŤłĺśĺ†…ć–‡ĺ­—çš„é•żĺş¦ďĽŚäľ‹ĺ¦‚ \type{\fooframe{ć‘ćś‰ä¸€ä¸Şĺ¤§ćżĺ­}}ďĽŚç»“ćžśä¸ş \fooframe{ć‘ćś‰ä¸€ä¸Şĺ¤§ćżĺ­}ă€‚

\section{ç›’ĺ­çš„ć·±ĺş¦}

ĺ¦‚ćžśä˝&nbsp;ä»”ç»†č§‚ĺŻźďĽŚ\ConTeXt\ ç›’ĺ­é‡Śçš„ĺ†…ĺ®ąĺś¨ć°´ĺąłć–ąĺ‘ćŻç˛ľçˇ®ĺ±…ä¸­çš„ďĽŚä˝†ćŻĺś¨ĺą¶éťžĺ¦‚ć­¤ă€‚äľ‹ĺ¦‚

\starttyping[option=TEX]
\inframed{ajk\framed{ć‘çś‹ĺ°ä¸€ćŁµć¨±ćˇć&nbsp;‘}}ă€‚
\stoptyping

\noindent ç»“ćžśä¸ş \inframed{\framed{ć‘çś‹ĺ°ä¸€ćŁµć¨±ćˇć&nbsp;‘}}ă€‚ĺŹŻč§ \type{\inframed} ĺ†…é¨çš„ \type{\framed} çš„ĺş•é¨ćś‰çť€çś‹äĽĽĺ¤šä˝™çš„ç©şç™˝ă€‚ä˝żç”¨ç›’ĺ­çš„ĺŹ‚ć•° \type{depth} ĺŹŻä»Ąć¶é™¤čż™äş›ç©şç™˝ďĽŚä˝†é—®é˘ĺś¨äşŽčż™ĺ¤„ç©şç™˝ä»Žä˝•č€ŚćťĄĺŹŠĺ…¶é«ĺş¦ćŻĺ¤šĺ°‘ă€‚čŻĄé—®é˘ä¸Žĺş•ĺ±‚ \TeX\ çš„čĄżć–‡ćŽ’ç‰ćśşĺ¶ćś‰ĺ…łă€‚

é¦–ĺ…ďĽŚć‘ä»¬éś€č¦ćŽç™˝ďĽŚčĄżć–‡ćŽ’ç‰ďĽŚä¸€čˇŚć–‡ĺ­—ćŻćś‰ĺźşçşżçš„ďĽŚä˝†ĺźşçşżĺą¶éťžä˝ŤäşŽčŻĄčˇŚć–‡ĺ­—çš„ćś€ĺş•ç«ŻďĽŚč€ŚćŻč·ťćś€ĺş•ç«Żćś‰ä¸€ć®µčľĺ°Źçš„č·ťç¦»ďĽŚĺ¦ĺ™ć‰€ćś‰čĄżć–‡ĺ­—ćŻŤé˝ĺś¨ĺŚä¸€ćťˇçşżä¸Šäş†ă€‚ĺś¨ä¸Ščż°ç¤şäľ‹ä¸­ďĽŚ\type{\framed} çš„ĺş•çşżäľżćŻĺ…¶ĺ¤–ĺ›´çš„ \type{\inframed} ć‰€ĺś¨čˇŚçš„ĺźşçşżă€‚čĄżć–‡ĺ­—ä˝“ĺś¨č®ľč®ˇć—¶ďĽŚćŻŹä¸Şĺ­—ĺ˝˘ďĽGlyphďĽ‰ćŻćś‰ĺźşçşżä˝Ťç˝®ďĽŚĺ›&nbsp;ć­¤ĺś¨ćŽ’ç‰ć—¶ĺŹŻć&nbsp;ąćŤ®ĺ®žé™…çš„ĺźşçşżä˝Ťç˝®ĺŻąĺ­—ĺ˝˘čż›čˇŚĺŻąé˝ă€‚ä¸€čˇŚć–‡ĺ­—çš„ĺźşçşżĺ°čŻĄčˇŚçš„ćś€ĺş•ç«Żçš„čż™ć®µč·ťç¦»ç§°ä¸şć·±ĺş¦ă€‚ä¸€čˇŚć–‡ĺ­—çš„ĺźşçşżĺ°čŻĄčˇŚćś€éˇ¶ç«Żçš„čż™ć®µč·ťç¦»ç§°ä¸şé«ĺş¦ă€‚ĺ›&nbsp;ć­¤ďĽŚä¸€čˇŚć–‡ĺ­—çš„çśźć­Łé«ĺş¦ç­‰äşŽć·±ĺş¦ + é«ĺş¦ďĽ›ĺś¨ \ConTeXt\ ä¸­ďĽŚĺ®ç­‰äşŽć‘ä»¬ä˝żç”¨ \type{\setupinterlinespace} č®ľĺ®šçš„ĺ°şĺŻ¸ă€‚

ć—&nbsp;č®şćŻ \TeX\ čżćŻ \ConTeXt\ ç›’ĺ­ďĽŚĺ®ä»¬ćś¬čş«ćŻć˛ˇćś‰ć·±ĺş¦çš„ďĽŚä˝†ćŻĺ˝“ĺ®ä»¬é‡Śéť˘çš„ć–‡ĺ­—ć–ç›’ĺ­ćś‰ć·±ĺş¦ć—¶ďĽŚĺ®ä»¬äľżćś‰äş†ć·±ĺş¦ă€‚č‡łäşŽć·±ĺş¦ĺ€Ľĺ…·ä˝“ćŻĺ¤šĺ¤§ďĽŚĺŹŻä»Ąĺ€źĺŠ© \TeX\ çš„ç›’ĺ­ĺŻ„ĺ­ĺ™¨čż›čˇŚćµ‹é‡Źă€‚äľ‹ĺ¦‚ďĽŚĺ®šäą‰ä¸€ä¸Şç›’ĺ­ĺŻ„ĺ­ĺ™¨ box0ďĽš

\starttyping[option=TEX]
\setbox0\hbox{\inframed{\framed{ć‘çś‹ĺ°ä¸€ćŁµć¨±ćˇć&nbsp;‘}}}
\stoptyping
\setbox0\hbox{\inframed{\framed{ć‘çś‹ĺ°ä¸€ćŁµć¨±ćˇć&nbsp;‘}}}

\noindent çŽ°ĺś¨ć‘ä»¬ćś‰äş†ä¸€ä¸Ş 0 ĺŹ·ç›’ĺ­ďĽŚä˝żç”¨ \type{\wd}ďĽŚ\type{\ht} ĺ’Ś \type{\dp} ĺŹŻĺ†ĺ«ćµ‹é‡ŹčŻĄç›’ĺ­çš„ĺ®˝ĺş¦ă€é«ĺş¦ĺ’Ść·±ĺş¦â€¦â€¦éˇşäľżĺ¤Ťäą&nbsp;ä¸€ä¸‹čˇ¨ć&nbsp;Ľçš„ç”¨ćł•ďĽš

\startsample
\starttabulate[|c|c|c|]
\HL
\NC ĺ®˝ĺş¦ \NC é«ĺş¦ \NC ć·±ĺş¦ \NC\NR
\HL
\NC \the\wd0 \NC \the\ht0 \NC \the\dp0 \NC\NR
\HL
\stoptabulate
\stopsample
\simplesample[option=TEX]{\getsample}

ĺ°†ä¸Ščż°ć‰€ĺľ—ć·±ĺş¦äżˇćŻĺŹ–č´źä˝śä¸ş \type{\inframed} çš„ĺŹ‚ć•° \type{depth} çš„ĺ€ĽďĽŚĺŤł

\starttyping[option=TEX]
\inframed[depth=-\dp0]{\framed{ć‘çś‹ĺ°ä¸€ćŁµć¨±ćˇć&nbsp;‘}}
\stoptyping

\noindent äľżĺŹŻć¶é™¤ć·±ĺş¦ďĽŚç»“ćžśä¸ş \inframed[depth=-\dp0]{\framed{ć‘çś‹ĺ°ä¸€ćŁµć¨±ćˇć&nbsp;‘}}ă€‚

\section{ĺ°Źç»“}

\TeX\ ç›’ĺ­ćŻć—&nbsp;ĺ˝˘çš„ă€‚\ConTeXt\ ç›’ĺ­ćŻćś‰ĺ˝˘çš„ă€‚č€ĺ­ć›ľčŻ´čż‡ďĽŚć’ć—&nbsp;ć¬˛ďĽŚä»Ąč§‚ĺ…¶ĺ¦™ďĽ›ć’ćś‰ć¬˛ďĽŚä»Ąč§‚ĺ…¶ć‰€ĺľĽă€‚ć•…č€ŚďĽŚ\TeX\ č¦ć‡‚ä¸€äş›ďĽŚ\ConTeXt\ äąźč¦ć‡‚ä¸€äş›ă€‚
</pre></body></html>