跳转至

Installing the TeX Live (on Linux)

  1. Visit the CTAN archive on the USTC Open Source Software Mirror , Download the http://mirrors.ustc.edu.cn/CTAN/systems/texlive/tlnet/install-tl-unx.tar.gz

  2. Unpack the .tar.gz file

tar -xzvf install-tl-unx.tar.gz
  1. Run the install-tl, which is a Perl script.
cd install-tl-20201230/
sudo perl installl-tl

You can also manually specify the mirror URL:

sudo install-tl -repository http://ftp.ctex.org/mirrors/CTAN/systems/texlive/tlnet/
  1. Wait for the download to finish.

  2. Post installation:

Add the following lines to my ~/.zshrc

export PATH=${PATH}:"/usr/local/texlive/2020/bin/x86_64-linux"
export MANPATH="/usr/local/texlive/2020/texmf-dist/doc/man"
export INFOPATH="/usr/local/texlive/2020/texmf-dist/doc/info"
  1. Run source ~/.zshrc, then try it out!
latex
man latex
info latex # Note: Deepin doesn't have `info`
  1. Configure fonts
sudo cp texlive-fontconfig.conf /etc/fonts/conf.d/09-texlive.conf
sudo fc-cache -fsv

Hundreds of fonts will be available on your computer. Enjoy! (Though it causes a deepin-wine QQ font problem)

  1. Install TeXWorks

The Linux edition of TeX Live doesn't contain TeXworks, but installing it is fairly easy.

sudo apt install texworks
  1. Other useful or useless tools

  2. Overleaf: an online, collaborative \(\mathrm{\LaTeX}\) editor, with quality \(\mathrm{\LaTeX}\) templates for free download.

  3. Mathpix: OCR pick \(\mathrm{\LaTeX}\) math formulas.

sudo apt install snapd
sudo snap install mathpix-snipping-tool

Goodbye 2020!


Just one more thing, append the following line to the /usr/local/texlive/2020/texmf.cnf
to make sure that pdfTeX and dvipdfmx can find the right fonts.

OSFONTDIR = /usr/share/fonts//;/usr/local/share/fonts//;~/.fonts//