From 90726391b6dff18490f2031c62c3f0d13f01e665 Mon Sep 17 00:00:00 2001 From: Karl Berry Date: Sun, 1 Nov 2020 21:58:40 +0000 Subject: install-latex-guide-zh-cn (1nov20) git-svn-id: svn://tug.org/texlive/trunk@56831 c570f23f-e606-0410-a88d-b1316a301751 --- .../appendix/updateinfo.tex | 8 +++++++ .../install-latex-guide-zh-cn/chapter/editor.tex | 25 +++++++++++++++++++++ .../install-latex-guide-zh-cn/chapter/overleaf.tex | 4 ++-- .../install-latex-guide-zh-cn/chapter/ubuntu.tex | 19 ++++++++++++++-- .../install-latex-guide-zh-cn/chapter/windows.tex | 13 +++++++++++ .../install-latex-guide-zh-cn/chapter/wsl.tex | 14 +----------- .../install-latex-guide-zh-cn.pdf | Bin 701973 -> 706699 bytes .../install-latex-guide-zh-cn.tex | 1 + 8 files changed, 67 insertions(+), 17 deletions(-) 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 7f23824a6d1..066d9bbf89a 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,14 @@ \chapter{版本信息} +\section*{v2020.11.1} + +\begin{enumerate} + \item Overleaf 后台更新为 \TeX Live 2020 + \item 补充卸载方法 + \item 补充 PPA 反向代理安装 \TeX Studio 的方法 +\end{enumerate} + \section*{v2020.10.1} \begin{enumerate} diff --git a/Master/texmf-dist/doc/latex/install-latex-guide-zh-cn/chapter/editor.tex b/Master/texmf-dist/doc/latex/install-latex-guide-zh-cn/chapter/editor.tex index a44e8620565..9de836c4918 100644 --- a/Master/texmf-dist/doc/latex/install-latex-guide-zh-cn/chapter/editor.tex +++ b/Master/texmf-dist/doc/latex/install-latex-guide-zh-cn/chapter/editor.tex @@ -359,6 +359,31 @@ Windows 10 中字体列表见% sudo apt-get update sudo apt-get install texstudio \end{lstlisting} +鉴于网络原因, +直接从 PPA 下载容易丢包. +这里介绍中科大的\href{https://lug.ustc.edu.cn/wiki/mirrors/help/revproxy/}{反向镜像}, +将 +\begin{lstlisting}[language = bash] + /etc/apt/sources.list.d/ +\end{lstlisting} +中文件的内容 +\begin{lstlisting} + http(s)://ppa.launchpad.net +\end{lstlisting} +改为 +\begin{lstlisting} + https://launchpad.proxy.ustclug.org +\end{lstlisting} +而后再 +\begin{lstlisting}[language = bash] + sudo apt update +\end{lstlisting} +即完成换源. +有时地址太多而逐个换太麻烦, +可以直接使用如下命令直接替换\footnote{参见 \url{https://mogeko.me/2018/035/}} +\begin{lstlisting}[language = bash] + sudo find /etc/apt/sources.list.d/ -type f -name "*.list" -exec sed -i.bak -r 's#deb(-src)?\s*http(s)?://ppa.launchpad.net#deb\1 https\2://launchpad.proxy.ustclug.org#ig' {} \; +\end{lstlisting} 安装完毕后, 用户可以在 \textsf{Terminal} 中执行 diff --git a/Master/texmf-dist/doc/latex/install-latex-guide-zh-cn/chapter/overleaf.tex b/Master/texmf-dist/doc/latex/install-latex-guide-zh-cn/chapter/overleaf.tex index f574470cc63..587e3e8a4a6 100644 --- a/Master/texmf-dist/doc/latex/install-latex-guide-zh-cn/chapter/overleaf.tex +++ b/Master/texmf-dist/doc/latex/install-latex-guide-zh-cn/chapter/overleaf.tex @@ -14,8 +14,8 @@ Overleaf 是全球范围内首屈一指的在线 \LaTeX{} 编辑平台. Overleaf 提供了包括% \href{https://cn.overleaf.com}{中文}% 在内的多种语言供用户使用. -2020年1月23日, -\href{https://www.overleaf.com/blog/tex-live-2019-upgrade-january-2020}{它将后台的 \TeX{} Live 升级为 2019 版本}, +2020年10月6日, +\href{https://www.overleaf.com/blog/tex-live-2020-now-available}{它将后台的 \TeX{} Live 升级为 2020 版本}, 同时, \href{https://www.overleaf.com/blog/new-feature-select-your-tex-live-compiler-version}{Overleaf 还允许用户自主选择项目中的 \TeX{} Live 版本}. 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 168dc64aaee..ce4fa2532ac 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 @@ -105,7 +105,7 @@ 安装完毕后, 将挂载的光盘镜像弹出并删除文件夹 \begin{lstlisting}[language = bash] sudo umount /mnt/texlive - sudo rm /mnt/texlive + sudo rm -r /mnt/texlive \end{lstlisting} 安装完成后, 用户需要设置环境变量. @@ -162,6 +162,11 @@ \section{卸载 \TeX{} Live}\label{sec:ubuntu:uninstall} +下面提供几种卸载方法, +卸载后需注意清理环境变量. + +\subsection{卸载源内的版本} + 如果要卸载从源内安装的 \TeX{} Live, 个人比较推荐使用 synaptic package manager. \textsf{terminal} 中执行 \begin{lstlisting}[language = bash] @@ -184,6 +189,8 @@ \end{lstlisting} 来删除相应的依赖包. +\subsection{手动卸载} + 如果是从光盘镜像安装, 直接删除文件夹即可. 先在\textsf{terminal} 中执行 @@ -197,7 +204,15 @@ sudo rm -rf /usr/local/texlive/2020 rm -rf ~/.texlive2020 \end{lstlisting} -当然删除后还要清理掉环境变量. + +\subsection{使用 \texttt{tlmgr} 工具} + +同样, +用户也可以使用 \texttt{tlmgr} 工具卸载% +\footnote{\texttt{sudo tlmgr} 无法使用的情况可以参考 \ref{sec:ubuntu:update}~节 解决}, +\begin{lstlisting}[language=bash] + sudo tlmgr remove --all +\end{lstlisting} \section{跨版本升级 \TeX{} Live}\label{sec:ubuntu:version} diff --git a/Master/texmf-dist/doc/latex/install-latex-guide-zh-cn/chapter/windows.tex b/Master/texmf-dist/doc/latex/install-latex-guide-zh-cn/chapter/windows.tex index d9b0afd50b3..f65c1469fd1 100644 --- a/Master/texmf-dist/doc/latex/install-latex-guide-zh-cn/chapter/windows.tex +++ b/Master/texmf-dist/doc/latex/install-latex-guide-zh-cn/chapter/windows.tex @@ -251,6 +251,10 @@ \section{卸载 \TeX{} Live} 在跨版本升级 \TeX{} Live 时, 通常需要卸载旧版 \TeX{} Live. +下面介绍几种卸载方法. + +\subsection{使用批处理文件} + 在命令行执行 \begin{lstlisting}[language=bash] kpsewhich -var-value TEXMFROOT @@ -274,6 +278,15 @@ 如果用户安装 \TeX{} Live 时需要管理员权限, 那么在卸载时同样需要管理员权限. +\subsection{使用 \texttt{tlmgr} 工具} + +直接使用 \texttt{tlmgr} 工具卸载也可以. +在命令行中执行 +\begin{lstlisting}[language=bash] + tlmgr remove --all +\end{lstlisting} +即可. + \subsection{手动卸载} 如果执行批处理文件 \texttt{uninst.bat} 出错, 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 cd6f823363a..82d4c4e45f3 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 @@ -159,19 +159,7 @@ \section{卸载 \TeX{} Live} -直接删除文件夹即可. -先在 \textsf{bash} 中执行 -\begin{lstlisting}[language = bash] - kpsewhich -var-value TEXMFROOT -\end{lstlisting} -来查询安装路径, -进而通过 \texttt{sudo rm -rf} 进行删除. -默认安装的用户直接运行 -\begin{lstlisting}[language = bash] - sudo rm -rf /usr/local/texlive/2020 - rm -rf ~/.texlive2020 -\end{lstlisting} -当然删除后还要清理掉环境变量. +WSL 中的方法同 \ref{sec:ubuntu:uninstall}~节. \section{跨版本升级 \TeX{} Live} 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 2135dfb6d69..f29080aaa20 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 diff --git a/Master/texmf-dist/doc/latex/install-latex-guide-zh-cn/install-latex-guide-zh-cn.tex b/Master/texmf-dist/doc/latex/install-latex-guide-zh-cn/install-latex-guide-zh-cn.tex index ed3c3e2a73f..11c7aba1d3d 100644 --- a/Master/texmf-dist/doc/latex/install-latex-guide-zh-cn/install-latex-guide-zh-cn.tex +++ b/Master/texmf-dist/doc/latex/install-latex-guide-zh-cn/install-latex-guide-zh-cn.tex @@ -1,3 +1,4 @@ +\RequirePackage[2020-02-02]{latexrelease} \documentclass[fontset=fandol]{ctexrep} \usepackage{accsupp} \usepackage[margin=2.4cm]{geometry} -- cgit v1.2.3