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切換到用戶模式。它不會自動切換,也沒有任何配置文件設置。因此,每次激活用戶模式時都必須明確地給出該選項。

 


免責聲明!

本站轉載的文章為個人學習借鑒使用,本站對版權不負任何法律責任。如果侵犯了您的隱私權益,請聯系本站郵箱yoyou2525@163.com刪除。



 
粵ICP備18138465號   © 2018-2025 CODEPRJ.COM