summaryrefslogtreecommitdiff
path: root/makeinfo/tests/node-expand.txi
blob: c31be5a4ebc90467625d973159360d27271ef7ad (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
\input texinfo.tex    @c -*-texinfo-*-

@setfilename node-expand.info

@c Makeinfo should expand non-macros such as @@ and @value
@c in node names and node references, including menus.
@c This file deliberately references "Node 1" both via
@c @value and directly; this should not trigger any errors,
@c as long as --commands-in-node-names is used.
@c Index entries should all be expanded as well.

@set node1 Node 1

@ifnottex

@node Top, (dir), (dir), (dir)
@top Expansion in Node Names

@end ifnottex

@menu
* @value{node1}  ::
* @@node `2'::
* ``node'' with---tricks::
@end menu

@xref{@@node `2'}.

@node @value{node1}, @@node `2', Top, Top
@chapter Chapter 1

@cindex entry for chapter 1
This is chapter 1.
@xref{@@node `2'}.

@set sec1 Section 1.1

@menu
* @value{sec1}::
@end menu

@node Section 1.1, , Node 1, Node 1
@comment  node-name,  next,  previous,  up

@cindex entry for section 1.1
This is section 1.1.

@node @@node `2', ``node'' with---tricks, @value{node1}, Top
@comment  node-name,  next,  previous,  up
@chapter Node 2

@cindex entry for chapter 2
This is chapter 2.
@xref{@value{node1}}.  @xref{Node 1}.
@xref{``node'' with---tricks, Node with some tricks}.

@node ``node'' with---tricks, , @@node `2', Top

@cindex tricks
Another node.

@printindex cp

@bye