<html><head><meta name="color-scheme" content="light dark"></head><body><pre style="word-wrap: break-word; white-space: pre-wrap;">% !TeX root = ../install-latex-guide-zh-cn.tex

\chapter{Windows 11 çł»ç»ź}

\section{ĺ®‰čŁ… \TeX{} Live}\label{sec:windows:install}

ĺś¨ĺ®‰čŁ… \TeX{} Live äą‹ĺ‰Ť,
ĺś¨ć–‡ä»¶ĺ¤ąčŹśĺŤ•ć&nbsp;Ź \menu{ćźĄçś‹ &gt; ćľç¤ş} ä¸­é€‰ć‹© \menu{ć–‡ä»¶ć‰©ĺ±•ĺŤ}.

ç”¨ć·ĺŹŻä»Ąä»Žćś€čż‘çš„ CTAN ćş\footnote{čż™é‡Ść‰€č°“çš„ćś€čż‘, ĺ…¶ĺ®žćŻç”±çł»ç»źĺ¤ĺ®šçš„, ĺ®žé™…ä¸Šçł»ç»źĺŹŻč˝äĽščŻŻĺ¤}ä¸‹č˝˝ \TeX{} Live çš„
\href{https://mirrors.ctan.org/systems/texlive/Images/texlive2024.iso}{iso é•śĺŹć–‡ä»¶},
äąźĺŹŻä»Ąć‰ľĺ¤§é™†ĺś°ĺŚşçš„ćşč‡ŞčˇŚä¸‹č˝˝\footnote{ć–°ç‰ćś¬ĺŹ‘ĺ¸ć—¶, ĺ„é•śĺŹç˝‘ç«™ĺŚć­Ąçš„čż›ĺş¦äĽšćś‰ä¸ŤĺŚ}.
é€ščż‡ĺ¤§é™†ĺś°ĺŚşçš„ćşä¸‹č˝˝ iso ć–‡ä»¶çš„ć–ąćł•čŻ·ĺŹ‚č€é™„ĺ˝•~\ref{chp:appendix:mirror}.

ĺ‡č®ľé•śĺŹć–‡ä»¶č˘«ä¸‹č˝˝ĺ°ćś¬ĺś°ĺŽ,
ĺ…¶ĺ­ć”ľč·Żĺľ„ä¸ş \texttt{X:\textbackslash Y}%
\footnote{čż™é‡Ś, \texttt{X} čˇ¨ç¤şç›ç¬¦,
ĺ¦‚ \texttt{C}ă€\texttt{D}ă€\texttt{E} ç­‰;
\texttt{Y} čˇ¨ç¤şć–‡ä»¶ĺ¤ą;
é»č®¤č·Żĺľ„ĺŤç§°ä¸şä¸Ťĺ¸¦ç©şć&nbsp;Ľçš„č‹±ć–‡}.
ä¸‹č˝˝ĺ®ŚćŻ•ĺŽ, ç”¨ć·ć‰“ĺĽ€ \textsf{cmd} çŞ—ĺŹŁ%
\footnote{ç‚ąĺ‡» \keys{\faWindows},
čľ“ĺ…Ą \textsf{cmd},
ç‚ąĺ‡» \keys{\enter};
ć–ĺś¨ä»»ć„Źć–‡ä»¶ĺ¤ąä¸­ćŚ‰ \keys{\ctrl + L},
čľ“ĺ…Ą \textsf{cmd},
ç‚ąĺ‡» \keys{\enter}},
ć‰§čˇŚ
\begin{lstlisting}[language = bash]
  echo %path:;=&amp;echo.%
\end{lstlisting}
ćźĄçś‹çŽŻĺ˘ĺŹé‡Ź. 
č‹Ą \texttt{C:\textbackslash Windows\textbackslash system32}
ä¸Ťĺś¨ç»“ćžśä¸­\footnote{čż™é‡Śé»č®¤çł»ç»źç›ä¸ş\textsf{C}ç›},
ĺ™ĺ…łé—­ \textsf{cmd} çŞ—ĺŹŁ,
ĺ°† \texttt{C:\textbackslash Windows\textbackslash system32}
ć·»ĺŠ&nbsp;ĺ°çŽŻĺ˘ĺŹé‡Źä¸­\footnote{ĺś¨ \menu{ćˇŚéť˘ &gt; ć­¤ç”µč„‘ &gt; ĺ±žć€§ &gt; é«çş§çł»ç»źč®ľç˝® &gt; çŽŻĺ˘ĺŹé‡Ź &gt; çł»ç»źĺŹé‡Ź &gt; Path} ä¸­ć·»ĺŠ&nbsp;}.
\textbf{ć&nbsp;ąćŤ®ä»Ąĺľ€ç»ŹéŞŚ, ĺ®‰čŁ…č€ç‰ C\TeX{} ĺĄ—čŁ…çš„ç”¨ć·ĺľ€ĺľ€äĽšćś‰} \texttt{system32} \textbf{ä¸˘ĺ¤±çš„é—®é˘}. 

ĺŹ¦ĺ¤–, ĺ¦‚ćžśçŽŻĺ˘ĺŹé‡Źä¸­ćś‰ \texttt{mingw} ć– \texttt{jdk} ç›¸ĺ…łçš„ĺ†…ĺ®ą,
äąźčŻ·ćš‚ć—¶ĺ&nbsp;é™¤\footnote{ĺ…·ä˝“ĺŽźĺ›&nbsp;ĺŹ‚č§
\href{https://tex.stackexchange.com/questions/445086/error-installing-latest-version-of-tex-live-on-windows-10}{stackexchange} 
çš„č§Łé‡Š, ĺľ…ĺ®‰čŁ…ç»“ćťźĺŽ, ĺ†Ťĺ°† \texttt{mingw} ć– \texttt{jdk} çŽŻĺ˘ĺŹé‡Źć·»ĺŠ&nbsp;č‡ł \TeX{} Live çš„çŽŻĺ˘ĺŹé‡Źäą‹ĺŽ}.
ĺŚć—¶ĺ›˝ĺ†…ĺ¸¸č§çš„ 2345 ĺĄ˝ĺŽ‹äąźäĽšĺŻąĺ®‰čŁ…ćž„ćĺ˝±ĺ“Ť,
ĺ»şč®®ĺ&nbsp;é™¤ĺ®ĺą¶ĺś¨ĺ®‰čŁ… \TeX{} Live ĺŽć›´ćŤ˘ĺ…¶ä»–ĺŚç±»č˝Żä»¶%
\footnote{ćŽ¨čŤ \href{http://www.winrar.com.cn/}{WinRAR}
ć– \href{https://www.7-zip.org/}{7-Zip}}.
\textbf{ćś€é‡Ťč¦çš„ćŻ, ä¸Ťč¦ĺ®‰čŁ…ç¬¬ä¸‰ć–ąĺ®‰ĺ…¨č˝Żä»¶}\footnote{Windows 11 ä¸­ĺ·˛ç»Źĺ†…ç˝®äş†ĺ®‰ĺ…¨č˝Żä»¶,
ç”¨ć·ĺ°¤ĺ…¶ć˛ˇćś‰ĺż…č¦ĺ®‰čŁ…ĺ›˝äş§çš„ç¬¬ä¸‰ć–ąćť€ćŻ’č˝Żä»¶,
ć&nbsp;ąćŤ®ç»ŹéŞŚ,
ĺ®ä»¬äĽšĺą˛ć‰° \TeX{} Live ĺ®‰čŁ…}.

ä¸‹éť˘ć‘ä»¬č¦çˇ®äżťä¸‹č˝˝ĺ°çš„ iso ć–‡ä»¶ć˛ˇćś‰ćŤźĺťŹ, ä¸€ç§Ťĺ¸¸ç”¨ĺšćł•ćŻćŁ€ćźĄĺ…¶ MD5 ĺ€Ľ.
ĺ˝“ç„¶, ĺ¦‚ćžśçˇ®äżˇč‡Şĺ·±ä¸‹č˝˝ĺ°çš„ć–‡ä»¶ć˛ˇćś‰é—®é˘, äąźĺŹŻä»Ąč·łčż‡čż™ä¸€ć­Ą.
ć‰“ĺĽ€ \textsf{cmd} çŞ—ĺŹŁäľťć¬ˇć‰§čˇŚä»Ąä¸‹ä»Łç&nbsp;
\begin{lstlisting}[language = bash]
  cd /d X:\Y
  certutil -hashfile texlive2024.iso md5
\end{lstlisting}
č‹Ąçł»ç»źćľç¤ş
\begin{lstlisting}
  MD5 çš„ texlive2024.iso ĺ“ĺ¸Ś:
  a54f5524e51267dee37e72e3b3fd31c4
  CertUtil: -hashfile ĺ‘˝ä»¤ćĺŠźĺ®Ść.
\end{lstlisting}
ĺ™čˇ¨ćŽä¸‹č˝˝çš„é•śĺŹć–‡ä»¶ć­Łĺ¸¸.
é™¤ MD5 ĺ€Ľĺ¤–,
čżĺŹŻćŁ€ćźĄ SHA512 ĺ€Ľ.
äľťç„¶ćŻĺś¨ \textsf{cmd} ć‰§čˇŚ
\begin{lstlisting}[language = bash]
  cd /d X:\Y
  certutil -hashfile texlive2024.iso sha512
\end{lstlisting}
č‹Ąçł»ç»źćľç¤ş
\begin{lstlisting}[language=bash,literate={a}{a}{1} {b}{b}{1} {c}{c}{1} {d}{d}{1} {e}{e}{1} {f}{f}{1}]
  SHA512 çš„ texlive2024.iso ĺ“ĺ¸Ś:
  6e3c3470ee5ca903bb5c31f436b018cd2cfbc526c4ca563ccb15959802f8b1a6c0475c58566c1afaba19dc780fd192ac5511818ef5a89828d935c66c62cfcb2a
  CertUtil: -hashfile ĺ‘˝ä»¤ćĺŠźĺ®Ść.
\end{lstlisting}
ĺŤłä¸şéŞŚčŻćĺŠź.

ćŽĄä¸‹ćťĄĺĽ€ĺ§‹ĺ®‰čŁ….
ćŽ¨čŤç”¨ć·ĺ…ć‰‹ĺŠ¨ĺ»şç«‹ \TeX{} Live çš„ĺ®‰čŁ…č·Żĺľ„ (ć–‡ä»¶ĺ¤ą) ĺ†Ťčż›čˇŚĺ®‰čŁ…,
ćł¨ć„Źč·Żĺľ„çš„ĺŤç§°ćŻ\textbf{ä¸Ťĺ¸¦ç©şć&nbsp;Ľçš„č‹±ć–‡},
é»č®¤č·Żĺľ„ä¸ş \texttt{C:\textbackslash texlive\textbackslash 2024}.
ĺ‡ĺ¦‚çł»ç»źç”¨äş†ä¸­ć–‡ä˝śä¸şç”¨ć·ĺŤ,
é‚Łäąç”¨ć·éś€č¦ĺ…ćŚ‰ç…§ \ref{sec:chinesename} čŠ‚çš„ć–ąćł•ć›´ć”ąä¸´ć—¶çŽŻĺ˘ĺŹé‡ŹĺŽĺ†Ťĺ®‰čŁ….
ĺ°†é•śĺŹć–‡ä»¶čŁ…č˝˝č‡łč™šć‹źĺ…‰é©±\footnote{Windows 11 é»č®¤ĺŹŚĺ‡»é•śĺŹć–‡ä»¶äľżĺŹŻčŁ…č˝˝;
ĺŹ—ćźäş›ĺŽ‹çĽ©č˝Żä»¶ĺ˝±ĺ“ŤĺŹŚĺ‡»ĺ¤±ć•ć—¶,
ĺŹŻĺś¨ć–‡ä»¶ĺ¤ąčŹśĺŤ•ć&nbsp;Ź
\menu{čŁ…č˝˝};
ç¬¬ä¸‰ć–ąč™šć‹źĺ…‰é©±č˝Żä»¶ĺŹŻč€č™‘ WinCDEmu ć– UltraISO;
ä¸ŤéĽ“ĺŠ±č§ŁĺŽ‹çĽ©é•śĺŹć–‡ä»¶}. 
ĺ‡č®ľĺŠ&nbsp;č˝˝ĺŽçš„č·Żĺľ„ä¸ş \texttt{Z:\textbackslash}.
ć‰“ĺĽ€ \textsf{cmd} çŞ—ĺŹŁĺą¶ć‰§čˇŚ
\begin{lstlisting}[language = bash]
  Z:\install-tl-windows.bat --no-gui
\end{lstlisting}
ĺŤłĺŹŻçś‹ĺ°ĺ¦‚ä¸‹ç»“ćžś
\begin{lstlisting}
  ======================&gt; TeX Live installation procedure &lt;=====================

  ======&gt;   Letters/digits in &lt;angle brackets&gt; indicate   &lt;=======
  ======&gt;   menu items for actions or customizations      &lt;=======
  = help&gt;   https://tug.org/texlive/doc/install-tl.html   &lt;=======

   Detected platform: Windows (64-bit)

   &lt;B&gt; set binary platforms: 1 out of 15

   &lt;S&gt; set installation scheme: scheme-full

   &lt;C&gt; set installation collections:
       41 collections out of 41, disk space required: 8578 MB (free: 230119 MB)

   &lt;D&gt; set directories:
     TEXDIR (the main TeX directory):
       C:/texlive/2024
     TEXMFLOCAL (directory for site-wide local files):
       C:/texlive/texmf-local
     TEXMFSYSVAR (directory for variable and automatically generated data):
       C:/texlive/2024/texmf-var
     TEXMFSYSCONFIG (directory for local config):
       C:/texlive/2024/texmf-config
     TEXMFVAR (personal directory for variable and automatically generated data):
       ~/.texlive2024/texmf-var
     TEXMFCONFIG (personal directory for local config):
       ~/.texlive2024/texmf-config
     TEXMFHOME (directory for user-specific files):
       ~/texmf

   &lt;O&gt; options:
     [ ] use letter size instead of A4 by default
     [X] allow execution of restricted list of programs via \write18
     [X] create all format files
     [X] install macro/font doc tree
     [X] install macro/font source tree
     [X] adjust search path
     [1] add menu items, shortcuts, etc.
     [1] update file associations
     [X] install TeXworks front end
     [X] after install, set CTAN as source for package updates

   &lt;V&gt; set up for portable installation

  Actions:
   &lt;I&gt; start installation to hard disk
   &lt;P&gt; save installation profile to 'texlive.profile' and exit
   &lt;Q&gt; quit

  Enter command:
\end{lstlisting}
čż™ć—¶, ç”¨ć·ĺŹŻĺŹŻç›´ćŽĄćŚ‰é”®ç› \keys{I} ĺś¨é»č®¤č·Żĺľ„ä¸­ç›´ćŽĄĺ®‰čŁ… \TeX{} Live,
äąźĺŹŻćŚ‰é”®ç› \keys{D} ćťĄć›´ć”ąĺ®‰čŁ…č·Żĺľ„.
ćŚ‰ \keys{D} ĺŽ, ç”¨ć·ĺŹŻçś‹ĺ°
\begin{lstlisting}
  ==============================================================================
  Directories customization:
  
  &lt;1&gt; TEXDIR:       C:/texlive/2024
      main tree:    C:/texlive/2024/texmf-dist
  
  &lt;2&gt; TEXMFLOCAL:     C:/texlive/texmf-local
  &lt;3&gt; TEXMFSYSVAR:    C:/texlive/2024/texmf-var
  &lt;4&gt; TEXMFSYSCONFIG: C:/texlive/2024/texmf-config
  
  &lt;5&gt; TEXMFVAR:       ~/.texlive2024/texmf-var
  &lt;6&gt; TEXMFCONFIG:    ~/.texlive2024/texmf-config
  &lt;7&gt; TEXMFHOME:      ~/texmf
  
  Note: ~ will expand to %USERPROFILE%
  
  Actions:
  &lt;R&gt; return to main menu
  &lt;Q&gt; quit
  
  Enter command:
\end{lstlisting}
čż™ć—¶ćŚ‰é”®ç› \keys{1}, ĺ°†çś‹ĺ°
\begin{lstlisting}
  New value for TEXDIR [C:/texlive/2024]:
\end{lstlisting}
čż™ć—¶ĺŹŻć›´ć”ąč·Żĺľ„, ĺ¦‚ \texttt{D:/texlive/2024}.
ćŽĄä¸‹ćťĄ, ćŚ‰é”®ç› \keys{R} ĺŤłĺŹŻĺ›žĺ°ĺťĺ§‹çš„ĺ®‰čŁ…ç•Śéť˘,
ĺ†ŤćŚ‰é”®ç› \keys{I} äľżĺŹŻĺś¨ĺšć‰ŤćŚ‡ĺ®šçš„č·Żĺľ„ĺ®‰čŁ….
ç”¨ć·ĺŹŻé€ščż‡é…čŻ»č‹±ć–‡ć‰§čˇŚĺ…¶ä»–ć“Ťä˝ś, čż™é‡Śä¸Ťĺ†Ťčµčż°. 
č‡łć­¤, ç”¨ć·ĺŹŞéś€č€ĺżç­‰ĺľ…ĺ®‰čŁ…ĺ®Ść, ĺą¶ä¸”ä¸Ťč¦ç‚ąĺ‡» \textsf{cmd} çŞ—ĺŹŁ%
\footnote{Windows 11 é»č®¤é‡‡ĺŹ–ĺż«é€źçĽ–čľ‘ć¨ˇĺĽŹ, ä¸€ć—¦ç‚ąĺ‡» \textsf{cmd} çŞ—ĺŹŁ,
ĺ°†ćľç¤ş``é€‰ć‹©ĺ‘˝ä»¤ćŹç¤şç¬¦''č€ŚĺŻĽč‡´čż›ç¨‹ćš‚ĺś}. 
ĺ®‰čŁ…ĺ®ŚćĺŽ, ĺ…łé—­ĺ†Ťć‰“ĺĽ€ \textsf{cmd} çŞ—ĺŹŁ%
\footnote{ć­Łĺ¸¸ĺ®‰čŁ… \TeX{} Live ĺŽ, çŽŻĺ˘ĺŹé‡ŹäĽšĺŹĺŚ–,
ĺ…łé—­ĺŽź \textsf{cmd} çŞ—ĺŹŁĺ†Ťé‡Ťć–°ć‰“ĺĽ€ć‰Ťč˝čŽ·ĺŹ–ć–°çš„çŽŻĺ˘ĺŹé‡Ź},
ć‰§čˇŚ
\begin{lstlisting}[language = bash]
  tex -v
\end{lstlisting}
ćľç¤ş
\begin{lstlisting}
  TeX 3.141592653 (TeX Live 2024)
  kpathsea version 6.4.0
  Copyright 2024 D.E. Knuth.
  There is NO warranty.  Redistribution of this software is
  covered by the terms of both the TeX copyright and
  the Lesser GNU General Public License.
  For more information about these matters, see the file
  named COPYING and the TeX source.
  Primary author of TeX: D.E. Knuth.
\end{lstlisting}
ĺŤłĺŹŻč®¤ä¸şĺ®‰čŁ…éˇşĺ©ĺ®Ść%
\footnote{č‹ĄćśŞč˝ć­Łçˇ®ćľç¤şç»“ćžś, ĺ™ĺŹŻč˝ćŻĺ›&nbsp;ä¸şçŽŻĺ˘ĺŹé‡ŹćśŞć”ąĺŹ,
ç”¨ć·ĺŹŻć‰‹ĺŠ¨ć·»ĺŠ&nbsp; \texttt{&lt;TEXDIR&gt;\textbackslash bin\textbackslash windows} č‡łçŽŻĺ˘ĺŹé‡Ź,
\texttt{&lt;TEXDIR&gt;} éś€ä¸Žä˝&nbsp;ć–ąć‰Ťçš„ĺ®‰čŁ…č·Żĺľ„ä¸€č‡´}.
ĺĽąĺ‡şĺ‰Ťéť˘čŁ…č˝˝çš„ĺ…‰ç›é•śĺŹ,
ĺ®‰čŁ…ĺ°ć­¤ç»“ćťź.

\subsection{ä¸‹č˝˝é•śĺŹä¸€ç›´ä¸ŤćĺŠźçš„ĺ¤„ç†ĺŠžćł•}

ç›®ĺ‰ŤĺŹ‘çŽ°ćś‰äş›ç”¨ć·ä˝żç”¨ćźäş›ćµŹč§ĺ™¨ć—¶ć—&nbsp;ćł•ć­Łĺ¸¸ä¸‹č˝˝é•śĺŹć–‡ä»¶.
čż™ć—¶,
ç”¨ć·ĺŹŻä»Ąé€‰ć‹©ä˝żç”¨ \href{https://eternallybored.org/misc/wget/}{\textsf{wget}} ĺŻąé•śĺŹčż›čˇŚä¸‹č˝˝.
ĺ…·ä˝“ç”¨ćł•ćŻ:
ĺ°† \textsf{wget} ć‰€ĺś¨ç›®ĺ˝•ć·»ĺŠ&nbsp;ĺ°çŽŻĺ˘ĺŹé‡Źä¸­.
ć‰“ĺĽ€ \textsf{cmd} çŞ—ĺŹŁć‰§čˇŚä»Ąä¸‹ä»Łç&nbsp;
\begin{lstlisting}[language = bash]
  wget http://mirrors.ctan.org/systems/texlive/Images/texlive2024.iso
\end{lstlisting}
ĺŤłĺŹŻä¸‹č˝˝ćś€čż‘çš„é•śĺŹ.
ç±»äĽĽĺś°,
äąźĺŹŻä»ĄćŚ‡ĺ®šĺ›˝ĺ†…çš„ćşčż›čˇŚä¸‹č˝˝,
äľ‹ĺ¦‚é€‰ć‹©ć¸…ĺŤŽĺ¤§ĺ­¦é•śĺŹ
\begin{lstlisting}[language = bash]
  wget https://mirrors.tuna.tsinghua.edu.cn/CTAN/systems/texlive/Images/texlive2024.iso
\end{lstlisting}
ĺ…¶ä»–ĺ›˝ĺ†…é•śĺŹĺŹŞéś€č¦ĺ°†é“ľćŽĄć›żćŤ˘ĺŤłĺŹŻ,
é“ľćŽĄĺ’Ść–ąćł•čŻ·ĺŹ‚č€é™„ĺ˝•~\ref{chp:appendix:mirror}.

\subsection{éś€č¦ç®ˇç†ĺ‘ćťé™çš„ĺ¤„ç†ĺŠžćł•}

ćś‰äş›ç”¨ć·ĺŹŤé¦ĺ®‰čŁ…čż‡ç¨‹ä¸­éś€č¦ç®ˇç†ĺ‘ćťé™.
ä»Ąç®ˇç†ĺ‘čş«ä»˝ć‰“ĺĽ€ \textsf{cmd} çŞ—ĺŹŁçš„ć–ąćł•ćŻç‚ąĺ‡» \keys{\faWindows},
čľ“ĺ…Ą \textsf{cmd},
ćŚ‰ \keys{\ctrl + \shift + \enter} ä¸‰ä¸Şé”®.
ä¸€č¬č€Śč¨€,
ĺś¨çł»ç»źç›ĺ†…ç›´ćŽĄĺ®‰čŁ… \TeX{} Live äĽšç˘°ĺ°ć­¤ç±»é—®é˘,
ĺ›&nbsp;ć­¤éĽ“ĺŠ±ç”¨ć·ĺś¨ĺ®‰čŁ…ĺ‰Ťĺ…ć‰‹ĺŠ¨ĺ»şç«‹ĺ®‰čŁ…č·Żĺľ„.
ç›´ćŽĄä˝żç”¨ç®ˇç†ĺ‘čş«ä»˝ć‰“ĺĽ€ \textsf{cmd} çŞ—ĺŹŁčż›čˇŚĺ®‰čŁ…ĺŹŻč˝äĽšĺŻąä»ĄĺŽçš„ĺŤ‡çş§é€&nbsp;ćĺ˝±ĺ“Ť.

\subsection{çł»ç»źç”¨ä¸­ć–‡ä˝śä¸şç”¨ć·ĺŤ}\label{sec:chinesename}

ĺľĺ¤šä¸­ć–‡ Windows ç”¨ć·äą&nbsp;ćŻäşŽç”¨ä¸­ć–‡ä˝śä¸şç”¨ć·ĺŤ,
ä˝†ćŻčż™ć&nbsp;·äĽšĺŻĽč‡´ \TeX{} Live ĺ®‰čŁ…ĺ¤±č´Ą.
ć›´ć”ąçł»ç»źçš„ \texttt{TEMP} ĺ’Ś \texttt{TMP} čż™ä¸¤ä¸ŞçŽŻĺ˘ĺŹé‡ŹĺŹŻä»Ąéżĺ…Ťčż™ć&nbsp;·çš„é—®é˘.
ĺś¨ \textsf{cmd} ä¸­ć‰§čˇŚ
\begin{lstlisting}
  mkdir C:\temp
  set TEMP=C:\temp
  set TMP=C:\temp
\end{lstlisting}
äľżĺŹŻć›´ć”ąčż™ä¸¤ä¸ŞçŽŻĺ˘ĺŹé‡Źä¸ş \texttt{C:\textbackslash temp}.
ć›´ć”ąĺŽćŚ‰ç…§ĺ‰Ťčż°ĺ†…ĺ®ąĺ®‰čŁ… \TeX{} Live ĺŤłĺŹŻ.
čż™ć&nbsp;·çš„ć›´ć”ąćŻä¸´ć—¶çš„,
ĺľ… \textsf{cmd} çŞ—ĺŹŁĺ…łé—­,
çŽŻĺ˘ĺŹé‡Źĺ°†ć˘ĺ¤Ťä¸şĺŽźĺ§‹çŠ¶ć€.

\section{ĺŤ¸č˝˝ \TeX{} Live}

ĺś¨č·¨ç‰ćś¬ĺŤ‡çş§ \TeX{} Live ć—¶, é€šĺ¸¸éś€č¦ĺŤ¸č˝˝ć—§ç‰ \TeX{} Live.
ä¸‹éť˘ä»‹ç»Ťĺ‡&nbsp;ç§ŤĺŤ¸č˝˝ć–ąćł•.

\subsection{ä˝żç”¨ć‰ąĺ¤„ç†ć–‡ä»¶}

ĺś¨ĺ‘˝ä»¤čˇŚć‰§čˇŚ
\begin{lstlisting}[language=bash]
  kpsewhich -var-value TEXMFROOT
\end{lstlisting}
ĺŹŻä»ĄćźĄçś‹ \texttt{TEXMFROOT} çš„ĺ€Ľ,
čŻĄĺ€ĽĺŤłä¸ş \TeX{} Live çš„ĺ®‰čŁ…č·Żĺľ„%
\footnote{%
  é™¤čż™é‡ŚćŹäľ›çš„ \texttt{TEXMFROOT}, čżćś‰ĺľĺ¤šĺ…¶ä»–ĺŹé‡Ź, ĺŹŻĺś¨
  \href{https://www.tug.org/texlive/doc/texlive-zh-cn/texlive-zh-cn.pdf}{texlive-zh-cn}
  ç¬¬ 2.3 čŠ‚ĺ¤„ć‰ľĺ°
}. 
ćŽĄä¸‹ćťĄ,
ç”¨ć·ĺŹŞéś€ć‰§čˇŚ%
\footnote{ĺŹŚĺ‡»ć–ĺś¨ \texttt{cmd} ä¸­čżčˇŚ}%
ĺ®‰čŁ…č·Żĺľ„ä¸­çš„ĺŤ¸č˝˝ć‰ąĺ¤„ç†ć–‡ä»¶ĺŤłĺŹŻĺ®žçŽ°ĺŤ¸č˝˝, ĺ¦‚é»č®¤ĺ®‰čŁ…ć—¶ć‰§čˇŚ
\begin{lstlisting}[language=bash]
  C:\texlive\2024\tlpkg\installer\uninst.bat
\end{lstlisting}
ç»“ćťźä»Ąä¸Šć­ĄéŞ¤ĺŽ,
ć‰‹ĺŠ¨ĺ&nbsp;é™¤ç”¨ć·ć–‡ä»¶ĺ¤ąä¸­çš„ \texttt{.texlive2024}.
ĺ¦‚ćžśç”¨ć·ĺ®‰čŁ… \TeX{} Live ć—¶éś€č¦ç®ˇç†ĺ‘ćťé™,
é‚Łäąĺś¨ĺŤ¸č˝˝ć—¶ĺŚć&nbsp;·éś€č¦ç®ˇç†ĺ‘ćťé™.

ĺŤ¸č˝˝ĺŽ,
ç”¨ć·éś€č¦ć¸…ç†ćł¨ĺ†Śčˇ¨
\begin{lstlisting}
  HKEY_CURRENT_USER\Software\Classes\TL.bitmap2eps.convert.2024
  HKEY_CURRENT_USER\Software\Classes\TL.DVIOUT.view.2024
  HKEY_CURRENT_USER\Software\Classes\TL.TeXworks.edit.2024
  HKEY_CURRENT_USER\Software\Classes\TL.PSViewer.view.2024
  HKEY_CURRENT_USER\SOFTWARE\Microsoft\Windows\CurrentVersion\ApplicationAssociationToasts\TL.bitmap2eps.convert.2024_.jpg
  HKEY_CURRENT_USER\SOFTWARE\Microsoft\Windows\CurrentVersion\ApplicationAssociationToasts\TL.bitmap2eps.convert.2024_.png
  HKEY_CURRENT_USER\SOFTWARE\Microsoft\Windows\CurrentVersion\ApplicationAssociationToasts\TL.TeXworks.edit.2024_.sty
  HKEY_CURRENT_USER\SOFTWARE\Microsoft\Windows\CurrentVersion\ApplicationAssociationToasts\TL.TeXworks.edit.2024_.tex
\end{lstlisting}
ä˝†č‹Ąĺś¨ĺ®‰čŁ…ć—¶ä˝żç”¨ç®ˇç†ĺ‘ćťé™``ä¸şć‰€ćś‰äşşĺ®‰čŁ…'',
ĺ™ćł¨ĺ†Śčˇ¨ä˝Ťç˝®ĺ°†ĺŹä¸ş
\begin{lstlisting}
  HKEY_LOCAL_MACHINE\SOFTWARE\Classes\TL.bitmap2eps.convert.2024
  HKEY_LOCAL_MACHINE\SOFTWARE\Classes\TL.DVIOUT.view.2024
  HKEY_LOCAL_MACHINE\SOFTWARE\Classes\TL.TeXworks.edit.2024
  HKEY_LOCAL_MACHINE\SOFTWARE\Classes\TL.PSViewer.view.2024
\end{lstlisting}

\subsection{ć‰‹ĺŠ¨ĺŤ¸č˝˝}

ĺ¦‚ćžść‰§čˇŚć‰ąĺ¤„ç†ć–‡ä»¶ \texttt{uninst.bat} ĺ‡şé”™,
ç”¨ć·äąźĺŹŻć‰‹ĺŠ¨ĺ&nbsp;é™¤ĺ®‰čŁ…ć–‡ä»¶ĺ¤ą,
äą‹ĺŽĺ†Ťć¸…ç† \TeX{} Live çš„çŽŻĺ˘ĺŹé‡Ź,
ĺą¶ä¸”ć¸…ç†ćł¨ĺ†Śčˇ¨.

\section{č·¨ç‰ćś¬ĺŤ‡çş§ \TeX{} Live}

ç›®ĺ‰Ťĺś¨ \href{https://www.tug.org/texlive/upgrade.html}{tug.org}
ä¸Šéť˘ćŹäľ›çš„čŻ´ćł•ćŻ:
Windows ć˛ˇćś‰ç±»äĽĽ Unix çš„ĺŤ‡çş§ç¨‹ĺşŹ,
éś€č¦čż›čˇŚć–°ĺ®‰čŁ…%
\footnote{ĺŽźć–‡ćŻ: There is no comparable upgrade procedure for Windows.
Doing a new installation is necessary.}.

\section{ĺŤ‡çş§ĺ®ŹĺŚ…}\label{sec:windows:update}

ĺ®‰čŁ…ĺ®ŚćĺŽ, ç”¨ć·ĺŹŻä»ĄĺŤ‡çş§ĺ®ŹĺŚ…ä»ĄčŽ·ĺľ—ć›´ĺĄ˝çš„ä˝żç”¨ä˝“éŞŚ. 
ä¸‹éť˘ĺ°†ä»‹ç»Ťä˝żç”¨ĺ‘˝ä»¤čˇŚĺŤ‡çş§ĺ®ŹĺŚ…çš„ć–ąćł•. 
ć‰“ĺĽ€ \textsf{cmd} çŞ—ĺŹŁ, é¦–ĺ…ć‰§čˇŚä¸‹éť˘ĺ‘˝ä»¤ćŚ‡ĺ®šĺŤ‡çş§ä˝żç”¨çš„é•śĺŹćş. 
\texttt{ctan} čˇ¨ç¤şçł»ç»źĺś¨ĺŤ‡çş§ć—¶ĺ°†č‡ŞĺŠ¨ĺŻ»ć±‚ćś€čż‘çš„ćşčż›čˇŚä¸‹č˝˝. 
\begin{lstlisting}[language=bash]
  tlmgr option repository ctan
\end{lstlisting}
ç”¨ć·ĺŚć&nbsp;·ĺŹŻä»ĄćŚ‡ĺ®šĺ…¶ä»–çš„é•śĺŹćş,
ć–ąćł•č§é™„ĺ˝•~\ref{chp:appendix:mirror}.

ćŽĄä¸‹ćťĄ, ç”¨ć·ć‰§čˇŚĺ‘˝ä»¤
\begin{lstlisting}[language=bash]
  tlmgr update --list
\end{lstlisting}
ĺŹŻćźĄçś‹ç›®ĺ‰Ťćşä¸ŠĺŹŻĺŤ‡çş§çš„ĺ®ŹĺŚ…é˝ćś‰ĺ“Şäş›. 
é«çş§ç”¨ć·ĺŹŻä»Ąć&nbsp;ąćŤ®č‡Şĺ·±çš„éś€ć±‚é€‰ć‹©ĺŤ‡çş§ç‰ąĺ®šĺ®ŹĺŚ….
ĺ»şč®®ĺťçş§ç”¨ć·ç›´ćŽĄĺŤ‡çş§ĺ…¨é¨ĺ®ŹĺŚ…. 
ç”¨ć·ĺŹŞéś€ć‰§čˇŚ
\begin{lstlisting}[language=bash]
  tlmgr update --self --all
\end{lstlisting}
ĺŚć—¶ĺŤ‡çş§ \texttt{tlmgr} ćś¬čş«ĺ’Śĺ…¨é¨ĺ®ŹĺŚ…. 

\subsection{\texttt{tlmgr} ćś¬čş«ć—&nbsp;ćł•ćĺŠźĺŤ‡çş§}

é‡ĺ°čż™ç§Ťć…ĺ†µć—¶, ç”¨ć·éś€č‡ŞčˇŚä¸‹č˝˝
\href{https://mirrors.ctan.org/systems/texlive/tlnet/update-tlmgr-latest.exe}{update-tlmgr-latest.exe},
ç„¶ĺŽĺ†Ťć‰§čˇŚĺŤ‡çş§ĺ‘˝ä»¤ĺŤłĺŹŻ%
\footnote{čż™é‡Śäľťć—§č®©çł»ç»źč‡ŞĺŠ¨é€‰ć‹©é•śĺŹćş,
ç”¨ć·ĺŹŻä»Ąč‡ŞčˇŚé€‰ć‹©ĺ›˝ĺ†…é•śĺŹä»ĄĺŠ&nbsp;ĺż«ä¸‹č˝˝é€źĺş¦}. 

\subsection{ĺŤ‡çş§ĺ°ä¸€ĺŤŠĺść­˘}

čż™ç§Ťć…ĺ†µä¸‹, ç”¨ć·éś€č¦ć‰§čˇŚĺŹ¦ĺ¤–ä¸€ä¸Şĺ‘˝ä»¤ç»§ç»­ĺŤ‡çş§
\begin{lstlisting}
  tlmgr update --reinstall-forcibly-removed --all
\end{lstlisting}

\subsection{ĺŤ‡çş§ĺ®ŹĺŚ…çš„ĺż…č¦ć€§}

č‡Şćś¬ć‰‹ĺ†Ść’°ĺ†™ä»ĄćťĄ,
ćŻŹĺą´é•śĺŹć–‡ä»¶ć‰“ĺŚ…ć—¶é˝ĺŹŻč˝ĺ­ĺś¨ä¸€äş›é—®é˘,
ĺ…·ä˝“č®¨č®şč§%
\href{https://github.com/CTeX-org/ctex-kit/issues/569}{čż™é‡Ś}.
ç”¨ć·ĺ®‰čŁ…ĺ®ŚćŻ•ĺŽ,
čŻ·ćŚ‰ç…§ćś¬čŠ‚ćŹäľ›çš„ć–ąćł•ĺŤ‡çş§.

\section{ĺ®‰čŁ…ĺ®ŹĺŚ…}

ĺś¨é»č®¤çŠ¶ć€ä¸‹, ç”¨ć·ĺ°†ĺ®Ść•´ĺ®‰čŁ… \TeX{} Live, ĺ›&nbsp;ć­¤ç”¨ć·ćžĺ°‘ç˘°ĺ°éś€č¦ć‰‹ĺŠ¨ĺ®‰čŁ…ĺ®ŹĺŚ…çš„ć…ĺ˝˘. 
ĺŚć—¶, ĺś¨
\href{http://mirrors.ctan.org/info/lshort/chinese/lshort-zh-cn.pdf}{lshort-zh-cn}
ä¸­äąźćŽçˇ®ćŹĺ°, \textbf{ĺ¦‚éťžä¸‡ä¸Ťĺľ—ĺ·˛, ĺ°˝é‡Źä¸Ťč¦ć‰‹ĺŠ¨ĺ®‰čŁ…ĺ®ŹĺŚ…}. 
ĺ›&nbsp;ć­¤ĺś¨čż™é‡Ść‘ĺŹŞä»‹ç»Ťä»Žćşĺ¤„ĺ®‰čŁ…ĺ®ŹĺŚ…çš„ĺ‘˝ä»¤. 
ĺ‡č®ľç”¨ć·ćłĺ®‰čŁ… \texttt{mcmthesis} ĺ®ŹĺŚ…, ĺŹŞéś€ĺś¨ \textsf{cmd} ć‰§čˇŚ
\begin{lstlisting}[language=bash]
  tlmgr install mcmthesis
\end{lstlisting}
éś€č¦ćł¨ć„Źçš„ćŻ, ç”¨ć·ä¸€ĺ®šč¦ć¸…ćĄšć‰€č¦ĺ®‰čŁ…çš„ĺ®ŹĺŚ…ĺŤç§°, ĺą¶ä¸”ĺś¨ĺ®‰čŁ…ĺ®ŹĺŚ…ĺ‰Ťĺ…çˇ®äżťé•śĺŹćşč®ľç˝®ć­Łçˇ®.

\section{č°ĺ‡şĺ®ŹĺŚ…ć‰‹ĺ†Ś}

ĺ˝“ć­Łçˇ®ĺ®‰čŁ…ĺŽ,
ç”¨ć·ĺŹŻä»Ąč°ĺ‡şĺ®ŹĺŚ…ć‰‹ĺ†Śä»ĄćźĄé…ç›¸ĺş”ĺ†…ĺ®ą.
äľ‹ĺ¦‚ĺś¨ \textsf{cmd} ć‰§čˇŚ
\begin{lstlisting}[language=bash]
  texdoc texlive-zh-cn
\end{lstlisting}
ć–
\begin{lstlisting}[language=bash]
  texdoc lshort-zh-cn
\end{lstlisting}
ĺ°±ĺŹŻĺ†ĺ«č°ĺ‡ş \texttt{texlive-zh-cn.pdf} ĺ’Ś \texttt{lshort-zh-cn.pdf},
čż™ä¸¤ćś¬ć‰‹ĺ†Śä¸­é˝ćś‰č®˛č§Łĺ®‰čŁ…çš„ç›¸ĺ…łĺ†…ĺ®ą,
ĺ»şč®®ç”¨ć·é…čŻ».

ćś¬ć‰‹ĺ†Śä¸šĺ·˛č˘« \TeX{} Live ć”¶ĺ˝•,
č°ĺ‡şćś¬ć‰‹ĺ†Śçš„ĺ‘˝ä»¤ä¸ş
\begin{lstlisting}[language=bash]
  texdoc install-latex-guide-zh-cn
\end{lstlisting}

\section{çĽ–čŻ‘ć–‡ćˇŁ}\label{sec:windows:compile}

ĺŤ‡çş§ĺ®ŹĺŚ…ĺ®ŚćĺŽ, ç”¨ć·ĺŹŻä»ĄçĽ–čŻ‘ć–‡ćˇŁ. 
čż™é‡Śäľťć—§ä˝żç”¨ĺ‘˝ä»¤čˇŚćťĄĺ®Śćčż™ä¸€čż‡ç¨‹. 

é¦–ĺ…, ç”¨ć·éś€č¦ĺś¨ćŚ‡ĺ®šä˝Ťç˝®\footnote{ä»Ąä¸‹ç§°ĺ·Ąä˝śč·Żĺľ„}ĺ»şç«‹ä¸€ä¸Ş \texttt{tex} ć–‡ä»¶ďĽš
\begin{lstlisting}[language = bash]
  mkdir D:\work-latex
  cd /d D:\work-latex
  notepad main.tex
\end{lstlisting}
ç¬¬1čˇŚčˇ¨ç¤şĺ›ĺ»şä¸€ä¸Şĺ·Ąä˝śč·Żĺľ„ \texttt{D:\textbackslash work-latex},
ç¬¬2čˇŚčˇ¨ç¤şčż›ĺ…Ąĺ·Ąä˝śč·Żĺľ„, ç¬¬3čˇŚčˇ¨ç¤şç”¨č®°äş‹ćś¬ć‰“ĺĽ€ \texttt{main.tex} ć–‡ä»¶,
č‹Ąć–‡ä»¶ä¸Ťĺ­ĺś¨, çł»ç»źĺ°†čŻ˘é—®ç”¨ć·ćŻĺ¦ĺ›ĺ»şčŻĄć–‡ä»¶%
\footnote{Windows 11 ĺŻąä¸­ć–‡ĺŤĺŹĺľ—ĺŹ‹ĺĄ˝ä¸€äş›äş†,
ä˝†čż™é‡Śä¸Ťĺ»şč®®ç”¨ć·ä˝żç”¨ä¸­ć–‡ĺ‘˝ĺŤĺ·Ąä˝śč·Żĺľ„ĺ’Ść–‡ä»¶ĺŤ}.
ĺś¨ć‰“ĺĽ€çš„č®°äş‹ćś¬ä¸­çĽ–ĺ†™ä¸€ä¸Şćś€ĺ°Źç¤şäľ‹
\begin{lstlisting}[language={[LaTeX]TeX}]
  \documentclass{article}
  \begin{document}
    Hello \LaTeX{} World!
  \end{document}
\end{lstlisting}
äżťĺ­ĺą¶é€€ĺ‡ş. 
ćŽĄä¸‹ćťĄć‰§čˇŚ
\begin{lstlisting}[language=bash]
  pdflatex main
\end{lstlisting}
ç­‰ĺľ…çł»ç»źĺ®ŚćçĽ–čŻ‘čż‡ç¨‹. 
ĺľ…çĽ–čŻ‘ĺ®ŚćĺŽ, ć‘ä»¬ĺŤłĺŹŻçś‹ĺ°ĺś¨ \texttt{D:\textbackslash work-latex}
ä¸­ĺ‡şçŽ°äş† \texttt{main.pdf} ć–‡ä»¶ĺ’Śĺ…¶ä»–ĺŚĺŤçš„čľ…ĺŠ©ć–‡ä»¶
\texttt{main.aux} ä¸Ž \texttt{main.log}. 

ĺŻąäşŽä¸­ć–‡ć–‡ćˇŁ, ĺŹŻä»Ąĺś¨č®°äş‹ćś¬ä¸­çĽ–ĺ†™ä»Ąä¸‹ćś€ĺ°Źç¤şäľ‹%
\footnote{č‡Ş Windows 10 1903 ç‰ćś¬ĺĽ€ĺ§‹, č®°äş‹ćś¬é»č®¤ä˝żç”¨ UTF-8 çĽ–ç&nbsp;;
Windows 11 ç»§ć‰żäş†čż™ä¸Şç‰ąć€§.
č‹Ąä˝żç”¨ĺ…¶ä»–çĽ–čľ‘ĺ™¨,
čŻ·ćł¨ć„Źč§„ĺ®šć–‡ćˇŁçĽ–ç&nbsp;ä¸ş UTF-8}%
\begin{lstlisting}[language={[LaTeX]TeX}]
  \documentclass[UTF8,fontset=windows]{ctexart}
  \begin{document}
    ä˝&nbsp;ĺĄ˝ \LaTeX{} ä¸–ç•ŚďĽ
  \end{document}
\end{lstlisting}
äżťĺ­ĺą¶é€€ĺ‡ş.
ćŽĄä¸‹ćťĄć‰§čˇŚ
\begin{lstlisting}[language=bash]
  xelatex main
\end{lstlisting}
ç­‰ĺľ…çł»ç»źĺ®ŚćçĽ–čŻ‘čż‡ç¨‹.
\texttt{xelatex} çĽ–čŻ‘ĺ‘˝ä»¤é…Ťĺ UTF-8 çĽ–ç&nbsp;ĺ’Ś \texttt{ctex}
ĺ®Źé›†ĺ·˛ç»ŹćŻ\textbf{ç›®ĺ‰Ťä¸»ćµçš„ä¸­ć–‡ĺ¤„ç†ć‰‹ć®µ}.
\texttt{xelatex} ĺŹŻä»Ąä˝żç”¨çł»ç»źĺ†…ĺ®‰čŁ…çš„ĺ­—ä˝“,
ç”¨ć·ĺś¨ĺ®‰čŁ…ĺ­—ä˝“ć—¶éś€ĺŹłé”®ĺ­—ä˝“ć–‡ä»¶çš„ĺż«ćŤ·čŹśĺŤ• \menu{ćľç¤şć›´ĺ¤šé€‰éˇą &gt; ä¸şć‰€ćś‰ç”¨ć·ĺ®‰čŁ…}.

ć€»ç»“ä¸€ä¸‹, ĺś¨ä˝żç”¨ \LaTeX{} ć—¶, ç”¨ć·é¦–ĺ…č¦ĺś¨ĺ·Ąä˝śč·Żĺľ„%
\footnote{ĺ»şč®®ä¸ŤĺŚçš„ĺ·Ąç¨‹ć”ľĺ…Ąä¸ŤĺŚçš„ĺ·Ąä˝śč·Żĺľ„}%
ä¸­ĺ»şç«‹ä¸€ä¸Şĺ®Ść•´çš„ \texttt{tex} ć–‡ä»¶%
\footnote{čŻĄć–‡ä»¶ĺż…éˇ»ĺŚ…ĺ« \texttt{\textbackslash documentclass},
\texttt{\textbackslash begin\{document\}} ĺ’Ś
\texttt{\textbackslash end\{document\}},
čż™é‡Śä¸Ťč®¨č®şĺŚ…ĺ«ĺ­ć–‡ä»¶çš„ć…ĺ†µ,
ć–‡ä»¶ĺŤéś€ä¸şä¸Ťĺ«ç©şć&nbsp;Ľçš„č‹±ć–‡}.
ĺ˝“ \texttt{tex} ć–‡ä»¶ĺ†…ĺ®ąçˇ®ĺ®šĺŽ, ĺ†Ťäżťĺ­ć–‡ä»¶ĺą¶ä˝żç”¨çĽ–čŻ‘ĺ‘˝ä»¤%
\footnote{ç›®ĺ‰Ťĺ¸¸ç”¨çš„çĽ–čŻ‘ĺ‘˝ä»¤ä¸ş \texttt{pdflatex} ĺ’Ś \texttt{xelatex}},
ĺ°† \texttt{tex} ć–‡ä»¶çĽ–čŻ‘ć \texttt{pdf} ć–‡ä»¶. 

çĽ–čŻ‘ĺ‘˝ä»¤ćś‰ĺľĺ¤šĺŹŻé€‰ĺŹ‚ć•°, ĺ¦‚ç”¨ć·č˝ĺ¤źä»Ž \texttt{pdf} ć–‡ä»¶č·łĺ›ž \texttt{tex} ć–‡ä»¶,
äľżćŻĺ›&nbsp;ä¸şć‰§čˇŚçĽ–čŻ‘ć—¶ć·»ĺŠ&nbsp;äş†ĺŹ‚ć•°
\begin{lstlisting}[language=bash]
  pdflatex -synctex=1 main
\end{lstlisting}
ćś‰äş›çĽ–čŻ‘čżéś€č¦é˘ťĺ¤–č°ç”¨çł»ç»źĺ‘˝ä»¤,
äľ‹ĺ¦‚ä˝żç”¨ \textsf{minted} ĺŚ…ĺ°±ćś‰čż™ç±»č¦ć±‚,
ĺ›&nbsp;ć­¤ĺŹŻä»Ąĺś¨ć‰§čˇŚçĽ–čŻ‘ć—¶ć·»ĺŠ&nbsp;ĺŹ‚ć•°
\begin{lstlisting}[language=bash]
  pdflatex -shell-escape main
\end{lstlisting}
ć­¤ĺ¤–čżćś‰ĺľĺ¤šĺ…¶ä»–ĺŹ‚ć•°, ç”¨ć·č‹Ąć„źĺ…´č¶Ł, ĺŹŻč‡ŞčˇŚé…čŻ»ć‰‹ĺ†Ś. 

ĺś¨ĺľĺ¤šć—¶ĺ€™, ć‘ä¸Şäşşć›´ĺ€ľĺ‘äşŽä˝żç”¨ \texttt{latexmk} ćťĄçĽ–čŻ‘ \texttt{tex} ć–‡ćˇŁ,
ĺ¦‚ć‰§čˇŚ
\begin{lstlisting}[language=bash]
  latexmk -pdf -synctex=1 -interaction=nonstopmode main
\end{lstlisting}
ć„Źĺ‘łçť€ä˝żç”¨ 
\begin{lstlisting}[language=bash]
  pdflatex -synctex=1 -interaction=nonstopmode main
\end{lstlisting}
ćťĄçĽ–čŻ‘ć–‡ćˇŁ \texttt{main.tex}, ĺą¶ĺś¨ćś‰éś€č¦ć—¶ĺ®Śćĺ…¶ä»–ć­ĄéŞ¤%
\footnote{ĺ¦‚ä˝żç”¨ \texttt{bibtex} ć– \texttt{biblatex} ĺ¤„ç†ĺŹ‚č€ć–‡çŚ®ć—¶éś€č¦ĺ¤šć¬ˇçĽ–čŻ‘,
čŻ¦ć…č§ç›¸ĺ…łć–‡ćˇŁ}. 

\subsection{\LaTeXe ç‰ćś¬ä¸ŤĺŚąé…ŤĺŻĽč‡´ \texttt{xelatex} ĺ¤±č´Ą}

ä˝żç”¨ \texttt{xelatex} çĽ–čŻ‘ć–‡ćˇŁ,
çł»ç»źćś‰ć—¶äĽšćŹç¤şç›®ĺ‰Ť \LaTeXe çš„ç‰ćś¬ä˝ŽäşŽćźĺ®ŹĺŚ…çš„č¦ć±‚ç‰ćś¬.
čż™ç§Ťć…ĺ†µćŻç”±äşŽ \textsf{fmt} ć–‡ä»¶ćśŞč˝ć›´ć–°ć‰€ĺŻĽč‡´.
ć­¤ć—¶ĺŹŻč€č™‘ĺś¨ĺ‘˝ä»¤čˇŚčżčˇŚ
\begin{lstlisting}[language=bash]
  fmtutil-user --byfmt xelatex
\end{lstlisting}
ĺľ…ç»“ćťźĺŽĺ†Ťç”¨ \texttt{xelatex} çĽ–čŻ‘ć–‡ćˇŁ.
ć›´ĺ¤šĺ†…ĺ®ąĺŹ‚č€
\href{https://github.com/CTeX-org/forum/issues/70}{github ä¸Šçš„č®¨č®ş}.

ĺŹ¦ĺ¤–äąźĺŹŻč€č™‘é‡ŤčŁ… \texttt{xetex}.
ĺś¨ĺ‘˝ä»¤čˇŚć‰§čˇŚ
\begin{lstlisting}[language=bash]
  tlmgr install --reinstall xetex
\end{lstlisting}

\subsection{çĽ–čŻ‘ĺ‡şçŽ° \texttt{l3backend-*} é—®é˘}

čż™ćŻ \texttt{fmt} ć–‡ä»¶ćśŞč˝ć›´ć–°ć‰€ĺŻĽč‡´çš„é—®é˘.
ĺŹŻä»Ąç”¨
\begin{lstlisting}[language=bash]
  fmtutil-sys --all
\end{lstlisting}
ĺ·ć–° \texttt{fmt} ć–‡ä»¶ĺŽĺ†ŤçĽ–čŻ‘ \texttt{tex} ć–‡ä»¶.</pre></body></html>