我尝试过用谷歌搜索,但所有的指南都不清楚,或者我只是太笨了。
这是 pdfTeX,版本 3.14159265-2.6-1.40.19(MiKTeX 2.9.6840 64 位)
编辑 MWE,错误日志与MWE匹配。
假设我有blahblahblah.tex
这样一个文件:
\documentclass[jou]{apa6}
\usepackage[american]{babel}
\usepackage[style=apa,sortcites=true,sorting=nyt,backend=biber]{biblatex}
\DeclareLanguageMapping{american}{american-apa}
\addbibresource{blahblahblah.bib}
\title{Some Title}
\shorttitle{Some short title}
\author{Author 1, Author 2, Author 3}
\leftheader{last name 1, last name 2, last name 3}
\abstract{Abstract content}
\begin{document}
\maketitle
\section{Introduction}
Here is the content with a random citation \parencite{Hi, 1054}.
\printbibliography
\end{document}
以及blahblahblah.bib
这样的文件
@article{blahblah,
title={blah title},
volume={11},
DOI={lsdkvnlskv},
number={1},
journal={bfljenflw},
author={Hi},
year={1054},
month={Jun}
}
运行.tex
文件时出现很多错误。我很困惑。
以下是编辑后的 MWE 的错误日志:
LaTeX Warning: Citation 'Hi' on page 1 undefined on input line 24.
LaTeX Warning: Citation '1054' on page 1 undefined on input line 24.
LaTeX Warning: Empty bibliography on input line 26.
LaTeX Warning: There were undefined references.
Package biblatex Warning: Please (re)run Biber on the file: (biblatex)
blahblahblah (biblatex) and rerun LaTeX afterwards.
Trying to make PK font rtxr at 600 DPI... The METFAONT mode is: ljfour
Running miktex-makemf.exe...
Sorry, but miktex-makemf did not succeed.
The log file hopefully contains the information to get MiKTeX going
again:
Running miktex-ttf2pk.exe...
Sorry, but miktex-makepk did not succeed.
The log file hopefully contains the information to get MiKTeX going
again:
!pdfTeX error: miktex-pdftex.exe (file rtxr): Font rtxr at 600 not
found == Fatal error occurred, no output PDF file produced!
答案1
使用以下 MWE(包filecontents
仅用于将 bib 文件和 TeX 代码合并到一个编译 MWE 中)
\RequirePackage{filecontents}
\begin{filecontents*}{\jobname.bib}
@Book{Goossens,
author = {Goossens, Michel and Mittelbach, Frank and
Samarin, Alexander},
title = {The LaTeX Companion},
edition = {1},
publisher = {Addison-Wesley},
location = {Reading, Mass.},
year = {1994},
}
@Book{adams,
title = {The Restaurant at the End of the Universe},
author = {Douglas Adams},
series = {The Hitchhiker's Guide to the Galaxy},
publisher = {Pan Macmillan},
year = {1980},
}
@article{blahblah,
title={blah title},
volume={11},
DOI={lsdkvnlskv},
number={1},
journal={bfljenflw},
author={welrknewlk, skfjekw},
year={1054},
month={Jun}
}
\end{filecontents*}
\documentclass[jou]{apa6}
\usepackage[american]{babel}
\usepackage{csquotes}
\usepackage[style=apa,sortcites=true,sorting=nyt,backend=biber]{biblatex}
\DeclareLanguageMapping{american}{american-apa}
\addbibresource{\jobname.bib}
\title{Some Title}
\shorttitle{Some short title}
\author{Author 1, Author 2, Author 3}
\leftheader{last name 1, last name 2, last name 3}
\affiliation{xx} % <====================================================
\abstract{abstractedly distracted}
\begin{document}
\maketitle
\section{Introduction}
Here is the content with a random citation~\parencite{Goossens, adams}.
Another citation~\parencite{blahblah}.
\printbibliography
\end{document}
我没有收到任何错误。请注意,我添加了 missing\affiliation{xx}
以消除该警告,并且我使用了\parencite{Goossens, adams}
和来调用名为、和 的\parencite{blahblah}
bib 条目。Goossens
adams
blahblah
然后我得到了结果页面:
您所遇到的字体问题我没有。我使用的是完整的 MiKTeX 安装。请通过 MiKTeX 控制台更新您的系统,并将所有软件包更新到您的系统中。
您可以通过检查以下目录来验证字体是否安装在您的系统上:
rtxr.afm texmf\fonts\afm\public\txfonts
rtxr.pfb texmf\fonts\type1\public\txfonts
rtxr.tfm texmf\fonts\tfm\public\txfonts
对我来说,它们似乎在你的系统中丢失了......