summaryrefslogtreecommitdiff
path: root/info/install-latex-guide-zh-cn/chapter/windows.tex
diff options
context:
space:
mode:
Diffstat (limited to 'info/install-latex-guide-zh-cn/chapter/windows.tex')
-rw-r--r--info/install-latex-guide-zh-cn/chapter/windows.tex40
1 files changed, 30 insertions, 10 deletions
diff --git a/info/install-latex-guide-zh-cn/chapter/windows.tex b/info/install-latex-guide-zh-cn/chapter/windows.tex
index 3c3136ad83..03b1181200 100644
--- a/info/install-latex-guide-zh-cn/chapter/windows.tex
+++ b/info/install-latex-guide-zh-cn/chapter/windows.tex
@@ -74,7 +74,6 @@
\end{lstlisting}
即为验证成功.
-
接下来开始安装.
推荐用户先手动建立 \TeX{} Live 的安装路径 (文件夹) 再进行安装,
注意路径的名称是\textbf{不带空格的英文},
@@ -87,16 +86,7 @@
不鼓励解压缩镜像文件}.
假设加载后的路径为 \texttt{Z:\textbackslash}.
在卸载了国内第三方安全软件的前提下,
-% 以管理员身份打开 \textsf{cmd} 窗口并执行%
-% \footnote{点击 \keys{\faWindows},
-% 输入 \textsf{cmd},
-% 点击 \keys{\ctrl + \shift + \enter}}
打开 \textsf{cmd} 窗口并执行
-% \begin{lstlisting}[language = bash]
-% cd /d Z:
-% \end{lstlisting}
-% 切换路径.
-% 接下来执行
\begin{lstlisting}[language = bash]
Z:\install-tl-windows.bat --no-gui
\end{lstlisting}
@@ -249,6 +239,23 @@
因此鼓励用户在安装前先手动建立安装路径.
直接使用管理员身份打开 \textsf{cmd} 窗口进行安装可能会对以后的升级造成影响.
+\subsection{系统用中文作为用户名}
+
+很多中文 Windows 用户习惯于用中文作为用户名,
+但是这样会导致 \TeX{} Live 2021 安装失败.
+更改系统的 \texttt{TEMP} 和 \texttt{TMP} 这两个环境变量可以避免这样的问题.
+在 \textsf{cmd} 中执行
+\begin{lstlisting}
+ mkdir C:\temp
+ set TEMP=C:\temp
+ set TMP=C:\temp
+\end{lstlisting}
+便可更改这两个环境变量为 \texttt{C:\textbackslash temp}.
+更改后按照前述内容安装 \TeX{} Live 2021 即可.
+这样的更改是临时的,
+待 \textsf{cmd} 窗口关闭,
+环境变量将恢复为原始状态.
+
\section{卸载 \TeX{} Live}
在跨版本升级 \TeX{} Live 时, 通常需要卸载旧版 \TeX{} Live.
@@ -352,6 +359,19 @@ Doing a new installation is necessary.}.
tlmgr update --reinstall-forcibly-removed --all
\end{lstlisting}
+\subsection{升级宏包的必要性}
+
+自本手册撰写以来,
+每年镜像文件打包时都可能存在一些问题.
+使用镜像文件安装 \TeX{} Live 2021 后,
+系统平台无法被识别.
+该问题只见于 Windows 平台,
+具体讨论见%
+\href{https://github.com/CTeX-org/ctex-kit/issues/569}{这里}.
+目前这一问题已经可以通过更新宏包解决,
+用户安装完毕后,
+请按照本节提供的方法升级.
+
\section{安装宏包}
在默认状态下, 用户将完整安装 \TeX{} Live, 因此用户极少碰到需要手动安装宏包的情形.