summaryrefslogtreecommitdiff
path: root/Master/texmf-dist/doc/latex/install-latex-guide-zh-cn/appendix/mirror.tex
blob: d4a49aaccb8e00e21c5656afc38821cd84d3b550 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
% !TeX root = ../install-latex-guide-zh-cn.tex

\chapter{大陆地区的源}\label{chp:appendix:mirror}

由于各种不知名的原因,
下载 \TeX{} Live 的 iso 文件或升级宏包时,
系统自动选择的源并没有满足用户关于``附近''的要求.
因此,
很多时候,
用户需要手动选择 CTAN 的源.
目前已搜集到的大陆地区的源见表~\ref{tab:appendix:mirror}.
在 CTAN 上面,
也可以找到\href{https://ctan.org/mirrors#Asia}{亚洲镜像列表}%
和\href{https://ctan.org/mirrors/mirmon#cn}{连接情况}.
接下来简述使用大陆地区的源下载 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.bfsu.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://mirrors.hit.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}