diff options
author | Karl Berry <karl@freefriends.org> | 2022-04-05 21:56:36 +0000 |
---|---|---|
committer | Karl Berry <karl@freefriends.org> | 2022-04-05 21:56:36 +0000 |
commit | 0b40823de70d496fd73b1af4d46e22cd62fd5221 (patch) | |
tree | 90db51b6d6626092123c6721b87857d80620af25 /Master/texmf-dist | |
parent | 02e8fad91e42f53270727f0573f3d04bba8ebaf9 (diff) |
install-latex-guide-zh-cn (1apr22)
git-svn-id: svn://tug.org/texlive/trunk@62922 c570f23f-e606-0410-a88d-b1316a301751
Diffstat (limited to 'Master/texmf-dist')
-rw-r--r-- | Master/texmf-dist/doc/latex/install-latex-guide-zh-cn/appendix/updateinfo.tex | 6 | ||||
-rw-r--r-- | Master/texmf-dist/doc/latex/install-latex-guide-zh-cn/chapter/macos.tex | 62 | ||||
-rw-r--r-- | Master/texmf-dist/doc/latex/install-latex-guide-zh-cn/install-latex-guide-zh-cn.pdf | bin | 754326 -> 758391 bytes |
3 files changed, 55 insertions, 13 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 7956e412a78..05ce69b53d4 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*{v2022.4.1} + +\begin{enumerate} + \item 根据 Dongsheng Deng 提供的内容, 修改 macOS 安装文本 +\end{enumerate} + \section*{v2022.3.1} \begin{enumerate} diff --git a/Master/texmf-dist/doc/latex/install-latex-guide-zh-cn/chapter/macos.tex b/Master/texmf-dist/doc/latex/install-latex-guide-zh-cn/chapter/macos.tex index ec188c6dba7..cf9a4b989bd 100644 --- a/Master/texmf-dist/doc/latex/install-latex-guide-zh-cn/chapter/macos.tex +++ b/Master/texmf-dist/doc/latex/install-latex-guide-zh-cn/chapter/macos.tex @@ -2,11 +2,53 @@ \chapter{macOS}\label{chap:macOS} -\section{安装 Homebrew} +\section{安装 Mac\TeX} + +Mac\TeX{} 是 \TeX{} Live 在 macOS 下的再打包版本, +并额外加入了一些辅助程序. +在 macOS 上安装 Mac\TeX 可以选择以下两种方式: +\begin{description} + \item[直接下载 Mac\TeX{} 安装包进行安装] + 将安装文件下载到本地, + 然后按照安装提示进行安装. + \item[借助 Homebrew 以命令行方式安装] + 先安装 Homebrew, + 然后通过命令行进行在线安装. +\end{description} + +目前比较推荐直接下载 Mac\TeX{} 安装包的安装方式, +因为最近一段时间以来, +大陆用户对 GitHub 的访问极不稳定, +有可能会导致 Homebrew 安装失败. + +\subsection{直接下载 Mac\TeX{} 安装包进行安装} + +\href{https://mirror.ctan.org/systems/mac/mactex/MacTeX.pkg}{下载} Mac\TeX{} 的安装包 \texttt{MacTeX.pkg}, +在系统内点击已下载的 \texttt{MacTeX.pkg} 文件, +根据系统提示进行安装即可. +这个过程与安装 macOS 上的其他软件并无太多不同. + +另外, +用户也可以选择国内各个镜像来下载 \texttt{MacTeX.pkg}. +因其独特性, +用户需调整附录~\ref{chp:appendix:mirror} 中提供的大陆地区的源的网址, +具体来讲, +是将 \texttt{.../texlive} 改为 \texttt{.../mac/mactex}. +例如, +阿里云的镜像地址为 \url{https://mirrors.aliyun.com/CTAN/systems/mac/mactex/}, +北京交通大学的镜像地址为 \url{https://mirror.bjtu.edu.cn/ctan/systems/mac/mactex/}, +其他镜像类似, +不再一一列举. + +\subsection{借助 Homebrew 以命令行方式安装} + +建议用户学习使用 \href{https://brew.sh}{Homebrew}, +Homebrew 是一个包管理工具, +类似 Ubuntu 上面的 \texttt{apt-get}. + +\subsubsection{安装 Homebrew} +Homebrew 安装教程可以在其网站找到, 这里简单列出来: -强烈建议用户使用 \href{https://brew.sh}{Homebrew}. -Homebrew 是一个包管理, 类似 Ubuntu 上面的 \texttt{apt-get}. -安装教程可以在其网站找到, 这里简单列出来: \begin{lstlisting}[language=bash] /usr/bin/ruby -e "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/master/install)" \end{lstlisting} @@ -30,7 +72,7 @@ Homebrew 是一个包管理, 类似 Ubuntu 上面的 \texttt{apt-get}. source ~/.zshrc \end{lstlisting} -\subsection{Xcode} +\subsubsection{Xcode} 根据 \href{https://docs.brew.sh/Xcode\#supported-xcode-versions}{Homebrew 网站}的提示\footnote{原文是 Homebrew supports and recommends the latest Xcode and/or Command Line Tools available for your platform}, 推荐用户在安装 Homebrew 前先安装 Xcode. @@ -39,9 +81,9 @@ Homebrew 是一个包管理, 类似 Ubuntu 上面的 \texttt{apt-get}. xcode-select --install \end{lstlisting} -\section{安装 Mac\TeX} +\subsubsection{安装 Mac\TeX} -Mac\TeX{} 是 \TeX{} Live 在 macOS 下的再打包版本, 额外加入了一些辅助程序. 如果已经安装了 Homebrew, +安装 Homebrew 后, 只需在\textsf{终端}执行以下命令即可完成安装: \begin{lstlisting}[language=bash] brew cask install mactex @@ -55,12 +97,6 @@ Mac\TeX{} 是 \TeX{} Live 在 macOS 下的再打包版本, 额外加入了一些 \end{lstlisting} 安装完成后 Basic\TeX{} 依然会缺很多包, 手动安装会比较麻烦, 所以不推荐没有经验的用户尝试. -如果不通过 Homebrew 安装 Mac\TeX, -可以直接\href{https://mirrors.ctan.org/systems/mac/mactex/MacTeX.pkg}{下载}% -它的安装包而后手动安装. -同样可以考虑更换大陆镜像进行下载, -具体请参考附录~\ref{chp:appendix:mirror}. - \section{卸载 Mac\TeX} 如果用户借助 Homebrew cask 安装了 Mac\TeX, 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 Binary files differindex 5b56b135f4f..bbab5e21eb1 100644 --- 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 |