node-expand.txi 1.3 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465
  1. \input texinfo.tex @c -*-texinfo-*-
  2. @setfilename node-expand.info
  3. @c Makeinfo should expand non-macros such as @@ and @value
  4. @c in node names and node references, including menus.
  5. @c This file deliberately references "Node 1" both via
  6. @c @value and directly; this should not trigger any errors,
  7. @c as long as --commands-in-node-names is used.
  8. @c Index entries should all be expanded as well.
  9. @set node1 Node 1
  10. @ifnottex
  11. @node Top, (dir), (dir), (dir)
  12. @top Expansion in Node Names
  13. @end ifnottex
  14. @menu
  15. * @value{node1} ::
  16. * @@node `2'::
  17. * ``node'' with---tricks::
  18. @end menu
  19. @xref{@@node `2'}.
  20. @node @value{node1}, @@node `2', Top, Top
  21. @chapter Chapter 1
  22. @cindex entry for chapter 1
  23. This is chapter 1.
  24. @xref{@@node `2'}.
  25. @set sec1 Section 1.1
  26. @menu
  27. * @value{sec1}::
  28. @end menu
  29. @node Section 1.1, , Node 1, Node 1
  30. @comment node-name, next, previous, up
  31. @cindex entry for section 1.1
  32. This is section 1.1.
  33. @node @@node `2', ``node'' with---tricks, @value{node1}, Top
  34. @comment node-name, next, previous, up
  35. @chapter Node 2
  36. @cindex entry for chapter 2
  37. This is chapter 2.
  38. @xref{@value{node1}}. @xref{Node 1}.
  39. @xref{``node'' with---tricks, Node with some tricks}.
  40. @node ``node'' with---tricks, , @@node `2', Top
  41. @cindex tricks
  42. Another node.
  43. @printindex cp
  44. @bye