首页
学习
活动
专区
圈层
工具
发布
社区首页 >问答首页 >德州信息,如何处理不可能的下一个/之前?

德州信息,如何处理不可能的下一个/之前?
EN

Stack Overflow用户
提问于 2012-12-11 16:30:44
回答 1查看 157关注 0票数 1

我试图用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文件结构如下:

代码语言:javascript
复制
- Top
|- menu-0
|  |- menu-2
|- menu-1
<list of nodes>

也就是说,menu-2中提到的节点在menu-0中应该有它们的顶节点,而Topmenu-0menu-1中节点的顶层节点。

for节点是menu-0中的第一个节点,return节点是menu-1中的第一个节点,dot-product|join|distinctmenu-2中的最后一个节点,initiallymenu-0的最后一个节点。

顶部节点不能有前/下/上节点..。原因很明显。

根据请求,违规节点:

代码语言:javascript
复制
@node for, with, , Top
@node return, collect, , Top
@node dot-product|join|distinct, , permutations, for
@node initially, , finally, Top

更多的信息。实际上,我可以通过将return节点指定为initially的下一个节点,将initially指定为return的前一个节点来“修复”它。但这并不是期望的效果,因为它们都属于不同的节点集。

另外,整个菜单是这样的:

代码语言:javascript
复制
@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
EN

回答 1

Stack Overflow用户

回答已采纳

发布于 2012-12-11 21:14:03

只需使用没有额外参数的@node for@node return。然后,Texinfo将根据@chapter和其他分段命令自动计算prev/next/up链接。

票数 1
EN
页面原文内容由Stack Overflow提供。腾讯云小微IT领域专用引擎提供翻译支持
原文链接:

https://stackoverflow.com/questions/13824353

复制
相关文章

相似问题

领券
问题归档专栏文章快讯文章归档关键词归档开发者手册归档开发者手册 Section 归档