LaTeX 笔记---Q&A

Q: Is it possible to check which package do I need to install to get certain .sty file from tlmgr rather than googling it or going to CTAN?

A:

$ tlmgr search --global --file cfr-lm.sty
tlmgr: package repository http://mirror.ox.ac.uk/sites/ctan.org/systems/texlive/tlnet
cfr-lm:
        texmf-dist/tex/latex/cfr-lm/cfr-lm.sty

You should try this:

tlmgr --help


Q: Basic utility of tlmgr.

A:

tlmgr manages an existing TeX Live installation, both packages and configuration options.
After successfully installing TeX Live, here are a few common operations with "tlmgr":
tlmgr option repository http://mirror.ctan.org/systems/texlive/tlnet
Tell "tlmgr" to use a nearby CTAN mirror for future updates; useful if you installed TeX Live from the DVD image and want continuing updates.
tlmgr update --list
Report what would be updated without actually updating anything.

tlmgr update --all
Make your local TeX installation correspond to what is in the package repository (typically useful when updating from CTAN).
tlmgr info what
Display detailed information about a package what, such as the installation status and description, of searches for what in all packages.

posted @ 2016-09-18 11:20  Pat  阅读(458)  评论(0编辑  收藏  举报