在 TeX 系统中安装缺失的 package
例如 w32tex2017, 缺失 esvect.sty
! LaTeX Error: File `esvect.sty' not found.
首先到 CPAN 网站下载 esvect.zip
然后解压缩到下面的目录 D:\TeX\w32tex2017\share\texmf-dist\tex\latex\
这里有 .ins 和 .dtx 文件. 使用 latex 编译 esvect.ins 文件以生成 esvect.sty
latex esvect.ins
然后运行 texhash.exe, 更新 FN 数据库(FNDB)
如果是 TeXLive, 使用管理员打开 cmd,
C:\WINDOWS\system32>where texhash
D:\texlive\2021\bin\win32\texhash.exe
C:\CTEX\MiKTeX\miktex\bin\texhash.exe
C:\WINDOWS\system32>texhash
texhash: Updating D:/texlive/texmf-local/ls-R...
texhash: Updated D:/texlive/texmf-local/ls-R.
texhash: Updating D:/texlive/2021/texmf-config/ls-R...
texhash: Updated D:/texlive/2021/texmf-config/ls-R.
texhash: Updating D:/texlive/2021/texmf-var/ls-R...
texhash: Updated D:/texlive/2021/texmf-var/ls-R.
texhash: Updating D:/texlive/2021/texmf-dist/ls-R...
texhash: Updated D:/texlive/2021/texmf-dist/ls-R.
texhash: Done.