我在 Ubuntu 上的 texlive 上安装了 texlive-xetex 和 texlive-humanities。我发现在只有 \maketitle 的简单文档中使用 \setmainfont{Aboriginal Serif} 会产生许多警告。
\documentclass[xetex]{beamer}
\usefonttheme{serif}
\usepackage{fontspec}
\setmainfont[Mapping=tex-text]{Aboriginal Serif}
\title{Simple test title}
\author{Jawguy Chooser}
\begin{document}
\begin{frame}
\maketitle
\end{frame}
\end{document}
编译后:
jawguy@salix:~/$ xelatex test.tex
This is XeTeX, Version 3.1415926-2.5-0.9999.3 (TeX Live 2013/Debian)
restricted \write18 enabled.
[snip lots of messages from Babel, beamer, hyperref, fontspec, etc]
No file test.nav.
[1] (./test.aux)
** WARNING ** Annotation out of page boundary.
** WARNING ** Current page's MediaBox: [0 0 362.835 272.126]
** WARNING ** Annotation: [234.549 -0.0126757 241.603 13.0283]
** WARNING ** Maybe incorrect paper size specified.
** WARNING ** Annotation out of page boundary.
** WARNING ** Current page's MediaBox: [0 0 362.835 272.126]
** WARNING ** Annotation: [240.527 -0.0126757 249.573 13.0283]
** WARNING ** Maybe incorrect paper size specified.
** WARNING ** Annotation out of page boundary.
** WARNING ** Current page's MediaBox: [0 0 362.835 272.126]
** WARNING ** Annotation: [248.497 -0.0126757 255.551 13.0283]
** WARNING ** Maybe incorrect paper size specified.
** WARNING ** Annotation out of page boundary.
** WARNING ** Current page's MediaBox: [0 0 362.835 272.126]
** WARNING ** Annotation: [255.547 -0.0126757 261.604 13.0283]
** WARNING ** Maybe incorrect paper size specified.
** WARNING ** Annotation out of page boundary.
** WARNING ** Current page's MediaBox: [0 0 362.835 272.126]
** WARNING ** Annotation: [260.528 -0.0126757 266.586 13.0283]
** WARNING ** Maybe incorrect paper size specified.
** WARNING ** Annotation out of page boundary.
** WARNING ** Current page's MediaBox: [0 0 362.835 272.126]
** WARNING ** Annotation: [265.51 -0.0126757 271.567 13.0283]
** WARNING ** Maybe incorrect paper size specified.
** WARNING ** Annotation out of page boundary.
** WARNING ** Current page's MediaBox: [0 0 362.835 272.126]
** WARNING ** Annotation: [270.491 -0.0126757 276.548 13.0283]
** WARNING ** Maybe incorrect paper size specified.
** WARNING ** Annotation out of page boundary.
** WARNING ** Current page's MediaBox: [0 0 362.835 272.126]
** WARNING ** Annotation: [276.544 -0.0126757 282.602 13.0283]
** WARNING ** Maybe incorrect paper size specified.
** WARNING ** Annotation out of page boundary.
** WARNING ** Current page's MediaBox: [0 0 362.835 272.126]
** WARNING ** Annotation: [281.526 -0.0126757 287.583 13.0283]
** WARNING ** Maybe incorrect paper size specified.
** WARNING ** Annotation out of page boundary.
** WARNING ** Current page's MediaBox: [0 0 362.835 272.126]
** WARNING ** Annotation: [286.507 -0.0126757 292.564 13.0283]
** WARNING ** Maybe incorrect paper size specified.
** WARNING ** Annotation out of page boundary.
** WARNING ** Current page's MediaBox: [0 0 362.835 272.126]
** WARNING ** Annotation: [291.488 -0.0126757 297.546 13.0283]
** WARNING ** Maybe incorrect paper size specified.
** WARNING ** Annotation out of page boundary.
** WARNING ** Current page's MediaBox: [0 0 362.835 272.126]
** WARNING ** Annotation: [297.542 -0.0126757 303.599 13.0283]
** WARNING ** Maybe incorrect paper size specified.
** WARNING ** Annotation out of page boundary.
** WARNING ** Current page's MediaBox: [0 0 362.835 272.126]
** WARNING ** Annotation: [302.523 -0.0126757 308.58 13.0283]
** WARNING ** Maybe incorrect paper size specified.
** WARNING ** Annotation out of page boundary.
** WARNING ** Current page's MediaBox: [0 0 362.835 272.126]
** WARNING ** Annotation: [307.504 -0.0126757 313.562 13.0283]
** WARNING ** Maybe incorrect paper size specified.
** WARNING ** Annotation out of page boundary.
** WARNING ** Current page's MediaBox: [0 0 362.835 272.126]
** WARNING ** Annotation: [312.486 -0.0126757 318.543 13.0283]
** WARNING ** Maybe incorrect paper size specified.
** WARNING ** Annotation out of page boundary.
** WARNING ** Current page's MediaBox: [0 0 362.835 272.126]
** WARNING ** Annotation: [318.539 -0.0126757 328.582 13.0283]
** WARNING ** Maybe incorrect paper size specified.
** WARNING ** Annotation out of page boundary.
** WARNING ** Current page's MediaBox: [0 0 362.835 272.126]
** WARNING ** Annotation: [327.506 -0.0126757 339.541 13.0283]
** WARNING ** Maybe incorrect paper size specified.
** WARNING ** Annotation out of page boundary.
** WARNING ** Current page's MediaBox: [0 0 362.835 272.126]
** WARNING ** Annotation: [339.537 -0.0126757 347.587 13.0283]
** WARNING ** Maybe incorrect paper size specified.
** WARNING ** Annotation out of page boundary.
** WARNING ** Current page's MediaBox: [0 0 362.835 272.126]
** WARNING ** Annotation: [346.51 -0.0126757 353.564 13.0283]
** WARNING ** Maybe incorrect paper size specified.
** WARNING ** Annotation out of page boundary.
** WARNING ** Current page's MediaBox: [0 0 362.835 272.126]
** WARNING ** Annotation: [352.488 -0.0126757 360.538 13.0283]
** WARNING ** Maybe incorrect paper size specified.
)
Output written on test.pdf (1 page).
Transcript written on test.log.
有什么见解吗?总体而言,输出看起来不错,但我可以看到“注释”中有负数,我猜那是负 y 值。这些警告太多了,以至于当我开始制作更复杂的文档时很难找到实际问题。终端每页都会充斥着数百个这样的警告。
编辑:
我把这个问题留待以后再回答,因为我很想得到关于这个问题的更多信息,但我找到了一种解决方法,可以消除大量警告。我可以将 [Scale=0.9] 添加到 \setmainfont 选项中,然后就好了!不再有警告。尽管如此,我既想知道字体大小最终是如何将内容设置为负面位置的,又想找到一种比反复试验更有原则的方法来纠正这种怪异现象(我如何选择一个 Scale 值来纠正任何错误而不会过度纠正?)。