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