latex学习(四)tlmgr

官网说明文档:https://tug.org/texlive/doc/tlmgr.html,2018版已经被冻结了,所以tlmgr也不会更新了,要等到下一个大的版本才能更新。

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 ...以查看实际的目录名称。)附注:TEXMFSYSVAR是texlive的一个变量,默认对应的目录是texmf-var,全称是:/texlive/2018/texmf-var

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切换到用户模式。它不会自动切换,也没有任何配置文件设置。因此,每次激活用户模式时都必须明确地给出该选项。

 

转载于:https://www.cnblogs.com/litifeng/p/10562804.html

  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论

“相关推荐”对你有帮助么?

  • 非常没帮助
  • 没帮助
  • 一般
  • 有帮助
  • 非常有帮助
提交
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值