!pdfTeX error: pdflatex (file txmiaX): Font txmiaX at 600 not found 字体txmiaX缺失

2021-02-13 21:51发布

## 编译环境 操作系统 * [ ] Windows 7/8/10 * [ ] macOS * [x] Linux `若需勾选,请把[ ]改成[x]` Tex发行版 * [x] TexLive `2...

## 编译环境 操作系统 * [ ] Windows 7/8/10 * [ ] macOS * [x] Linux `若需勾选,请把[ ]改成[x]` Tex发行版 * [x] TexLive `2020` * [ ] MikTeX `版本号` * [ ] CTeX `若需勾选,请把[ ]改成[x]` ## 我的问题 这是一个环境搭建的问题,由于full包太大,我只安装了`texlive-core`和`texlive-langchinese`并配合`texlive-localmanager-git` 使用。 我在vscode下编译一个.tex文件: ```rst % !TEX program = pdflatex \documentclass{article} \usepackage{hyperref} \usepackage[round]{natbib} \usepackage{newtxtext,newtxmath} \author{Dongsheng Deng} \title{Configuration of Visual Studio Code for \LaTeX{} Users} \date{\today} \begin{document} \maketitle Lorem ipsum dolor sit amet, consectetur adipisicing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat.Duis aute irure dolor in reprehenderit in voluptate velit esse cillum dolore eu fugiat nulla pariatur. Excepteur sint occaecat cupidatat non proident, \cite{GraffZivin2018} sunt in culpa qui officia deserunt mollit anim id est laborum. \begin{equation} a^2+b^2=c^2 \end{equation} \bibliography{info} \bibliographystyle{plainnat} \end{document} ``` 报错!pdfTeX error: pdflatex (file txmiaX): Font txmiaX at 600 not found 字体txmiaX缺失 没找到字体txmiaX于是我用**tllocalmgr**去搜索缺失的字体txmiaX文件,需要安装两个包: ```shell tllocalmgr> searchfiles txmiaX newtx: RELOC/fonts/afm/public/newtx/txmiaX.afm RELOC/fonts/tfm/public/newtx/txmiaX.tfm RELOC/fonts/type1/public/newtx/txmiaX.pfb tex4ht: texmf-dist/tex4ht/ht-fonts/alias/txmiaX/ntx-Regular-osf-ot1.htf texmf-dist/tex4ht/ht-fonts/alias/txmiaX/ntx-Regular-tlf-ot1.htf texmf-dist/tex4ht/ht-fonts/alias/txmiaX/ntx-Regular-tosf-ot1.htf texmf-dist/tex4ht/ht-fonts/alias/txmiaX/zncmia.htf texmf-dist/tex4ht/ht-fonts/unicode/txmiaX/ntx-Regular-lf-ot1.htf texmf-dist/tex4ht/ht-fonts/unicode/txmiaX/ntxmia.htf ``` 我使用install 命令安装这两个包,都显示我在texlive-core中已经包含了,我尝试update并且执行texhash刷新了,可是还是遇到这个问题:!pdfTeX error: pdflatex (file txmiaX): Font txmiaX at 600 not found . 求助社区我该如何解决这个问题?
1条回答
LinXiaoDe
2021-02-15 21:02
已解决,texlive-core + texlive-langchinese + texlive-localmanager-git 的组合可能还是不如full包来的简便,虽然时间稍微长了点。。archlinux一行命令解决: ```bash yay -R texlive-full ```

一周热门 更多>