其他分享
首页 > 其他分享> > 安装 Tex Live (含镜像源更换)

安装 Tex Live (含镜像源更换)

作者:互联网

操作环境:windows 10
【参考】https://tug.org/texlive/acquire-netinstall.html

Tips: Tex Live 安装耗时较久,请预留足够的时间(我安装的耗时在2-4小时之间)

  1. Tex Live : http://tug.org/texlive/
  2. CTAN : https://www.ctan.org/

1. 使用 iso 安装 Tex Live

  1. 前往 https://www.ctan.org/mirrors 挑选合适的镜像源(纠结的话,选择离自己比较近的即可)
    1. 我这儿选择了阿里云镜像源:https://mirrors.aliyun.com/CTAN/systems/texlive/Images/
  2. 在镜像站内,选择下载合适的 Tex Live iso 文件,如 texlive.iso https://mirrors.aliyun.com/CTAN/systems/texlive/Images/texlive.iso
  3. 打开 texlive.iso 运行 install-tl-windows.bat (若给全体用户安装,需要手动选择管理员模式)
  4. 按照安装程序的提示,配置 Tex Live 安装位置等参数
  5. 等待安装程序执行(耗时相当久,有大量的小文件)
  6. latex -version 命令检查是否配置正确

2. 在线安装 Tex Live

  1. 运行 install-tl-windows.exe

    1. 或解压 install-tl.zip 运行 install-tl-windows.bat
    2. 若给全体用户安装,需要手动选择管理员模式
  2. 在弹出的 install-tl-gui 窗口中,迅速选择镜像源

    1. 窗口只呈现较短时间
    2. 未选择则将使用默认镜像源(网速较慢)
    3. 此处选择了阿里云镜像站 CTAN 镜像源 https://mirrors.aliyun.com/CTAN/
      阿里云镜像站 CTAN 镜像源
  3. 按照安装程序的提示,配置 Tex Live 安装位置等参数

  4. 等待安装程序执行(耗时相当久,有大量的小文件)

  5. latex -version 命令检查是否配置正确(否则需要手动配置环境变量)

3. 后期修改 Tex Live 镜像源

【参考】https://developer.aliyun.com/mirror/CTAN
此处使用阿里云镜像站 CTAN 镜像源

临时切换,可以用如下命令:

# update --all 参数可根据需要修改
tlmgr update --all --repository https://mirrors.aliyun.com/CTAN/systems/texlive/tlnet

长期更换,可以使用如下命令:

tlmgr option repository https://mirrors.aliyun.com/CTAN/systems/texlive/tlnet

标签:CTAN,Tex,Live,https,镜像,texlive
来源: https://blog.csdn.net/m0_49270962/article/details/121892934