<html><head><meta name="color-scheme" content="light dark"></head><body><pre style="word-wrap: break-word; white-space: pre-wrap;">\chapter{ç‰¹è‰²å·¥å…·å’ŒåŠŸèƒ½}\label{chap:spec}
\addtocontents{los}{\protect\addvspace{10pt}}

\begin{intro}
æœ¬ç«&nbsp;ä»‹ç»ä¸€äº›ç‰¹è‰²çš„ \LaTeX{} è¾…åŠ©åŠŸèƒ½ã€‚å‰ä¸¤ä¸ªåŠŸèƒ½ \hologo{BibTeX} å’Œ makeindex ä¾é&nbsp;ä¸€äº›è¾…åŠ©ç¨‹åºè‡ªåŠ¨ç”Ÿæˆå‚è€ƒæ–‡çŒ®ã€ç´¢å¼•ç­‰ï¼›
ä¹‹åŽçš„ä½¿ç”¨é¢œè‰²ã€è¶…é“¾æŽ¥ç­‰åˆ™ä»¤æˆ‘ä»¬ç”Ÿæˆç¾Žè§‚æ˜“ç”¨çš„ç”µå­æ–‡æ¡£ã€‚
\end{intro}

\section{å‚è€ƒæ–‡çŒ®å’Œ \hologo{BibTeX} å·¥å…·}\label{sec:bib}

\subsection{åŸºæœ¬çš„å‚è€ƒæ–‡çŒ®å’Œå¼•ç”¨}\label{subsec:bib-basics}

\pinyinindex{cankaowenxian}{å‚è€ƒæ–‡çŒ®}
\LaTeX{} æä¾›çš„å‚è€ƒæ–‡çŒ®å’Œå¼•ç”¨æ–¹å¼æ¯”è¾ƒåŽŸå§‹ï¼Œéœ€è¦ç”¨æˆ·è‡ªè¡Œä¹¦å†™å‚è€ƒæ–‡çŒ®åˆ—è¡¨ï¼ˆåŒ…æ‹¬æ&nbsp;¼å¼ï¼‰ï¼Œ
å›&nbsp;æ­¤è¾ƒéš¾ç›´æŽ¥ä½¿ç”¨ã€‚ç›¸å…³çš„å‘½ä»¤æˆ‘ä»¬åªä½œæœ€ç®€å•çš„ä»‹ç»ã€‚

\cmdindex{cite}
\LaTeX{} æä¾›äº†æœ€åŸºæœ¬çš„ \cmd{cite} å‘½ä»¤ç”¨äºŽåœ¨æ­£æ–‡ä¸­å¼•ç”¨å‚è€ƒæ–‡çŒ®ï¼š
\begin{command}
\cmd{cite}\marg{citation}
\end{command}

\Arg{citation} ä¸ºå¼•ç”¨çš„å‚è€ƒæ–‡çŒ®çš„æ&nbsp;‡ç­¾ï¼Œç±»ä¼¼ \cmd{ref} é‡Œçš„å‚æ•°ï¼›\cmd{cite} å¸¦ä¸€ä¸ªå¯é€‰å‚æ•°ï¼Œä¸ºå¼•ç”¨çš„ç¼–å·åŽåŠ&nbsp;ä¸Šé¢å¤–çš„å†…å®¹ï¼Œ
å¦‚ \cmd{cite}\oarg*{page 22}\marg*{Paper2013} å¯èƒ½å¾—åˆ°å½¢å¦‚ [13, page 22] è¿™æ&nbsp;·çš„å¼•ç”¨ã€‚

\envindex{thebibliography}
\cmdindex{bibitem}
å‚è€ƒæ–‡çŒ®ç”± \env{thebibliography} çŽ¯å¢ƒåŒ…è£¹ã€‚æ¯æ¡å‚è€ƒæ–‡çŒ®ç”± \cmd{bibitem} å¼€å¤´ï¼Œå…¶åŽæ˜¯å‚è€ƒæ–‡çŒ®æœ¬èº«çš„å†…å®¹ï¼š
\begin{command}
\cmd{begin}\marg*{thebibliography}\marg{widest label} \\
\quad \cmd{bibitem}\oarg{item number}\marg{citation} ...\\
\cmd{end}\marg*{thebibliography}
\end{command}
å…¶ä¸­ \Arg{citation} æ˜¯ \cmd{cite} ä½¿ç”¨çš„æ–‡çŒ®æ&nbsp;‡ç­¾ï¼Œ
\Arg{item number} è‡ªå®šä¹‰å‚è€ƒæ–‡çŒ®çš„åºå·ï¼Œå¦‚æžœçœç•¥ï¼Œåˆ™æŒ‰è‡ªç„¶æŽ’åºç»™å®šåºå·ã€‚
\Arg{widest label} ç”¨ä»¥é™åˆ¶å‚è€ƒæ–‡çŒ®åºå·çš„å®½åº¦ï¼Œå¦‚ 99 æ„å‘³ç€ä¸è¶…è¿‡ä¸¤ä½æ•°å­—ã€‚é€šå¸¸è®¾å®šä¸ºä¸Žå‚è€ƒæ–‡çŒ®çš„æ•°ç›®ä¸€è‡´ã€‚

åœ¨ \cls{article} æ–‡æ¡£ç±»ï¼Œ\env{thebibliography} çŽ¯å¢ƒè‡ªåŠ¨ç”Ÿæˆä¸å¸¦ç¼–å·çš„ä¸€èŠ‚ï¼Œæ&nbsp;‡é¢˜é»˜è®¤ä¸ºâ€œReferencesâ€ï¼›
è€Œåœ¨ \cls{report} æˆ– \cls{book} æ–‡æ¡£ç±»ä¸­ï¼Œåˆ™ä¼šç”Ÿæˆä¸å¸¦ç¼–å·çš„ä¸€ç«&nbsp;ï¼Œæ&nbsp;‡é¢˜é»˜è®¤ä¸ºâ€œBibliographyâ€ã€‚
ç”¨æˆ·å¯é€šè¿‡ \ref{sec:latex-settings} èŠ‚ç»™å‡ºçš„æ–¹æ³•å®šåˆ¶å‚è€ƒæ–‡çŒ®çš„æ&nbsp;‡é¢˜ã€‚

ä»¥ä¸‹ä¸ºä¸€ä¸ªä½¿ç”¨ \env{the\-biblio\-graphy} æŽ’ç‰ˆå‚è€ƒæ–‡çŒ®çš„ä¾‹å­ï¼š
\begin{verbatim}
\documentclass{article}
\begin{document}
\section{Introduction}
Partl~\cite{germenTeX} has proposed that \ldots

\begin{thebibliography}{99}
\bibitem{germenTeX} H.~Partl: \emph{German \TeX},
  TUGboat Volume~9, Issue~1 (1988)
\end{thebibliography}
\end{document}
\end{verbatim}

\subsection{\hologo{BibTeX} æ•°æ®åº“}\label{subsec:bibtex-data}

\index{bibtexdb@\protect\hologo{BibTeX} æ•°æ®åº“}
\hologo{BibTeX} æ˜¯æœ€ä¸ºæµè¡Œçš„å‚è€ƒæ–‡çŒ®æ•°æ®ç»„ç»‡æ&nbsp;¼å¼ä¹‹ä¸€ã€‚å®ƒçš„å‡ºçŽ°è®©æˆ‘ä»¬æ‘†è„±æ‰‹å†™å‚è€ƒæ–‡çŒ®æ¡ç›®çš„éº»çƒ¦ã€‚æˆ‘ä»¬è¿˜å¯ä»¥é€šè¿‡å‚è€ƒæ–‡çŒ®æ&nbsp;·å¼çš„æ”¯æŒï¼Œ
è®©åŒä¸€ä»½ \hologo{BibTeX} æ•°æ®åº“ç”Ÿæˆä¸åŒæ&nbsp;·å¼çš„å‚è€ƒæ–‡çŒ®åˆ—è¡¨ã€‚

\hologo{BibTeX} æ•°æ®åº“ä»¥ \texttt{.bib} ä½œä¸ºæ‰©å±•åï¼Œå…¶å†…å®¹æ˜¯è‹¥å¹²ä¸ªæ–‡çŒ®æ¡ç›®ï¼Œæ¯ä¸ªæ¡ç›®çš„æ&nbsp;¼å¼ä¸ºï¼š
\begin{command}
\texttt @\Arg{type}\texttt\{\Arg{citation}, \\
\qquad\Arg{key1} = \marg{value1}, \\
\qquad\Arg{key2} = \marg{value2}, \\
\qquad\ldots\\
\texttt\}
\end{command}

å…¶ä¸­ \Arg{type} ä¸ºæ–‡çŒ®çš„ç±»åˆ«ï¼Œå¦‚ \texttt{article} ä¸ºå­¦æœ¯è®ºæ–‡ï¼Œ\texttt{book} ä¸ºä¹¦ç±ï¼Œ\texttt{in\-collection} ä¸ºè®ºæ–‡é›†ä¸­çš„æŸä¸€ç¯‡ï¼Œç­‰ç­‰ã€‚
\Arg{citation} ä¸º \cmd{cite} å‘½ä»¤ä½¿ç”¨çš„æ–‡çŒ®æ&nbsp;‡ç­¾ã€‚åœ¨ \Arg{citation} ä¹‹åŽä¸ºæ¡ç›®é‡Œçš„å„ä¸ªå­—æ®µï¼Œä»¥ \Arg{key} = \marg{value} çš„å½¢å¼ç»„ç»‡ã€‚

æˆ‘ä»¬åœ¨æ­¤ç®€å•åˆ—ä¸¾å­¦æœ¯è®ºæ–‡é‡Œä½¿ç”¨è¾ƒå¤šçš„ \hologo{BibTeX} æ–‡çŒ®æ¡ç›®ç±»åˆ«ï¼š
\begin{description}
  \item[\texttt{article}] å­¦æœ¯è®ºæ–‡ï¼Œå¿…éœ€å­—æ®µæœ‰ author, title, journal, year; å¯é€‰å­—æ®µåŒ…æ‹¬ volume, number, pages, doi ç­‰ï¼›
  \item[\texttt{book}] ä¹¦ç±ï¼Œå¿…éœ€å­—æ®µæœ‰ author/editor, title, publisher, year; å¯é€‰å­—æ®µåŒ…æ‹¬ volume/number, series, address ç­‰ï¼›
  \item[\texttt{incollection}] è®ºæ–‡é›†ä¸­çš„ä¸€ç¯‡ï¼Œå¿…éœ€å­—æ®µæœ‰ author, title, booktitle, publisher, year; å¯é€‰å­—æ®µåŒ…æ‹¬ editor, volume/number, chapter, pages, address ç­‰ï¼›
  \item[\texttt{inbook}] ä¹¦ä¸­çš„ä¸€ç«&nbsp;ï¼Œå¿…éœ€å­—æ®µæœ‰ author/editor, title, chapter/pages, publisher, year; å¯é€‰å­—æ®µåŒ…æ‹¬ volume/number, series, address ç­‰ã€‚
\end{description}

ä¾‹å¦‚ \texttt{article} ç±»åˆ«çš„å‚è€ƒæ–‡çŒ®æ•°æ®æ¡ç›®å†™æ³•å¦‚ä¸‹ï¼š
\begin{verbatim}
@article{Alice13,
  title = {Demostration of bibliography items},
  author = {Alice Axford and Bob Birkin and Charlie Copper and Danny Dannford},
  year = {2013},
  month = {Mar},
  journal = {Journal of \TeX perts},
  volume = {36},
  number = {7},
  pages = {114-120}}
\end{verbatim}
æ‰€æœ‰ç±»åˆ«çš„æ–‡çŒ®æ¡ç›®æ&nbsp;¼å¼è¯·å‚è€ƒ \CTAN|biblio/bibtex/base/btxdoc.pdf|ã€‚

å¤šæ•°æ—¶å€™ï¼Œæˆ‘ä»¬æ—&nbsp;éœ€è‡ªå·±æ‰‹å†™ \hologo{BibTeX} æ–‡çŒ®æ¡ç›®ã€‚ä»Ž Google Scholar æˆ–è€…æœŸåˆŠ/æ•°æ®åº“çš„ç½‘ç«™ä¸Šéƒ½èƒ½å¤Ÿå¯¼å‡º \hologo{BibTeX} æ–‡çŒ®æ¡ç›®ï¼Œ
è€ç‰Œçš„æ–‡çŒ®ç®¡ç†è½¯ä»¶ EndNote ä¹Ÿæ”¯æŒç”Ÿæˆ \hologo{BibTeX} æ&nbsp;¼å¼çš„æ•°æ®åº“ã€‚å¼€æºè½¯ä»¶ JabRef ç”šè‡³æ”¯æŒ \hologo{BibTeX} æ–‡çŒ®æ¡ç›®çš„å¯¼å…¥ã€å¯¼å‡ºå’Œç®¡ç†ã€‚

\subsection{\hologo{BibTeX} æ&nbsp;·å¼}\label{subsec:bibtex-style}

å‚è€ƒæ–‡çŒ®çš„å†™æ³•åœ¨ä¸åŒæ–‡çŒ®é‡Œåƒå·®ä¸‡åˆ«ï¼ŒåŒ…æ‹¬ä½œè€…ã€æ&nbsp;‡é¢˜ã€å¹´ä»½ç­‰å„é¡¹çš„é¡ºåºå’Œå­—ä½“æ&nbsp;·å¼ã€æ–‡çŒ®åœ¨åˆ—è¡¨ä¸­çš„æŽ’åºè§„åˆ™ç­‰ã€‚
\hologo{BibTeX} ç”¨æ&nbsp;·å¼ï¼ˆstyleï¼‰æ¥ç®¡ç†å‚è€ƒæ–‡çŒ®çš„å†™æ³•ã€‚\hologo{BibTeX} æä¾›äº†å‡&nbsp;ä¸ªé¢„å®šä¹‰çš„æ&nbsp;·å¼ï¼Œ
å¦‚ \texttt{plain}, \texttt{unsrt}, \texttt{alpha} ç­‰ã€‚
å¦‚æžœä½¿ç”¨æœŸåˆŠæ¨¡æ¿çš„è¯ï¼Œå¯èƒ½ä¼šæä¾›è‡ªç”¨çš„æ&nbsp;·å¼ã€‚æ&nbsp;·å¼æ–‡ä»¶ä»¥ \texttt{.bst} ä¸ºæ‰©å±•åã€‚

\cmdindex{bibliographystyle}
ä½¿ç”¨æ&nbsp;·å¼æ–‡ä»¶çš„æ–¹æ³•æ˜¯åœ¨æºä»£ç&nbsp;å†…ï¼ˆä¸€èˆ¬åœ¨å¯¼è¨€åŒºï¼‰ä½¿ç”¨ \cmd{biblio\-graphy\-style} å‘½ä»¤ï¼š
\begin{command}
\cmd{bibliographystyle}\marg{bst-name}
\end{command}
è¿™é‡Œ \Arg{bst-name} ä¸º \texttt{.bst} æ&nbsp;·å¼æ–‡ä»¶çš„åç§°ï¼Œ\textbf{ä¸è¦å¸¦ \texttt{.bst} æ‰©å±•å}ã€‚

æˆ‘ä»¬ä»¥ \ref{subsec:bibtex-data} å°èŠ‚ç»™å‡ºçš„æ•°æ®æ¡ç›®ä¸ºä¾‹ï¼Œä½¿ç”¨ \cmd{biblio\-graphy\-style} å‘½ä»¤é€‰æ‹©ä¸åŒçš„å‚è€ƒæ–‡çŒ®æ&nbsp;·å¼ï¼Œ
æ•ˆæžœå¤§è‡´å¦‚è¡¨ \ref{tbl:bibtex-style} æ‰€ç¤ºã€‚

\begin{table}[htp]
\caption{\hologo{BibTeX} æ&nbsp;·å¼çš„æŽ’ç‰ˆæ•ˆæžœ}\label{tbl:bibtex-style}
\hrule
\begin{trivlist}\item\relax
\textbf{plain}\\{}
[1] Alice Axford, Bob Birkin, Charlie Copper, and Danny Dannford.
\newblock Demostration of bibliography items.
\newblock {\em Journal of \TeX perts}, 36(7):114--120, Mar 2013.

\medskip
\textbf{alpha}\\{}
[ABCD13] Alice Axford, Bob Birkin, Charlie Copper, and Danny Dannford.
\newblock Demostration of bibliography items.
\newblock {\em Journal of \TeX perts}, 36(7):114--120, Mar 2013.

\medskip
\textbf{abbrv}\\{}
[1] A.~Axford, B.~Birkin, C.~Copper, and D.~Dannford.
\newblock Demostration of bibliography items.
\newblock {\em Journal of \TeX perts}, 36(7):114--120, Mar 2013.

\medskip
\textbf{amsplain}ï¼ˆ\AmS{} æ–‡æ¡£ç±» \textsf{amsart} ç­‰é…å¥—çš„æ&nbsp;·å¼ï¼‰\\{}
[1] Alice Axford, Bob Birkin, Charlie Copper, and Danny Dannford, \emph{Demostration of bibliography
  items}, Journal of \TeX perts \textbf{36} (2013), no.~7, 114--120.

\medskip
\textbf{elsarticle-num}ï¼ˆElsevier æä¾›çš„ \textsf{elsarticle} æ–‡æ¡£ç±»é…å¥—çš„æ&nbsp;·å¼ï¼‰\\{}
[1] A.~Axford, B.~Birkin, C.~Copper, D.~Dannford, Demostration of bibliography items,
  Journal of \TeX perts 36~(7) (2013) 114--120.

\medskip
\textbf{IEEEtran}ï¼ˆ\textsf{IEEEtran} æ¨¡æ¿æ–‡æ¡£ç±»é…å¥—çš„æ&nbsp;·å¼ï¼‰\\{}
[1] A.~Axford, B.~Birkin, C.~Copper, and D.~Dannford, ``Demostration of
  bibliography items,'' \emph{Journal of \TeX perts}, vol.~36, no.~7, pp.
  114--120, Mar 2013.

\medskip
\textbf{gbt7714-numerical}ï¼ˆGB/T 7714---2015 æ&nbsp;·å¼ï¼Œç”± \textsf{gbt7714} å®åŒ…æä¾›ï¼‰\\{}
[1] é™ˆç™»åŽŸ. å›½å²æ—§é—»: ç¬¬ 1 å·[M]. åŒ—äº¬: ä¸­åŽä¹¦å±€, 2000: 29.
\end{trivlist}
\hrule
\end{table}

\subsection{ä½¿ç”¨ \hologo{BibTeX} æŽ’ç‰ˆå‚è€ƒæ–‡çŒ®}\label{subsec:bibtex-use}

\index{bibtex@\protect\hologo{BibTeX} å·¥å…·}
çŽ°åœ¨æˆ‘ä»¬æ¥çœ‹å¦‚ä½•åˆ©ç”¨ \hologo{BibTeX} æ•°æ®åº“ç”Ÿæˆå‚è€ƒæ–‡çŒ®å’Œå¼•ç”¨ã€‚

ç¬¬ä¸€æ­¥ï¼šå‡†å¤‡ä¸€ä»½ \hologo{BibTeX} æ•°æ®åº“ï¼Œå‡è®¾æ•°æ®åº“æ–‡ä»¶åä¸º \texttt{books.bib}ï¼Œ
å’Œ \LaTeX{} æºä»£ç&nbsp;\textbf{ä¸€èˆ¬ä½äºŽåŒä¸€ä¸ªç›®å½•ä¸‹}ã€‚

ç¬¬äºŒæ­¥ï¼šåœ¨æºä»£ç&nbsp;ä¸­æ·»åŠ&nbsp;å¿…è¦çš„å‘½ä»¤ã€‚å‡è®¾æºä»£ç&nbsp;åä¸º \texttt{demo.tex}ï¼ˆè§æºä»£ç&nbsp; \ref{code:bibtex-demo}ï¼‰ã€‚
\begin{enumerate}
\item \cmdindex{bibliographystyle}
é¦–å…ˆéœ€è¦ä½¿ç”¨å‘½ä»¤ \cmd{bibliographystyle} è®¾å®šå‚è€ƒæ–‡çŒ®çš„æ&nbsp;¼å¼ã€‚

\item \cmdindex{cite,nocite}
å…¶æ¬¡ï¼Œåœ¨æ­£æ–‡ä¸­å¼•ç”¨å‚è€ƒæ–‡çŒ®ã€‚\hologo{BibTeX} ç¨‹åºåœ¨ç”Ÿæˆå‚è€ƒæ–‡çŒ®åˆ—è¡¨çš„æ—¶å€™ï¼Œé€šå¸¸åªåˆ—å‡ºç”¨äº† \cmd{cite} å‘½ä»¤å¼•ç”¨çš„é‚£äº›ã€‚
å¦‚æžœéœ€è¦åˆ—å‡ºæœªè¢«å¼•ç”¨çš„æ–‡çŒ®ï¼Œåˆ™éœ€è¦ \cmd{nocite}\marg{citation} å‘½ä»¤ï¼›è€Œ \cmd{nocite}\marg*{*} åˆ™è®©æ‰€æœ‰æœªè¢«å¼•ç”¨çš„æ–‡çŒ®éƒ½åˆ—å‡ºã€‚

\item \cmdindex{bibliography}
å†æ¬¡ï¼Œåœ¨éœ€è¦åˆ—å‡ºå‚è€ƒæ–‡çŒ®çš„ä½ç½®ï¼Œä½¿ç”¨ \cmd{biblio\-graphy} å‘½ä»¤ä»£æ›¿ \env{the\-biblio\-graphy} çŽ¯å¢ƒï¼š
\begin{command}
\cmd{bibliography}\marg{bib-name}
\end{command}

å…¶ä¸­ \Arg{bib-name} æ˜¯ \hologo{BibTeX} æ•°æ®åº“çš„æ–‡ä»¶åï¼Œ\textbf{ä¸è¦å¸¦ \texttt{.bib} æ‰©å±•å}ã€‚
\end{enumerate}

\begin{sourcecode}[htp]
\begin{Verbatim}
\documentclass{article}
\bibliographystyle{plain}
\begin{document}
\section{Some words}
Some excellent books, for example, \cite{citation1}
and \cite{citation2} \ldots

\bibliography{books}
\end{document}
\end{Verbatim}
\caption{åˆ©ç”¨ \texttt{books.bib} ç”Ÿæˆå‚è€ƒæ–‡çŒ®çš„æºä»£ç&nbsp; \texttt{demo.tex}ã€‚}\label{code:bibtex-demo}
\end{sourcecode}

æ³¨æ„ï¼š\cmd{bibliographystyle} å’Œ \cmd{bibliography} å‘½ä»¤ç¼ºä¸€ä¸å¯ï¼Œæ²¡æœ‰è¿™ä¸¤ä¸ªå‘½ä»¤ï¼Œä½¿ç”¨ \hologo{BibTeX} ç”Ÿæˆå‚è€ƒæ–‡çŒ®åˆ—è¡¨çš„æ—¶å€™ä¼šæŠ¥é”™ã€‚

ç¬¬ä¸‰æ­¥ï¼šå†™å¥½äº†ä»¥ä¸Šä¸¤ä¸ªæ–‡ä»¶ä¹‹åŽï¼Œæˆ‘ä»¬å°±å¯ä»¥å¼€å§‹ç¼–è¯‘äº†ã€‚
\begin{enumerate}
  \item é¦–å…ˆä½¿ç”¨ \texttt{pdflatex} æˆ– \texttt{xelatex} ç­‰å‘½ä»¤ç¼–è¯‘ \LaTeX{} æºä»£ç&nbsp; \texttt{demo.tex}ï¼›
  \item æŽ¥ä¸‹æ¥ç”¨ \texttt{bibtex} å‘½ä»¤å¤„ç† \texttt{demo.aux} è¾…åŠ©æ–‡ä»¶è®°å½•çš„å‚è€ƒæ–‡çŒ®æ&nbsp;¼å¼ã€å¼•ç”¨æ¡ç›®ç­‰ä¿¡æ¯ã€‚
  \texttt{bibtex} å‘½ä»¤å¤„ç†å®Œæ¯•åŽä¼šç”Ÿæˆ \texttt{demo.bbl} æ–‡ä»¶ï¼Œå†…å®¹å°±æ˜¯ä¸€ä¸ª \env{thebibliography} çŽ¯å¢ƒï¼›
  \item å†ä½¿ç”¨ \texttt{pdflatex} æˆ– \texttt{xelatex} ç­‰å‘½ä»¤æŠŠæºä»£ç&nbsp; \texttt{demo.tex} ç¼–è¯‘\textbf{ä¸¤é}ï¼Œè¯»å…¥å‚è€ƒæ–‡çŒ®å¹¶æ­£ç¡®ç”Ÿæˆå¼•ç”¨ã€‚
\end{enumerate}

æ•´ä¸ªè¿‡ç¨‹ä½¿ç”¨çš„å‘½ä»¤å¦‚ä¸‹ï¼ˆå¯ä»¥ç•¥åŽ»æ‰©å±•åï¼‰ï¼š
\begin{verbatim}
xelatex demo
bibtex demo
xelatex demo
xelatex demo
\end{verbatim}

ä½¿ç”¨ \texttt{latex + dvipdfmx} å‘½ä»¤ç¼–è¯‘æ—¶ï¼Œåˆ™ \texttt{dvipdfmx} å‘½ä»¤æ”¾åœ¨æœ€åŽï¼Œç›¸å½“äºŽå…ˆåŽä½¿ç”¨
\texttt{latex}, \texttt{bibtex}, \texttt{latex}, \texttt{latex}, \texttt{dvipdfmx}ã€‚

\subsection{\pkg{natbib} å®åŒ…}\label{subsec:natbib}

\pkgindex{natbib}
æ—¶ä¸‹è®¸å¤šå­¦æœ¯æœŸåˆŠæ¯”è¾ƒå–œæ¬¢ä½¿ç”¨äººåâ€”â€”å¹´ä»½çš„å¼•ç”¨æ–¹å¼ï¼Œå½¢å¦‚(\emph{Axford et~al.}, 2013)ã€‚
\pkg{natbib} å®åŒ…æä¾›äº†å¯¹è¿™ç§â€œè‡ªç„¶â€å¼•ç”¨æ–¹å¼çš„å¤„ç†ã€‚

\cmdindex[natbib]{citep,citet}
é™¤äº† \cmd{cite} ä¹‹å¤–ï¼Œ\pkg{natbib} å®åŒ…åœ¨æ­£æ–‡ä¸­æ”¯æŒä¸¤ç§å¼•ç”¨æ–¹å¼ï¼š
\begin{command}
\cmd{citep}\marg{citation} \\
\cmd{citet}\marg{citation}
\end{command}

å®ƒä»¬åˆ†åˆ«ç”Ÿæˆå½¢å¦‚(\emph{Axford et~al.}, 2013) å’Œ \emph{Axford et~al.} (2013) çš„äººåâ€”â€”å¹´ä»½å¼•ç”¨ã€‚
æ­£ç¡®æŽ’ç‰ˆäººåâ€”â€”å¹´ä»½å¼•ç”¨è¿˜ä¾èµ–äºŽç‰¹å®šçš„ \hologo{BibTeX} æ&nbsp;·å¼ã€‚\pkg{natbib} æä¾›äº†ä¸Ž \LaTeX{} é¢„å®šä¹‰æ&nbsp;·å¼ç›¸å¯¹åº”çš„å‡&nbsp;ä¸ªæ&nbsp;·å¼ï¼Œ
åŒ…æ‹¬ \texttt{plainnat}ã€\texttt{abbrvnat} å’Œ \texttt{unsrtnat}ã€‚å­¦æœ¯è®ºæ–‡æ¨¡æ¿æ˜¯å¦æ”¯æŒ \pkg{natbib}ï¼Œéœ€è¦å‚è€ƒå…¶å¸®åŠ©æ–‡æ¡£ã€‚

\pkg{natbib} å®åŒ…åŒæ&nbsp;·ä¹Ÿæ”¯æŒæ•°å­—å¼•ç”¨ï¼Œå¹¶ä¸”æ”¯æŒå°†å¼•ç”¨çš„åºå·åŽ‹ç¼©ï¼Œä¾‹å¦‚ï¼š
\begin{verbatim}
\usepackage[numbers,sort&amp;compress]{natbib}
\end{verbatim}
è°ƒç”¨ \pkg{natbib} å®åŒ…æ—¶æŒ‡å®šä»¥ä¸Šé€‰é¡¹åŽï¼Œè¿žç»­å¼•ç”¨å¤šç¯‡æ–‡çŒ®æ—¶ï¼Œä¼šç”Ÿæˆå½¢å¦‚ (3--7) çš„å¼•ç”¨è€Œä¸æ˜¯ (3, 4, 5, 6, 7)ã€‚

\pkg{natbib} å®åŒ…è¿˜æœ‰æ›´å¤šé€‰é¡¹å’Œç”¨æ³•ï¼Œæ¯”å¦‚é»˜è®¤çš„å¼•ç”¨æ˜¯ç”¨å°æ‹¬å·åŒ…è£¹çš„ï¼Œå¯æŒ‡å®š \texttt{square} é€‰é¡¹æ”¹ä¸ºä¸­æ‹¬å·ï¼›
å†æ¯”å¦‚ \cmd{citep} å‘½ä»¤ä¹Ÿæ”¯æŒå¯é€‰å‚æ•°ï¼Œä¸ºå¼•ç”¨å‰åŽéƒ½æ·»åŠ&nbsp;é¢å¤–å†…å®¹ã€‚è¿™é‡Œä¸å†èµ˜è¿°ï¼Œè¯·å‚è€ƒ \pkg{natbib} å®åŒ…çš„å¸®åŠ©æ–‡æ¡£ã€‚


\subsection{\pkg{biblatex} å®åŒ…}\label{subsec:biblatex}

\pkgindex{biblatex}
æœ¬èŠ‚çš„æœ«å°¾ç®€å•ä»‹ç»ä¸€ä¸‹åŸºäºŽ \pkg{biblatex} å®åŒ…æŽ’ç‰ˆå‚è€ƒæ–‡çŒ®çš„æ–¹å¼ã€‚
\pkg{biblatex} å®åŒ…æ˜¯ä¸€å¥—åŸºäºŽ \LaTeX{} å®å‘½ä»¤çš„å‚è€ƒæ–‡çŒ®è§£å†³æ–¹æ¡ˆï¼Œæä¾›äº†ä¾¿æ·çš„æ&nbsp;¼å¼æŽ§åˆ¶å’Œå¼ºå¤§çš„æŽ’åºã€åˆ†ç±»ã€ç­›é€‰ã€å¤šæ–‡çŒ®è¡¨ç­‰åŠŸèƒ½ã€‚
\pkg{biblatex} å®åŒ…ä¹Ÿå›&nbsp;å…¶å¯¹ UTF-8 å’Œä¸­æ–‡å‚è€ƒæ–‡çŒ®çš„è‰¯å¥½æ”¯æŒï¼Œè¢«å›½å†…è¾ƒå¤š \LaTeX{} æ¨¡æ¿é‡‡ç”¨ã€‚

åŸºäºŽ \pkg{biblatex} å®åŒ…çš„æ–¹å¼ä¸ŽåŸºäºŽ \hologo{BibTeX} çš„ä¼&nbsp;ç»Ÿæ–¹å¼æœ‰ä¸€å®šåŒºåˆ«ï¼Œä¸‹é¢ä»Žæ–‡æ¡£ç»“æž„å’Œå‘½ä»¤ã€ç¼–è¯‘æ–¹å¼ã€æ&nbsp;·å¼é€‰æ‹©ç­‰æ–¹é¢é€ä¸€ä»‹ç»ï¼š

\subsubsection{æ–‡æ¡£ç»“æž„å’Œ \pkg{biblatex} ç›¸å…³å‘½ä»¤}

\cmdindex[biblatex]{addbibresource,printbibliography}
\begin{enumerate}
  \item é¦–å…ˆæ˜¯åœ¨å¯¼è¨€åŒºè°ƒç”¨ \pkg{biblatex} å®åŒ…ã€‚å®åŒ…æ”¯æŒä»¥ \Arg{key}=\Arg{value} å½¢å¼æŒ‡å®šé€‰é¡¹ï¼ŒåŒ…æ‹¬å‚è€ƒæ–‡çŒ®æ&nbsp;·å¼ styleã€å‚è€ƒæ–‡çŒ®è‘—å½•æŽ’åºçš„è§„åˆ™ sorting ç­‰ã€‚
  \item æŽ¥ç€åœ¨å¯¼è¨€åŒºä½¿ç”¨ \cmd{addbibresource} å‘½ä»¤ä¸º \pkg{biblatex} å¼•å…¥å‚è€ƒæ–‡çŒ®æ•°æ®åº“ã€‚ä¸ŽåŸºäºŽ \hologo{BibTeX} çš„ä¼&nbsp;ç»Ÿæ–¹å¼ä¸åŒçš„æ˜¯ï¼Œè¿™é‡Œéœ€è¦å†™å®Œæ•´çš„æ–‡ä»¶åã€‚
  \item åœ¨æ­£æ–‡ä¸­ä½¿ç”¨ \cmd{cite} å‘½ä»¤å¼•ç”¨å‚è€ƒæ–‡çŒ®ã€‚é™¤æ­¤ä¹‹å¤–è¿˜å¯ä»¥ä½¿ç”¨ä¸°å¯Œçš„å‘½ä»¤è¾¾åˆ°ä¸åŒçš„å¼•ç”¨æ•ˆæžœï¼Œå¦‚ \cmd{citeauthor} å’Œ \cmd{citeyear} åˆ†åˆ«å•ç‹¬å¼•ç”¨ä½œè€…å’Œå¹´ä»½ï¼Œ\cmd{textcite} å’Œ \cmd{parencite} åˆ†åˆ«ç±»ä¼¼ \pkg{natbib} å®åŒ…æä¾›çš„ \cmd{citet} å’Œ \cmd{citep} å‘½ä»¤ï¼Œä»¥åŠè„šæ³¨å¼å¼•ç”¨ \cmd{footcite} ç­‰ã€‚
  \item æœ€åŽåœ¨éœ€è¦æŽ’ç‰ˆå‚è€ƒæ–‡çŒ®çš„ä½ç½®ä½¿ç”¨å‘½ä»¤ \cmd{printbibliography}ã€‚
\end{enumerate}

\begin{sourcecode}[htp]
\begin{Verbatim}
% File: egbibdata.bib
@book{caimin2006,
  title      = {UMLåŸºç¡€å’ŒRoseå»ºæ¨¡æ•™ç¨‹},
  address    = {åŒ—äº¬},
  author     = {è”¡æ• and å¾æ…§æ…§ and é»„æŸ„å¼º},
  publisher  = {äººæ°‘é‚®ç”µå‡ºç‰ˆç¤¾},
  year       = {2006},
  month      = {1}
}

% File: demo.tex
\documentclass{ctexart}
% ä½¿ç”¨ç¬¦åˆ GB/T 7714-2015 è§„èŒƒçš„å‚è€ƒæ–‡çŒ®æ&nbsp;·å¼
\usepackage[style=gb7714-2015]{biblatex}
% æ³¨æ„åŠ&nbsp; .bib æ‰©å±•å
\addbibresource{egbibdata.bib}

\begin{document}

è§æ–‡çŒ®\cite{caimin2006}ã€‚

\printbibliography
\end{document}
\end{Verbatim}
\caption{åº”ç”¨ \pkg{biblatex} çš„ç¤ºä¾‹ egbibdata.bib å’Œ demo.texã€‚}
\end{sourcecode}

\subsubsection{ç¼–è¯‘æ–¹å¼}

\index{biber}
ä¸ŽåŸºäºŽ \hologo{BibTeX} çš„ä¼&nbsp;ç»Ÿæ–¹å¼ä¸åŒçš„æ˜¯ï¼Œ\pkg{biblatex} å®åŒ…ä½¿ç”¨ \texttt{biber} ç¨‹åºå¤„ç†å‚è€ƒæ–‡çŒ®ã€‚å›&nbsp;æ­¤ä¸Šè¿°æ–‡æ¡£çš„ç¼–è¯‘æ­¥éª¤ä¸ºï¼š

\begin{verbatim}
xelatex demo
biber demo
xelatex demo
xelatex demo
\end{verbatim}

\subsubsection{\pkg{biblatex} æ&nbsp;·å¼å’Œå…¶å®ƒé€‰é¡¹}

\pkg{biblatex} ä½¿ç”¨çš„å‚è€ƒæ–‡çŒ®æ&nbsp;·å¼åˆ†ä¸ºè‘—å½•æ&nbsp;·å¼ï¼ˆbibliography styleï¼‰å’Œå¼•ç”¨æ&nbsp;·å¼ï¼ˆcitation styleï¼‰ï¼Œåˆ†åˆ«ä»¥ \texttt{.bbx} å’Œ \texttt{.cbx} ä¸ºæ‰©å±•åã€‚å‚è€ƒæ–‡çŒ®çš„æ&nbsp;·å¼åœ¨è°ƒç”¨å®åŒ…æ—¶ä½¿ç”¨ \texttt{style} é€‰é¡¹æŒ‡å®šï¼Œæˆ–è€…ä½¿ç”¨ \texttt{bibstyle} æˆ– \texttt{citestyle} åˆ†åˆ«æŒ‡å®šï¼š
\begin{verbatim}
% åŒæ—¶è°ƒç”¨ gb7714-2015.bbx å’Œ gb7714-2015.cbx
\usepackage[style=gb7714-2015]{biblatex}
% è‘—å½•æ&nbsp;·å¼è°ƒç”¨ gb7714-2015.bbxï¼Œå¼•ç”¨æ&nbsp;·å¼è°ƒç”¨ biblatex å®åŒ…è‡ªå¸¦çš„ authoryear
\usepackage[bibstyle=gb7714-2015,citestyle=authoryear]{biblatex}
\end{verbatim}

ä»¥ä¸‹æ€»ç»“ä¸€äº›å¸¸ç”¨çš„å‚è€ƒæ–‡çŒ®æ&nbsp;·å¼ï¼Œé™¤ \pkg{biblatex} å®åŒ…è‡ªå¸¦çš„æ&nbsp;·å¼å¤–ï¼Œè®¸å¤šæ&nbsp;·å¼ä»¥å•ç‹¬çš„å®åŒ…åœ¨å‘è¡Œç‰ˆå†…å‘å¸ƒã€‚

\begin{description}
  \item[\texttt{authoryear}]
  \pkg{biblatex} è‡ªå¸¦æ&nbsp;·å¼ï¼Œç±»ä¼¼ \pkg{natbib} é»˜è®¤çš„å¼•ç”¨æ&nbsp;·å¼æ•ˆæžœã€‚
  \item[\texttt{authortitle}]
  \pkg{biblatex} è‡ªå¸¦æ&nbsp;·å¼ï¼Œé‡‡ç”¨ä½œè€…-é¢˜åï¼ˆshorttitle å­—æ®µï¼‰çš„å¼•ç”¨æ&nbsp;·å¼ã€‚
  \item[\texttt{verbose}]
  \pkg{biblatex} è‡ªå¸¦æ&nbsp;·å¼ï¼Œå¼•ç”¨æ&nbsp;·å¼ä¸­åŒ…å«ä½œè€…ã€é¢˜åã€ä¹¦åã€é¡µç&nbsp;ç­‰å­—æ®µçš„ä¿¡æ¯ã€‚
  \item[\texttt{alphabetic}]
  \pkg{biblatex} è‡ªå¸¦æ&nbsp;·å¼ï¼Œè‘—å½•æ&nbsp;·å¼ä¸Ž \hologo{BibTeX} çš„ \texttt{alpha} æ&nbsp;·å¼ç±»ä¼¼ã€‚
  \item[\texttt{trad-alpha}]
  \pkg{biblatex-trad} æ&nbsp;·å¼åŒ…ï¼Œç§»æ¤è‡ª \hologo{BibTeX} é»˜è®¤çš„ \texttt{alpha} æ&nbsp;·å¼ã€‚å¦å¤–è¿˜åŒ…æ‹¬ \texttt{trad-abbrv}ã€\texttt{trad-plain} å’Œ \texttt{trad-unsrt}ã€‚
  \item[\texttt{gb7714-2015}]
  ç¬¦åˆä¸­æ–‡æ–‡çŒ®è‘—å½•æ&nbsp;‡å‡† GB/T 7714---2015 çš„æ&nbsp;·å¼ï¼Œè‘—å½•æŒ‰é¡ºåºç¼–ç&nbsp;æŽ’ç‰ˆã€‚å¦å¤–è¿˜åŒ…æ‹¬æŒ‰ä½œè€…â€”å¹´ä»½é¡ºåºæŽ’ç‰ˆè‘—å½•çš„æ&nbsp;·å¼ \texttt{gb7714-2015ay}ã€‚
  \item[\texttt{caspervector}]
  ä»¥ä¸­æ–‡æ–‡çŒ®è‘—å½•æ&nbsp;‡å‡† GB/T 7714---2015 ä¸ºåŸºç¡€çš„ä¸€ä¸ªæ&nbsp;·å¼ã€‚
  \item[\texttt{ieee}]
  å…¼å®¹ \pkg{IEEEtran} é£Žæ&nbsp;¼çš„æ&nbsp;·å¼ï¼Œè‘—å½•æŒ‰é¡ºåºç¼–ç&nbsp;æŽ’ç‰ˆã€‚å¦å¤–è¿˜åŒ…æ‹¬æŒ‰ä½œè€…â€”å¹´ä»½é¡ºåºæŽ’ç‰ˆè‘—å½•çš„æ&nbsp;·å¼ \texttt{ieee-alphabetic}ã€‚
\end{description}

\section{ç´¢å¼•å’Œ makeindex å·¥å…·}\label{sec:index}

\pinyinindex{suoyin}{ç´¢å¼•}
\index{makeindex@makeindex å·¥å…·}
ä¹¦ç±å’Œå¤§æ–‡æ¡£é€šå¸¸ç”¨ç´¢å¼•æ¥å½’çº³å…³é”®è¯ï¼Œæ–¹ä¾¿ç”¨æˆ·æŸ¥é˜…ã€‚\LaTeX{} å€ŸåŠ©é…å¥—çš„ makeindex ç¨‹åºå®Œæˆå¯¹ç´¢å¼•çš„æŽ’ç‰ˆã€‚

\subsection{ä½¿ç”¨ makeindex å·¥å…·çš„æ–¹æ³•}\label{subsec:makeidx}

è¦ä½¿ç”¨ç´¢å¼•ï¼Œé¡»ç»è¿‡è¿™ä¹ˆå‡&nbsp;ä¸ªæ­¥éª¤ï¼ˆä»è®¾æºä»£ç&nbsp;åä¸º \texttt{demo.tex}ï¼‰ï¼š

\pkgindex{makeidx}
\cmdindex[makeidx]{makeindex}
ç¬¬ä¸€æ­¥ï¼Œåœ¨ \LaTeX{} æºä»£ç&nbsp;çš„å¯¼è¨€åŒºè°ƒç”¨ \pkg{makeidx} å®åŒ…ï¼Œå¹¶ä½¿ç”¨ \cmd{makeindex} å‘½ä»¤å¼€å¯ç´¢å¼•çš„æ”¶é›†ï¼š
\begin{verbatim}
\usepackage{makeidx}
\makeindex
\end{verbatim}

\cmdindex{index}
\cmdindex[makeidx]{printindex}
ç¬¬äºŒæ­¥ï¼Œåœ¨æ­£æ–‡ä¸­éœ€è¦ç´¢å¼•çš„åœ°æ–¹ä½¿ç”¨ \cmd{index} å‘½ä»¤ã€‚\cmd{index} å‘½ä»¤çš„å‚æ•°å†™æ³•è¯¦è§ä¸‹ä¸€å°èŠ‚ï¼›
å¹¶åœ¨éœ€è¦è¾“å‡ºç´¢å¼•çš„åœ°æ–¹ï¼ˆå¦‚æ‰€æœ‰ç«&nbsp;èŠ‚ä¹‹åŽï¼‰ä½¿ç”¨ \cmd{printindex} å‘½ä»¤ã€‚

ç¬¬ä¸‰æ­¥ï¼Œç¼–è¯‘è¿‡ç¨‹ï¼š

\begin{enumerate}
  \item é¦–å…ˆç”¨ \texttt{xelatex} ç­‰å‘½ä»¤ç¼–è¯‘æºä»£ç&nbsp; \texttt{demo.tex}ã€‚ç¼–è¯‘è¿‡ç¨‹ä¸­äº§ç”Ÿç´¢å¼•è®°å½•æ–‡ä»¶ \texttt{demo.idx}ï¼›
  \item ç”¨ makeindex ç¨‹åºå¤„ç† \texttt{demo.idx}ï¼Œç”Ÿæˆç”¨äºŽæŽ’ç‰ˆçš„ç´¢å¼•åˆ—è¡¨æ–‡ä»¶ \texttt{demo.ind}ï¼›
  \item å†æ¬¡ç¼–è¯‘æºä»£ç&nbsp; \texttt{demo.tex}ï¼Œæ­£ç¡®ç”Ÿæˆç´¢å¼•åˆ—è¡¨ã€‚
\end{enumerate}

\subsection{ç´¢å¼•é¡¹çš„å†™æ³•}\label{subsec:index-entry}

\cmdindex{index}
æ·»åŠ&nbsp;ç´¢å¼•é¡¹çš„å‘½ä»¤ä¸ºï¼š
\begin{command}
\cmd{index}\marg{index entry}
\end{command}

å…¶ä¸­ \Arg{index entry} ä¸ºç´¢å¼•é¡¹ï¼Œå†™æ³•ç”±è¡¨ \ref{tbl:index-entry} æ±‡æ€»ã€‚å…¶ä¸­ \texttt!ã€\texttt @ å’Œ \texttt|
ä¸ºç‰¹æ®Šç¬¦å·ï¼Œå¦‚æžœè¦å‘ç´¢å¼•é¡¹ç›´æŽ¥è¾“å‡ºè¿™äº›ç¬¦å·ï¼Œéœ€è¦åŠ&nbsp;å‰ç¼€ \texttt"ï¼›è€Œ \texttt" éœ€è¦è¾“å…¥ä¸¤ä¸ªå¼•å· \texttt{""} æ‰èƒ½è¾“å‡ºåˆ°ç´¢å¼•é¡¹ã€‚

\begin{table}[htp]
\centering
\caption{ç´¢å¼•é¡¹çš„å†™æ³•åˆ—è¡¨}\label{tbl:index-entry}
\begin{tabular}{lll}
  \hline
  \textbf{ä¸¾ä¾‹} &amp;\textbf{ç´¢å¼•é¡¹} &amp;\textbf{å¤‡æ³¨}\\
  \hline
  \multicolumn{3}{l}{æ™®é€šç´¢å¼•} \\[.8ex]
  \verb+hello+              &amp; hello, 1             &amp; æ™®é€šç´¢å¼• \\
  \hline
  \multicolumn{3}{l}{åˆ†çº§ç´¢å¼•ï¼Œä»¥ \texttt! åˆ†éš”ï¼Œæœ€å¤šæ”¯æŒä¸‰çº§} \\[.8ex]
  \verb+hello+              &amp; hello, 1             &amp; ä¸€çº§ç´¢å¼• \\
  \verb+hello!Peter+        &amp;\quad Peter, 3 &amp; äºŒçº§ç´¢å¼• \\
  \verb+hello!Peter!Jack+   &amp;\qquad Jack,  3 &amp; ä¸‰çº§ç´¢å¼• \\
  \hline
  \multicolumn{3}{l}{æ&nbsp;¼å¼åŒ–ç´¢å¼•ï¼Œå½¢å¼ä¸º \Arg{alpha}\texttt @\Arg{format}} \\
  \multicolumn{3}{l}{\Arg{alpha}ä¸ºçº¯å­—æ¯ï¼Œç”¨æ¥æŽ’åº} \\
  \multicolumn{3}{l}{\Arg{format}ä¸ºç´¢å¼•çš„æ&nbsp;¼å¼ï¼Œå¯ä»¥åŒ…æ‹¬ \LaTeX ä»£ç&nbsp;å’Œç®€å•çš„å…¬å¼} \\[.8ex]
  \verb+Mobius@M\""obius+   &amp; M\"obius, 2          &amp; è¾“å‡ºé‡éŸ³ \\
  \verb+alpha@$\alpha$+     &amp; $\alpha$, 7          &amp; è¾“å‡ºå…¬å¼ \\
  \verb+bold@\textbf{bold}+ &amp; \textbf{bold}, 12    &amp; è¾“å‡ºç²—ä½“ \\
  \hline
  \multicolumn{3}{l}{é¡µç&nbsp;èŒƒå›´} \\[.8ex]
  \verb+morning|(+          &amp; morning, 6--7        &amp; èŒƒå›´ç´¢å¼•çš„å¼€å¤´ \\
  \verb+morning|)+          &amp;                      &amp; èŒƒå›´ç´¢å¼•çš„ç»“å°¾ \\
  \hline
  \multicolumn{3}{l}{æ&nbsp;¼å¼åŒ–ç´¢å¼•é¡µç&nbsp;} \\[.8ex]
  \verb+Jenny|textbf+       &amp; Jenny, \textbf{3}       &amp; è°ƒç”¨ \cmd{textbf} åŠ&nbsp;ç²—é¡µç&nbsp; \\
  \verb+Joe|see{Jenny}+     &amp; Joe, \textit{see} Jenny &amp; è°ƒç”¨ \cmd{see} ç”Ÿæˆç‰¹æ®Šå½¢å¼ \\
  \verb+Joe|seealso{Jenny}+ &amp; Joe, \textit{see also} Jenny &amp; è°ƒç”¨ \cmd{seealso} ç”Ÿæˆç‰¹æ®Šå½¢å¼ \\
  \hline
\end{tabular}
\end{table}

è¯»è€…å¯ä»¥é’»ç&nbsp;”ä¸€ä¸‹ä»¥ä¸‹ç»™å‡ºçš„ä¸€ä¸ªè¾ƒä¸ºå¤æ‚çš„ï¼Œç»“åˆå¤šçº§ç´¢å¼•ã€ç´¢å¼•æ&nbsp;¼å¼ã€é¡µç&nbsp;æ&nbsp;¼å¼ç­‰çš„ç”¨æ³•ç¤ºä¾‹ã€‚ä½†åœ¨è‡ªå·±ä½¿ç”¨æ—¶ï¼Œ
æœ€å¥½è¿˜æ˜¯éµå¾ªâ€œç®€å•çš„å°±æ˜¯æœ€å¥½çš„â€åŽŸåˆ™ï¼Œå°½é‡ä½¿ç”¨è¡¨ \ref{tbl:index-entry} ä¸­çš„å†™æ³•ã€‚
\begin{verbatim}
Test index.
\index{Test@\textsf{""Test}|(textbf}
\index{Test@\textsf{""Test}!sub@"|sub"||see{Test}}
\newpage
Test index.
\index{Test@\textsf{""Test}|)textbf}
\end{verbatim}

\section{ä½¿ç”¨é¢œè‰²}\label{sec:color}

\pinyinindex{yanse}{é¢œè‰²}
åŽŸå§‹çš„ \LaTeX{} ä¸æ”¯æŒä½¿ç”¨å„ç§é¢œè‰²ã€‚\pkg{color} å®åŒ…æˆ–è€… \pkg{xcolor} å®åŒ…æä¾›äº†å¯¹é¢œè‰²çš„æ”¯æŒï¼Œç»™ PDF è¾“å‡ºç”Ÿæˆé¢œè‰²çš„ç‰¹æ®ŠæŒ‡ä»¤ã€‚

\subsection{é¢œè‰²çš„è¡¨è¾¾æ–¹å¼}\label{subsec:color-code}

\pkgindex{color}
\cmdindex[color/xcolor]{color}
è°ƒç”¨ \pkg{color} æˆ– \pkg{xcolor} å®åŒ…åŽï¼Œæˆ‘ä»¬å°±å¯ä»¥ç”¨å¦‚ä¸‹å‘½ä»¤åˆ‡æ¢é¢œè‰²ï¼š
\begin{command}
\cmd{color}\oarg{color-mode}\marg{code} \\
\cmd{color}\marg{color-name}
\end{command}

é¢œè‰²çš„è¡¨è¾¾æ–¹å¼æœ‰ä¸¤ç§ï¼Œå…¶ä¸€æ˜¯ä½¿ç”¨è‰²å½©æ¨¡åž‹å’Œè‰²å½©ä»£ç&nbsp;ï¼Œä»£ç&nbsp;ç”¨ $0\sim1$ çš„æ•°å­—ä»£è¡¨æˆåˆ†çš„æ¯”ä¾‹ã€‚
\pkg{color} å®åŒ…æ”¯æŒ \texttt{rgb}ã€\texttt{cmyk} å’Œ \texttt{gray} æ¨¡åž‹ï¼Œ\pkg{xcolor} æ”¯æŒæ›´å¤šçš„æ¨¡åž‹å¦‚ \texttt{hsb} ç­‰ã€‚
\begin{example}
\large\sffamily
{\color[gray]{0.6}
  60\% ç°è‰²} \\
{\color[rgb]{0,1,1}
  é’è‰²}
\end{example}

å…¶äºŒæ˜¯ç›´æŽ¥ä½¿ç”¨åç§°ä»£è¡¨é¢œè‰²ï¼Œå‰ææ˜¯å·²ç»å®šä¹‰äº†é¢œè‰²åç§°ï¼ˆæ²¡å®šä¹‰çš„è¯ä¼šæŠ¥é”™ï¼‰ï¼š
\begin{example}
\large\sffamily
{\color{red} çº¢è‰²} \\
{\color{blue} è“è‰²}
\end{example}

\pkgindex{xcolor}
\pkg{color} å®åŒ…ä»…å®šä¹‰äº† 8 ç§é¢œè‰²åç§°ï¼Œ\pkg{xcolor} è¡¥å……äº†ä¸€äº›ï¼Œæ€»å…±æœ‰ 19 ç§ï¼Œè§è¡¨ \ref{tbl:colors}ã€‚

\def\showcolor#1{%
  \texttt{#1}\index{yanse@é¢œè‰²!#1@\texttt{#1}}%
  \ \begingroup\fboxsep=0pt\fbox{{\color{#1}\vrule width 1.2em height 1.4ex}}\endgroup}
\def\showxcolor#1{%
  \texttt{#1}\index{yanse@é¢œè‰²!#1@\texttt{#1} (\pkg{xcolor})}%
  \ \begingroup\fboxsep=0pt\fbox{{\color{#1}\vrule width 1.2em height 1.4ex}}\endgroup}

\begin{table}[htp]
\centering
\caption{\pkg{color} å’Œ \pkg{xcolor} å®åŒ…å¯ç”¨çš„é¢œè‰²åç§°}\label{tbl:colors}
\renewcommand\arraystretch{1.1}
\begin{tabularx}{0.8\textwidth}{*{4}{&gt;{\raggedleft\arraybackslash}X}}
 \hline
 \multicolumn{4}{c}{åŸºæœ¬çš„ 8 ç§é¢œè‰²åç§°ï¼ˆåŽä¸‰ç§é¢œè‰²ä¸º CMYK æ¨¡åž‹ï¼‰} \\
 \showcolor{black} &amp; \showcolor{red} &amp; \showcolor{green} &amp; \showcolor{blue} \\
 \showcolor{white} &amp; \showcolor{cyan} &amp; \showcolor{magenta} &amp; \showcolor{yellow} \\
 \hline
 \multicolumn{4}{c}{\pkg{xcolor} é¢å¤–å¯ç”¨çš„é¢œè‰²åç§°ï¼š} \\
 \showxcolor{darkgray} &amp; \showxcolor{gray} &amp; \showxcolor{lightgray} &amp;    \\
 \showxcolor{brown}  &amp; \showxcolor{olive} &amp; \showxcolor{orange} &amp; \showxcolor{lime}\\
 \showxcolor{purple} &amp; \showxcolor{teal} &amp; \showxcolor{violet} &amp; \showxcolor{pink} \\
 \hline
\end{tabularx}
\end{table}

\pkg{xcolor} è¿˜æ”¯æŒå°†é¢œè‰²é€šè¿‡è¡¨è¾¾å¼æ··åˆæˆ–äº’è¡¥ï¼š
\begin{example}
\large\sffamily
{\color{red!40} 40\% çº¢è‰²}\\
{\color{blue}è“è‰²
\color{blue!50!black}è“é»‘
\color{black}é»‘è‰²}\\
{\color{-red}çº¢è‰²çš„äº’è¡¥è‰²}
\end{example}

æˆ‘ä»¬è¿˜å¯ä»¥é€šè¿‡å‘½ä»¤è‡ªå®šä¹‰é¢œè‰²åç§°ï¼Œæ³¨æ„è¿™é‡Œçš„ \Arg{color-mode} æ˜¯å¿…é€‰å‚æ•°ï¼š
\begin{command}
\cmd{definecolor}\marg{color-name}\marg{color-mode}\marg{code}
\end{command}

å¦‚æžœè°ƒç”¨ \pkg{color} æˆ– \pkg{xcolor} å®åŒ…æ—¶æŒ‡å®š \texttt{dvipsnames} é€‰é¡¹ï¼Œå°±æœ‰é¢å¤–çš„ 68 ç§é¢œè‰²åç§°å¯ç”¨%
\footnote{\pkg{color} å®åŒ…å®žé™…è¦æŒ‡å®š \texttt{dvipsnames} å’Œ \texttt{usenames} é€‰é¡¹ã€‚}ã€‚
\pkg{xcolor} å®åŒ…è¿˜æ”¯æŒé€šè¿‡æŒ‡å®šå…¶å®ƒé€‰é¡¹è½½å…¥æ›´å¤šé¢œè‰²åç§°ã€‚é™äºŽç¯‡å¹…ä¸å±•å¼€ä»‹ç»ï¼Œè¯¦æƒ…è¯·å‚è€ƒ \pkg{xcolor} å®åŒ…çš„æ‰‹å†Œã€‚

\subsection{å¸¦é¢œè‰²çš„æ–‡æœ¬å’Œç›’å­}\label{subsec:colorbox}

åŽŸå§‹çš„ \cmd{color} å‘½ä»¤ç±»ä¼¼äºŽå­—ä½“å‘½ä»¤ \cmd{bfseries}ï¼Œå®ƒä½¿ä¹‹åŽæŽ’ç‰ˆçš„å†…å®¹å…¨éƒ¨å˜æˆæŒ‡å®šçš„é¢œè‰²ï¼Œ
æ‰€ä»¥ç›´æŽ¥ä½¿ç”¨æ—¶é€šå¸¸è¦åŠ&nbsp;èŠ±æ‹¬å·åˆ†ç»„ã€‚\pkg{color} å’Œ \pkg{xcolor} å®åŒ…éƒ½å®šä¹‰äº†ä¸€äº›æ–¹ä¾¿ç”¨æˆ·ä½¿ç”¨çš„å¸¦é¢œè‰²å…ƒç´&nbsp;ã€‚

\cmdindex[color/xcolor]{textcolor}
è¾“å…¥å¸¦é¢œè‰²çš„æ–‡æœ¬å¯ä»¥ç”¨ç±»ä¼¼ \cmd{textbf} çš„å‘½ä»¤ï¼š
\begin{command}
\cmd{textcolor}\oarg{color-mode}\marg{code}\marg{text} \\
\cmd{textcolor}\marg{color-name}\marg{text}
\end{command}

\cmdindex[color/xcolor]{colorbox}
ä»¥ä¸‹å‘½ä»¤æž„é€&nbsp;ä¸€ä¸ªå¸¦èƒŒæ™¯è‰²çš„ç›’å­ï¼Œ\Arg{material} ä¸ºç›’å­ä¸­çš„å†…å®¹ï¼š
\begin{command}
\cmd{colorbox}\oarg{color-mode}\marg{code}\marg{material} \\
\cmd{colorbox}\marg{color-name}\marg{material}
\end{command}

\cmdindex[color/xcolor]{fcolorbox}
ä»¥ä¸‹å‘½ä»¤æž„é€&nbsp;ä¸€ä¸ªå¸¦èƒŒæ™¯è‰²å’Œæœ‰è‰²è¾¹æ¡†çš„ç›’å­ï¼Œ\Arg{fcode} æˆ– \Arg{fcolor-name} ç”¨äºŽè®¾ç½®è¾¹æ¡†é¢œè‰²ï¼š
\begin{command}
\cmd{fcolorbox}\oarg{color-mode}\marg{fcode}\marg{code}\marg{material} \\
\cmd{fcolorbox}\marg{fcolor-name}\marg{color-name}\marg{material}
\end{command}

\begin{example}
\sffamily
æ–‡å­—ç”¨\textcolor{red}{çº¢è‰²}å¼ºè°ƒ\\
\colorbox[gray]{0.95}{æµ…ç°è‰²èƒŒæ™¯} \\
\fcolorbox{blue}{yellow}{%
 \textcolor{blue}{è“è‰²è¾¹æ¡†+æ–‡å­—ï¼Œ%
  é»„è‰²èƒŒæ™¯}
}
\end{example}

\cmdindex{fboxrule,fboxsep}
\cmd{fcolorbox} ä¹Ÿå¯ä»¥åƒ \ref{subsec:fbox} å°èŠ‚é‡Œçš„ \cmd{fbox} é‚£æ&nbsp;·è°ƒèŠ‚ \cmd{fbox\-rule} å’Œ \cmd{fbox\-sep}ï¼›å¯¹äºŽ \cmd{color\-box}ï¼Œ
è°ƒæ•´ \cmd{fbox\-sep} æ˜¯æœ‰æ•ˆçš„ã€‚è¿™é‡Œä¸å†ç»™å‡ºå…·ä½“çš„ç¤ºä¾‹ã€‚

\section{ä½¿ç”¨è¶…é“¾æŽ¥}\label{sec:hyperlinks}

\pinyinindex{chaolianjie}{è¶…é“¾æŽ¥}
PDF æ–‡æ¡£æ&nbsp;¼å¼æ˜¯çŽ°ä»Šæœ€æµè¡Œçš„ç”µå­æ–‡æ¡£æ&nbsp;¼å¼ï¼Œè€Œç”µå­æ–‡æ¡£æœ€å®žç”¨çš„éœ€æ±‚ä¹‹ä¸€å°±æ˜¯è¶…é“¾æŽ¥åŠŸèƒ½ã€‚
\LaTeX{} ä¸­å®žçŽ°è¿™ä¸€åŠŸèƒ½çš„æ˜¯ \pkg{hyperref} å®åŒ…ã€‚

\subsection{\pkg{hyperref} å®åŒ…}\label{subsec:hyperref}

\pkgindex{hyperref}
\pkg{hyperref} å®åŒ…æ¶‰åŠçš„é“¾æŽ¥éå¸ƒ \LaTeX{} çš„æ¯ä¸€ä¸ªè§’è½â€”â€”ç›®å½•ã€å¼•ç”¨ã€è„šæ³¨ã€ç´¢å¼•ã€å‚è€ƒæ–‡çŒ®ç­‰ç­‰éƒ½è¢«å°è£…æˆè¶…é“¾æŽ¥ã€‚
ä½†è¿™ä¹Ÿä½¿å¾—å®ƒä¸Žå…¶å®ƒå®åŒ…å‘ç”Ÿå†²çªçš„å¯èƒ½æ€§å¤§å¤§å¢žåŠ&nbsp;ï¼Œè™½ç„¶å®åŒ…å·²ç»å°½åŠ›è§£å†³å„æ–¹é¢çš„å…¼å®¹æ€§ï¼Œä½†ä»ä¸èƒ½é¢é¢ä¿±åˆ°ã€‚
ä¸ºå‡å°‘å¯èƒ½çš„å†²çªï¼Œä¹&nbsp;æƒ¯ä¸Šå°† \pkg{hyperref} å®åŒ…\textbf{æ”¾åœ¨å…¶å®ƒå®åŒ…ä¹‹åŽè°ƒç”¨}ã€‚

\pinyinindex{xuanxiang}{é€‰é¡¹ï¼ˆå®åŒ…/æ–‡æ¡£ç±»ï¼‰}
ä¸Ž \pkg{graphicx} å®åŒ…ç±»ä¼¼ï¼Œ\texttt{latex} + \texttt{dvipdfmx} å‘½ä»¤ä¸‹è°ƒç”¨ \pkg{hyperref} å®åŒ…æ—¶ï¼Œéœ€è¦æŒ‡å®šé€‰é¡¹ \texttt{dvipdfmx}ï¼›
è€Œ \texttt{pdflatex} æˆ– \texttt{xelatex} å‘½ä»¤ä¸‹ä¸éœ€è¦ã€‚

\cmdindex[hyperref]{hypersetup}
\pkg{hyperref} å®åŒ…æä¾›äº†å‘½ä»¤ \cmd{hypersetup} é…ç½®å„ç§å‚æ•°ã€‚å‚æ•°ä¹Ÿå¯ä»¥ä½œä¸ºå®åŒ…é€‰é¡¹ï¼Œåœ¨è°ƒç”¨å®åŒ…æ—¶æŒ‡å®šï¼š
\begin{command}
\cmd{hypersetup}\marg*{\Arg{option1},\Arg{option2}=\Arg{value},\ldots} \\
\cmd{usepackage}\oarg*{\Arg{option1},\Arg{option2}=\Arg{value},\ldots}\marg*{hyperref}
\end{command}
å½“é€‰é¡¹å€¼ä¸º \texttt{true} æ—¶ï¼Œå¯ä»¥çœç•¥â€œ\texttt{=true}â€ä¸å†™ã€‚å¯ç”¨çš„å‚æ•°è§è¡¨ \ref{tbl:hyperref-settings}ã€‚

\begin{table}[htp]
\centering
\caption{\pkg{hyperref} å®åŒ…æä¾›çš„å‚æ•°è®¾ç½®}\label{tbl:hyperref-settings}
\def\TF{\Arg{true\textnormal|false}}
\begin{tabular}{llp{19.5em}}
 \hline
 \textbf{å‚æ•°}                     &amp; \textbf{é»˜è®¤å€¼} &amp; \textbf{å«ä¹‰} \\
 \hline
 \texttt{draft=}\TF                &amp; \textit{false}  &amp; å…³é—­æ‰€æœ‰è¶…é“¾æŽ¥ã€ä¹¦ç­¾ç­‰åŠŸèƒ½ï¼ˆä¹Ÿå¯ä»¥é€šè¿‡æ–‡æ¡£ç±»é€‰é¡¹æŒ‡å®šï¼‰ \\
 \texttt{final=}\TF                &amp; \textit{true}   &amp; å¼€å¯æ‰€æœ‰è¶…é“¾æŽ¥ã€ä¹¦ç­¾ç­‰åŠŸèƒ½ï¼ˆä¹Ÿå¯ä»¥é€šè¿‡æ–‡æ¡£ç±»é€‰é¡¹æŒ‡å®šï¼‰ \\
 \hline
 \texttt{colorlinks=}\TF           &amp; \textit{false}  &amp; è®¾ç½®ä¸º \textit{true} ä¸ºé“¾æŽ¥æ–‡å­—å¸¦é¢œè‰²ï¼Œåä¹‹åŠ&nbsp;ä¸Šå¸¦é¢œè‰²çš„è¾¹æ¡† \\
 \texttt{hidelinks}                &amp;                 &amp; å–æ¶ˆé“¾æŽ¥çš„é¢œè‰²å’Œè¾¹æ¡† \\
 \texttt{pdfborder=}\marg*{\Arg{n} \Arg{n} \Arg{n}}
                                   &amp;  0 0 1          &amp; è¶…é“¾æŽ¥è¾¹æ¡†è®¾ç½®ï¼Œè®¾ä¸º 0 0 0 å¯å–æ¶ˆè¾¹æ¡† \\
 \hline
 \texttt{bookmarks=}\TF\textsuperscript{\dag}
                                   &amp; \textit{true}   &amp; æ˜¯å¦ç”Ÿæˆä¹¦ç­¾ \\
 \texttt{bookmarksopen=}\TF        &amp; \textit{false}  &amp; æ˜¯å¦å±•å¼€ä¹¦ç­¾ \\
 \texttt{bookmarksnumbered=}\TF    &amp; \textit{false}  &amp; ä¹¦ç­¾æ˜¯å¦å¸¦ç«&nbsp;èŠ‚ç¼–å· \\
 \hline
 \texttt{pdftitle=}\Arg{string}    &amp; ç©º              &amp; æ&nbsp;‡é¢˜ \\
 \texttt{pdfauthor=}\Arg{string}   &amp; ç©º              &amp; ä½œè€… \\
 \texttt{pdfsubject=}\Arg{string}  &amp; ç©º              &amp; ä¸»é¢˜ \\
 \texttt{pdfkeywords=}\Arg{string} &amp; ç©º              &amp; å…³é”®è¯ \\
 \texttt{pdfstartview=}\Arg{Fit\textnormal|FitH\textnormal|FitV}
                                   &amp; \textit{Fit}    &amp; è®¾ç½® PDF é¡µé¢ä»¥é€‚åˆé¡µé¢/é€‚åˆå®½åº¦/é€‚åˆé«˜åº¦ç­‰æ–¹å¼æ˜¾ç¤ºï¼Œé»˜è®¤ä¸ºé€‚åˆé¡µé¢ \\
 \hline
\end{tabular}
\begin{quotation}
\small
\textsuperscript{\dag} è¯¥é€‰é¡¹åªèƒ½ä½œä¸ºå®åŒ…é€‰é¡¹ï¼Œåœ¨è°ƒç”¨å®åŒ…æ—¶æŒ‡å®šã€‚
\end{quotation}
\end{table}

\subsection{è¶…é“¾æŽ¥}\label{subsec:url-href}

\cmdindex[hyperref]{url,nolinkurl}
\pkg{hyperref} å®åŒ…æä¾›äº†ç›´æŽ¥ä¹¦å†™è¶…é“¾æŽ¥çš„å‘½ä»¤ï¼Œç”¨äºŽåœ¨ PDF ä¸­ç”Ÿæˆ URLï¼š
\begin{command}
\cmd{url}\marg{url} \\
\cmd{nolinkurl}\marg{url}
\end{command}

\cmd{url} å’Œ \cmd{nolinkurl} éƒ½åƒæŠ„å½•å‘½ä»¤ \cmd{verb} ä¸€æ&nbsp;·è¾“å‡ºä¸€ä¸ª URLï¼ŒåŒºåˆ«æ˜¯å‰è€…è¿˜ä¸º URL åŠ&nbsp;ä¸Šäº†è¶…é“¾æŽ¥ï¼ŒåŽè€…æ²¡æœ‰ã€‚%
\footnote{æ³¨æ„ï¼Œä¸€äº› PDF é˜…è¯»å™¨ä¼šä¸º URL æ–‡æœ¬è‡ªåŠ¨åŠ&nbsp;ä¸Šè¶…é“¾æŽ¥ï¼Œè¿™äº›è¶…é“¾æŽ¥ä¸æ˜¯ \LaTeX{} ç”Ÿæˆçš„ã€‚}%
åœ¨ \cmd{url} ç­‰å‘½ä»¤çš„å‚æ•° \Arg{url} é‡Œï¼Œ
\textbf{å¯ç›´æŽ¥è¾“å…¥å¦‚ \texttt\%ã€\texttt\&amp; è¿™æ&nbsp;·çš„ç‰¹æ®Šç¬¦å·}ã€‚

\cmdindex[hyperref]{href}
æˆ‘ä»¬ä¹Ÿå¯ä»¥åƒ HTML ä¸­çš„è¶…é“¾æŽ¥ä¸€æ&nbsp;·ï¼ŒæŠŠä¸€æ®µæ–‡å­—ä½œä¸ºè¶…é“¾æŽ¥ï¼š
\begin{command}
\cmd{href}\marg{url}\marg{text}
\end{command}

\begin{example}
\url{https://wikipedia.org} \\
\nolinkurl{https://wikipedia.org} \\
\href{https://wikipedia.org}{Wiki}
\end{example}

\cmdindex[hyperref]{hyperref}
ä½¿ç”¨ \pkg{hyperref} å®åŒ…åŽï¼Œæ–‡æ¡£ä¸­æ‰€æœ‰çš„å¼•ç”¨ã€å‚è€ƒæ–‡çŒ®ã€ç´¢å¼•ç­‰ç­‰éƒ½è½¬æ¢ä¸ºè¶…é“¾æŽ¥ã€‚
ç”¨æˆ·ä¹Ÿå¯å¯¹æŸä¸ª \cmd{label} å‘½ä»¤å®šä¹‰çš„æ&nbsp;‡ç­¾ \Arg{label} ä½œè¶…é“¾æŽ¥ï¼ˆæ³¨æ„è¿™é‡Œçš„ \Arg{label} è™½ç„¶æ˜¯å¯é€‰å‚æ•°çš„å½¢å¼ï¼Œä½†é€šå¸¸æ˜¯\textbf{å¿…å¡«çš„}%
\footnote{ä¸å¸¦å¯é€‰å‚æ•°çš„ \cmd{hyperref} å‘½ä»¤å¸¦å››ä¸ªå¿…é€‰å‚æ•°ï¼Œå‰ä¸‰ä¸ªç»„æˆç‰¹æ®Šæ&nbsp;¼å¼çš„è¶…é“¾æŽ¥ï¼Œæœ€åŽä¸€ä¸ªåŒ \Arg{text}ã€‚}ï¼‰ï¼š
\begin{command}
\cmd{hyperref}\oarg{label}\marg{text}
\end{command}

é»˜è®¤çš„è¶…é“¾æŽ¥åœ¨æ–‡å­—å¤–è¾¹åŠ&nbsp;ä¸Šä¸€ä¸ªå¸¦é¢œè‰²çš„è¾¹æ¡†ï¼ˆåœ¨æ‰“å° PDF æ—¶è¾¹æ¡†ä¸ä¼šæ‰“å°ï¼‰ï¼Œå¯æŒ‡å®š \texttt{color\-links} å‚æ•°ä¿®æ”¹ä¸ºå°†æ–‡å­—æœ¬èº«åŠ&nbsp;ä¸Šé¢œè‰²ï¼Œ
æˆ–ä¿®æ”¹ \texttt{pdf\-border} å‚æ•°è°ƒæ•´è¾¹æ¡†å®½åº¦ä»¥â€œåŽ»æŽ‰â€è¾¹æ¡†ï¼›\texttt{hide\-links} å‚æ•°åˆ™ä»¤è¶…é“¾æŽ¥æ—¢ä¸å˜è‰²ä¹Ÿä¸åŠ&nbsp;è¾¹æ¡†ã€‚
\begin{verbatim}
\hypersetup{hidelinks}
% or:
\hypersetup{pdfborder={0 0 0}}
\end{verbatim}

\subsection{PDF ä¹¦ç­¾}\label{subsec:pdf-bookmark}

\pinyinindex{PDFshuqian}{PDF ä¹¦ç­¾}
\pkg{hyperref} å®åŒ…å¦ä¸€ä¸ªå¼ºå¤§çš„åŠŸèƒ½æ˜¯ä¸º PDF ç”Ÿæˆä¹¦ç­¾ã€‚å¯¹äºŽç«&nbsp;èŠ‚å‘½ä»¤ \cmd{chapter}ã€\cmd{section} ç­‰ï¼Œ
é»˜è®¤æƒ…å†µä¸‹ä¼šä¸º PDF è‡ªåŠ¨ç”Ÿæˆä¹¦ç­¾ã€‚å’Œäº¤å‰å¼•ç”¨ã€ç´¢å¼•ç­‰ç±»ä¼¼ï¼Œç”Ÿæˆä¹¦ç­¾ä¹Ÿéœ€è¦å¤šæ¬¡ç¼–è¯‘æºä»£ç&nbsp;ï¼Œç¬¬ä¸€æ¬¡ç¼–è¯‘å°†ä¹¦ç­¾è®°å½•å†™å…¥ \texttt{.out} æ–‡ä»¶ï¼Œ
ç¬¬äºŒæ¬¡ç¼–è¯‘æ‰æ­£ç¡®ç”Ÿæˆä¹¦ç­¾ã€‚

ä¹¦ç­¾çš„ä¸€äº›å±žæ€§è§è¡¨ \ref{tbl:hyperref-settings}ã€‚ä½¿ç”¨ \pkg{CJK} å®åŒ…æ—¶ï¼Œä¸ºäº†é˜²æ­¢ä¸­æ–‡ä¹¦ç­¾å‡ºçŽ°ä¹±ç&nbsp;ï¼Œ
éœ€è¦è¿›è¡Œç¹ççš„è®¾ç½®ï¼›ä½†åœ¨ä½¿ç”¨ \pkg{ctex} å®åŒ…å’Œæ–‡æ¡£ç±»ã€ä¸”ä½¿ç”¨ \texttt{xelatex} æˆ– \texttt{lualatex} ç¼–è¯‘çš„æƒ…å†µä¸‹ï¼Œ
æ—&nbsp;éœ€ç”¨æˆ·é¢å¤–å¹²é¢„ï¼Œå³å¯æ­£ç¡®ç”Ÿæˆä¸­æ–‡ä¹¦ç­¾ã€‚

\cmdindex[hyperref]{pdfbookmark}
\pkg{hyperref} è¿˜æä¾›äº†æ‰‹åŠ¨ç”Ÿæˆä¹¦ç­¾çš„å‘½ä»¤ï¼š
\begin{command}
\cmd{pdfbookmark}\oarg{level}\marg{bookmark}\marg{anchor}
\end{command}
\Arg{bookmark} ä¸ºä¹¦ç­¾åç§°ï¼Œ\Arg{anchor} ä¸ºä¹¦ç­¾é¡¹ä½¿ç”¨çš„é”šç‚¹ï¼ˆç±»ä¼¼äº¤å‰å¼•ç”¨çš„æ&nbsp;‡ç­¾ï¼‰ã€‚å¯é€‰å‚æ•° \Arg{level} ä¸ºä¹¦ç­¾çš„å±‚çº§ï¼Œé»˜è®¤ä¸º 0ã€‚

\cmdindex[hyperref]{texorpdfstring}
ç«&nbsp;èŠ‚å‘½ä»¤é‡Œå¾€å¾€æœ‰ \LaTeX{} å‘½ä»¤ç”šè‡³æ•°å­¦å…¬å¼ï¼Œè€Œ PDF ä¹¦ç­¾æ˜¯çº¯æ–‡æœ¬ï¼Œå¯¹å‘½ä»¤å’Œå…¬å¼çš„å¤„ç†å¾ˆå›°éš¾ï¼Œæœ‰å‡ºé”™çš„é£Žé™©ã€‚
\pkg{hyperref} å®åŒ…å·²ç»ä¸ºæˆ‘ä»¬å¤„ç†äº†è®¸å¤šå¸¸è§å‘½ä»¤ï¼Œå¦‚ \cmd{LaTeX} å’Œå­—ä½“å‘½ä»¤ \cmd{textbf} ç­‰ï¼Œ
å¯¹äºŽæœªè¢«å¤„ç†çš„å‘½ä»¤æˆ–æ•°å­¦å…¬å¼ï¼Œå°±è¦åœ¨ç«&nbsp;èŠ‚æ&nbsp;‡é¢˜ä¸­ä½¿ç”¨å¦‚ä¸‹å‘½ä»¤ï¼Œåˆ†åˆ«æä¾› \LaTeX{} ä»£ç&nbsp;å’Œ PDF ä¹¦ç­¾å¯ç”¨çš„çº¯æ–‡æœ¬ï¼š
\begin{command}
\cmd{texorpdfstring}\marg{\LaTeX{} code}\marg{PDF bookmark text}
\end{command}
æ¯”å¦‚åœ¨ç«&nbsp;èŠ‚åç§°é‡Œä½¿ç”¨å…¬å¼ $E=mc^2$ï¼Œè€Œä¹¦ç­¾åˆ™ä½¿ç”¨çº¯æ–‡æœ¬å½¢å¼çš„ \verb|E=mc^2|ï¼š
\begin{verbatim}
\section{è´¨èƒ½å…¬å¼ \texorpdfstring{$E=mc^2$}{E=mc\textasciicircum 2}}
\end{verbatim}

\subsection{PDF æ–‡æ¡£å±žæ€§}\label{subsec:pdf-settings}

\pkg{hyperref} å®åŒ…è¿˜æä¾›äº†ä¸€äº›å‚æ•°ç”¨äºŽæ”¹å˜ PDF æ–‡æ¡£çš„å±žæ€§ï¼Œéƒ¨åˆ†è§è¡¨ \ref{tbl:hyperref-settings}ã€‚


\endinput
</pre></body></html>