尝试执行TexInfo PDF输出时出现错误

时间:2020-03-07 07:42:29

标签: texinfo

https://www.gnu.org/software/texinfo/manual/texinfo/texinfo.html#Short-Sample-Texinfo-File

在上述URL的示例代码中,我正在尝试使用TexInfo输出PDF,但是会发生以下错误。

$ makeinfo --pdf sample.texinfo
sample.texinfo:28: @menu seen before first @node
sample.texinfo:28: perhaps your @top node should be wrapped in @ifnottex rather than @ifinfo?

有没有办法解决这个问题?

1 个答案:

答案 0 :(得分:1)

我也遇到了这个问题,发现an email about this issue主要说明您可以将@menu 放入 @ifnottex块中(我发现奇怪的是官方样本文档不会提供),或者您可以通过编写直接在文件上运行texi2pdf

texi2pdf <FILE>

对我来说非常有效,所以我想它要经过较少的验证。尽管这又很奇怪,因为据我了解,makeinfo --pdf只是texi2pdf的包装。 texi2dvi --pdf也可以。