diff options
Diffstat (limited to 'info/install-latex/appendix/mirror.tex')
-rw-r--r-- | info/install-latex/appendix/mirror.tex | 79 |
1 files changed, 79 insertions, 0 deletions
diff --git a/info/install-latex/appendix/mirror.tex b/info/install-latex/appendix/mirror.tex new file mode 100644 index 0000000000..d386bc1fb5 --- /dev/null +++ b/info/install-latex/appendix/mirror.tex @@ -0,0 +1,79 @@ +\chapter{大陆地区的源}\label{chp:appendix:mirror} + +由于各种不知名的原因, +下载 \TeX{} Live 的 iso 文件或升级宏包时, +系统自动选择的源并没有满足用户关于``附近''的要求. +因此, +很多时候, +用户需要手动选择 CTAN 的源. +目前已搜集到的大陆地区的源见表~\ref{tab:appendix:mirror}. +接下来简述使用大陆地区的源下载 iso 文件和升级宏包. + +\begin{table} + \centering + \caption{大陆地区的源}\label{tab:appendix:mirror} + \begin{tabular}{*{2}{l}} + \hline\hline + 清华大学 & \url{https://mirrors.tuna.tsinghua.edu.cn/CTAN/systems/texlive/}\\ + 北京理工大学 & \url{https://mirrors.bit.edu.cn/CTAN/systems/texlive/}\\ + 北京交通大学 & \url{https://mirror.bjtu.edu.cn/ctan/systems/texlive/}\\ + % 上海科技大学 & \url{https://mirrors-wan.geekpie.club/CTAN/systems/texlive/}\\ + 上海交通大学 & \url{https://mirrors.sjtug.sjtu.edu.cn/ctan/systems/texlive/}\\ + 中国科学技术大学 & \url{https://mirrors.ustc.edu.cn/CTAN/systems/texlive/}\\ + % 浙江大学 & \url{https://mirrors.zju.edu.cn/CTAN/systems/texlive/}\\ + 南京大学 & \url{https://mirrors.nju.edu.cn/CTAN/systems/texlive/}\\ + 华中科技大学 & \url{http://mirrors.hust.edu.cn/CTAN/systems/texlive/}\\ + 重庆大学 & \url{https://mirrors.cqu.edu.cn/CTAN/systems/texlive/}\\ + % 东北大学 & \url{https://mirror.neu.edu.cn/CTAN/systems/texlive/}\\ + 兰州大学 & \url{https://mirror.lzu.edu.cn/CTAN/systems/texlive/}\\ + 腾讯云 & \url{https://mirrors.cloud.tencent.com/CTAN/systems/texlive/}\\ + 华为云 & \url{https://mirrors.huaweicloud.com/CTAN/systems/texlive/}\\ + 阿里云 & \url{https://mirrors.aliyun.com/CTAN/systems/texlive/}\\ + \hline\hline + \end{tabular} +\end{table} + +使用最近的 CTAN 源下载 iso 文件, +实际上是下载 +\begin{lstlisting} + https://mirrors.ctan.org/systems/texlive/Images/texlive2020.iso +\end{lstlisting} +使用大陆的源下载它, +只需将以上网址中的 +\begin{lstlisting} + https://mirrors.ctan.org/systems/texlive/ +\end{lstlisting} +替换为相应的源的地址, +而将 +\begin{lstlisting} + Images/texlive2020.iso +\end{lstlisting} +予以保留. +以清华大学为例, +从清华大学源中下载 iso 镜像文件, +实际上是下载 +\begin{lstlisting} + https://mirrors.tuna.tsinghua.edu.cn/CTAN/systems/texlive/Images/texlive2020.iso +\end{lstlisting} + +同理, +升级宏包也只需要将对应的网址替换为源地址即可. +前面正文中所设置的 +\begin{lstlisting} + tlmgr option repository ctan +\end{lstlisting} +等价于 +\begin{lstlisting} + tlmgr option repository http://mirror.ctan.org/systems/texlive/tlnet +\end{lstlisting} +使用大陆的源升级宏包, +只需将 +\begin{lstlisting} + http://mirror.ctan.org/systems/texlive/ +\end{lstlisting} +替换为大陆源的地址而保留其他部分即可. +依旧以清华大学为例, +那么设置将变为 +\begin{lstlisting} + tlmgr option repository https://mirrors.tuna.tsinghua.edu.cn/CTAN/systems/texlive/tlnet +\end{lstlisting}
\ No newline at end of file |