TiKZPoster:标题:缺少字符:字体nullfont中没有1!

TiKZPoster:标题:缺少字符:字体nullfont中没有1!

我最近将我的 TexLive 发行版更新到了 2023 版,但在更新过程中,我开始收到许多来自我的警告tikzposter

\documentclass{tikzposter}
%\font\nullfont=cmr10
\title{TikZTests}%
% \author{John Doe}%
% \institute{World Government}%
\begin{document}
\maketitle
\end{document}

编译工作正常时:

latexmk -C  tikzposter.tex && latexmk tikzposter.tex

有许多关于缺少字符的烦人的警告:

Output written on tikzposter.pdf (1 page, 39473 bytes).
Transcript written on tikzposter.log.
Latexmk: Getting log file 'tikzposter.log'
Latexmk: Examining 'tikzposter.fls'
Latexmk: Examining 'tikzposter.log'
Latexmk: Log file says output to 'tikzposter.pdf'
Latexmk: Summary of warnings from last run of *latex:
  =====Latex reported missing or unavailable character(s).
=====See log file for details.
Latexmk: ====List of undefined refs and citations:
  Missing character: There is no 1 in font nullfont!
  Missing character: There is no = in font nullfont!
  Missing character: There is no 1 in font nullfont!
Latexmk: All targets () are up-to-date

有人知道这些是从哪里来的吗?它们仅在\maketitle使用宏时才会显示,有什么方法可以消除这些警告吗?

答案1

这是 tikzposter 的一个错误。它对宏使用了赋值,而不是定义它。

\documentclass{tikzposter}
%\font\nullfont=cmr10
\title{TikZTests}%
% \author{John Doe}%
% \institute{World Government}%


\makeatletter
\define@key{title}{titletextscale}{\def\TP@titletextscale{#1}} %instead of \TP@titletextscale=1
\makeatletter
\begin{document}

\maketitle
\end{document}

相关内容