我试图用Texinfo格式编写文档(我猜,Emacs必须是传统的)。这是个噩梦..。无论如何,我可以达到这样的目的:源代码给我的错误比我开始的时候要少,但是错误是不可能理解的,因此无法修复。
所有的错误归结为“坏”下一个/上一个/向上节点。它们都发生在没有“下一步”、“先前”和“向上”节点的地方。也就是说,列表中的最后一个节点没有下一个节点,类似地,第一个节点不能有前一个节点,顶级节点不能有一个“向上”节点。节点。以下是我得到的确切信息:
./iterate/info/i-iterate.texi:385:节点
dot-product|join|distinct' not pointed to (perhaps incorrect sectioning?). ./i-iterate/info/i-iterate.texi:392: This node (return) has the bad Prev. ./i-iterate/info/i-iterate.texi:199: Next field of node的下一个字段最初“未指向”(可能是不正确的分段吗?) ./i-iterate/info/i-iterate.texi:120:这个节点(for)有坏的Prev。 ./i-iterate/info/i-iterate.texi:29:节点“to”的下一个字段没有指向(可能是不正确的分段吗?) ./i-iterate/info/i-iterate.texi:120:这个节点(for)有坏的Prev。
我的texti文件结构如下:
- Top
|- menu-0
| |- menu-2
|- menu-1
<list of nodes>也就是说,menu-2中提到的节点在menu-0中应该有它们的顶节点,而Top是menu-0和menu-1中节点的顶层节点。
for节点是menu-0中的第一个节点,return节点是menu-1中的第一个节点,dot-product|join|distinct是menu-2中的最后一个节点,initially是menu-0的最后一个节点。
顶部节点不能有前/下/上节点..。原因很明显。
根据请求,违规节点:
@node for, with, , Top
@node return, collect, , Top
@node dot-product|join|distinct, , permutations, for
@node initially, , finally, Top更多的信息。实际上,我可以通过将return节点指定为initially的下一个节点,将initially指定为return的前一个节点来“修复”它。但这并不是期望的效果,因为它们都属于不同的节点集。
另外,整个菜单是这样的:
@menu
* for:: A multi-purpose driver for doing variety of things.
* with:: A driver for variable declaration.
* generate:: A general purpose generator driver.
* repeat:: A simple driver for performing iteration N number of itmes.
* finally:: A driver that runs when the iteration finishes normally.
* initially:: A driver that runs before any code in the iteration.
@end menu
@strong{Keywords}
@menu
* return:: Returns the control flow to the form outside the loop.
* collect:: Generates a list with the cells being the experssion given.
* hash:: Generates a hash-table with the provided keys and values.
* skip:: Skips the execution of the rest of the loop body.
* previous:: Gives the value of the variable from the previous iteration.
* next:: Gives the value of the variable from the next iteration.
* output:: Prints the variable to the dedicated stream.
* insert:: Generates a vector and inserts elements into it.
* minimize:: Finds the minimum value of the variable.
* maximize:: Finds the maximum value of the variable.
* count:: Counts the number ot times this expression was executed.
* sum:: Sums the values of this variable.
* multiply:: Multiplies the values of this variable.
* reduce:: General purpose accumulation handler.
@end menu
@node for, with, , Top
@chapter Multi-purpose driver
... description of what for node is ...
@strong{For continuations}
@menu
* in|on:: Iterates over lists.
* upfrom|from|downfrom:: Iterates numberically.
* across|reverse|binary:: Iterates over arrays.
* depth-first|breadth-first:: Iterates over trees.
* keys|values|pairs:: Iterates over hash-tables.
* random:: Produces unique random each iteration.
* chars|words|lines:: Iterates over entities in buffer.
* permutations:: Generates permutation of an array.
* dot-product|join|distinct:: Iterates over sets.
@end menu发布于 2012-12-11 21:14:03
只需使用没有额外参数的@node for和@node return。然后,Texinfo将根据@chapter和其他分段命令自动计算prev/next/up链接。
https://stackoverflow.com/questions/13824353
复制相似问题