texlive中手动安装latex包

有tlmgr就用它,

没有,可以下载源文件安装:
1. download the package files, especially the ins and dtx file
2. compile the ins file (latex name.ins). that should result in a name.sty file.
3. create a directory for the new package: sudo mkdir /usr/share/texmf-texlive/tex/latex/name/
4. copy name.sty to the latex directory: sudo cp /usr/share/texmf-texlive/tex/latex/name/
(note, you can also store them in your home directory, but I haven’t tried that yet)
5. important: be sure the file has permissions: -rw-r–r–. If in doubt, run sudo chmod 644 name.sty
6. update latex to recognize the new package by running texhash /usr/share/texmf-texlive
7. OPTIONAL – compile latex name.dtx to get the documentation

转自:Judson’s Notes

发表评论

电子邮件地址不会被公开。 必填项已用*标注