summaryrefslogtreecommitdiff
path: root/info/install-latex-guide-zh-cn
diff options
context:
space:
mode:
Diffstat (limited to 'info/install-latex-guide-zh-cn')
-rw-r--r--info/install-latex-guide-zh-cn/appendix/updateinfo.tex7
-rw-r--r--info/install-latex-guide-zh-cn/appendix/wsladdition.tex3
-rw-r--r--info/install-latex-guide-zh-cn/chapter/ubuntu.tex76
-rw-r--r--info/install-latex-guide-zh-cn/chapter/windows.tex102
-rw-r--r--info/install-latex-guide-zh-cn/chapter/wsl.tex46
-rw-r--r--info/install-latex-guide-zh-cn/install-latex-guide-zh-cn.pdfbin758391 -> 761151 bytes
6 files changed, 122 insertions, 112 deletions
diff --git a/info/install-latex-guide-zh-cn/appendix/updateinfo.tex b/info/install-latex-guide-zh-cn/appendix/updateinfo.tex
index 05ce69b53d..c7c2ac998a 100644
--- a/info/install-latex-guide-zh-cn/appendix/updateinfo.tex
+++ b/info/install-latex-guide-zh-cn/appendix/updateinfo.tex
@@ -2,6 +2,13 @@
\chapter{版本信息}
+\section*{v2022.5.1}
+
+\begin{enumerate}
+ \item Windows、Ubuntu 和 WSL 下安装 \TeX{} Live 2022 的内容更新
+ \item 统一挂载、加载为装载, 与现行 Windows 系统名称统一
+\end{enumerate}
+
\section*{v2022.4.1}
\begin{enumerate}
diff --git a/info/install-latex-guide-zh-cn/appendix/wsladdition.tex b/info/install-latex-guide-zh-cn/appendix/wsladdition.tex
index 23aa123f0d..d5a67fc4aa 100644
--- a/info/install-latex-guide-zh-cn/appendix/wsladdition.tex
+++ b/info/install-latex-guide-zh-cn/appendix/wsladdition.tex
@@ -39,9 +39,6 @@ WSL (本质上是 Ubuntu) 中安装字体比较麻烦.
sudo apt-get install fonts-noto-cjk-extra
\end{lstlisting}
-在目前的版本中, 本文在 WSL 中进行编译.
-目前感受是该方法较之 Windows 10 系统中的编译更快.
-其他方面并未进行比较.
由于 \TeX studio 在 WSL 中无法正常正反搜索,
因此我使用了 VS Code 配合
\href{https://marketplace.visualstudio.com/items?itemName=ms-vscode-remote.remote-wsl}{Remote WSL}
diff --git a/info/install-latex-guide-zh-cn/chapter/ubuntu.tex b/info/install-latex-guide-zh-cn/chapter/ubuntu.tex
index 1634ed85d9..87b118abd8 100644
--- a/info/install-latex-guide-zh-cn/chapter/ubuntu.tex
+++ b/info/install-latex-guide-zh-cn/chapter/ubuntu.tex
@@ -5,39 +5,39 @@
\section{安装 \TeX{} Live}
这里只阐述如何用镜像安装.
-为使用户顺利使用 \TeX{} Live 2021,
+为使用户顺利使用 \TeX{} Live 2022,
建议用户首先卸载从源内安装的 \TeX{} Live 的相关包,
具体方法见 \ref{sec:ubuntu:uninstall}~节.
下载
-\href{https://mirrors.ctan.org/systems/texlive/Images/texlive2021.iso}{iso 镜像文件}
+\href{https://mirrors.ctan.org/systems/texlive/Images/texlive2022.iso}{iso 镜像文件}
的方法见 \ref{sec:windows:install}~节.
下载完毕后, 打开 \textsf{Terminal} 窗口验证 MD5 值,
即执行以下命令
\begin{lstlisting}[language = bash]
cd ~/Downloads
- md5sum texlive2021.iso
+ md5sum texlive2022.iso
\end{lstlisting}
若显示
\begin{lstlisting}
- 2893d180f1559a7bf80dfc0740f6b889 texlive2021.iso
+ adadcf7ea5224f174ec2abcea6923a42 texlive2022.iso
\end{lstlisting}
则镜像文件下载正确.
同样可验证 SHA512 值,
执行
\begin{lstlisting}[language = bash]
cd ~/Downloads
- sha512sum texlive2021.iso
+ sha512sum texlive2022.iso
\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}]
- bad51ec47613cf295ed77472d10e517fe79e501f73ff918a1068f03ef43f4394ceb165051132bcbcb53a05650b77ea907f327c1799c38ae476ca38620aa7c1fe texlive2021.iso
+ b3d4d2e9b0e3d34a7ca0763fb5c669bb9a26518f86af5cc292c56f7d61ff25dc5fce3373f814d970d99b0d40df393ad594336cf1b35a95a9655289666d964d59 texlive2022.iso
\end{lstlisting}
-将下载的光盘镜像进行挂载
+将下载的光盘镜像进行装载
\begin{lstlisting}[language = bash]
sudo mkdir /mnt/texlive
- sudo mount ./texlive2021.iso /mnt/texlive
+ sudo mount ./texlive2022.iso /mnt/texlive
\end{lstlisting}
接下来执行
\begin{lstlisting}[language = bash]
@@ -59,21 +59,21 @@
<S> set installation scheme: scheme-full
<C> set installation collections:
- 40 collections out of 41, disk space required: 6963 MB
+ 40 collections out of 41, disk space required: 7262 MB (free: 239411 MB)
<D> set directories:
TEXDIR (the main TeX directory):
- /usr/local/texlive/2021
+ /usr/local/texlive/2022
TEXMFLOCAL (directory for site-wide local files):
/usr/local/texlive/texmf-local
TEXMFSYSVAR (directory for variable and automatically generated data):
- /usr/local/texlive/2021/texmf-var
+ /usr/local/texlive/2022/texmf-var
TEXMFSYSCONFIG (directory for local config):
- /usr/local/texlive/2021/texmf-config
+ /usr/local/texlive/2022/texmf-config
TEXMFVAR (personal directory for variable and automatically generated data):
- ~/.texlive2021/texmf-var
+ ~/.texlive2022/texmf-var
TEXMFCONFIG (personal directory for local config):
- ~/.texlive2021/texmf-config
+ ~/.texlive2022/texmf-config
TEXMFHOME (directory for user-specific files):
~/texmf
@@ -102,7 +102,7 @@
如安装路径等.
为简化起见,
以下内容我们均认为用户采用默认安装.
-安装完毕后, 将挂载的光盘镜像弹出并删除文件夹
+安装完毕后, 将装载的光盘镜像弹出并删除文件夹
\begin{lstlisting}[language = bash]
sudo umount /mnt/texlive
sudo rm -r /mnt/texlive
@@ -116,9 +116,9 @@
在打开的文件末尾添加
\begin{lstlisting}
# Add TeX Live to the PATH, MANPATH, INFOPATH
- export PATH=/usr/local/texlive/2021/bin/x86_64-linux:$PATH
- export MANPATH=/usr/local/texlive/2021/texmf-dist/doc/man:$MANPATH
- export INFOPATH=/usr/local/texlive/2021/texmf-dist/doc/info:$INFOPATH
+ export PATH=/usr/local/texlive/2022/bin/x86_64-linux:$PATH
+ export MANPATH=/usr/local/texlive/2022/texmf-dist/doc/man:$MANPATH
+ export INFOPATH=/usr/local/texlive/2022/texmf-dist/doc/info:$INFOPATH
\end{lstlisting}
并保存退出.
这时再打开 \textsf{Terminal} 执行
@@ -127,9 +127,9 @@
\end{lstlisting}
若显示
\begin{lstlisting}
- TeX 3.141592653 (TeX Live 2021)
- kpathsea version 6.3.3
- Copyright 2021 D.E. Knuth.
+ TeX 3.141592653 (TeX Live 2022)
+ kpathsea version 6.3.4
+ Copyright 2022 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.
@@ -142,7 +142,7 @@
接下来处理字体.
在 \textsf{Terminal} 中执行
\begin{lstlisting}[language=bash]
- sudo cp /usr/local/texlive/2021/texmf-var/fonts/conf/texlive-fontconfig.conf /etc/fonts/conf.d/09-texlive.conf
+ sudo cp /usr/local/texlive/2022/texmf-var/fonts/conf/texlive-fontconfig.conf /etc/fonts/conf.d/09-texlive.conf
\end{lstlisting}
将配置文件复制到系统,
然后继续执行
@@ -156,7 +156,7 @@
如果用户更改了安装路径,
要注意将
\begin{lstlisting}
- /usr/local/texlive/2021/
+ /usr/local/texlive/2022/
\end{lstlisting}
在各处替换.
@@ -170,19 +170,19 @@
\end{lstlisting}
只不过这时安装路径需要选择
\begin{lstlisting}[language=bash]
- ~/texlive/2021
+ ~/texlive/2022
\end{lstlisting}
安装完毕后,
继续修改环境变量为
\begin{lstlisting}
# Add TeX Live to the PATH, MANPATH, INFOPATH
- export PATH=~/texlive/2021/bin/x86_64-linux:$PATH
- export MANPATH=~/texlive/2021/texmf-dist/doc/man:$MANPATH
- export INFOPATH=~/texlive/2021/texmf-dist/doc/info:$INFOPATH
+ export PATH=~/texlive/2022/bin/x86_64-linux:$PATH
+ export MANPATH=~/texlive/2022/texmf-dist/doc/man:$MANPATH
+ export INFOPATH=~/texlive/2022/texmf-dist/doc/info:$INFOPATH
\end{lstlisting}
有关字体的处理变为
\begin{lstlisting}[language=bash]
- cp ~/texlive/2021/texmf-var/fonts/conf/texlive-fontconfig.conf ~/.fonts.conf/09-texlive.conf
+ cp ~/texlive/2022/texmf-var/fonts/conf/texlive-fontconfig.conf ~/.fonts.conf/09-texlive.conf
\end{lstlisting}
然后执行
\begin{lstlisting}[language=bash]
@@ -282,8 +282,8 @@
进而通过 \texttt{sudo rm -rf} 命令进行删除.
默认安装的用户直接运行
\begin{lstlisting}[language = bash]
- sudo rm -rf /usr/local/texlive/2021
- rm -rf ~/.texlive2021
+ sudo rm -rf /usr/local/texlive/2022
+ rm -rf ~/.texlive2022
\end{lstlisting}
卸载完成后,可以进一步移除之前设置的环境变量.
在 \textsf{Terminal} 中执行
@@ -293,11 +293,19 @@
然后移除之前在文件末尾添加的
\begin{lstlisting}
# Add TeX Live to the PATH, MANPATH, INFOPATH
- export PATH=/usr/local/texlive/2021/bin/x86_64-linux:$PATH
- export MANPATH=/usr/local/texlive/2021/texmf-dist/doc/man:$MANPATH
- export INFOPATH=/usr/local/texlive/2021/texmf-dist/doc/info:$INFOPATH
+ export PATH=/usr/local/texlive/2022/bin/x86_64-linux:$PATH
+ export MANPATH=/usr/local/texlive/2022/texmf-dist/doc/man:$MANPATH
+ export INFOPATH=/usr/local/texlive/2022/texmf-dist/doc/info:$INFOPATH
\end{lstlisting}
并保存退出.
+同时在 \textsf{Terminal} 中执行
+\begin{lstlisting}[language = bash]
+ sudo visudo
+\end{lstlisting}
+在 \texttt{secure\_path} 中删除
+\begin{lstlisting}
+ /usr/local/texlive/2022/bin/x86_64-linux:
+\end{lstlisting}
\subsection{使用 \texttt{tlmgr} 工具}
@@ -327,7 +335,7 @@ please get the new TL by doing a new installation instead of proceeding here}.
\end{lstlisting}
\begin{lstlisting}
- /usr/local/texlive/2021/bin/x86_64-linux:
+ /usr/local/texlive/2022/bin/x86_64-linux:
\end{lstlisting}
添加在 \texttt{secure\_path} 中%
\footnote{这里只讨论默认安装的情况}.
diff --git a/info/install-latex-guide-zh-cn/chapter/windows.tex b/info/install-latex-guide-zh-cn/chapter/windows.tex
index 04ef8e35a6..fe0b888d9f 100644
--- a/info/install-latex-guide-zh-cn/chapter/windows.tex
+++ b/info/install-latex-guide-zh-cn/chapter/windows.tex
@@ -8,7 +8,7 @@
在文件夹菜单栏 \menu{查看 > 显示/隐藏} 中选择 \menu{文件扩展名}.
用户可以从最近的 CTAN 源\footnote{这里所谓的最近, 其实是由系统判定的, 实际上系统可能会误判}下载 \TeX{} Live 的
-\href{https://mirrors.ctan.org/systems/texlive/Images/texlive2021.iso}{iso 镜像文件},
+\href{https://mirrors.ctan.org/systems/texlive/Images/texlive2022.iso}{iso 镜像文件},
也可以找大陆地区的源自行下载\footnote{新版本发布时, 各镜像网站同步的进度会有不同}.
通过大陆地区的源下载 iso 文件的方法请参考附录~\ref{chp:appendix:mirror}.
@@ -50,13 +50,13 @@
打开 \textsf{cmd} 窗口依次执行以下代码
\begin{lstlisting}[language = bash]
cd /d X:\Y
- certutil -hashfile texlive2021.iso md5
+ certutil -hashfile texlive2022.iso md5
\end{lstlisting}
若系统显示
\begin{lstlisting}
- MD5 的 texlive2021.iso 哈希:
- 2893d180f1559a7bf80dfc0740f6b889
- CertUtil: -hashfile 命令成功完成
+ MD5 的 texlive2022.iso 哈希:
+ adadcf7ea5224f174ec2abcea6923a42
+ CertUtil: -hashfile 命令成功完成。
\end{lstlisting}
则表明下载的镜像文件正常.
除 MD5 值外,
@@ -64,26 +64,26 @@
依然是在 \textsf{cmd} 执行
\begin{lstlisting}[language = bash]
cd /d X:\Y
- certutil -hashfile texlive2021.iso sha512
+ certutil -hashfile texlive2022.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 的 texlive2021.iso 哈希:
- bad51ec47613cf295ed77472d10e517fe79e501f73ff918a1068f03ef43f4394ceb165051132bcbcb53a05650b77ea907f327c1799c38ae476ca38620aa7c1fe
- CertUtil: -hashfile 命令成功完成
+ SHA512 的 texlive2022.iso 哈希:
+ b3d4d2e9b0e3d34a7ca0763fb5c669bb9a26518f86af5cc292c56f7d61ff25dc5fce3373f814d970d99b0d40df393ad594336cf1b35a95a9655289666d964d59
+ CertUtil: -hashfile 命令成功完成。
\end{lstlisting}
即为验证成功.
接下来开始安装.
推荐用户先手动建立 \TeX{} Live 的安装路径 (文件夹) 再进行安装,
注意路径的名称是\textbf{不带空格的英文},
-默认路径为 \texttt{C:\textbackslash texlive\textbackslash 2021}.
+默认路径为 \texttt{C:\textbackslash texlive\textbackslash 2022}.
假如系统用了中文作为用户名,
那么用户需要先按照 \ref{sec:chinesename} 节的方法更改临时环境变量后再安装.
-将镜像文件挂载至虚拟光驱\footnote{Windows 10 默认双击镜像文件便可加载;
+将镜像文件装载至虚拟光驱\footnote{Windows 10 默认双击镜像文件便可装载;
受某些压缩软件影响双击失效时,
-可通过文件夹菜单栏
-\menu{主页 > 打开 > Windows 资源管理器} 加载;
+可在文件夹菜单栏
+\menu{管理 > 光盘映像工具 > 装载};
第三方虚拟光驱软件可考虑 WinCDEmu 或 UltraISO;
不鼓励解压缩镜像文件}.
假设加载后的路径为 \texttt{Z:\textbackslash}.
@@ -107,21 +107,21 @@
<S> set installation scheme: scheme-full
<C> set installation collections:
- 41 collections out of 41, disk space required: 7155 MB
+ 41 collections out of 41, disk space required: 7462 MB
<D> set directories:
TEXDIR (the main TeX directory):
- C:/texlive/2021
+ C:/texlive/2022
TEXMFLOCAL (directory for site-wide local files):
C:/texlive/texmf-local
TEXMFSYSVAR (directory for variable and automatically generated data):
- C:/texlive/2021/texmf-var
+ C:/texlive/2022/texmf-var
TEXMFSYSCONFIG (directory for local config):
- C:/texlive/2021/texmf-config
+ C:/texlive/2022/texmf-config
TEXMFVAR (personal directory for variable and automatically generated data):
- ~/.texlive2021/texmf-var
+ ~/.texlive2022/texmf-var
TEXMFCONFIG (personal directory for local config):
- ~/.texlive2021/texmf-config
+ ~/.texlive2022/texmf-config
TEXMFHOME (directory for user-specific files):
~/texmf
@@ -153,15 +153,15 @@
==============================================================================
Directories customization:
- <1> TEXDIR: C:/texlive/2021
- main tree: C:/texlive/2021/texmf-dist
+ <1> TEXDIR: C:/texlive/2022
+ main tree: C:/texlive/2022/texmf-dist
<2> TEXMFLOCAL: C:/texlive/texmf-local
- <3> TEXMFSYSVAR: C:/texlive/2021/texmf-var
- <4> TEXMFSYSCONFIG: C:/texlive/2021/texmf-config
+ <3> TEXMFSYSVAR: C:/texlive/2022/texmf-var
+ <4> TEXMFSYSCONFIG: C:/texlive/2022/texmf-config
- <5> TEXMFVAR: ~/.texlive2021/texmf-var
- <6> TEXMFCONFIG: ~/.texlive2021/texmf-config
+ <5> TEXMFVAR: ~/.texlive2022/texmf-var
+ <6> TEXMFCONFIG: ~/.texlive2022/texmf-config
<7> TEXMFHOME: ~/texmf
Note: ~ will expand to %USERPROFILE%
@@ -174,9 +174,9 @@
\end{lstlisting}
这时按键盘 \keys{1}, 将看到
\begin{lstlisting}
- New value for TEXDIR [C:/texlive/2021]:
+ New value for TEXDIR [C:/texlive/2022]:
\end{lstlisting}
-这时可更改路径, 如 \texttt{D:/texlive/2021}.
+这时可更改路径, 如 \texttt{D:/texlive/2022}.
接下来, 按键盘 \keys{R} 即可回到初始的安装界面,
再按键盘 \keys{I} 便可在刚才指定的路径安装.
用户可通过阅读英文执行其他操作, 这里不再赘述.
@@ -192,9 +192,9 @@
\end{lstlisting}
显示
\begin{lstlisting}
- TeX 3.141592653 (TeX Live 2021/W32TeX)
- kpathsea version 6.3.3
- Copyright 2021 D.E. Knuth.
+ TeX 3.141592653 (TeX Live 2022)
+ kpathsea version 6.3.4
+ Copyright 2022 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.
@@ -206,7 +206,7 @@
\footnote{若未能正确显示结果, 则可能是因为环境变量未改变,
用户可手动添加 \texttt{<TEXDIR>\textbackslash bin\textbackslash win32} 至环境变量,
\texttt{<TEXDIR>} 需与你方才的安装路径一致}.
-弹出前面加载的光盘镜像,
+弹出前面装载的光盘镜像,
安装到此结束.
\subsection{下载镜像一直不成功的处理办法}
@@ -218,14 +218,14 @@
将 \textsf{wget} 所在目录添加到环境变量中.
打开 \textsf{cmd} 窗口执行以下代码
\begin{lstlisting}[language = bash]
- wget http://mirrors.ctan.org/systems/texlive/Images/texlive2021.iso
+ wget http://mirrors.ctan.org/systems/texlive/Images/texlive2022.iso
\end{lstlisting}
即可下载最近的镜像.
类似地,
也可以指定国内的源进行下载,
例如选择清华大学镜像
\begin{lstlisting}[language = bash]
- wget https://mirrors.tuna.tsinghua.edu.cn/CTAN/systems/texlive/Images/texlive2021.iso
+ wget https://mirrors.tuna.tsinghua.edu.cn/CTAN/systems/texlive/Images/texlive2022.iso
\end{lstlisting}
其他国内镜像只需要将链接替换即可,
链接和方法请参考附录~\ref{chp:appendix:mirror}.
@@ -253,7 +253,7 @@
set TMP=C:\temp
\end{lstlisting}
便可更改这两个环境变量为 \texttt{C:\textbackslash temp}.
-更改后按照前述内容安装 \TeX{} Live 2021 即可.
+更改后按照前述内容安装 \TeX{} Live 2022 即可.
这样的更改是临时的,
待 \textsf{cmd} 窗口关闭,
环境变量将恢复为原始状态.
@@ -281,32 +281,32 @@
\footnote{双击或在 \texttt{cmd} 中运行}%
安装路径中的卸载批处理文件即可实现卸载, 如默认安装时执行
\begin{lstlisting}[language=bash]
- C:\texlive\2021\tlpkg\installer\uninst.bat
+ C:\texlive\2022\tlpkg\installer\uninst.bat
\end{lstlisting}
结束以上步骤后,
-手动删除用户文件夹中的 \texttt{.texlive2021}.
+手动删除用户文件夹中的 \texttt{.texlive2022}.
如果用户安装 \TeX{} Live 时需要管理员权限,
那么在卸载时同样需要管理员权限.
卸载后,
用户需要清理注册表
\begin{lstlisting}
- HKEY_CURRENT_USER\Software\Classes\TL.bitmap2eps.convert.2021
- HKEY_CURRENT_USER\Software\Classes\TL.DVIOUT.view.2021
- HKEY_CURRENT_USER\Software\Classes\TL.TeXworks.edit.2021
- HKEY_CURRENT_USER\Software\Classes\TL.PSViewer.view.2021
- HKEY_CURRENT_USER\SOFTWARE\Microsoft\Windows\CurrentVersion\ApplicationAssociationToasts\TL.bitmap2eps.convert.2021_.jpg
- HKEY_CURRENT_USER\SOFTWARE\Microsoft\Windows\CurrentVersion\ApplicationAssociationToasts\TL.bitmap2eps.convert.2021_.png
- HKEY_CURRENT_USER\SOFTWARE\Microsoft\Windows\CurrentVersion\ApplicationAssociationToasts\TL.TeXworks.edit.2021_.sty
- HKEY_CURRENT_USER\SOFTWARE\Microsoft\Windows\CurrentVersion\ApplicationAssociationToasts\TL.TeXworks.edit.2021_.tex
+ HKEY_CURRENT_USER\Software\Classes\TL.bitmap2eps.convert.2022
+ HKEY_CURRENT_USER\Software\Classes\TL.DVIOUT.view.2022
+ HKEY_CURRENT_USER\Software\Classes\TL.TeXworks.edit.2022
+ HKEY_CURRENT_USER\Software\Classes\TL.PSViewer.view.2022
+ HKEY_CURRENT_USER\SOFTWARE\Microsoft\Windows\CurrentVersion\ApplicationAssociationToasts\TL.bitmap2eps.convert.2022_.jpg
+ HKEY_CURRENT_USER\SOFTWARE\Microsoft\Windows\CurrentVersion\ApplicationAssociationToasts\TL.bitmap2eps.convert.2022_.png
+ HKEY_CURRENT_USER\SOFTWARE\Microsoft\Windows\CurrentVersion\ApplicationAssociationToasts\TL.TeXworks.edit.2022_.sty
+ HKEY_CURRENT_USER\SOFTWARE\Microsoft\Windows\CurrentVersion\ApplicationAssociationToasts\TL.TeXworks.edit.2022_.tex
\end{lstlisting}
但若在安装时使用管理员权限``为所有人安装'',
则注册表位置将变为
\begin{lstlisting}
- HKEY_LOCAL_MACHINE\SOFTWARE\Classes\TL.bitmap2eps.convert.2021
- HKEY_LOCAL_MACHINE\SOFTWARE\Classes\TL.DVIOUT.view.2021
- HKEY_LOCAL_MACHINE\SOFTWARE\Classes\TL.TeXworks.edit.2021
- HKEY_LOCAL_MACHINE\SOFTWARE\Classes\TL.PSViewer.view.2021
+ HKEY_LOCAL_MACHINE\SOFTWARE\Classes\TL.bitmap2eps.convert.2022
+ HKEY_LOCAL_MACHINE\SOFTWARE\Classes\TL.DVIOUT.view.2022
+ HKEY_LOCAL_MACHINE\SOFTWARE\Classes\TL.TeXworks.edit.2022
+ HKEY_LOCAL_MACHINE\SOFTWARE\Classes\TL.PSViewer.view.2022
\end{lstlisting}
\subsection{手动卸载}
@@ -368,13 +368,9 @@ Doing a new installation is necessary.}.
\subsection{升级宏包的必要性}
自本手册撰写以来,
-每年镜像文件打包时都可能存在一些问题.
-使用镜像文件安装 \TeX{} Live 2021 后,
-系统平台无法被识别.
-该问题只见于 Windows 平台,
+每年镜像文件打包时都可能存在一些问题,
具体讨论见%
\href{https://github.com/CTeX-org/ctex-kit/issues/569}{这里}.
-目前这一问题已经可以通过更新宏包解决,
用户安装完毕后,
请按照本节提供的方法升级.
diff --git a/info/install-latex-guide-zh-cn/chapter/wsl.tex b/info/install-latex-guide-zh-cn/chapter/wsl.tex
index da388c34ab..4b7775d81c 100644
--- a/info/install-latex-guide-zh-cn/chapter/wsl.tex
+++ b/info/install-latex-guide-zh-cn/chapter/wsl.tex
@@ -14,7 +14,7 @@
在主系统%
\footnote{在 Windows 10 中直接进行的操作即为在主系统中的操作}%
中下载
-\href{https://mirrors.ctan.org/systems/texlive/Images/texlive2021.iso}{iso 镜像文件},
+\href{https://mirrors.ctan.org/systems/texlive/Images/texlive2022.iso}{iso 镜像文件},
可选择国内源以加快下载速度.
下载完毕后, 在 \textsf{cmd} 中验证文件是否正常.
下载及文件验证方法同 \ref{sec:windows:install}~节.
@@ -37,14 +37,14 @@
不熟悉 \textsf{vim} 的用户,
可参考 \ref{sec:no-vim}~节.
-接下来, 在主系统中将镜像挂载,
+接下来, 在主系统中将镜像装载,
例如挂载到 \texttt{X:\textbackslash},
而后进入 \textsf{bash} 并执行如下命令
\begin{lstlisting}[language = bash]
sudo mkdir /mnt/x
sudo mount -t drvfs X: /mnt/x
\end{lstlisting}
-如此便可在 \textsf{bash} 中找到挂载的光盘镜像.
+如此便可在 \textsf{bash} 中找到装载的光盘镜像.
之后执行
\begin{lstlisting}[language = bash]
sudo /mnt/x/install-tl
@@ -65,21 +65,21 @@
<S> set installation scheme: scheme-full
<C> set installation collections:
- 40 collections out of 41, disk space required: 6963 MB
+ 40 collections out of 41, disk space required: 7262 MB (free: 239411 MB)
<D> set directories:
TEXDIR (the main TeX directory):
- /usr/local/texlive/2021
+ /usr/local/texlive/2022
TEXMFLOCAL (directory for site-wide local files):
/usr/local/texlive/texmf-local
TEXMFSYSVAR (directory for variable and automatically generated data):
- /usr/local/texlive/2021/texmf-var
+ /usr/local/texlive/2022/texmf-var
TEXMFSYSCONFIG (directory for local config):
- /usr/local/texlive/2021/texmf-config
+ /usr/local/texlive/2022/texmf-config
TEXMFVAR (personal directory for variable and automatically generated data):
- ~/.texlive2021/texmf-var
+ ~/.texlive2022/texmf-var
TEXMFCONFIG (personal directory for local config):
- ~/.texlive2021/texmf-config
+ ~/.texlive2022/texmf-config
TEXMFHOME (directory for user-specific files):
~/texmf
@@ -110,7 +110,7 @@
sudo umount /mnt/x
sudo rmdir /mnt/x
\end{lstlisting}
-弹出已加载的光盘镜像.
+弹出已装载的光盘镜像.
默认安装完成后, 用户需要设置环境变量.
继续在 \textsf{bash} 中执行
@@ -120,9 +120,9 @@
在打开的文件末尾添加
\begin{lstlisting}
# Add TeX Live to the PATH, MANPATH, INFOPATH
- export PATH=/usr/local/texlive/2021/bin/x86_64-linux:$PATH
- export MANPATH=/usr/local/texlive/2021/texmf-dist/doc/man:$MANPATH
- export INFOPATH=/usr/local/texlive/2021/texmf-dist/doc/info:$INFOPATH
+ export PATH=/usr/local/texlive/2022/bin/x86_64-linux:$PATH
+ export MANPATH=/usr/local/texlive/2022/texmf-dist/doc/man:$MANPATH
+ export INFOPATH=/usr/local/texlive/2022/texmf-dist/doc/info:$INFOPATH
\end{lstlisting}
并保存退出.
同样, 不熟悉 \textsf{vim} 的用户可参考 \ref{sec:no-vim}~节.
@@ -132,9 +132,9 @@
\end{lstlisting}
将显示
\begin{lstlisting}
- TeX 3.141592653 (TeX Live 2021)
- kpathsea version 6.3.3
- Copyright 2021 D.E. Knuth.
+ TeX 3.141592653 (TeX Live 2022)
+ kpathsea version 6.3.4
+ Copyright 2022 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.
@@ -148,7 +148,7 @@
首先将配置文件复制到系统,
在 \textsf{Terminal} 执行
\begin{lstlisting}[language=bash]
- sudo cp /usr/local/texlive/2021/texmf-var/fonts/conf/texlive-fontconfig.conf /etc/fonts/conf.d/09-texlive.conf
+ sudo cp /usr/local/texlive/2022/texmf-var/fonts/conf/texlive-fontconfig.conf /etc/fonts/conf.d/09-texlive.conf
\end{lstlisting}
然后在 \textsf{Terminal} 执行
\begin{lstlisting}[language=bash]
@@ -195,9 +195,9 @@ WSL 中的方法同 \ref{sec:ubuntu:installpackage}~节.
\end{lstlisting}
系统返回类似如下内容
\begin{lstlisting}[language=bash]
- /mnt/d/texlive-wsl/2021/texmf-dist/scripts/texdoc/texdoclib.tlu 3.2.2
+ /mnt/d/texlive-wsl/2022/texmf-dist/scripts/texdoc/texdoclib.tlu 3.4.1
Configuration file(s):
- active /mnt/d/texlive-wsl/2021/texmf-dist/texdoc/texdoc.cnf
+ active /mnt/d/texlive-wsl/2022/texmf-dist/texdoc/texdoc.cnf
Recommended file(s) for personal settings:
/home/<username>/texmf/texdoc/texdoc.cnf
\end{lstlisting}
@@ -222,14 +222,14 @@ WSL 中的方法同 \ref{sec:ubuntu:installpackage}~节.
\end{lstlisting}
系统会显示
\begin{lstlisting}
- 1 /usr/local/texlive/2021/texmf-dist/doc/latex/lshort-chinese/lshort-zh-cn.pdf
+ 1 /usr/local/texlive/2022/texmf-dist/doc/latex/lshort-chinese/lshort-zh-cn.pdf
= [zh] The document itself
Enter number of file to view, RET to view 1, anything else to skip:
\end{lstlisting}
这时按其他键 (如 \keys{x}) 退出.
然后分别执行
\begin{lstlisting}[language=bash]
- cd /usr/local/texlive/2021/texmf-dist/doc/latex/lshort-chinese/
+ cd /usr/local/texlive/2022/texmf-dist/doc/latex/lshort-chinese/
explorer.exe .
\end{lstlisting}
主系统的资源管理器便会打开.
@@ -312,7 +312,9 @@ WSL 中的方法同 \ref{sec:ubuntu:installpackage}~节.
\footnote{注意主系统中的字体默认不能直接被调用,
如果打算使用主系统中的字体,
-\href{https://github.com/OsbertWang/install-latex-guide-zh-cn/issues/14}{github 上的讨论}},
+\href{https://github.com/OsbertWang/install-latex-guide-zh-cn/issues/14}{github 上的讨论},
+鉴于 WSL2 和主系统文件系统互访速度慢,
+该方法很可能拖慢 xelatex 速度},
在 WSL 中安装字体的方法见附录~\ref{chp:appendix:wsl}.
编译命令可添加参数, 这里与 \ref{sec:windows:compile}~节中的情形一致, 不再赘述.
diff --git a/info/install-latex-guide-zh-cn/install-latex-guide-zh-cn.pdf b/info/install-latex-guide-zh-cn/install-latex-guide-zh-cn.pdf
index bbab5e21eb..c44eea0c1a 100644
--- a/info/install-latex-guide-zh-cn/install-latex-guide-zh-cn.pdf
+++ b/info/install-latex-guide-zh-cn/install-latex-guide-zh-cn.pdf
Binary files differ