texlive[73250] Master/texmf-dist/doc/latex/install-latex-guide-zh-cn:
commits+karl at tug.org
commits+karl at tug.org
Tue Dec 31 22:58:37 CET 2024
Revision: 73250
https://tug.org/svn/texlive?view=revision&revision=73250
Author: karl
Date: 2024-12-31 22:58:37 +0100 (Tue, 31 Dec 2024)
Log Message:
-----------
install-latex-guide-zh-cn (31dec24)
Modified Paths:
--------------
trunk/Master/texmf-dist/doc/latex/install-latex-guide-zh-cn/README.md
trunk/Master/texmf-dist/doc/latex/install-latex-guide-zh-cn/appendix/updateinfo.tex
trunk/Master/texmf-dist/doc/latex/install-latex-guide-zh-cn/chapter/editor.tex
trunk/Master/texmf-dist/doc/latex/install-latex-guide-zh-cn/chapter/macos.tex
trunk/Master/texmf-dist/doc/latex/install-latex-guide-zh-cn/chapter/overleaf.tex
trunk/Master/texmf-dist/doc/latex/install-latex-guide-zh-cn/chapter/ubuntu.tex
trunk/Master/texmf-dist/doc/latex/install-latex-guide-zh-cn/chapter/windows.tex
trunk/Master/texmf-dist/doc/latex/install-latex-guide-zh-cn/chapter/wsl.tex
trunk/Master/texmf-dist/doc/latex/install-latex-guide-zh-cn/install-latex-guide-zh-cn.pdf
Modified: trunk/Master/texmf-dist/doc/latex/install-latex-guide-zh-cn/README.md
===================================================================
--- trunk/Master/texmf-dist/doc/latex/install-latex-guide-zh-cn/README.md 2024-12-31 21:58:25 UTC (rev 73249)
+++ trunk/Master/texmf-dist/doc/latex/install-latex-guide-zh-cn/README.md 2024-12-31 21:58:37 UTC (rev 73250)
@@ -1,7 +1,7 @@
# Install-LaTeX-Guide-zh-cn (A short introduction to LaTeX installation written in Chinese)
This package will introduce the operations related to installing TeX Live (introducing MacTeX in macOS), upgrading packages, and compiling simple documents on Windows 11, Ubuntu 22.04, and macOS systems, and mainly introducing command line operations.
-At the same time, it briefly introduces the use of several common editors under different operating systems, and additionally adds some related content using Online LaTeX editor, e.g. [Overleaf](www.overleaf.com).
+At the same time, it briefly introduces the use of several common editors under different operating systems, and additionally adds some related content using Online LaTeX editor, e.g. [Overleaf](https://www.overleaf.com).
Users are advised to read [texlive-zh-cn](https://www.tug.org/texlive/doc/texlive-zh-cn/texlive-zh-cn.pdf) and [lshort-zh-cn](http://mirrors.ctan.org/info/lshort/chinese/lshort-zh-cn.pdf) for a more comprehensive understanding of the basic content.
@@ -23,7 +23,7 @@
# 一份简短的关于 LaTeX 安装的介绍
本文将介绍 Windows 11、Ubuntu 22.04 和 macOS 系统中安装 TeX Live (macOS 中介绍 MacTeX)、升级宏包、编译简易文档的相关操作, 并多以介绍命令行操作为主.
-同时简要介绍不同操作系统下几款常见编辑器的使用方法, 并额外补充了一些使用在线 LaTeX 编辑器, 如 [Overleaf](www.overleaf.com), 的相关内容.
+同时简要介绍不同操作系统下几款常见编辑器的使用方法, 并额外补充了一些使用在线 LaTeX 编辑器, 如 [Overleaf](https://www.overleaf.com), 的相关内容.
建议用户阅读 [texlive-zh-cn](https://www.tug.org/texlive/doc/texlive-zh-cn/texlive-zh-cn.pdf) 和 [lshort-zh-cn](http://mirrors.ctan.org/info/lshort/chinese/lshort-zh-cn.pdf) 以更全面地了解基础内容.
Modified: trunk/Master/texmf-dist/doc/latex/install-latex-guide-zh-cn/appendix/updateinfo.tex
===================================================================
--- trunk/Master/texmf-dist/doc/latex/install-latex-guide-zh-cn/appendix/updateinfo.tex 2024-12-31 21:58:25 UTC (rev 73249)
+++ trunk/Master/texmf-dist/doc/latex/install-latex-guide-zh-cn/appendix/updateinfo.tex 2024-12-31 21:58:37 UTC (rev 73250)
@@ -2,12 +2,25 @@
\chapter{版本信息}
+\section*{v2025.1.1}
+
+\begin{itemize}
+ \item 强调了记录 Ubuntu 安装时用的 \texttt{x86\_64}
+ \item 将卸载和跨版本升级内容调整至章末
+ \item 增加 \TeX Studio PDF 阅读器内容
+\end{itemize}
+
\section*{v2024.9.1}
\begin{itemize}
+ \item Overleaf 升级为 2024 版
+\end{itemize}
+
+\section*{v2024.6.1}
+
+\begin{itemize}
\item 添加镜像
\item 修改对于不安装第三方安全软件的建议
- \item Overleaf 升级为 2024 版
\end{itemize}
\section*{v2024.4.1}
Modified: trunk/Master/texmf-dist/doc/latex/install-latex-guide-zh-cn/chapter/editor.tex
===================================================================
--- trunk/Master/texmf-dist/doc/latex/install-latex-guide-zh-cn/chapter/editor.tex 2024-12-31 21:58:25 UTC (rev 73249)
+++ trunk/Master/texmf-dist/doc/latex/install-latex-guide-zh-cn/chapter/editor.tex 2024-12-31 21:58:37 UTC (rev 73250)
@@ -362,10 +362,21 @@
在 \menu{Help > Check LaTeX Installation}
中有 \texttt{ini} 文件的具体位置.
+\subsubsection{窗口化/扩大化内嵌的 PDF 阅读器}
+
+\TeX studio 已经内嵌了 PDF 阅读器供用户预览编译结果,
+通常居于编辑器右侧.
+在该阅读器上有一个 \menu{Windowsed Viewer} 按钮,
+点击它,
+位于右侧的 PDF 阅读器可以变为一个单独的窗口出现.
+重新恢复到内嵌模式只需要点击 \menu{Embedded Viewer} 按钮.
+另外还有 \menu{Enlarge Viewer} 按钮,
+可以扩大 PDF 阅读器到整个编辑区,
+恢复大小只需要点击 \menu{Shrink Viewer} 按钮.
+
\subsubsection{调用外部 PDF 阅读器}
-\TeX studio 已经内嵌了 PDF 阅读器供用户预览编译结果,
-但一些用户喜欢使用外部 PDF 阅读器.
+一些用户喜欢使用外部 PDF 阅读器.
这里以 \href{https://www.sumatrapdfreader.org/free-pdf-reader.html}{SumatraPDF} 为例,
用户直接安装或下载便携版均可,
假定它在本地的位置为 \texttt{<SumatraPDFROOT>},
Modified: trunk/Master/texmf-dist/doc/latex/install-latex-guide-zh-cn/chapter/macos.tex
===================================================================
--- trunk/Master/texmf-dist/doc/latex/install-latex-guide-zh-cn/chapter/macos.tex 2024-12-31 21:58:25 UTC (rev 73249)
+++ trunk/Master/texmf-dist/doc/latex/install-latex-guide-zh-cn/chapter/macos.tex 2024-12-31 21:58:37 UTC (rev 73250)
@@ -114,37 +114,6 @@
$(tlmgr list --only-installed | sed -e 's/^i \([^:]*\): .*$/\1/')
\end{lstlisting}
-\section{卸载 Mac\TeX}
-
-如果用户直接下载了 Mac\TeX{} 安装包进行安装,
-可以对照\href{https://www.tug.org/mactex/uninstalling.html}{这里}的介绍来卸载,
-通常我个人会比较建议在跨版本升级前卸载旧版本.
-
-如果用户借助 Homebrew 安装了 Mac\TeX,
-经%
-\href{https://github.com/OsbertWang/install-latex-guide-zh-cn/pull/39#discussion_r1368152254}{实际测试},
-直接使用
-\begin{lstlisting}
- brew uninstall mactex
-\end{lstlisting}
-卸载很成功,
-只是有一些残留.
-
-\section{跨版本升级 Mac\TeX}
-
-如果用户直接下载了 Mac\TeX{} 安装包进行安装,
-可以先卸载旧版本,
-再安装新版本,
-或者干脆保留多个版本,
-具体见\href{https://www.tug.org/mactex/multipletexdistributions.html}{这里}.
-
-如果用户借助 Homebrew cask 安装了 Mac\TeX,
-跨版本升级 (Mac\TeX{} 的版本与 \TeX{} Live 保持一致), 可在\textsf{终端}借助 Homebrew 完成:
-\begin{lstlisting}[language=bash]
- brew update
- brew upgrade mactex
-\end{lstlisting}
-
\section{升级宏包}
升级宏包依旧可以使用 \texttt{tlmgr}.
@@ -203,3 +172,34 @@
\href{https://zhuanlan.zhihu.com/p/59774395}{慕子的文章}.
编译命令的相关参数, 这里不再赘述.
+
+\section{卸载 Mac\TeX}
+
+如果用户直接下载了 Mac\TeX{} 安装包进行安装,
+可以对照\href{https://www.tug.org/mactex/uninstalling.html}{这里}的介绍来卸载,
+通常我个人会比较建议在跨版本升级前卸载旧版本.
+
+如果用户借助 Homebrew 安装了 Mac\TeX,
+经%
+\href{https://github.com/OsbertWang/install-latex-guide-zh-cn/pull/39#discussion_r1368152254}{实际测试},
+直接使用
+\begin{lstlisting}
+ brew uninstall mactex
+\end{lstlisting}
+卸载很成功,
+只是有一些残留.
+
+\section{跨版本升级 Mac\TeX}
+
+如果用户直接下载了 Mac\TeX{} 安装包进行安装,
+可以先卸载旧版本,
+再安装新版本,
+或者干脆保留多个版本,
+具体见\href{https://www.tug.org/mactex/multipletexdistributions.html}{这里}.
+
+如果用户借助 Homebrew cask 安装了 Mac\TeX,
+跨版本升级 (Mac\TeX{} 的版本与 \TeX{} Live 保持一致), 可在\textsf{终端}借助 Homebrew 完成:
+\begin{lstlisting}[language=bash]
+ brew update
+ brew upgrade mactex
+\end{lstlisting}
Modified: trunk/Master/texmf-dist/doc/latex/install-latex-guide-zh-cn/chapter/overleaf.tex
===================================================================
--- trunk/Master/texmf-dist/doc/latex/install-latex-guide-zh-cn/chapter/overleaf.tex 2024-12-31 21:58:25 UTC (rev 73249)
+++ trunk/Master/texmf-dist/doc/latex/install-latex-guide-zh-cn/chapter/overleaf.tex 2024-12-31 21:58:37 UTC (rev 73250)
@@ -64,7 +64,7 @@
也可使用快捷键 \keys{ctrl + enter}.
另外,
-Overleaf 在 9 月 30 日更新了新的功能,
+Overleaf 在 2022 年 9 月 30 日更新了新的功能,
\href{https://www.overleaf.com/blog/new-feature-stop-on-first-error-compilation-mode}{Stop on first error},
这个功能一旦开启,
出现报错就立即停止编译.
@@ -82,9 +82,9 @@
\subsection{选择不同发行版版本}
Overleaf 将后台 \TeX{} Live 升级后,
-用户新建项目默认使用 \TeX{} Live 2022,
+用户新建项目默认使用 \TeX{} Live 2024,
而老项目还是使用 \TeX{} Live 的老版本.
-如果用户打算使用 \TeX{} Live 2022,
+如果用户打算使用 \TeX{} Live 2024,
只需在 \menu{Menu > Settings > TeX Live version} 选择版本即可.
\subsection{学习与帮助}
Modified: trunk/Master/texmf-dist/doc/latex/install-latex-guide-zh-cn/chapter/ubuntu.tex
===================================================================
--- trunk/Master/texmf-dist/doc/latex/install-latex-guide-zh-cn/chapter/ubuntu.tex 2024-12-31 21:58:25 UTC (rev 73249)
+++ trunk/Master/texmf-dist/doc/latex/install-latex-guide-zh-cn/chapter/ubuntu.tex 2024-12-31 21:58:37 UTC (rev 73250)
@@ -2,7 +2,7 @@
\chapter{Ubuntu 22.04 系统}
-\section{安装 \TeX{} Live}
+\section{安装 \TeX{} Live}\label{chap:ubuntu:sec:install}
这里只阐述如何用镜像安装.
为使用户顺利使用 \TeX{} Live 2024,
@@ -112,8 +112,18 @@
更改安装设置,
如安装路径等.
为简化起见,
-以下内容我们均认为用户采用默认安装.
+以下记录均假定为 \texttt{x86\_64} 上的默认安装.
安装完毕后,
+系统会提示用户添加环境变量,
+例如
+\begin{lstlisting}
+ export PATH=/usr/local/texlive/2024/bin/x86_64-linux:$PATH
+ export MANPATH=/usr/local/texlive/2024/texmf-dist/doc/man:$MANPATH
+ export INFOPATH=/usr/local/texlive/2024/texmf-dist/doc/info:$INFOPATH
+\end{lstlisting}
+不同操作系统此处显示略有不同,
+用户需将此处的系统提示记录.
+
将装载的光盘镜像弹出并删除文件夹,
即执行
\begin{lstlisting}[language = bash]
@@ -121,13 +131,13 @@
sudo rm -r /mnt/texlive
\end{lstlisting}
-安装完成后,
-用户需要设置环境变量.
+设置环境变量.
执行
\begin{lstlisting}[language = bash]
gedit ~/.profile
\end{lstlisting}
-在打开的文件末尾添加
+在打开的文件末尾添加刚刚记录的系统提示,
+如
\begin{lstlisting}
# Add TeX Live to the PATH, MANPATH, INFOPATH
export PATH=/usr/local/texlive/2024/bin/x86_64-linux:$PATH
@@ -135,7 +145,7 @@
export INFOPATH=/usr/local/texlive/2024/texmf-dist/doc/info:$INFOPATH
\end{lstlisting}
并保存退出.
-然后退出登录当前用户并重新登录,
+然后退出当前用户并重新登录,
再打开 \textsf{Terminal} 并执行
\begin{lstlisting}[language=bash]
tex -v
@@ -211,92 +221,6 @@
无论将 \TeX{} Live 安装到哪里,
字体的配置文件都可以仿照上面只复制于用户文件夹中.
-\section{卸载 \TeX{} Live}\label{sec:ubuntu:uninstall}
-
-下面提供几种卸载方法,
-卸载后需注意清理环境变量.
-
-\subsection{卸载源内的版本}\label{sec:ubuntu:aptremove}
-
-如果要卸载从源内安装的 \TeX{} Live, 个人比较推荐使用 synaptic package manager.
-在 \textsf{Terminal} 中执行
-\begin{lstlisting}[language = bash]
- sudo apt install synaptic
-\end{lstlisting}
-即可安装.
-安装后打开, 搜索 \textsf{texlive} 即可看到与之相关的包, 右键标记以删除即可.
-当然, 用户也可以直接使用
-\begin{lstlisting}[language = bash]
- dpkg -l | grep 'TeX Live'
-\end{lstlisting}
-找到相应的包名 \texttt{<package name>}, 之后使用类似
-\begin{lstlisting}[language = bash]
- sudo apt autoremove --purge <package name>
-\end{lstlisting}
-的命令删除各个包.
-通常
-\begin{lstlisting}[language = bash]
- sudo apt autoremove --purge tex-common
-\end{lstlisting}
-就可以删除源内版本.
-
-\subsection{手动卸载}
-
-如果是从光盘镜像安装,
-直接删除文件夹即可.
-先在\textsf{Terminal} 中执行
-\begin{lstlisting}[language = bash]
- kpsewhich -var-value TEXMFROOT
-\end{lstlisting}
-来查询安装路径,
-进而通过 \texttt{sudo rm -rf} 命令进行删除.
-默认安装的用户直接运行
-\begin{lstlisting}[language = bash]
- sudo rm -rf /usr/local/texlive/2024
- rm -rf ~/.texlive2024
-\end{lstlisting}
-卸载完成后, 可以进一步移除之前设置的环境变量.
-在 \textsf{Terminal} 中执行
-\begin{lstlisting}[language = bash]
- gedit ~/.profile
-\end{lstlisting}
-然后移除之前在文件末尾添加的
-\begin{lstlisting}
- # Add TeX Live to the PATH, MANPATH, INFOPATH
- export PATH=/usr/local/texlive/2024/bin/x86_64-linux:$PATH
- export MANPATH=/usr/local/texlive/2024/texmf-dist/doc/man:$MANPATH
- export INFOPATH=/usr/local/texlive/2024/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/2024/bin/x86_64-linux:
-\end{lstlisting}
-然后依次 \keys{\ctrl + X}, \keys{Y}, \keys{\enter} 保存退出.
-
-\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}
-
-在 \href{https://www.tug.org/texlive/upgrade.html}{tug.org}
-网站上提供了相应的方法.
-但网站也声明:
-默认情况下,
-请通过执行新安装来获取新版本的 \TeX{} Live%
-\footnote{原文是: By default,
-please get the new TL by doing a new installation instead of proceeding here}.
-
\section{升级宏包}\label{sec:ubuntu:update}
首次升级前,
@@ -309,7 +233,7 @@
/usr/local/texlive/2024/bin/x86_64-linux:
\end{lstlisting}
添加在 \texttt{secure\_path} 中%
-\footnote{这里只讨论默认安装的情况}.
+\footnote{这里只讨论 \texttt{x86\_64} 下默认安装的情况}.
然后依次 \keys{\ctrl + X}, \keys{Y}, \keys{\enter} 保存退出.
接下来在 \textsf{Terminal} 中执行
@@ -404,3 +328,89 @@
安装字体的方法可参考 \ref{sec:addition:font}~节.
编译命令可添加参数, 这里与 \ref{sec:windows:compile}~节中的情形一致.
+
+\section{卸载 \TeX{} Live}\label{sec:ubuntu:uninstall}
+
+下面提供几种卸载方法,
+卸载后需注意清理环境变量.
+
+\subsection{卸载源内的版本}\label{sec:ubuntu:aptremove}
+
+如果要卸载从源内安装的 \TeX{} Live, 个人比较推荐使用 synaptic package manager.
+在 \textsf{Terminal} 中执行
+\begin{lstlisting}[language = bash]
+ sudo apt install synaptic
+\end{lstlisting}
+即可安装.
+安装后打开, 搜索 \textsf{texlive} 即可看到与之相关的包, 右键标记以删除即可.
+当然, 用户也可以直接使用
+\begin{lstlisting}[language = bash]
+ dpkg -l | grep 'TeX Live'
+\end{lstlisting}
+找到相应的包名 \texttt{<package name>}, 之后使用类似
+\begin{lstlisting}[language = bash]
+ sudo apt autoremove --purge <package name>
+\end{lstlisting}
+的命令删除各个包.
+通常
+\begin{lstlisting}[language = bash]
+ sudo apt autoremove --purge tex-common
+\end{lstlisting}
+就可以删除源内版本.
+
+\subsection{手动卸载}
+
+如果是从光盘镜像安装,
+直接删除文件夹即可.
+先在\textsf{Terminal} 中执行
+\begin{lstlisting}[language = bash]
+ kpsewhich -var-value TEXMFROOT
+\end{lstlisting}
+来查询安装路径,
+进而通过 \texttt{sudo rm -rf} 命令进行删除.
+默认安装的用户直接运行
+\begin{lstlisting}[language = bash]
+ sudo rm -rf /usr/local/texlive/2024
+ rm -rf ~/.texlive2024
+\end{lstlisting}
+卸载完成后, 可以进一步移除之前设置的环境变量.
+在 \textsf{Terminal} 中执行
+\begin{lstlisting}[language = bash]
+ gedit ~/.profile
+\end{lstlisting}
+然后移除之前在文件末尾添加的
+\begin{lstlisting}
+ # Add TeX Live to the PATH, MANPATH, INFOPATH
+ export PATH=/usr/local/texlive/2024/bin/x86_64-linux:$PATH
+ export MANPATH=/usr/local/texlive/2024/texmf-dist/doc/man:$MANPATH
+ export INFOPATH=/usr/local/texlive/2024/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/2024/bin/x86_64-linux:
+\end{lstlisting}
+然后依次 \keys{\ctrl + X}, \keys{Y}, \keys{\enter} 保存退出.
+
+\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}
+
+在 \href{https://www.tug.org/texlive/upgrade.html}{tug.org}
+网站上提供了相应的方法.
+但网站也声明:
+默认情况下,
+请通过执行新安装来获取新版本的 \TeX{} Live%
+\footnote{原文是: By default,
+ please get the new TL by doing a new installation instead of proceeding here}.
\ No newline at end of file
Modified: trunk/Master/texmf-dist/doc/latex/install-latex-guide-zh-cn/chapter/windows.tex
===================================================================
--- trunk/Master/texmf-dist/doc/latex/install-latex-guide-zh-cn/chapter/windows.tex 2024-12-31 21:58:25 UTC (rev 73249)
+++ trunk/Master/texmf-dist/doc/latex/install-latex-guide-zh-cn/chapter/windows.tex 2024-12-31 21:58:37 UTC (rev 73250)
@@ -262,73 +262,6 @@
待 \textsf{cmd} 窗口关闭,
环境变量将恢复为原始状态.
-\section{卸载 \TeX{} Live}
-
-在跨版本升级 \TeX{} Live 时, 通常需要卸载旧版 \TeX{} Live.
-下面介绍几种卸载方法.
-
-\subsection{使用批处理文件}
-
-在命令行执行
-\begin{lstlisting}[language=bash]
- kpsewhich -var-value TEXMFROOT
-\end{lstlisting}
-可以查看 \texttt{TEXMFROOT} 的值,
-该值即为 \TeX{} Live 的安装路径%
-\footnote{%
- 除这里提供的 \texttt{TEXMFROOT}, 还有很多其他变量, 可在
- \href{https://www.tug.org/texlive/doc/texlive-zh-cn/texlive-zh-cn.pdf}{texlive-zh-cn}
- 第 2.3 节处找到
-}.
-接下来,
-用户只需执行%
-\footnote{双击或在 \texttt{cmd} 中运行}%
-安装路径中的卸载批处理文件即可实现卸载, 如默认安装时执行
-\begin{lstlisting}[language=bash]
- C:\texlive\2024\tlpkg\installer\uninst.bat
-\end{lstlisting}
-结束以上步骤后,
-手动删除用户文件夹中的 \texttt{.texlive2024}.
-如果用户安装 \TeX{} Live 时需要管理员权限,
-那么在卸载时同样需要管理员权限.
-
-卸载后,
-用户需要清理注册表
-\begin{lstlisting}
- HKEY_CURRENT_USER\Software\Classes\TL.bitmap2eps.convert.2024
- HKEY_CURRENT_USER\Software\Classes\TL.DVIOUT.view.2024
- HKEY_CURRENT_USER\Software\Classes\TL.TeXworks.edit.2024
- HKEY_CURRENT_USER\Software\Classes\TL.PSViewer.view.2024
- HKEY_CURRENT_USER\SOFTWARE\Microsoft\Windows\CurrentVersion\ApplicationAssociationToasts\TL.bitmap2eps.convert.2024_.jpg
- HKEY_CURRENT_USER\SOFTWARE\Microsoft\Windows\CurrentVersion\ApplicationAssociationToasts\TL.bitmap2eps.convert.2024_.png
- HKEY_CURRENT_USER\SOFTWARE\Microsoft\Windows\CurrentVersion\ApplicationAssociationToasts\TL.TeXworks.edit.2024_.sty
- HKEY_CURRENT_USER\SOFTWARE\Microsoft\Windows\CurrentVersion\ApplicationAssociationToasts\TL.TeXworks.edit.2024_.tex
-\end{lstlisting}
-但若在安装时使用管理员权限``为所有人安装'',
-则注册表位置将变为
-\begin{lstlisting}
- HKEY_LOCAL_MACHINE\SOFTWARE\Classes\TL.bitmap2eps.convert.2024
- HKEY_LOCAL_MACHINE\SOFTWARE\Classes\TL.DVIOUT.view.2024
- HKEY_LOCAL_MACHINE\SOFTWARE\Classes\TL.TeXworks.edit.2024
- HKEY_LOCAL_MACHINE\SOFTWARE\Classes\TL.PSViewer.view.2024
-\end{lstlisting}
-
-\subsection{手动卸载}
-
-如果执行批处理文件 \texttt{uninst.bat} 出错,
-用户也可手动删除安装文件夹,
-之后再清理 \TeX{} Live 的环境变量,
-并且清理注册表.
-
-\section{跨版本升级 \TeX{} Live}
-
-目前在 \href{https://www.tug.org/texlive/upgrade.html}{tug.org}
-上面提供的说法是:
-Windows 没有类似 Unix 的升级程序,
-需要进行新安装%
-\footnote{原文是: There is no comparable upgrade procedure for Windows.
-Doing a new installation is necessary.}.
-
\section{升级宏包}\label{sec:windows:update}
安装完成后, 用户可以升级宏包以获得更好的使用体验.
@@ -532,4 +465,71 @@
\begin{lstlisting}[language=bash]
fmtutil-sys --all
\end{lstlisting}
-刷新 \texttt{fmt} 文件后再编译 \texttt{tex} 文件.
\ No newline at end of file
+刷新 \texttt{fmt} 文件后再编译 \texttt{tex} 文件.
+
+\section{卸载 \TeX{} Live}
+
+在跨版本升级 \TeX{} Live 时, 通常需要卸载旧版 \TeX{} Live.
+下面介绍几种卸载方法.
+
+\subsection{使用批处理文件}
+
+在命令行执行
+\begin{lstlisting}[language=bash]
+ kpsewhich -var-value TEXMFROOT
+\end{lstlisting}
+可以查看 \texttt{TEXMFROOT} 的值,
+该值即为 \TeX{} Live 的安装路径%
+\footnote{%
+ 除这里提供的 \texttt{TEXMFROOT}, 还有很多其他变量, 可在
+ \href{https://www.tug.org/texlive/doc/texlive-zh-cn/texlive-zh-cn.pdf}{texlive-zh-cn}
+ 第 2.3 节处找到
+}.
+接下来,
+用户只需执行%
+\footnote{双击或在 \texttt{cmd} 中运行}%
+安装路径中的卸载批处理文件即可实现卸载, 如默认安装时执行
+\begin{lstlisting}[language=bash]
+ C:\texlive\2024\tlpkg\installer\uninst.bat
+\end{lstlisting}
+结束以上步骤后,
+手动删除用户文件夹中的 \texttt{.texlive2024}.
+如果用户安装 \TeX{} Live 时需要管理员权限,
+那么在卸载时同样需要管理员权限.
+
+卸载后,
+用户需要清理注册表
+\begin{lstlisting}
+ HKEY_CURRENT_USER\Software\Classes\TL.bitmap2eps.convert.2024
+ HKEY_CURRENT_USER\Software\Classes\TL.DVIOUT.view.2024
+ HKEY_CURRENT_USER\Software\Classes\TL.TeXworks.edit.2024
+ HKEY_CURRENT_USER\Software\Classes\TL.PSViewer.view.2024
+ HKEY_CURRENT_USER\SOFTWARE\Microsoft\Windows\CurrentVersion\ApplicationAssociationToasts\TL.bitmap2eps.convert.2024_.jpg
+ HKEY_CURRENT_USER\SOFTWARE\Microsoft\Windows\CurrentVersion\ApplicationAssociationToasts\TL.bitmap2eps.convert.2024_.png
+ HKEY_CURRENT_USER\SOFTWARE\Microsoft\Windows\CurrentVersion\ApplicationAssociationToasts\TL.TeXworks.edit.2024_.sty
+ HKEY_CURRENT_USER\SOFTWARE\Microsoft\Windows\CurrentVersion\ApplicationAssociationToasts\TL.TeXworks.edit.2024_.tex
+\end{lstlisting}
+但若在安装时使用管理员权限``为所有人安装'',
+则注册表位置将变为
+\begin{lstlisting}
+ HKEY_LOCAL_MACHINE\SOFTWARE\Classes\TL.bitmap2eps.convert.2024
+ HKEY_LOCAL_MACHINE\SOFTWARE\Classes\TL.DVIOUT.view.2024
+ HKEY_LOCAL_MACHINE\SOFTWARE\Classes\TL.TeXworks.edit.2024
+ HKEY_LOCAL_MACHINE\SOFTWARE\Classes\TL.PSViewer.view.2024
+\end{lstlisting}
+
+\subsection{手动卸载}
+
+如果执行批处理文件 \texttt{uninst.bat} 出错,
+用户也可手动删除安装文件夹,
+之后再清理 \TeX{} Live 的环境变量,
+并且清理注册表.
+
+\section{跨版本升级 \TeX{} Live}
+
+目前在 \href{https://www.tug.org/texlive/upgrade.html}{tug.org}
+上面提供的说法是:
+Windows 没有类似 Unix 的升级程序,
+需要进行新安装%
+\footnote{原文是: There is no comparable upgrade procedure for Windows.
+ Doing a new installation is necessary.}.
\ No newline at end of file
Modified: trunk/Master/texmf-dist/doc/latex/install-latex-guide-zh-cn/chapter/wsl.tex
===================================================================
--- trunk/Master/texmf-dist/doc/latex/install-latex-guide-zh-cn/chapter/wsl.tex 2024-12-31 21:58:25 UTC (rev 73249)
+++ trunk/Master/texmf-dist/doc/latex/install-latex-guide-zh-cn/chapter/wsl.tex 2024-12-31 21:58:37 UTC (rev 73250)
@@ -99,8 +99,9 @@
\end{lstlisting}
用户直接点击 \keys{I} 使用默认配置安装.
如果用户对于 WSL 比较了解, 可以根据提示, 更改安装设置.
+与第~\ref{chap:ubuntu:sec:install}~节一样,
为简化起见,
-以下内容均认为用户进行默认安装.
+以下记录均假定为 \texttt{x86\_64} 上的默认安装.
安装完毕后, 需继续在 \textsf{bash} 中执行
\begin{lstlisting}[language = bash]
sudo umount /mnt/x
@@ -160,14 +161,6 @@
它的用户文件夹往往在主系统的系统盘中.
具体过程也可以参考第~\ref{subsec:ubuntu-user-folder}~节.
-\section{卸载 \TeX{} Live}
-
-WSL 中的方法同 \ref{sec:ubuntu:uninstall}~节.
-
-\section{跨版本升级 \TeX{} Live}
-
-WSL 中的方法同 \ref{sec:ubuntu:version}~节.
-
\section{升级宏包}
WSL 中的方法同 \ref{sec:ubuntu:update}~节.
@@ -316,3 +309,11 @@
在 WSL 中安装字体的方法见 \ref{sec:addition:font}~节.
编译命令可添加参数, 这里与 \ref{sec:windows:compile}~节中的情形一致, 不再赘述.
+
+\section{卸载 \TeX{} Live}
+
+WSL 中的方法同 \ref{sec:ubuntu:uninstall}~节.
+
+\section{跨版本升级 \TeX{} Live}
+
+WSL 中的方法同 \ref{sec:ubuntu:version}~节.
Modified: trunk/Master/texmf-dist/doc/latex/install-latex-guide-zh-cn/install-latex-guide-zh-cn.pdf
===================================================================
(Binary files differ)
More information about the tex-live-commits
mailing list.