summaryrefslogtreecommitdiff
path: root/info/install-latex-guide-zh-cn/chapter/wsl.tex
diff options
context:
space:
mode:
Diffstat (limited to 'info/install-latex-guide-zh-cn/chapter/wsl.tex')
-rw-r--r--info/install-latex-guide-zh-cn/chapter/wsl.tex45
1 files changed, 22 insertions, 23 deletions
diff --git a/info/install-latex-guide-zh-cn/chapter/wsl.tex b/info/install-latex-guide-zh-cn/chapter/wsl.tex
index 4b7775d81c..eaff8c667c 100644
--- a/info/install-latex-guide-zh-cn/chapter/wsl.tex
+++ b/info/install-latex-guide-zh-cn/chapter/wsl.tex
@@ -12,9 +12,9 @@
\section{安装 \TeX{} Live}
在主系统%
-\footnote{在 Windows 10 中直接进行的操作即为在主系统中的操作}%
+\footnote{在 Windows 11 中直接进行的操作即为在主系统中的操作}%
中下载
-\href{https://mirrors.ctan.org/systems/texlive/Images/texlive2022.iso}{iso 镜像文件},
+\href{https://mirrors.ctan.org/systems/texlive/Images/texlive2023.iso}{iso 镜像文件},
可选择国内源以加快下载速度.
下载完毕后, 在 \textsf{cmd} 中验证文件是否正常.
下载及文件验证方法同 \ref{sec:windows:install}~节.
@@ -23,7 +23,6 @@
用户需要在 \textsf{bash} 中执行
\begin{lstlisting}[language=bash]
sudo apt install fontconfig
- sudo apt install ttf-mscorefonts-installer
\end{lstlisting}
这些命令是为了处理日后使用中可能出现的字体问题.
为避免安装速度过慢,
@@ -65,21 +64,21 @@
<S> set installation scheme: scheme-full
<C> set installation collections:
- 40 collections out of 41, disk space required: 7262 MB (free: 239411 MB)
+ 40 collections out of 41, disk space required: 7599 MB
<D> set directories:
TEXDIR (the main TeX directory):
- /usr/local/texlive/2022
+ /usr/local/texlive/2023
TEXMFLOCAL (directory for site-wide local files):
/usr/local/texlive/texmf-local
TEXMFSYSVAR (directory for variable and automatically generated data):
- /usr/local/texlive/2022/texmf-var
+ /usr/local/texlive/2023/texmf-var
TEXMFSYSCONFIG (directory for local config):
- /usr/local/texlive/2022/texmf-config
+ /usr/local/texlive/2023/texmf-config
TEXMFVAR (personal directory for variable and automatically generated data):
- ~/.texlive2022/texmf-var
+ ~/.texlive2023/texmf-var
TEXMFCONFIG (personal directory for local config):
- ~/.texlive2022/texmf-config
+ ~/.texlive2023/texmf-config
TEXMFHOME (directory for user-specific files):
~/texmf
@@ -120,9 +119,9 @@
在打开的文件末尾添加
\begin{lstlisting}
# Add TeX Live to the PATH, MANPATH, 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
+ export PATH=/usr/local/texlive/2023/bin/x86_64-linux:$PATH
+ export MANPATH=/usr/local/texlive/2023/texmf-dist/doc/man:$MANPATH
+ export INFOPATH=/usr/local/texlive/2023/texmf-dist/doc/info:$INFOPATH
\end{lstlisting}
并保存退出.
同样, 不熟悉 \textsf{vim} 的用户可参考 \ref{sec:no-vim}~节.
@@ -132,9 +131,9 @@
\end{lstlisting}
将显示
\begin{lstlisting}
- TeX 3.141592653 (TeX Live 2022)
- kpathsea version 6.3.4
- Copyright 2022 D.E. Knuth.
+ TeX 3.141592653 (TeX Live 2023)
+ kpathsea version 6.3.5
+ Copyright 2023 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.
@@ -144,11 +143,11 @@
\end{lstlisting}
即为安装成功.
-接下来仿照 Ubuntu 20.04 处理字体.
+接下来仿照 Ubuntu 22.04 处理字体.
首先将配置文件复制到系统,
在 \textsf{Terminal} 执行
\begin{lstlisting}[language=bash]
- sudo cp /usr/local/texlive/2022/texmf-var/fonts/conf/texlive-fontconfig.conf /etc/fonts/conf.d/09-texlive.conf
+ sudo cp /usr/local/texlive/2023/texmf-var/fonts/conf/texlive-fontconfig.conf /etc/fonts/conf.d/09-texlive.conf
\end{lstlisting}
然后在 \textsf{Terminal} 执行
\begin{lstlisting}[language=bash]
@@ -195,11 +194,11 @@ WSL 中的方法同 \ref{sec:ubuntu:installpackage}~节.
\end{lstlisting}
系统返回类似如下内容
\begin{lstlisting}[language=bash]
- /mnt/d/texlive-wsl/2022/texmf-dist/scripts/texdoc/texdoclib.tlu 3.4.1
+ /usr/local/texlive/2023/texmf-dist/scripts/texdoc/texdoclib.tlu 4.0.1
Configuration file(s):
- active /mnt/d/texlive-wsl/2022/texmf-dist/texdoc/texdoc.cnf
+ active /usr/local/texlive/2023/texmf-dist/texdoc/texdoc.cnf
Recommended file(s) for personal settings:
- /home/<username>/texmf/texdoc/texdoc.cnf
+ /home/osbertwang/texmf/texdoc/texdoc.cnf
\end{lstlisting}
这里给出了 \texttt{texdoc} 的配置文件所在位置.
打开用户文件夹下的配置文件
@@ -222,14 +221,14 @@ WSL 中的方法同 \ref{sec:ubuntu:installpackage}~节.
\end{lstlisting}
系统会显示
\begin{lstlisting}
- 1 /usr/local/texlive/2022/texmf-dist/doc/latex/lshort-chinese/lshort-zh-cn.pdf
+ 1 /usr/local/texlive/2023/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/2022/texmf-dist/doc/latex/lshort-chinese/
+ cd /usr/local/texlive/2023/texmf-dist/doc/latex/lshort-chinese/
explorer.exe .
\end{lstlisting}
主系统的资源管理器便会打开.
@@ -323,7 +322,7 @@ WSL 中的方法同 \ref{sec:ubuntu:installpackage}~节.
\textsf{vim} 的使用方法与目前很多流行的编辑器不同,
因此这里给出不用 \textsf{vim} 的处理方法.
-该方法借助 \href{https://code.visualstudio.com/}{VS Code} 的 \href{https://marketplace.visualstudio.com/items?itemName=ms-vscode-remote.remote-wsl}{Remote-WSL} 插件实现.
+该方法借助 \href{https://code.visualstudio.com/}{VS Code} 的 \href{https://marketplace.visualstudio.com/items?itemName=ms-vscode-remote.remote-wsl}{WSL} 插件实现.
先来更改 \texttt{.bashrc}.
将 \texttt{.bashrc} 备份为 \texttt{.bashrc.bak}