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

åœ¨æŸäº›æƒ…å¢ƒä¸‹ï¼Œä¸€å›¾å¯èƒœåƒè¨€ã€‚\ConTeXt\ åœ¨æ’å›¾æ–¹é¢ï¼Œä¸ä»…æ”¯æŒå¸¸è§çš„ JPEGï¼ŒGIF å’Œ PNG ç­‰ä½å›¾æ&nbsp;¼å¼ï¼Œä¹Ÿæ”¯æŒ PDFï¼ŒSVG ä»¥åŠ \METAPOST\ ç­‰çŸ¢é‡å›¾æ&nbsp;¼å¼ã€‚

\section[figure]{ä½å›¾}

æ‰€è°“ä½å›¾ï¼Œç›´è§‚ä¸Šçš„è®¤è¯†æ˜¯ï¼Œå¯¹å…¶è¿›è¡Œæ”¾å¤§æˆ–ç¼©å°ï¼Œå›¾åƒä¼šå¤±çœŸã€‚ç…§ç‰‡å’Œå±å¹•æˆªå›¾ï¼Œéƒ½æ˜¯ä½å›¾ã€‚å¸¸è§çš„å‡&nbsp;ç§ä½å›¾æ&nbsp;¼å¼æ–‡ä»¶çš„æ‰©å±•åæ˜¯ã€Œ\type{.jpg}ã€ï¼ˆæˆ–ã€Œ\type{.jpeg}ã€ï¼‰ï¼Œã€Œ\type{.gif}ã€å’Œã€Œ\type{.png}ã€ã€‚\ConTeXt\ åœ¨å¤„ç†æ’å›¾æ—¶ï¼Œè‹¥å‘çŽ°æ’å›¾æ–‡ä»¶çš„æ‰©å±•åæ˜¯è¿™äº›æ‰©å±•åä¹‹ä¸€ï¼Œä¾¿ä¼šä»¥ä½å›¾çš„å½¢å¼å°†å›¾ç‰‡æ’å…¥ç‰ˆé¢ç›¸åº”ä½ç½®ã€‚

å‡è®¾åœ¨ \ConTeXt\ æºæ–‡ä»¶åŒä¸€ç›®å½•é‡Œæœ‰ä¸€å¹…ä½å›¾ ctxnotes.pngï¼Œä»¥ä¸‹ä»£ç&nbsp;ï¼Œ

\starttyping[option=TEX]
\externalfigure[ctxnotes.png]
\stoptyping


\noindent ä¾¿å¯å°† ctxnotes.png ä½œä¸ºæ’å›¾ï¼Œå³ \externalfigure[08/ctxnotes.png]ã€‚æ˜¾ç„¶ï¼Œè¿™æ˜¯æ’å›¾ï¼Œä½†å¾ˆå¯èƒ½å¹¶éžæ˜¯æˆ‘ä»¬æƒ³è¦çš„æ’å›¾å½¢å¼ã€‚æˆ‘ä»¬æƒ³è¦çš„æ˜¯ï¼Œç‹¬å&nbsp;ä¸€è¡Œä¸”å±…ä¸­æ”¾ç½®çš„æ’å›¾ï¼Œè¿™ä¸ªè¦æ±‚è¿™å¹¶ä¸éš¾å®žçŽ°ï¼š

\starttyping[option=TEX]
\midaligned{\externalfigure[ctxnotes.png]}
\stoptyping

\midaligned{\externalfigure[08/ctxnotes.png]}

å¦‚æžœéœ€è¦è®©æ’å›¾æ›´å¤§ä¸€äº›ï¼Œä¾‹å¦‚å®½åº¦ä¸º 8 cmï¼Œé«˜åº¦æŒ‰å›¾ç‰‡åŽŸæœ‰æ¯”ä¾‹è‡ªåŠ¨æ”¾å¤§ï¼Œåªéœ€

\starttyping[option=TEX]
\midaligned{\externalfigure[ctxnotes.png][width=8cm]}
\stoptyping

\noindent é€šå¸¸æ›´å»ºè®®ä½¿ç”¨ç›¸å¯¹å°ºå¯¸ï¼Œä¾‹å¦‚ 0.3 å€çš„ç‰ˆå¿ƒå®½åº¦ï¼ˆæ»¡è¡Œæ–‡å­—çš„æœ€å¤§å®½åº¦ï¼‰ï¼š

\starttyping[option=TEX]
\midaligned{\externalfigure[ctxnotes.png][width=.375\textwidth]}
\stoptyping

\midaligned{\externalfigure[08/ctxnotes.png][width=.375\textwidth]}

å¦‚æ³•ç‚®åˆ¶ï¼Œç»™å›¾ç‰‡åŠ&nbsp;ä¸Šæ&nbsp;‡é¢˜ä¹Ÿå¾ˆå®¹æ˜“ï¼š

\starttyping[option=TEX]
\midaligned{\externalfigure[ctxnotes.png][width=.375\textwidth]}
\midaligned{\tfx \ConTeXt\ å­¦ä¹&nbsp;ç¬”è®°å°é¢æˆªå›¾}
\stoptyping

\midaligned{\externalfigure[08/ctxnotes.png][width=.375\textwidth]}
\midaligned{\tfx\ConTeXt\ å­¦ä¹&nbsp;ç¬”è®°å°é¢æˆªå›¾}

\indentation å¦‚æžœä½&nbsp;è¿˜å¸Œæœ›æ’å›¾èƒ½æœ‰ç¼–å·ï¼Œå¯¹äºŽç¯‡å¹…è¾ƒå°çš„æ–‡ç«&nbsp;ï¼Œæ‰‹å·¥è¾“å…¥å³å¯ï¼Œå»ºè®®åœ¨ç¼–å·åŽï¼Œä½¿ç”¨ \type{\quad} æ’å…¥ä¸€ä¸ªå­—å®½çš„ç©ºç™½ä½œä¸ºé—´éš”ï¼Œå›&nbsp;ä¸ºæ™®é€šçš„ç©ºæ&nbsp;¼åªæœ‰åŠä¸ªå­—å®½ã€‚ä¾‹å¦‚

\starttyping[option=TEX]
\midaligned{\externalfigure[ctxnotes.png][width=.375\textwidth]}
\midaligned{\tfx å›¾ 1\quad\ConTeXt\ å­¦ä¹&nbsp;ç¬”è®°å°é¢æˆªå›¾}
\stoptyping

\midaligned{\externalfigure[08/ctxnotes.png][width=.375\textwidth]}
\midaligned{\tfx å›¾ 1\quad\ConTeXt\ å­¦ä¹&nbsp;ç¬”è®°å°é¢æˆªå›¾}

å¦‚æžœä½&nbsp;æ‹…å¿ƒï¼Œæ’å›¾å¤ªå¤šï¼Œæ‰‹å·¥è¾“å…¥å›¾ç‰‡ç¼–å·éš¾å…ä¼šå‡ºé”™ï¼Œå¯ä»¥ä½¿ç”¨ \ConTeXt\ çš„è®¡æ•°å™¨åŠŸèƒ½ï¼Œè®© \ConTeXt\ ä¸ºä½&nbsp;è‡ªåŠ¨é€’å¢žå›¾ç‰‡åºå·ã€‚é¦–å…ˆï¼Œå®šä¹‰ä¸€ä¸ªè®¡æ•°å™¨ï¼š

\starttyping[option=TEX]
\definenumber[myfig]
\stoptyping

\noindent ç„¶åŽï¼Œæ¯æ¬¡åœ¨ç»™æ’å›¾æ·»åŠ&nbsp;åŠ&nbsp;æ&nbsp;‡é¢˜æ—¶ï¼Œå°†è¯¥è®¡æ•°å™¨å¢ž 1ï¼Œå¹¶èŽ·å–å®ƒçš„å½“å‰çš„å€¼ï¼š

\starttyping[option=TEX]
\midaligned{\externalfigure[ctxnotes.png][width=.375\textwidth]}
\incrementnumber[myfig]
\midaligned{\tfx å›¾ \getnumber[myfig]\quad\ConTeXt\ å­¦ä¹&nbsp;ç¬”è®°å°é¢æˆªå›¾}
\blank[line]
\midaligned{\externalfigure[ctxnotes-2.png][width=.375\textwidth]}
\incrementnumber[myfig]
\midaligned{\tfx å›¾ \getnumber[myfig]\quad æ¶‚é¸¦ç‰ˆ Hilbert æ›²çº¿}
\stoptyping

\definenumber[myfig][prefix=no]
\midaligned{\externalfigure[08/ctxnotes.png][width=.375\textwidth]}
\incrementnumber[myfig]
\midaligned{\tfx å›¾ \getnumber[myfig]\quad\ConTeXt\ å­¦ä¹&nbsp;ç¬”è®°å°é¢æˆªå›¾}
\midaligned{\externalfigure[08/ctxnotes-2.png][width=.375\textwidth]}
\incrementnumber[myfig]
\midaligned{\tfx å›¾ \getnumber[myfig]\quad æ¶‚é¸¦ç‰ˆ Hilbert æ›²çº¿}

\section{çŸ¢é‡å›¾}

æ‰€è°“çŸ¢é‡å›¾ï¼Œå¯¹å…¶è¿›è¡Œæ”¾å¤§æˆ–ç¼©å°ï¼Œå›¾åƒä¸ä¼šå¤±çœŸã€‚PDF å’Œ SVG æ&nbsp;¼å¼ï¼Œçš†ä¸ºçŸ¢é‡å›¾æ&nbsp;¼å¼ï¼Œæ–‡ä»¶æ‰©å±•ååˆ†åˆ«ä¸º \type{.pdf} å’Œ \type{.svg}ï¼Œå°†å®ƒä»¬ä½œä¸ºæ–‡æ¡£æ’å›¾ï¼Œæ–¹æ³•ä¸Žä½å›¾ç›¸åŒï¼Œä¾‹å¦‚

\starttyping[option=TEX]
\externalfigure[ctxnotes.pdf][width=.7\textwidth]
\stoptyping

\section{å®}

è¶…å¼¦ç†è®ºè®¤ä¸ºï¼Œå®‡å®™æ˜¯åç»´çš„ï¼Œå…¶ä¸­æœ‰å…­ä¸ªç»´åº¦èœ·ç¼©åœ¨å¡æ‹‰æ¯”-ä¸˜ç©ºé—´ï¼Œäººç±»ç›®å‰è§‚æµ‹ä¸åˆ°ã€‚æˆ‘ä¸çŸ¥é“è¿™ä¸ªç†è®ºæ˜¯å¦æ­£ç¡®ï¼Œä½†æ˜¯åœ¨ \TeX\ ç³»ç»Ÿä¸­ï¼Œçš„ç¡®èƒ½å°†è®©ä¸€äº›ç»´åº¦èœ·ç¼©åœ¨ä¸€ä¸ªç©ºé—´é‡Œï¼Œè¿™ä¸ªç©ºé—´å«ä½œã€Œå®ã€ã€‚

åœ¨ \in[breaking-lines] èŠ‚ï¼Œæˆ‘ä»¬æ›¾ç»å®šä¹‰è¿‡ä¸€ä¸ªå®ï¼š

\starttyping[option=TEX]
\def\foo{\hskip 0pt plus 2pt minus 0pt}
\stoptyping

\noindent å½“æˆ‘ä»¬ä½¿ç”¨ \type{\foo} æ—¶ï¼Œ\TeX\ å¼•æ“Žä¼šå°†å…¶å±•å¼€ä¸ºã€Œ\type{\hskip 0pt plus 2pt minus 0pt}ã€ã€‚ç”¨ç±»ä¼¼çš„æ–¹æ³•ï¼Œå¯ä»¥è®© \in[figure] èŠ‚ä¸­çš„åˆ¶ä½œæ’å›¾çš„ä»£ç&nbsp;èœ·ç¼©åœ¨ä¸€ä¸ªå¸¦å‚æ•°çš„å®é‡Œï¼Œä¾‹å¦‚

\starttyping[option=TEX]
\definenumber[myfig] % å®šä¹‰æ’å›¾ç¼–å·è®¡æ•°å™¨
\def\placemyfigure#1#2{%
  \midaligned{#2}
  \incrementnumber[myfig]
  \midaligned{\tfx å›¾ \getnumber[myfig]\quad #1}
  \blank[line]
}
\stoptyping

\noindent ä¹‹åŽï¼Œåœ¨æ–‡ç«&nbsp;é‡Œæ”¾å…¥æ’å›¾ä¼šæ›´ä¸ºå®¹æ˜“ï¼Œä¾‹å¦‚

\starttyping[option=TEX]
\placemyfigure
  {æ¶‚é¸¦ç‰ˆ Hilbert æ›²çº¿}
  {\externalfigure[ctxnotes-2.png][width=.375\textwidth]}
\stoptyping

ä½&nbsp;å¯èƒ½å¹¶ä¸èƒ½å®Œå…¨ç†è§£ \type{\palcemyfigure} çš„å®šä¹‰ï¼Œä½†æ˜¯åŸºäºŽä¸Šä¸€èŠ‚çš„ä¸€äº›ç¤ºä¾‹ï¼Œåº”è¯¥èƒ½çŒœå‡ºå…¶è¦ä¹‰ã€‚è¿™å·²ç»è¶³å¤Ÿäº†ï¼Œæ—¥åŽå€˜è‹¥ä½&nbsp;è§‰å¾—æœ‰äº›ç»å¸¸é‡å¤ä½¿ç”¨çš„æŽ’ç‰ˆä»£ç&nbsp;ï¼Œå®ƒä»¬åªå­˜åœ¨å°‘è®¸å·®å¼‚ï¼Œä¾¿å¯å°è¯•ä¸ºå®ƒä»¬å®šä¹‰ä¸€ä¸ªå®ï¼Œç”¨å®çš„å‚æ•°ä»£æ›¿å·®å¼‚ã€‚çŽ°åœ¨ä¹Ÿè®¸ä½&nbsp;å·²ç»éšéšæ„Ÿè§‰åˆ°äº†ï¼Œ\ConTeXt\ çš„æŽ’ç‰ˆå‘½ä»¤ä¹Ÿæ˜¯ \TeX\ å®ã€‚

\section{\type{\placefigure}}

äº‹å®žä¸Šï¼Œ\ConTeXt\ æä¾›äº†æ¯”æˆ‘ä»¬å®šä¹‰çš„ \type{\palcemyfigure} æ›´ä¸ºå¼ºå¤§çš„å‘½ä»¤ \type{\palcefigure}ï¼Œå…¶ç”¨æ³•ä¸º

\starttyping[option=TEX]
\placefigure[æ’å›¾æ‘†æ”¾ä½ç½®][å¼•ç”¨]{æ’å›¾æ&nbsp;‡é¢˜}{\exteranlfigure[...][...]}
\stoptyping

ä¾‹å¦‚ï¼Œå°† ctxnotes-2.png ä½œä¸ºæ’å›¾ï¼Œå±…ä¸­æ”¾ç½®ï¼Œå¼•ç”¨ä¸ºã€ŒHilbert æ›²çº¿ã€ï¼Œæ&nbsp;‡é¢˜ä¸ºã€Œæ¶‚é¸¦ç‰ˆ Hilbert æ›²çº¿ã€ï¼Œåªéœ€

\starttyping[option=TEX]
\placefigure
  [][Hilbert æ›²çº¿]
  {æ¶‚é¸¦ç‰ˆ Hilbert æ›²çº¿}
  {\externalfigure[ctxnotes-2.png][width=.3\textwidth]}
\stoptyping
\midaligned{\externalfigure[08/hibert.pdf]}

\subsection{æ’å›¾æ&nbsp;‡é¢˜æ&nbsp;·å¼}

å¯¹äºŽ \type{\placefigure} çš„ç»“æžœï¼Œå¯èƒ½ä½&nbsp;å·²ç»è§‰å¾—æœ‰äº›ä¸æ»¡æ„äº†ã€‚åœ¨ä¸­æ–‡æŽ’ç‰ˆä¸­ï¼Œå›¾ç‰‡çš„ç¼–å·å‰ç¼€ä¸åº”è¯¥æ˜¯ Figureï¼Œè€Œåº”è¯¥æ˜¯ã€Œå›¾ã€ï¼Œæ­¤å¤–ï¼Œç¼–å·ä¹Ÿæ²¡å¿…è¦ç²—ä½“ï¼Œè€Œä¸”æ&nbsp;‡é¢˜å­—å·åº”å½“æ¯”æ­£æ–‡å­—ä½“å°ä¸€çº§ã€‚æ²¡æœ‰åŠžæ³•ï¼Œ\ConTeXt\ ä¸€åˆ‡é»˜è®¤çš„æ&nbsp;·å¼ï¼Œçš†é’ˆå¯¹è¥¿æ–‡æŽ’ç‰ˆã€‚ä¸è¿‡ï¼Œæˆ‘ä»¬å¯ä»¥é€šè¿‡ä»¥ä¸‹å‘½ä»¤ï¼Œå°†æ’å›¾æ&nbsp;‡é¢˜æ&nbsp;·å¼è®¾ç½®æˆæˆ‘ä»¬æ‰€æœŸæœ›çš„æ&nbsp;·å¼ï¼š

\starttyping[option=TEX,space=on]
\setupcaption[figure][style=\tfx,headstyle=\rm]
\setuplabeltext[en][figure={å›¾ }]
\stoptyping
\midaligned{\externalfigure[08/hibert-1.pdf]}

ä¸Šè¿°è®¾å®šçš„æ&nbsp;·å¼ï¼Œå·²åŸºæœ¬ç¬¦åˆæˆ‘ä»¬çš„è¦æ±‚ã€‚æ&nbsp;¹æ®æŽ’ç‰ˆç»“æžœï¼Œå¾ˆå®¹æ˜“èƒ½çŒœå‡ºæ¥ï¼Œ\type{\setupcaption} çš„ \type{style} å‚æ•°ç”¨äºŽè®¾å®šæ’å›¾å­—ä½“æ&nbsp;·å¼ï¼Œ\type{headstyle} åˆ™ç”¨äºŽè®¾å®šæ’å›¾ç¼–å·æ&nbsp;·å¼ã€‚è‡³äºŽ \type{\setuplabeltext}ï¼Œä¸Ž \ConTeXt\ çš„è¯­è¨€ç•Œé¢æœ‰å…³ï¼Œä½†çŽ°åœ¨ä¸å¿…æ¶‰åŠå¤ªå¤šç»†èŠ‚ï¼Œä»…éœ€çŸ¥é“ï¼Œå®ƒå¯å°†æ’å›¾æ&nbsp;‡é¢˜çš„å‰ç¼€ã€Œ\type{Figure}ã€æ›¿æ¢ä¸ºã€Œ\type[space=on]{å›¾ }ã€ã€‚ä¸è¿‡ï¼Œä¾ç„¶å­˜åœ¨ä¸€ä¸ªç»†å¾®çš„é—®é¢˜ï¼Œæ&nbsp;‡é¢˜é‡Œçš„æ±‰å­—ä¹‹é—´çš„ç²˜è¿žçš„ä¼¸é•¿ç‰¹æ€§åˆè¢« \ConTeXt\ è§¦å‘äº†ï¼Œå¯¼è‡´æ±‰å­—åˆ†å¸ƒæœ‰äº›ç–æ¾ã€‚è¯¥é—®é¢˜çš„è§£å†³æ–¹æ³•ä¸Žç¬¬ \in[post] ç«&nbsp;çš„ç¤ºä¾‹ \in[zaoshu-5] ç›¸ä¼¼ï¼Œç”¨å°†å¯¹é½å‚æ•°è®¾ä¸º \type{center}ï¼Œå³

\starttyping[option=TEX]
\setupcaption[figure][style=\tfx,headstyle=\normal,align=center]
\stoptyping
\midaligned{\externalfigure[08/hibert-2.pdf]}

\subsection{æ’å›¾ä½ç½®}

\type{\placefigure} çš„ç¬¬ä¸€ä¸ªå‚æ•°ç”¨äºŽè®¾å®šæ’å›¾æ‘†æ”¾ä½ç½®ã€‚å½“è¯¥å‚æ•°ä¸ºç©ºæ—¶ï¼Œ\ConTeXt\ é»˜è®¤æ’å›¾å±…ä¸­æ”¾ç½®ã€‚æœ‰æ—¶ä¸ºäº†èŠ‚çœæŽ’ç‰ˆç©ºé—´ï¼Œéœ€è¦å°†æ’å›¾å±…å·¦æˆ–å±…å³æ”¾ç½®ï¼Œè¯¥éœ€æ±‚å¯é€šè¿‡å‚æ•° \type{left} æˆ– \type{right} å®žçŽ°ã€‚ä¾‹å¦‚ï¼Œ

\starttyping[option=TEX]
% å±…å·¦
\placefigure[left][...]{...}{...}
% å±…å³
\placefigure[right][...]{...}{...}
\stoptyping

ä¸Ž Mircro Word è¿™ç§å­—å¤„ç†è½¯ä»¶ç›¸æ¯”ï¼Œ\ConTeXt\ çš„å±…ä¸­æ’å›¾ç¼ºä¹æ–‡å­—çŽ¯ç»•åŠŸèƒ½ï¼Œè‹¥æƒ³å®žçŽ°è¯¥åŠŸèƒ½ï¼Œéœ€å¯¹åœ¨ \TeX\ å±‚é¢æŽŒæ¡å¦‚ä½•æŽ§åˆ¶æ®µè½å½¢çŠ¶ã€‚

åœ¨ \ConTeXt\ ä¸–ç•Œé‡Œï¼Œæ’å›¾å®žé™…ä¸Šæ˜¯æµ®åŠ¨å¯¹è±¡ï¼ˆFloat Objectï¼‰çš„ç‰¹ä¾‹ã€‚æ‰€è°“æµ®åŠ¨å¯¹è±¡ï¼Œå³ä½&nbsp;ä»¥ä¸ºæ’å›¾åº”è¯¥åœ¨æ–‡æ¡£çš„æŸä¸ªä½ç½®å‡ºçŽ°ï¼Œä½†å®žé™…ä¸Š \TeX\ å¼•æ“Žä¼šæ&nbsp;¹æ®ç‰ˆé¢çš„æ‹¥æŒ¤ç¨‹åº¦ï¼Œä¿®æ”¹æ’å›¾çš„ä½ç½®ã€‚ä¾‹å¦‚ï¼Œåœ¨æ–‡æ¡£çš„æŸä¸€é¡µçš„åº•éƒ¨ï¼Œè‹¥å‰©ä½™ç©ºé—´å·²ç»ä¸å¤Ÿæ”¾ç½®ä¸€å¹…æ’å›¾ï¼Œåˆ™ \TeX\ å¼•æ“Žä¼šåŠªåŠ›åœ¨ä¸‹ä¸€é¡µä¸ºæ’å›¾å¯»æ‰¾ä¸€ä¸ªæ›´åˆé€‚çš„ä½ç½®ï¼Œä½†æ˜¯åŽŸæœ¬åº”è¯¥ä½äºŽæ’å›¾ä¹‹åŽçš„æ­£æ–‡å†…å®¹ä¼šå‡ºçŽ°åœ¨æ’å›¾ä¹‹å‰ã€‚è‹¥æ˜¯ç¦æ­¢æ’å›¾æµ®åŠ¨ï¼Œåªéœ€

\starttyping[option=TEX]
\placefigure[force][...]{...}{...}
\stoptyping

\noindent è¿˜æœ‰ä¸€ä¸ªå‚æ•° \type{here}ï¼Œå¼ºè¿«æ€§æ¯” \type{force} è¦å¼±ä¸€äº›ï¼Œåªæ˜¯å»ºè®® \TeX\ å¼•æ“Žå°½é‡è®©æ’å›¾ä¿æŒåœ¨åŽŸä½ç½®ã€‚

é™¤ä¸Šè¿°å‚æ•°ä¹‹å¤–ï¼Œ\type{\placefigure} è¿˜æœ‰è®¸å¤šæŽ§åˆ¶æ’å›¾æ‘†æ”¾ä½ç½®çš„å‚æ•°ï¼Œä½†å¹¶ä¸å¸¸ç”¨ï¼Œæ¬²çŸ¥å…¶è¯¦ï¼Œè¯·å‚è€ƒ \ConTeXt\ Wiki é¡µé¢ã€ŒFloating Objectsã€\cite[floating-objects]ã€‚

\subsection{å¼•ç”¨}

\type{\placefigure} çš„ç¬¬äºŒä¸ªå‚æ•°ç”¨äºŽè®¾å®šå›¾ç‰‡çš„å¼•ç”¨æ&nbsp;‡è®°ã€‚åœ¨æ­£æ–‡ä¸­ï¼Œä½¿ç”¨ \type{\in[...]} ä¾¿å¯å¾—åˆ°æ’å›¾ç¼–å·ã€‚ä¾‹å¦‚

\starttyping[option=TEX]
å¦‚å›¾ \in[Hilbert æ›²çº¿] æ‰€ç¤ºâ€¦â€¦

\placefigure
  [][Hilbert æ›²çº¿]
  {æ¶‚é¸¦ç‰ˆ Hilbert æ›²çº¿}{\externalfigure[ctxnotes-2.png][width=.3\textwidth]}
\stoptyping
\midaligned{\blueframed{\externalfigure[08/hibert-3.pdf]}}

\section[figure-matrix]{é˜µåˆ—}

æœ‰æ—¶ä¸ºäº†èŠ‚çœæŽ’ç‰ˆç©ºé—´ï¼Œéœ€è¦å°†ä¸¤å¹…æˆ–æ›´å¤šå¹…æ’å›¾å¹¶æŽ’æ”¾ç½®ï¼Œå¦‚å›¾ \in[win-r] å’Œ \in[cmd-window] æ‰€ç¤ºã€‚è¯¥æ•ˆæžœå¯ä½¿ç”¨ floatcombination çŽ¯å¢ƒæž„é€&nbsp;æ’å›¾é˜µåˆ—æ¥å®žçŽ°ã€‚ä¾‹å¦‚ï¼Œé¦–å…ˆæž„å»ºä¸€è¡Œä¸¤åˆ—çš„æ’å›¾é˜µåˆ—ï¼š

\starttyping[option=TEX]
\startfloatcombination[nx=2,ny=1]
\placefigure{}{}
\placefigure{}{}
\stopfloatcombination
\stoptyping
\leftaligned{\externalfigure[08/floatcomb.pdf]}

\noindent ç„¶åŽå°†æ‰€å¾—é˜µåˆ—ä½œä¸ºæ’å›¾ï¼Œä¾¿å¯å¾—åˆ°å±…ä¸­æ”¾ç½®çš„æ’å›¾é˜µåˆ—ï¼š

\starttyping[option=TEX]
\placefigure[none][]{}{
  \startfloatcombination[nx=2,ny=1]
  \placefigure{}{}
  \placefigure{}{}
  \stopfloatcombination
}
\stoptyping
\midaligned{\externalfigure[08/floatcomb-2.pdf]}

ä¸Šè¿°ç¤ºä¾‹ç”¨äº† \type{\placefigure} ä¸€ä¸ªå°æŠ€å·§ï¼šå½“ \type{\placefigure} çš„ç¬¬ä¸€ä¸ªå‚æ•°å«æœ‰ \type{none} æ—¶ï¼Œå¯ä»¥æ¶ˆé™¤æ’å›¾ç¼–å·å’Œæ&nbsp;‡é¢˜ã€‚æ­¤å¤–ï¼Œä½&nbsp;åº”è¯¥å‘çŽ°äº†ï¼Œ\type{\placefigure} çš„å‚æ•°ä¸ºç©ºæ—¶ï¼Œ\ConTeXt\ ä¼šä»¥ä¸€ä¸ªçŸ©å½¢æ¡†è¡¨ç¤ºæ’å›¾ï¼Œè¿˜åº”å½“æ³¨æ„åˆ°ï¼Œæ–¹æ‹¬å·å½¢å¼çš„å‚æ•°ï¼Œé€šå¸¸æ˜¯å¯ä»¥çœç•¥çš„ã€‚

è‹¥ \type{\placefigure} çš„ç¬¬ä¸€ä¸ªå‚æ•°å«æœ‰ \type{nonumber} æ—¶ï¼Œå¯ä»¥æ¶ˆé™¤æ’å›¾ç¼–å·ï¼Œä»…ä¿ç•™æ&nbsp;‡é¢˜ã€‚å›&nbsp;æ­¤ï¼Œä¸Šè¿°å®žçŽ°å›¾ç‰‡é˜µåˆ—çš„æ–¹æ³•ç¨åŠ&nbsp;å˜æ¢ï¼Œä¾¿å¯å®žçŽ°ç”±å¤šå¹…æ’å›¾ç»„åˆä¸ºä¸€å¹…æ’å›¾çš„æ•ˆæžœï¼š

\starttyping[option=TEX]
\placefigure{}{
  \startfloatcombination[nx=2,ny=1]
  \placefigure[nonumber]{a}{}
  \placefigure[nonumber]{b}{}
  \stopfloatcombination
}
\stoptyping
\midaligned{\externalfigure[08/floatcomb-3.pdf]}

åŸºäºŽ \type{combination} çŽ¯å¢ƒå¯å®žçŽ°ä¸Žä¸Šä¾‹ç­‰æ•ˆçš„æ’å›¾é˜µåˆ—ï¼Œåªæ˜¯æ‰€ç”¨ä»£ç&nbsp;ç•¥å¤šä¸€äº›ï¼Œä½†å½¢å¼ä¸Šæ›´ä¸ºç»“æž„åŒ–ä¸”åº”ç”¨èŒƒå›´æ›´å¹¿ã€‚ä¾‹å¦‚

\starttyping[option=TEX]
\placefigure{}{
  \startcombination[nx=2,ny=1]
  \startcontent \externalfigure[ctxnotes.png][height=3cm] \stopcontent
  \startcaption a \stopcaption
  \startcontent \externalfigure[ctxnotes-2.png][height=3cm] \stopcontent
  \startcaption b \stopcaption
  \stopcombination
}
\stoptyping
\midaligned{\externalfigure[08/floatcomb-4.pdf]}

\section{å›¾ç‰‡ç›®å½•}

å‰æ–‡æ‰€æœ‰ç¤ºä¾‹ï¼Œæ’å›¾æ‰€ç”¨å›¾å½¢æ–‡ä»¶çš†éœ€ä¸Ž \ConTeXt\ æºæ–‡ä»¶ä½äºŽåŒä¸€ç›®å½•ã€‚ä¸ºäº†è®©æ–‡ä»¶ç›®å½•æ›´ä¸ºæ•´æ´ï¼Œæˆ‘ä»¬åœ¨ \ConTeXt\ æºæ–‡ä»¶æ‰€åœ¨ç›®å½•ä¸‹ï¼Œæž„å»ºäº†ä¸€å­ç›®å½•ï¼Œä¾‹å¦‚ figuresï¼Œä¸“é—¨ç”¨äºŽå­˜æ”¾å›¾å½¢æ–‡ä»¶ã€‚ä¸ºäº†è®© \ConTeXt\ èƒ½å¤Ÿæ‰¾åˆ°å›¾å½¢æ–‡ä»¶ï¼Œåœ¨æž„é€&nbsp;æ’å›¾æ—¶ï¼Œéœ€è¦å‘ \type{\externalfigure} æä¾›å›¾å½¢æ–‡ä»¶çš„ç›¸å¯¹è·¯å¾„ï¼š

\starttyping[option=TEX]
\externalfigure[figures/å›¾å½¢æ–‡ä»¶]
\stoptyping

è‹¥ä¸æƒ³æ¯æ¬¡æ’å›¾æ—¶å¦‚æ­¤éº»çƒ¦ï¼Œå¯ä»¥é€šè¿‡ä»¥ä¸‹å‘½ä»¤å°†å›¾å½¢æ–‡ä»¶æ‰€åœ¨ç›®å½•å‘ŠçŸ¥ \ConTeXtï¼š

\starttyping[option=TEX]
\setupexternalfigures[directory={./figures}]
\stoptyping

\section{\MetaFun}

åœ¨ \ConTeXt\ ä¸­ï¼Œè¿˜æœ‰ä¸€ç§æ’å›¾å½¢å¼ï¼Œ\METAPOST\ ç»˜å›¾ä»£ç&nbsp;ï¼Œè¿™äº›ç»˜å›¾ä»£ç&nbsp;è¢«åµŒå…¥åœ¨ \ConTeXt\ çš„ \MetaFun\ çŽ¯å¢ƒé‡Œã€‚ä¾‹å¦‚ï¼Œä½¿ç”¨ \MetaFun\ çŽ¯å¢ƒ \type{useMPgraphic}ï¼Œä»¥ \METAPOST\ è¯­è¨€ç»˜åˆ¶ä¸€ä¸ªè¾¹çº¿è¢«è½»å¾®éšæœºæ‰°åŠ¨çš„çŸ©å½¢ï¼š

\starttyping[option=TEX]
\startuseMPgraphic{metapost å›¾å½¢}
path p; p := fullsquare xyscaled (7cm, 3cm) randomized 0.07u;
drawpath p; drawpoints p;
\stopuseMPgraphic
\placefigure{\MetaFun\ example}{\useMPgraphic{metapost å›¾å½¢}}
\stoptyping
\midaligned{\externalfigure[08/metapost.pdf]}

ä¸Šè¿°ç¤ºä¾‹åœ¨æŽ’ç‰ˆæ’å›¾æ&nbsp;‡é¢˜æ—¶ï¼Œæ¶‰åŠ \TeX\ å®åœ¨ä½¿ç”¨æ—¶å³å®è°ƒç”¨æ—¶çš„ä¸€ä¸ªç»†èŠ‚ã€‚ä¾‹å¦‚ï¼Œ\type{\TeX} ä¹‹åŽè·Ÿéšä¸€ä¸ªæˆ–å¤šä¸ªç©ºæ&nbsp;¼ï¼Œå³ \type[space=on]{\TeX    }ï¼Œè¿™äº›ç©ºæ&nbsp;¼ä¼šè¢« \TeX\ å¼•æ“ŽåžæŽ‰ï¼Œä¸ä¼šæ˜¾ç¤ºåœ¨æŽ’ç‰ˆç»“æžœä¸­ï¼ŒåŽŸå›&nbsp;æ˜¯é»˜è®¤æƒ…å†µä¸‹ï¼Œç©ºæ&nbsp;¼æ˜¯ \TeX\ å¼•æ“Žéœ€è¦çŸ¥é“å®çš„åå­—çš„ç»“æŸç¬¦ã€‚å¦‚æžœéœ€è¦åœ¨ä¸€ä¸ªå®è°ƒç”¨ä¹‹åŽæ’å…¥ç©ºæ&nbsp;¼ï¼Œéœ€è¦å¯¹ç©ºæ&nbsp;¼è¿›è¡Œè½¬ä¹‰ï¼Œå³ \type[space=on]{\ }ï¼Œäº¦å³åæ–œçº¿åŽè·Ÿéšä¸€ä¸ªç©ºæ&nbsp;¼ã€‚

\section{å°ç»“}

æ‰€è°“æ’å›¾ï¼Œä¸è¿‡æ˜¯ä¸ªå¤´è¾ƒå¤§çš„æ–‡å­—ç½¢äº†ã€‚
</pre></body></html>