Skip to content

Tex

install texlive & tex2pdf

sudo mv tex2pdf /usr/bin
tex2pdf --configure
tex2pdf <filename>.tex

there may remind you that not found subfloat.sty

install subfloat.sty

cd subfloat
./install.sh
$ kpsewhich -var-value=TEXMFHOME
/home/litreily/texmf
$ sudo mkdir -p ~/texmf/subfloat
$ cp subfloat.sty ~/texmf/subfloat/
$ sudo texhash

or

sudo cp subfloat.sty /usr/share/latex/subfloat/
# or
sudo cp subfloat.sty /usr/share/texlive/texmf-dist/tex/latex/subfloat/

sudo texhash
  • check subfloat.sty
$ kpsewhich subfloat.sty
/usr/share/texmf/tex/latex/subfloat/subfloat.sty