latex学习(四)tlmgr

官网说明文档:https://tug.org/texlive/doc/tlmgr.html

1、用tlmgr查看已经安装的包

tlmgr list --only-installed

还可以顺便查看,那些包已经安装了

tlmgr list --only-installed | grep fontspec

 2、配置文件:tlmgr reads two configuration files: one is system-wide, in TEXMFSYSCONFIG/tlmgr/config, and the other is user-specific, in TEXMFCONFIG/tlmgr/config. The user-specific one is the default for the conf tlmgr action. (Run kpsewhich -var-value=TEXMFSYSCONFIG or ... TEXMFCONFIG ... to see the actual directory names.)

tlmgr读取两个配置文件:一个是系统范围的,在TEXMFSYSCONFIG / tlmgr / config中,另一个是用户特定的,在TEXMFCONFIG / tlmgr / config中。 用户特定的是conf tlmgr操作的默认值。 (运行kpsewhich -var-value = TEXMFSYSCONFIG或... TEXMFCONFIG ...以查看实际的目录名称。)

3、用户模式:tlmgr provides a restricted way, called ``user mode'', to manage arbitrary texmf trees in the same way as the main installation. For example, this allows people without write permissions on the installation location to update/install packages into a tree of their own.

tlmgr提供了一种限制方式,称为“用户模式”,以与主安装相同的方式管理任意texmf树。例如,这允许没有安装位置写权限的人将包更新/安装到自己的树中。

Before using tlmgr in user mode, you have to set up the user tree with the init-usertree action. This creates usertree/web2c and usertree/tlpkg/tlpobj, and a minimal usertree/tlpkg/texlive.tlpdb. At that point, you can tell tlmgr to do the (supported) actions by adding the --usermode command line option.

在用户模式下使用tlmgr之前,必须使用init-usertree操作设置用户树。这将创建usertree / web2c和usertree / tlpkg / tlpobj,以及最小的usertree / tlpkg / texlive.tlpdb。此时,您可以通过添加--usermode命令行选项告诉tlmgr执行(支持的)操作。

tlmgr is switched into user mode with the command line option --usermode. It does not switch automatically, nor is there any configuration file setting for it. Thus, this option has to be explicitly given every time user mode is to be activated.

使用命令行选项--usermode将tlmgr切换到用户模式。它不会自动切换,也没有任何配置文件设置。因此,每次激活用户模式时都必须明确地给出该选项。

4、

猜你喜欢

转载自www.cnblogs.com/litifeng/p/10562804.html