Installing the TeX Live
(on Linux
)¶
-
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 -
Unpack the
.tar.gz
file
tar -xzvf install-tl-unx.tar.gz
- Run the
install-tl
, which is aPerl
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/
-
Wait for the download to finish.
-
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"
- Run
source ~/.zshrc
, then try it out!
latex
man latex
info latex # Note: Deepin doesn't have `info`
- 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)
- Install
TeXWorks
The Linux
edition of TeX Live
doesn't contain TeXworks
, but installing it is fairly easy.
sudo apt install texworks
-
Other useful or useless tools
-
Overleaf: an online, collaborative \(\mathrm{\LaTeX}\) editor, with quality \(\mathrm{\LaTeX}\) templates for free download.
-
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//