diff options
Diffstat (limited to 'info/install-latex-guide-zh-cn/chapter/wsl.tex')
-rw-r--r-- | info/install-latex-guide-zh-cn/chapter/wsl.tex | 46 |
1 files changed, 24 insertions, 22 deletions
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}~节中的情形一致, 不再赘述. |