Tex
install texlive & tex2pdf
install texlive
sudo apt-get install texliveinstall tex2pdf https://sourceforge.net/projects/tex2pdf.berlios/
sudo mv tex2pdf /usr/bin
tex2pdf --configure
tex2pdf <filename>.texthere may remind you that not found subfloat.sty
install subfloat.sty
download
subfloat.styhttps://ctan.org/tex-archive/macros/latex/contrib/subfloatunzip this .zip file
cd subfloat
./install.sh$ kpsewhich -var-value=TEXMFHOME
/home/litreily/texmf
$ sudo mkdir -p ~/texmf/subfloat
$ cp subfloat.sty ~/texmf/subfloat/
$ sudo texhashor
sudo cp subfloat.sty /usr/share/latex/subfloat/
# or
sudo cp subfloat.sty /usr/share/texlive/texmf-dist/tex/latex/subfloat/
sudo texhashcheck subfloat.sty
$ kpsewhich subfloat.sty
/usr/share/texmf/tex/latex/subfloat/subfloat.styLast updated
Was this helpful?