我應該在哪裡安裝新格式(.fmt 檔案)到 TeX?

我應該在哪裡安裝新格式(.fmt 檔案)到 TeX?

我從 texlive 套件手動安裝了 TeX 的 web2c 版本。我正在使用Linux。該格式已為我的使用者安裝,並且如果我將 .fmt 檔案放在 ~/.texlive2014/texmf-var/web2c/tex/ 下,則該格式可以工作。但我想為所有用戶安裝該格式。

我的系統中的一些 kpathsea 變數應該有用:

TEXMFMAIN=/opt/texlive/texmf-dist
TEXMFDIST=/opt/texlive/texmf-dist
TEXMFLOCAL=/opt/texmf-local
TEXMFSYSVAR=/opt/texlive/texmf-var
TEXMFSYSCONFIG=/opt/texlive/texmf-config
TEXMFVAR=/home/harry/.texlive2014/texmf-var
TEXMFCONFIG=/home/harry/.texlive2014/texmf-config
TEXMFHOME=/home/harry/texmf
VARTEXFONTS=/home/harry/.texlive2014/texmf-var/fonts
TEXMF={/home/harry/.texlive2014/texmf-config,/home/harry/.texlive2014/texmf-var,/home/harry/texmf,!!/opt/texlive/texmf-config,!!/opt/texlive/texmf-var,!!/opt/texmf-local,!!/opt/texlive/texmf-dist}
SYSTEXMF=/opt/texlive/texmf-var:/opt/texmf-local:/opt/texlive/texmf-dist
TEXMFDBS={!!/opt/texlive/texmf-config,!!/opt/texlive/texmf-var,!!/opt/texmf-local,!!/opt/texlive/texmf-dist}
WEB2C={/home/harry/.texlive2014/texmf-config,/home/harry/.texlive2014/texmf-var,/home/harry/texmf,!!/opt/texlive/texmf-config,!!/opt/texlive/texmf-var,!!/opt/texmf-local,!!/opt/texlive/texmf-dist}/web2c
TEXPSHEADERS=.:{/home/harry/.texlive2014/texmf-config,/home/harry/.texlive2014/texmf-var,/home/harry/texmf,!!/opt/texlive/texmf-config,!!/opt/texlive/texmf-var,!!/opt/texmf-local,!!/opt/texlive/texmf-dist}/{dvips,fonts/{enc,type1,type42,type3}}//
TEXCONFIG={/home/harry/.texlive2014/texmf-config,/home/harry/.texlive2014/texmf-var,/home/harry/texmf,!!/opt/texlive/texmf-config,!!/opt/texlive/texmf-var,!!/opt/texmf-local,!!/opt/texlive/texmf-dist}/dvips//
ENCFONTS=.:{/home/harry/.texlive2014/texmf-config,/home/harry/.texlive2014/texmf-var,/home/harry/texmf,!!/opt/texlive/texmf-config,!!/opt/texlive/texmf-var,!!/opt/texmf-local,!!/opt/texlive/texmf-dist}/fonts/enc//
TEXFONTMAPS=.:{/home/harry/.texlive2014/texmf-config,/home/harry/.texlive2014/texmf-var,/home/harry/texmf,!!/opt/texlive/texmf-config,!!/opt/texlive/texmf-var,!!/opt/texmf-local,!!/opt/texlive/texmf-dist}/fonts/map/{kpsewhich,pdftex,dvips,}//

我嘗試將文件安裝在 /opt/texmf-local/web2c/tex/、/opt/texlive/2014/texmf-dist/web2c/tex/ 和 /opt/texlive/texmf-var/web2c/tex/ 處,但是它不起作用。 TeX 抱怨「我找不到格式檔案」。

我也嘗試使用“fmtutil-sys --all”,但它不能解決問題。

相關內容