![我應該在哪裡安裝新格式(.fmt 檔案)到 TeX?](https://rvso.com/image/328800/%E6%88%91%E6%87%89%E8%A9%B2%E5%9C%A8%E5%93%AA%E8%A3%A1%E5%AE%89%E8%A3%9D%E6%96%B0%E6%A0%BC%E5%BC%8F%EF%BC%88.fmt%20%E6%AA%94%E6%A1%88%EF%BC%89%E5%88%B0%20TeX%EF%BC%9F.png)
我從 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”,但它不能解決問題。