summaryrefslogtreecommitdiff
path: root/macros/texinfo/texinfo/tp/tests/layout/formatting.texi
blob: c7e57906fd3a4eb9952ca3c3c16392aac7892504 (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
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
\input texinfo @c -*-texinfo-*-
@setfilename formatting.info

@c valid Texinfo variable can be set to test only valid constructs.
@c in practice ie can be used to output with TeX
@c  texi2pdf -I layout/ -t '@set valid' layout/formatting.texi

@dircategory Formatting @'e @code{@@ @TeX{}} test
@direntry
* Truc: (formatting).           The GNU documentation truc.
* @code{@@ @'e @equiv{}}: (formatting).  ``@asis{--- something}'' 
                           @command{cmd} @`a
@end direntry

@defindex truc
@defcodeindex codeidx

@include coverage_macro.texi

@copying
In copying
@mymacro{}
@end copying

@titlepage
@title title --a
@subtitle formatting subtitle --a
@subtitle subtitle 2 --a
@author author1 --a with accents in name T@'e@,ca
@author author2 --a
In titlepage
@mymacro{}

Insercopying in titlepage
@insertcopying
@end titlepage

@node Top
@top Top section

@menu
* chapter::               chapter

Menu comment

* description:chapter2.   Chapter 2
@end menu


@node chapter
@chapter chapter

@indent
First para

@noindent
qsddsqkdsqkkmljsqjsqodmmdsqdsmqj dqs sdq sqd sdq dsq sdq sqd sqd sdq sdq 
qsd dsq sdq dsq dssdq sdq sdq sdq dsq sdq dsq dsq sdq dsq sdqsd q

@noindent noindent in para.

@indent unneeded indent

Insertcopying in normal text
@insertcopying

Normal text
@mymacro{}

In example.
@example
@set inexample 1
@mymacro{}
@clear inexample
@end example

@cindex t--ruc
@cindex T--ruc
@cindex .
@cindex ?
@cindex a
@findex t--ruc
@findex T--ruc
@findex .
@findex ?
@findex a

@cindex a---a
@cindex b---b @subentry c---c
@cindex d---dd @subentry e---ee @subentry f---ff

@findex f---aa
@findex f---bb @subentry f---cc
@findex f---ddd @subentry f---eee @subentry ffff

@cindex aaa @seeentry{bbb}
@cindex ddd @seealso{ccc}

@findex f---aaa @seeentry{f---bbb}
@findex f---ddd @seealso{f---ccc}

@cindex aaa @sortas{A---S} @subentry @sortas{B---S1} bbb

@findex xxx @sortas{X---S} @subentry @sortas{X---S1} zzz

@cindex
@findex @w{}

@codeidxindex a @var{index---entry} t@~e --- @^{@dotless{i}}

@trucindex truc

@ifclear valid
@c error with texindex: Bad entry; expected 3 to 5 fields, not 6
@cindex g---gg @subentry h---hh jjj @subentry k---kk @subentry l---ll

@findex f---ggg @subentry f---hhh fjjj @subentry f---kkk @subentry f---lll

@c incorrect order.  Cryptic error in TeX
@c  File ended while scanning use of @initialx.
@cindex @seealso{ccc} ddd

@findex @seealso{f---ccc} f---ddd
@end ifclear

@syncodeindex vr cp

Text@footnote{in footnote
@cindex index entry in footnote

Blah

Blih

@cindex counting entry
}

truc

@printindex truc

codeidx

@printindex codeidx

cp
@printindex cp

fn
@printindex fn

vr
@printindex vr

ky
@printindex ky

pg
@printindex pg

tp
@printindex tp



@footnote{in footnote}

@format
@menu 
* s--ect@comma{}ion:: s--ect@comma{}ion

Menu comment
``simple-double--three---four----''@*

@end menu
@end format

@node s--ect@comma{}ion
@section A section

@menu
* subsection:: 

@detailmenu
In detailmenu

* subsubsection ``simple-double--::
* subsubsection three---four----''::
@end detailmenu
@end menu

@node subsection
@subsection subsection

@menu
* subsubsection ``simple-double--::
* subsubsection three---four----''::
@end menu

@anchor{anchor}

@node subsubsection ``simple-double--
@subsubsection subsubsection ``simple-double--

@node subsubsection three---four----''
@subsubsection three---four----''

@node chapter2
@centerchap chapter 2

@printindex cp
@printindex fn

@contents
@shortcontents
@bye