跳转至

TeX


Tutorial

TeX Editor

Online Tools

IDE

Convertor

  • Mathpix: Convert images to LaTeX

  • KLatexFormula: an easy-to-use graphical application for generating images (that you can drag and drop, copy and paste or save to disk) from LaTeX equations

TeX发行版

TeX Templates

Install

TeX on ubuntu

TeX Live on Ubuntu

  • install with apt-get

    Bash
    sudo apt install texlive-full
    
    # optional
    # 安装中文字体包,字体包中包含bsmi,bkai,gkai,gbsn四种中文字体
    # bsmi和bkai是Big5编码的宋体和楷体字;后两者gkai和gbsn分别处理简体中文楷体字和宋体字
    sudo apt install latex-cjk-all
    

  • install with iso file: https://mirrors.tuna.tsinghua.edu.cn/CTAN/systems/texlive/Images/

    Bash
    sudo mount -o loop texlive.iso /mnt
    cd /mnt 
    sudo ./install-tl [-gui] # gui: sudo apt-get install perl-tk
    sudo umount /mnt
    

  • config

    ~/.bashrc
    export MANPATH=/usr/local/texlive/2022/texmf-dist/doc/man:$MANPATH
    export INFOPATH=/usr/local/texlive/2022/texmf-dist/doc/info:$INFOPATH
    export PATH=/usr/local/texlive/2022/bin/x86_64-linux:$PATH
    

  • test

    Bash
    tex -v
    

  • tlmgr

    Bash
    sudo mktexlsr
    
    tlmgr init-usertree
    tlmgr update --list # sudo apt install xzdec
    tlmgr --gui # sudo apt install perl-tk
    
    # 永久更改镜像源
    tlmgr option repository https://mirrors.tuna.tsinghua.edu.cn/CTAN/systems/texlive/tlnet
    
    # 临时切换镜像源
    tlmgr update --all --repository \
      https://mirrors.tuna.tsinghua.edu.cn/CTAN/systems/texlive/tlnet
    

TeX with Make

example: jlblancoc/tutorial-se3-manifold

Prerequisites in Ubuntu:

Bash
sudo apt install latexmk texlive texlive-science

Build PDF with:

Bash
make
Makefile
# From: http://tex.stackexchange.com/questions/40738/how-to-properly-make-a-latex-project
# You want latexmk to *always* run, because make does not have all the info.
.PHONY: out.pdf

# First rule should always be the default "all" rule, so both "make all" and
# "make" will invoke it.
all: out.pdf

# MAIN LATEXMK RULE

# -pdf tells latexmk to generate PDF directly (instead of DVI).
# -pdflatex="" tells latexmk to call a specific backend with specific options.
# -use-make tells latexmk to call make for generating missing files.

# -interactive=nonstopmode keeps the pdflatex backend from stopping at a
# missing file reference and interactively asking you for an alternative.

out.pdf: in.tex
    latexmk -pdf -pdflatex="pdflatex -interactive=nonstopmode" -bibtex -use-make in.tex

clean:
    latexmk -CA

Apps

Beamer Slides with LaTeX

Curriculum Vitæ with TeX