From 70ae9df7d9a703df61a8f6287328a3c496150351 Mon Sep 17 00:00:00 2001 From: Karl Berry Date: Fri, 1 Oct 2021 22:02:32 +0000 Subject: install-latex-guide-zh-cn (2oct21) git-svn-id: svn://tug.org/texlive/trunk@60672 c570f23f-e606-0410-a88d-b1316a301751 --- .../appendix/updateinfo.tex | 6 ++++ .../install-latex-guide-zh-cn/chapter/ubuntu.tex | 32 +++++++++++++++++++++ .../install-latex-guide-zh-cn/chapter/wsl.tex | 6 ++++ .../install-latex-guide-zh-cn.pdf | Bin 744469 -> 747376 bytes 4 files changed, 44 insertions(+) diff --git a/Master/texmf-dist/doc/latex/install-latex-guide-zh-cn/appendix/updateinfo.tex b/Master/texmf-dist/doc/latex/install-latex-guide-zh-cn/appendix/updateinfo.tex index 7debec6c3a6..f88a3d9ab66 100644 --- a/Master/texmf-dist/doc/latex/install-latex-guide-zh-cn/appendix/updateinfo.tex +++ b/Master/texmf-dist/doc/latex/install-latex-guide-zh-cn/appendix/updateinfo.tex @@ -2,6 +2,12 @@ \chapter{版本信息} +\section*{v2021.10.1} + +\begin{enumerate} + \item 添加 ubuntu 和 WSL 在用户文件夹安装的相关内容 +\end{enumerate} + \section*{v2021.8.1} \begin{enumerate} diff --git a/Master/texmf-dist/doc/latex/install-latex-guide-zh-cn/chapter/ubuntu.tex b/Master/texmf-dist/doc/latex/install-latex-guide-zh-cn/chapter/ubuntu.tex index 5f3dd174e11..1634ed85d94 100644 --- a/Master/texmf-dist/doc/latex/install-latex-guide-zh-cn/chapter/ubuntu.tex +++ b/Master/texmf-dist/doc/latex/install-latex-guide-zh-cn/chapter/ubuntu.tex @@ -160,6 +160,38 @@ \end{lstlisting} 在各处替换. +\subsection{在用户文件夹安装}\label{subsec:ubuntu-user-folder} + +如果有用户打算在用户文件夹安装 \TeX{} Live, +那么可以不必调用权限, +直接执行 +\begin{lstlisting}[language=bash] + /mnt/texlive/install-tl +\end{lstlisting} +只不过这时安装路径需要选择 +\begin{lstlisting}[language=bash] + ~/texlive/2021 +\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 +\end{lstlisting} +有关字体的处理变为 +\begin{lstlisting}[language=bash] + cp ~/texlive/2021/texmf-var/fonts/conf/texlive-fontconfig.conf ~/.fonts.conf/09-texlive.conf +\end{lstlisting} +然后执行 +\begin{lstlisting}[language=bash] + fc-cache -fv +\end{lstlisting} +实际上, +无论将 \TeX{} Live 安装到哪里, +字体的配置文件都可以仿照上面只复制于用户文件夹中. + \subsection{\texttt{fc-cache} 无法执行}\label{subsec:fc-cache} 这种情况往往是缺少了 fontconfig, diff --git a/Master/texmf-dist/doc/latex/install-latex-guide-zh-cn/chapter/wsl.tex b/Master/texmf-dist/doc/latex/install-latex-guide-zh-cn/chapter/wsl.tex index cbb5787095a..da388c34ab0 100644 --- a/Master/texmf-dist/doc/latex/install-latex-guide-zh-cn/chapter/wsl.tex +++ b/Master/texmf-dist/doc/latex/install-latex-guide-zh-cn/chapter/wsl.tex @@ -156,6 +156,12 @@ \end{lstlisting} 刷新字体缓存. +\subsection{在用户文件夹安装} + +WSL 同样也可以在用户文件夹中安装, +它的用户文件夹往往在主系统的系统盘中. +具体过程也可以参考第~\ref{subsec:ubuntu-user-folder}~节. + \section{卸载 \TeX{} Live} WSL 中的方法同 \ref{sec:ubuntu:uninstall}~节. diff --git a/Master/texmf-dist/doc/latex/install-latex-guide-zh-cn/install-latex-guide-zh-cn.pdf b/Master/texmf-dist/doc/latex/install-latex-guide-zh-cn/install-latex-guide-zh-cn.pdf index c6ad66c4b0c..4e09d4ad5cd 100644 Binary files a/Master/texmf-dist/doc/latex/install-latex-guide-zh-cn/install-latex-guide-zh-cn.pdf and b/Master/texmf-dist/doc/latex/install-latex-guide-zh-cn/install-latex-guide-zh-cn.pdf differ -- cgit v1.2.3