https://www.gnu.org/software/texinfo/manual/texinfo/texinfo.html#Short-Sample-Texinfo-File
In the sample code of the above URL, using TexInfo, I am trying to output PDF, but the following error occurs.
$ 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?
Is there a way to solve this problem?