code:
\input texinfo @c -*-texinfo-*-

@node Top
@top Test for indices
@menu
* node with ftable and vtable::
* node with printindex::
* indices refs::
@end menu

@node node with ftable and vtable
@chapter first node chapter, with ftable and vtable

@cindex index entry in node

Some text
@cindex an second index entry in node

@vtable @bullet
@item var1
@itemx var2
var1 et var2
@end vtable

an ftable
@ftable @bullet
@item fun1
@itemx fun2
fun1 et fun2
@item more fun
and even more
@end ftable

@node node with printindex
@chapter node with printindex

@printindex fn
@printindex vr
@printindex cp

@node indices refs
@chapter Indices refs
@menu
* node::       node
@end menu
@cindex concept
@cindex aoncept
@cindex zoncept
@cindex eoncept
@cindex roncept
@cindex toncept
@cindex yoncept
@cindex uoncept
@cindex ioncept
@cindex ooncept
@cindex poncept
@cindex qoncept
@cindex concep
@cindex rsconcept
@cindex soncept
@cindex doncept
@cindex foncept
@cindex goncept
@cindex honcept
@cindex joncept
@cindex koncept
@cindex loncept
@cindex moncept
@cindex roncept
@cindex woncept
@cindex xoncept
@cindex voncept
@cindex boncept
@cindex noncept
@cindex ,oncept
@cindex ?oncept
@cindex ;oncept
@cindex /oncept
@cindex !oncept
@cindex cancept
@cindex czncept
@cindex cencept
@cindex ctncept
@cindex cyncept
@cindex cuncept
@cindex cincept
@cindex concept
@cindex cpncept
@cindex cqncept
@cindex csncept
@cindex cdncept
@cindex cfncept
@cindex cgncept
@cindex chncept
@cindex cjncept
@cindex ckncept
@cindex clncept
@cindex cmncept
@cindex csdcept
@cindex cxncept
@cindex cvncept
@cindex cbncept
@cindex cnncept
@cindex c,ncept
@cindex crncept
@cindex concept
@cindex concept
@cindex concept
@cindex concept
@cindex concept
@cindex concept
@cindex concept
@cindex concept
@cindex concept
@cindex concept
@cindex concept
@cindex concept
@cindex concept
@cindex concept
@cindex concept
@cindex concept
@cindex concept
@cindex concept
@cindex concept
@cindex concept
@cindex concept
@cindex concept
@cindex concept
@cindex concept
@cindex concept
@cindex concept
@cindex concept
@cindex concept
@cindex concept
@cindex concept
@cindex concept
@cindex concept
@cindex concept
@cindex concept
@cindex concept
@cindex concept
@cindex concept
@cindex concept
@cindex concept
@cindex concept
@cindex concept
@cindex concept
@cindex concept
@cindex concept
@cindex concept
@cindex concept
@cindex concept
@cindex concept
@cindex concept
@cindex concept
@cindex concept
@cindex concept
@cindex concept
@cindex concept
@cindex concept
@cindex concept
@cindex concept
@cindex concept
@cindex concept
@cindex concept
@cindex concept
@cindex concept
@cindex concept
@cindex concept
@cindex concept
@cindex concept
@cindex concept
@cindex concept
@c @printindex fn
@c @printindex vr

@printindex cp

@node node,,,
@section node

A section following the indices.

@contents
@bye


code:
set_default('SPLIT', 'chapter');

# if set and $SPLIT is set, then split index pages at the next letter
# after they have more than that many entries
set_default('SPLIT_INDEX', 6);

repo_name: mthl/texinfo

license: mit


code:
\input texinfo @c -*-texinfo-*-
@setfilename more_unknown_index_entry.info

@node Top
@top Top

@someindex someindex entry.

@defindex some

@menu
* chapter node::
@end menu

@node chapter node
@chapter Chapter

@cindex someindex entry.

Some text.

@someindex someindex entry.

@printindex cp

@bye


code:
\input texinfo @c -*-texinfo-*-

@setfilename index_nodes

@node first before top, Top, ,(dir)
@cindex first before top
@printindex cp
in first node
@menu
* node in menu before top::
@end menu

@node node in menu before top,,,first before top

@cindex node in menu before top
@printindex cp
node in menu before top text

@cindex printindex node in menu before top

@node Top, ,first before top
@cindex entry a

@printindex cp

@printindex fn

And one one more index

@printindex cp

@menu
* first::
@end menu

@node first,,Top, Top
Text and then index entries
@cindex ! entry in node
@findex fun in node
@cindex entry in node

@printindex cp

@menu
* second::
@end menu

@node second,,,first
@menu
* a node::
* another::
@end menu

@printindex fn

@node another, , a node, second

@cindex something
@findex somewhere
@cindex another

@node a node, another, ,second
@cindex entry after printindex

@printindex cp

@findex a function
@cindex a concept a node

@printindex cp

@bye


code:
\input texinfo @c -*-texinfo-*-

@setfilename more_before_top_section

@node first before top, Top, ,(dir)
@cindex first before top

in first node before printindex
@printindex cp
in first node
@printindex cp
after second printindex in first node
@menu
* node in menu before top::
@end menu

@node node in menu before top,,,first before top

@cindex node in menu before top
between node in menu before top and printindex
@printindex cp
node in menu before top text after printindex

@cindex printindex node in menu before top

@node Top, ,first before top
@cindex entry a
in top node.
@printindex cp

@printindex fn

And one more index in top node

@printindex cp

@top top section
@cindex top section

in top section

@menu
* first::
* chapter::
* node in chapter::
@end menu

@node first,,Top, Top
Text and then index entries
@cindex ! entry in node
@findex fun in node
@cindex entry in node

@printindex cp

@menu
* second::
@end menu

@node second,,,first
@menu
* a node::
* another::
@end menu

@printindex fn

@node another, , a node, second

@cindex something
@findex somewhere
@cindex another

@node a node, another, ,second
@cindex entry after printindex

@printindex cp

@findex a function
@cindex a concept a node

@printindex cp

@node chapter,node in chapter,,Top
@chapter A chapter

@printindex cp

@node node in chapter,, chapter,Top

@cindex node in chapter

@bye


code:
\input texinfo.tex    @c -*-texinfo-*-

@setfilename printindex_between_node_section.info

@node Top
@top top

@cindex top1
@cindex top1
@cindex top1
@cindex top1
@cindex top1
@cindex top1
@cindex top1
@cindex top1
@cindex top1
@cindex aop1
@cindex aop1
@cindex aop1
@cindex aop1
@cindex aop1
@cindex aop1
@cindex aop1

@menu
* node chap1::
@end menu

@node node chap1
@chapter chapter 1

@menu
* node sec1::
@end menu

@node node sec1
@printindex cp
@section section1

@bye


code:
\input texinfo.tex    @c -*-texinfo-*-

@setfilename printindex_between_part_chapter.info

@node Top
@top top

@cindex top1
@cindex top1
@cindex top1
@cindex top1
@cindex top1
@cindex top1
@cindex top1
@cindex top1
@cindex top1
@cindex aop1
@cindex aop1
@cindex aop1
@cindex aop1
@cindex aop1
@cindex aop1
@cindex aop1

@menu
* node chap1::
* node chap2::
@end menu

@part Part 1

@printindex cp

@node node chap1
@chapter chapter 1

@node node chap2
@chapter chapter 2

@bye


code:
\input texinfo @c -*-texinfo-*-

@setfilename recursive_synindex.info

@node Top
@top recursive_synindex

@defindex aaa
@defindex bbb
@defindex ccc
@defindex ddd
@defindex eee

@synindex aaa bbb
@synindex bbb aaa

@synindex ccc aaa
@synindex ddd bbb

@eeeindex e before synindex

@synindex eee ddd

@cccindex c index
@bbbindex b entry
@aaaindex a entry
@dddindex d index
@eeeindex e index

bbb
@printindex bbb

aaa
@printindex aaa

ccc
@printindex ccc

ddd
@printindex ddd

eee
@printindex eee

@bye


code:
\input texinfo @c -*-texinfo-*-

@setfilename same_doc_nr_split_index_and_element.info

@node Top
@top top element

@cindex a entry
@cindex b entry
@cindex c entry
@cindex d entry
@cindex e entry
@cindex f entry
@cindex g entry
@cindex h entry
@cindex i entry
@cindex j entry
@cindex k entry
@cindex l entry
@cindex m entry
@cindex n entry
@cindex p entry
@cindex q entry
@cindex r entry
@cindex s entry
@cindex t entry
@cindex u entry
@cindex v entry
@cindex w entry

@menu
* Node Chapter::
* Node Indices::
@end menu

@node Node Chapter
@chapter Chapter

In chapter

@section @c Section

In section

@node Node Indices
@appendix Indices

In appendix

@printindex cp

@bye


code:
\input texinfo @c -*-texinfo-*-

@setfilename split_chapter_index

@node Top
@top split indices
@cindex entry a

Text in top.

@menu
* first::
@end menu

@node first
@chapter First chapter

Text and then index entries
@cindex entry in node
@cindex ! entry in node
@findex fun in node
@cindex entry in node

@printindex cp

@cindex entry after printindex

@findex a function
@cindex a concept in first
@findex somewhere

@menu
* section 1::
@end menu

@node section 1
@section Section 1

@menu
*  subsection 1::
@end menu

@cindex something

@cindex another

@node subsection 1
@subsection Subsection 1

In subsection 1

@cindex printindex subsection 2

@bye


code:
\input texinfo @c -*-texinfo-*-

@setfilename syncode_index_print_both

@syncodeindex fn vr

@node Top
@top syncodeindex and print both indices
@vindex var
@findex fun

Print fn

@printindex fn

Print vr

@printindex vr

@bye


code:
\input texinfo
@setfilename syncodeindex_to_plain.info

@syncodeindex ky cp

@node Top

@kindex --k1
@vindex --v
@cindex --c

cp index.
@printindex cp

vr index.
@printindex vr

@bye


code:
texi index_special_region.texi
index_table index_table.texi
#index_table_chapter index_table.texi --split chapter --init index_test.init
#split_chapter_index split_chapter_index.texi --split chapter --init index_test.init
#index_split index_split.texi --split chapter --init index_test.init
#makeinfo_index_split index_split.texi --init makeinfo.pm --init index_test.init
#index_no_node index_no_node.texi --split chapter --init index_test.init
#makeinfo_nodes_before_top nodes_before_top.texi --init makeinfo.pm --init index_test.init --split node --no-node-files
#nodes_before_top nodes_before_top.texi --set-customization-variable 'USE_NODES 1' --init index_test.init --split chapter
# there is no sectioning command in nodes_before_top.texi, so when called as
# texi2html there is nothing split, including indices.
#nodes_before_top_no_nodes nodes_before_top.texi --init index_test.init --split chapter
#nodes_before_top_and_sections nodes_before_top_and_sections.texi --init index_test.init --split chapter
nodes_before_top_and_sections_monolithic nodes_before_top_and_sections.texi
#makeinfo_nodes_before_top_and_sections nodes_before_top_and_sections.texi --init makeinfo.pm --init index_test.init
nodes_before_top_and_sections_html_chapter nodes_before_top_and_sections.texi --html --split chapter
nodes_before_top_and_sections_html_chapter_nodes nodes_before_top_and_sections.texi --html --set-customization-variable 'USE_NODES 1' --node-files --split chapter
index_special_region index_special_region.texi --split chapter --set-customization-variable 'USE_TITLEPAGE_FOR_TITLE 0'
index_special_region_no_region index_special_region_no_region.texi --split chapter --set-customization-variable 'USE_TITLEPAGE_FOR_TITLE 0'
index_special_region_no_insertcopying index_special_region_no_insertcopying.texi --split chapter --set-customization-variable 'USE_TITLEPAGE_FOR_TITLE 0'
index_special_region_html index_special_region.texi --html --split chapter
index_special_region_no_region_html index_special_region_no_region.texi --html --split chapter
index_special_region_no_insertcopying_html index_special_region_no_insertcopying.texi --html --split chapter
index_nodes index_nodes.texi
#makeinfo_index_nodes index_nodes.texi --init makeinfo.pm --init index_test.init  --split node
#printindex_between_node_section printindex_between_node_section.texi --init index_test.init --node-files
#printindex_between_part_chapter printindex_between_part_chapter.texi --init index_test.init
index_and_node_same_name index_and_node_same_name.texi
syncode_index_print_both syncode_index_print_both.texi
recursive_synindex recursive_synindex.texi
index_entry_in_footnote index_entry_in_footnote.texi
index_one_node index_one_node.texi
index_no_node_no_top index_no_node_no_top.texi
double_index_entry double_index_entry.texi
unknown_index_entry unknown_index_entry.texi
more_unknown_index_entry more_unknown_index_entry.texi
#same_doc_nr_split_index_and_element same_doc_nr_split_index_and_element.texi --init index_test.init --split node --node-files
syncodeindex_to_plain syncodeindex_to_plain.texi

index_entry_in_footnote_info index_entry_in_footnote.texi --info
index_entry_in_footnote_separated_info index_entry_in_footnote.texi --info --footnote-style=separate


code:
texi index_special_region.texi
index_table index_table.texi
index_table_chapter index_table.texi --split chapter --init index_test.init
split_chapter_index split_chapter_index.texi --split chapter --init index_test.init
index_split index_split.texi --split chapter --init index_test.init
makeinfo_index_split index_split.texi --init makeinfo.pm --init index_test.init
index_no_node index_no_node.texi --split chapter --init index_test.init
makeinfo_nodes_before_top nodes_before_top.texi --init makeinfo.pm --init index_test.init --split node --no-node-files
nodes_before_top nodes_before_top.texi --set-init-var 'USE_NODES 1' --init index_test.init --split chapter
# there is no sectioning command in nodes_before_top.texi, so when called as
# texi2html there is nothing split, including indices.
nodes_before_top_no_nodes nodes_before_top.texi --init index_test.init --split chapter
nodes_before_top_and_sections nodes_before_top_and_sections.texi --init index_test.init --split chapter
nodes_before_top_and_sections_monolithic nodes_before_top_and_sections.texi
makeinfo_nodes_before_top_and_sections nodes_before_top_and_sections.texi --init makeinfo.pm --init index_test.init
nodes_before_top_and_sections_html_chapter nodes_before_top_and_sections.texi --html --split chapter
nodes_before_top_and_sections_html_chapter_nodes nodes_before_top_and_sections.texi --html --set-init-var 'USE_NODES 1' --node-files --split chapter
index_special_region index_special_region.texi --split chapter --set-init-var 'USE_TITLEPAGE_FOR_TITLE 0'
index_special_region_no_region index_special_region_no_region.texi --split chapter --set-init-var 'USE_TITLEPAGE_FOR_TITLE 0'
index_special_region_no_insertcopying index_special_region_no_insertcopying.texi --split chapter --set-init-var 'USE_TITLEPAGE_FOR_TITLE 0'
index_special_region_html index_special_region.texi --html --split chapter
index_special_region_no_region_html index_special_region_no_region.texi --html --split chapter
index_special_region_no_insertcopying_html index_special_region_no_insertcopying.texi --html --split chapter
index_nodes index_nodes.texi
makeinfo_index_nodes index_nodes.texi --init makeinfo.pm --init index_test.init  --split node
printindex_between_node_section printindex_between_node_section.texi --init index_test.init --node-files
printindex_between_part_chapter printindex_between_part_chapter.texi --init index_test.init
index_and_node_same_name index_and_node_same_name.texi
syncode_index_print_both syncode_index_print_both.texi
recursive_synindex recursive_synindex.texi
index_entry_in_footnote index_entry_in_footnote.texi
index_one_node index_one_node.texi
index_no_node_no_top index_no_node_no_top.texi
double_index_entry double_index_entry.texi
unknown_index_entry unknown_index_entry.texi
more_unknown_index_entry more_unknown_index_entry.texi
same_doc_nr_split_index_and_element same_doc_nr_split_index_and_element.texi --init index_test.init --split node --node-files
syncodeindex_to_plain syncodeindex_to_plain.texi

index_entry_in_footnote_info index_entry_in_footnote.texi --info
index_entry_in_footnote_separated_info index_entry_in_footnote.texi --info --footnote-style=separate


code:
\input texinfo @c -*-texinfo-*-
@setfilename unknown_index_entry.info

@node Top
@top Top

@someindex someindex entry.

@bye


code:
EXTRA_DIST = anchor_paragraph.texi images_quotes.texi simple_cartouche.texi \
center_flush.texi simple_def.texi \
cindex_at_end_node.texi itemize_in_example.texi simple_enumerate.texi \
commentexample.texi itemize_long_item.texi simple_float.texi \
comment_in_example.texi line_passed_and_formats.texi simple_footnotes.texi \
def_cmds_clean.texi long_line.texi simple_index.texi \
def_in_copying.texi long_uref_after_item.texi simple_itemize.texi \
def_in_example.texi menu_in_deffn.texi simple_multitable.texi \
def.texi multitable_in_example.texi simple_verbatim.texi \
enumerate_in_example.texi multitable.texi space_at_menu_end.texi \
exdent_and_commands.texi nested_multitable_anchor_index.texi \
space_in_menu.texi exdent_and_formats.texi nested_multitable.texi \
star_at_command_in_formats.texi float_long_captions.texi \
noindent_after_smallexample.texi star_at_command.texi \
headings_in_footnote.texi noindent_in_paragraph.texi table_long_item.texi \
html_expanded.texi paragraphindent.texi test_setfilename.texi \
images_eol.texi simple_2nodes.texi thing_in_menu.texi \
empty_multitable_in_itemize.texi code.texi kbd.texi \
note_in_strong.texi split_nocopying.texi \
 f--ile""\.png f--ile""\.txt this_is_a_long_unknown_file.png \
 verb.txt tests.txt res res_all res_info

DISTCLEANFILES = tests.log tests.out

distclean-local:
	rm -rf out out_all out_info diffs

dist-hook:
	rm -rf `find $(distdir)/res $(distdir)/res_info $(distdir)/res_all -name .svn`


code:
\input texinfo @c -*-texinfo-*-

@setfilename anchor_paragraph.info

@copying
This is a very simple texi manual followed by tab @	 <>.
followed by newline @
followed by space @ aa.

@strong{aaa @TeX{} @emph{in emph} after emph}.
@end copying

@c @frenchspacing on

@node Top
@top Element
@anchor{anchor 0}

Now @anchor{anchor1}.

No space@anchor{anchor2}.

AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA

                                       BBBB

AAA
aflnfe ef fez f fe fez fe fez fez zef fe ezf fze                         after

@anchor{anchor test paras}

 This is a very simple texi manual followed by tab @	 <>.
followed by @ @ newline @
@anchor{Anchor para 1}.
followed by space @ aa.
  space before
and end para.

@env{env, alone}.

@strong{aaa @TeX{} @emph{in emph} after
@c emph @emph{emph2 @anchor{anchor in emph} }}.
emph @emph{emph2 @anchor{anchor in emph}}}.

Another para.

@emph{@strong{First strong para.

Second strong para.
}
}

@bye


code:
\input texinfo @c -*-texinfo-*-

@setfilename center_flush.info

@node Top
@top Element

@center centered

@flushleft
left and
left2

left3.

left Last
  with space.

Now anchor
@anchor{anchor in flushleft}
after anchor
@end flushleft

@flushright
right and
right2

Right3

Right last
  with space.

Now anchor
@anchor{anchor in flushright}
after anchor
Second anchor in text @anchor{second anchor in flushright} after anchor.
@end flushright

@bye


code:
\input texinfo @c -*-texinfo-*-

@setfilename cindex_at_end_node.info

@node Top
@top Element

@menu
* chapter::
* indices::
@end menu

@node chapter
@chapter Chapter

@cindex index entry

@node indices
@appendix indices

@printindex cp

@bye


code:
\input texinfo @c -*-texinfo-*-

@setfilename code.info

@node Top
@top Element

Code: @code{in code}.

Code in code: @code{in first @code{in nested}}.

Code in @@example:

@example
in example
@code{in example in code}.
@end example

In format
@format
in format
@code{in format in code}.
@end format

@bye


code:
\input texinfo @c -*-texinfo-*-

@setfilename comment_in_example.info

@node Top
@top Element top

@example
In example @c comment
@end example

Para.

@example
In example, end on same line @end example

@example
First line @c
Second @c
@end example

@example
First line 0 @c
@example
Nested example
@end example
In first one
@end example

@example
First line 1 @c
@example
Nested example @c
@end example
In first one
@end example

@example
First line 2 @c
@example
Nested example @c
@end example
In first one @c
@end example

Something @example
in example
Before end @end example
After end

@quotation
Quotation @c
@end quotation

Para.

@quotation
Quotation no space@c
@end quotation

Para.

@bye


code:
\input texinfo
@setfilename commentexample.info

Hello.

@example
first example line with comment @c comment
second example line after comment
@end example

Para.

@example
comment, blank after @c comment
@end example

Para.

@example
comment, no blank after @c comment
@end example
Para.

@example
no comment, blank after
@end example

Para.

@example
no comment, no blank after
@end example
Para.

@bye


code:
\input texinfo @c -*-texinfo-*-
@setfilename def.info
@node Top
@top Test for definition commands

@var{i}.

@deffn fset @var{i} a g
deff lines
@end deffn

@deffn aa bb cc
@deffnx aax bbx ccx
deffnx lines
@end deffn

@bye


code:
\input texinfo @c -*-texinfo-*-
@setfilename def_cmds_clean.info
@node Top
@top Test for definition commands

@macro mymacro
@deffn category deffn_name arguments...
d--effn
@end deffn

@deffn category deffn_name arguments @
   more args @* even more so
def--fn
@end deffn

@deffn fset @var{i} a g
@deffnx {cmde} truc {}
@deffnx Command {log trap} {}
@deffnx Command { log trap1} {}
@deffnx Command {log trap2 } {}
@deffnx cmde @b{id ule} truc
@deffnx cmde2 @b{id @samp{i} ule} truc
@deffnx @b{id @samp{i} ule}
@deffnx
@deffnx aaa
@deffnx {} {}
@deffnx{}
@deffnx{} machin
@deffnx{} {bidule machin}
@deffnx{truc} machin
@deffnx{truc} { }
@deffnx{truc}
@deffnx{} {}
@deffnx {truc} followed by a comment
@c comment
@ifset texi2html
@deffnx truc machin bidule chose and }
@deffnx truc machin bidule chose and } after
@deffnx truc machin bidule chose and {
@deffnx truc machin bidule chose and { and after
@end ifset
Various deff lines
@deffnx {truc} after a deff item
@c comment
text in def item for second def item
@deffnx {truc} deffnx before end deffn
@end deffn

@deffn empty deffn
@end deffn

@deffn empty deffn with deffnx
@deffnx empty deffnx
@end deffn

@defvr category defvr_name
d--efvr
@end defvr

@deftypefn category type deftypefn_name arguments...
d--eftypefn
@end deftypefn

@deftypeop category class type deftypeop_name arguments...
d--eftypeop
@end deftypeop

@deftypevr category type deftypevr_name
d--eftypevr
@end deftypevr

@defcv category class defcv_name
d--efcv
@end defcv

@defop category class defop_name arguments...
d--efop
@end defop

@deftp category deftp_name attributes...
d--eftp
@end deftp

@defun defun_name arguments...
d--efun
@end defun

@defmac defmac_name arguments...
d--efmac
@end defmac

@defspec defspec_name arguments...
d--efspec
@end defspec

@defvar defvar_name
d--efvar
@end defvar

@defopt defopt_name
d--efopt
@end defopt

@deftypefun type deftypefun_name arguments...
d--eftypefun
@end deftypefun

@deftypevar type deftypevar_name
d--eftypevar
@end deftypevar

@defivar class defivar_name
d--efivar
@end defivar

@deftypeivar class type deftypeivar_name
d--eftypeivar
@end deftypeivar

@defmethod class defmethod_name arguments...
d--efmethod
@end defmethod

@deftypemethod class type deftypemethod_name arguments...
d--eftypemethod
@end deftypemethod

@ifset texi2html
@deffn category name args { @
  more args
deffn with @{
@end deffn

@deffn category name args } @
  more args
deffn with @}
@end deffn
@end ifset

@end macro

@mymacro{}

@example
@mymacro{}
@end example

@quotation
@mymacro{}
@end quotation

@example
@quotation
@mymacro{}
@end quotation
@end example

@c deffn
@deffn Command @var{forwardchar} @var{nchars} {argument2} {argument3} @
        (arg in brace, [something @var{in var}, @b{in, b} {, comma} a@var{pref} p]) last
@end deffn

@c defvr
@defvr Variable fill-column {argument1} {argument2} @
        (arg in brace, [something @var{in var}, @b{in, b} {, comma} a@var{pref} p]) last
@end defvr

@c deftypefn
@deftypefn {Library Function} int foobar (int @var{foo}, float @var{bar})
@end deftypefn

@deftypefn {Library Function} int foobar (int @var{foo}, float @var{bar}) @
        (arg in brace, {[something} @var{in var}, @b{in, b} {, comma} a@var{pref} p]) ct@*@* last
@end deftypefn

@deftypefn {Library Function} int foobug {[something}
@end deftypefn

@deftypefn stacks private push (@var{s}:in out stack; @
                 @var{n}:in integer) ; ;barg aarg; ; end
@end deftypefn

@c deftypevr
@deftypevr {Global Flag} int enable @
        (arg in brace, [something @var{in var}, @b{in, b} {, comma} a@var{pref} p]) last
@end deftypevr

@c deftp
@deftp {Data type} pair car cdr @
        (arg in brace, [something @var{in var}, @b{in, b} {, comma} a@var{pref} p]) last
@end deftp

@c defcv
@defcv {Class Option} Window border-pattern @
        (arg in brace, [something @var{in var}, @b{in, b} {, comma} a@var{pref} p]) last
@end defcv

@c deftypecv
@deftypecv {Class Option2} Window @code{int} border-pattern @
        (arg in brace, [something @var{in var}, @b{in, b} {, comma} a@var{pref} p]) last
@end deftypecv

@c defop
@defop Operation windows expose @
        (arg in brace, [something @var{in var}, @b{in, b} {, comma} a@var{pref} p]) last
@end defop

@c deftypeop
@deftypeop Operation2 W,indow @code{int} expose @
        (arg in brace, [something @var{in var}, @b{in, b} {, comma} a@var{pref} p]) last
@end deftypeop

@deftypeop Operation5 Window @code{int} expose type arg
@end deftypeop

@deftypeop Operation3 {W,indow} @code{int} {e,xpose} type arg
@end deftypeop

@deftypeop Operation4 {,Window} @code{int} {,expose} type arg
@end deftypeop

@deftypeop Operation6 W,indow @code{int} e,xpose type arg
@end deftypeop

@deftypeop Operation7 ,Window @code{int} ,expose type arg
@end deftypeop

@deftypeop Operation13 {W)indow} @code{int} {e)xpose} type arg
@end deftypeop

@deftypeop Operation14 {)Window} @code{int} {)expose} type arg
@end deftypeop

@deftypeop Operation16 W)indow @code{int} e)xpose type arg
@end deftypeop

@deftypeop Operation17 )Window @code{int} )expose type arg
@end deftypeop

@deftypeop Operation18 {W;indow} @code{int} {e;xpose} type arg
@end deftypeop

@deftypeop Operation19 {;Window} @code{int} {;expose} type arg
@end deftypeop

@deftypeop Operation20 W;indow @code{int} e;xpose type arg
@end deftypeop

@deftypeop Operation21 ;Window @code{int} ;expose type arg
@end deftypeop

@deftypeop Command@code{com} {Window@code{int}} expose@var{exp}
@end deftypeop

@c deffn
@deffn
@end deffn

@c defvr
@defvr
@end defvr

@c deftypefn
@deftypefn
@end deftypefn

@c deftypeop
@deftypeop
@end deftypeop

@c deftypevr
@deftypevr
@end deftypevr

@c defcv
@defcv
@end defcv

@c deftypecv
@deftypecv
@end deftypecv

@c defop
@defop
@end defop

@c deftp
@deftp
@end deftp

@c deffn
@deffn @var{A1} @var{A2} @var{A3} @var{A4}
@end deffn

@deffn @code{A1} @code{A2} @code{A3} @code{A4}
@end deffn

@c defvr
@defvr @var{A1} @var{A2} @var{A3} @var{A4}
@end defvr

@defvr @code{A1} @code{A2} @code{A3} @code{A4}
@end defvr

@c deftypefn
@deftypefn @var{A1} @var{A2} @var{A3} @var{A4} @var{A5}
@end deftypefn

@deftypefn @code{A1} @code{A2} @code{A3} @code{A4} @code{A5}
@end deftypefn

@c deftypevr
@deftypevr @var{A1} @var{A2} @var{A3} @var{A4} @var{A5}
@end deftypevr

@deftypevr @code{A1} @t{A2} @code{A3} @code{A4} @code{A5}
@end deftypevr

@c deftp
@deftp @var{A1} @var{A2} @var{A3} @var{A4}
@end deftp

@deftp @code{A1} @code{A2} @code{A3} @code{A4}
@end deftp

@c defcv
@defcv @var{A1} @var{A2} @var{A3} @var{A4} @var{A5}
@end defcv

@deftp @code{A1} @code{A2} @code{A3} @code{A4} @code{A5}
@end deftp

@c deftypecv
@deftypecv @var{A1} @var{A2} @var{A3} @var{A4} @var{A5} @var{A6}
@end deftypecv

@deftypecv @code{A1} @code{A2} @option{A3} @code{A4} @code{A5} @code{A6}
@end deftypecv

@c defop
@defop @var{A1} @var{A2} @var{A3} @var{A4} @var{A5}
@end defop

@defop @code{A1} @code{A2} @code{A3} @code{A4} @code{A5}
@end defop

@c deftypeop
@deftypeop @var{A1} @var{A2} @var{A3} @var{A4} @var{A5} @var{A6}
@end deftypeop

@deftypeop @code{A1} @code{A2} @code{A3} @code{A4} @code{A5} @code{A6}
@end deftypeop

@printindex vr
@printindex fn

@bye


code:
\input texinfo @c -*-texinfo-*-
@setfilename def_in_copying.info

@macro mymacro
@deffn aa bb cc
@deffnx aax bbx ccx
deffnx lines
@end deffn
@end macro

@node Top
@top Test for definition commands

@copying
In copying
@mymacro{}
@end copying

In text
@mymacro{}

@printindex fn

@bye


code:
\input texinfo @c -*-texinfo-*-

@setfilename def_in_example.info

@node Top
@top Element

@example
@deffn c--ategory1 d--effn_name1 a--rguments...
d--effn1
@end deffn

@multitable {truc} {bidule}
@item truc
@end multitable

@deffn c--ategory d--effn_name a--rguments...
d--effn
@end deffn
@end example

@bye


code:
\input texinfo @c -*-texinfo-*-

@setfilename empty_multitable_in_itemize.info

@node Top
@top Test empty multitable

In itemize at the beginning of an item
@itemize a--n itemize line
@item in macro

@multitable
@end multitable

@end itemize
@bye


code:
\input texinfo @c -*-texinfo-*-

@setfilename enumerate_in_example.info

@node Top
@top Element

@example
@enumerate
@item first

more.
@end enumerate
@end example

@bye


code:
\input texinfo @c -*-texinfo-*-

@setfilename exdent_and_commands.info

@node Top
@top Element

@quotation
quotation1
@exdent in exdented protected eol @
following
@exdent in exdented a @@* @* and following
after exdented
@end quotation

@example
example
@exdent in exdented protected eol @
following
@exdent in exdented a @@* @* and following
after exdented
@end example

@anchor{Count}

@bye


code:
\input texinfo @c -*-texinfo-*-

@setfilename exdent_and_formats.info

@node Top
@top Element

@example
 Example   Hoho. @TeX{} . @* @@.

@exdent Other line
not exdented
@end example

@example
@exdent exdented
Not exdented
@exdent exdented
Not exdented
@end example

Para1.

@quotation
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
@end quotation

Para2.

Para3.

@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.

Last para.

@quotation
quotation1
quotation2
@end quotation

@quotation
quotation para 1

quotation para 2
@end quotation

@anchor{Count anchor}

@example
Example   Hoho.
@example
Nested Other line
@exdent exdented nested other line
@exdent @exdent double  exdented nested other line
@end example
@end example

@quotation
@exdent exdented quotation line
@end quotation

@quotation
Not exdented followed by exdented
@exdent  exdented quotation line
@end quotation

@quotation
@exdent  exdented quotation line
Followed by not exdented
@end quotation

@quotation
@exdent exdented quotation line oidfjslsd aez a aze azaz aeae za eaz az
@exdent azeaz az az az az
@end quotation

@quotation
@exdent exdented quotation line oidfjslsd aez a aze azaz aeae za eaz az azeaz end line
@exdent az az az az
@end quotation

@quotation
quotation line oidfjslsd aez a aze azaz aeae za eaz az zelef  aaa
@exdent ezkfjklezf
@end quotation

@quotation
@exdent very loooooooooooooooooooooooooooooooooong exdented quotation line oidfjslsd aez a aze azaz aeae za eaz az azeaz end line
@exdent az az az az
@end quotation

@bye


code:
\input texinfo.tex    @c -*-texinfo-*-

@setfilename float_long_captions.info

@node Top
@top Test floats with long captions

@float Text, text1
@caption{AAAAAAAAAAAAAAAA BBBBB CCCCCCCCCCC}
@end float

@float Text, text2
@caption{AAAAAAAAAAAAAAAA BBBBBB CCCCCCCCCCC}
@end float

@listoffloats Text

@bye


code:
\input texinfo @c -*-texinfo-*-

@setfilename headings_in_footnote.info

@node Top
@top Top

AAA
@heading H0
BBB

T@footnote{
AAA
@heading H1
@cindex ind e
BBB
}

@bye


code:
\input texinfo @c -*-texinfo-*-

@setfilename html_expanded.info

@node Top
@top Element

Before
@html
html
@end html
after.

@bye


code:
\input texinfo @c -*-texinfo-*-

@setfilename images_eol.info

@node Top
@top Element

Just before an image @image{this_is_a_long_unknown_file} text after the image, and more text, and more @image{this_is_a_long_unknown_file} text.

@bye


code:
\input texinfo @c -*-texinfo-*-
@setfilename images_quotes.info
@node Top
@top Top section

@image{f--ile""\,,,alt""\}

@bye


code:
\input texinfo @c -*-texinfo-*-

@setfilename itemize_in_example.info

@node Top
@top Element

@example
@itemize @bullet
@item first

more.
@end itemize

@itemize @asis
@item as is
@end itemize

@itemize +
@item item +
@end itemize

@itemize @bullet{} a--n itemize line
@item in an itemize line
@end itemize
@end example

@bye


code:
\input texinfo @c -*-texinfo-*-

@setfilename itemize_long_item.info

@node Top
@top Element

@itemize youhou itemize long item
@item first item
@item
@example
In example

end example.
@end example
@item

empty line.
@item

@example
In second example
@end example
@quotation
Quotation
@end quotation

@item

@quotation
quotation after a blank line
@end quotation
@end itemize

@itemize youhou itemize even more long item aaaaaaaaaaaaaaaa
@item first item
@item
@example
In example

end example.
@end example
@item

empty line.
@item

@example
In second example
@end example
@item
@quotation
Quotation
@end quotation

@item

@quotation
quotation after a blank line
@end quotation
@end itemize

@bye


code:
\input texinfo @c -*-texinfo-*-

@setfilename kbd.info

@node Top
@top Element

kbd: @code{in kbd}.

kbd in code: @code{in first @kbd{in nested kbd}}.

kbd in kbd: @kbd{in top kbd @kbd{in nested kbd}}.

kbd in @@example:

@example
in example
@code{in example in kbd}.
@end example

kbd in @@format:

@format
in format
@code{in format in kbd}.
@end format

@bye


code:
\input texinfo @c -*-texinfo-*-

@setfilename line_passed_and_formats.info

@node Top
@top Element

@quotation special
Quotation special.
@quotation
Nested quotation sdflkmsfdlkmfsdqmlkfsdq mlfdsqlkmfdsqmlkfdsq klm fsqdlkmfdsq
fdsfsdqmlkfsqd m lqlkmf qskmlfq sklm fqds
@end quotation
@end quotation

@quotation
quotation  text
@example
example in   quotation
@end example
@end quotation

@example
 In  example.
@quotation
   In quotation   in example
@end quotation
@end example

@example
In 1 example
@end example
@example
In 2 example
@end example

@quotation
In 1 quotation
@end quotation
@quotation
In 2 quotation
@end quotation

@quotation
Quotation
@quotation
Nested quotation
@end quotation
Quotation 2
@end quotation

@example
In  example.
@quotation
In quotation   in example
@end quotation
In  example 2.
@end example

@quotation
quotation  text
@example
example in   quotation
@end example
quotation  text 2
@end quotation

Before quotation
@quotation
quotation  text
@end quotation
after end

Before example
@example
In example
@end example
After example

Before quotation and empty line
@quotation

In quotation

@end quotation
After quotation

Before example and empty line
@example

In example

@end example
After example

Nested and empty lines

Quotation empty out, spaces inside
@quotation

@quotation

In nested

@end quotation

@end quotation

Quotation empty out, no spaces inside
@quotation

@quotation
In nested
@end quotation

@end quotation

Example empty out, spaces inside
@example

@example

In nested

@end example

@end example

Example empty out, no spaces inside
@example

@example
In nested
@end example

@end example

menu
@menu
* node::
@end menu
end menu

@node node
@chapter node

@bye


code:
\input texinfo @c -*-texinfo-*-

@setfilename long_line.info

@node Top
@top Element

AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA

AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA BBBBBBBBBBBBB

AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA BBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBB

AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAaaa BBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBb
1AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA BBBBB
2AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA BBBBB
3AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA BBBBB
4AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA BBBBB
5AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA BBBBB
6AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA BBBBB
7AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA BBBBB
8AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA BBBBB
9AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA BBBBB
10AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA BBBBB
11AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA BBBBB

@heading heading

A Texinfo file can be formatted and typeset as a printed book or manual.
To do this.

@heading another heading

A Texinfo file can be formatted and typeset as a printed book or manual.  To do this.

@bye


code:
\input texinfo
@c %**start of header
@setfilename long_uref_after_item.info
@c %**end of header

@itemize
@item
@uref{http://foo.org/some/long/url/which/goes/past/eighty/columns/and/has/no/alternative/text.html}
@end itemize
@bye


code:
\input texinfo @c -*-texinfo-*-

@setfilename menu_in_deffn.info

@node Top
@top Element

@deffn a b c
@menu
* (mynode)::
@end menu
@end deffn

a

@bye


code:
\input texinfo @c -*-texinfo-*-

@setfilename multitable.info

@node Top
@top Element

@multitable {truc}    {bidule}
@item truc @tab bidule
@end multitable

@multitable @columnfractions 0.3 0.7
@item truc @tab bidule
@end multitable

@anchor{mark}
@cindex index entry

@printindex cp

@bye


code:
\input texinfo @c -*-texinfo-*-

@setfilename multitable_in_example.info

@node Top
@top Element

@example
@multitable {a} {b}
@item beginnin

end
@end multitable

@multitable {a} {b}
@item aaa
@tab

a new column
@end multitable
@end example

@bye


code:
\input texinfo @c -*-texinfo-*-

@setfilename nested_multitable.info

@node Top
@top Element

@multitable {truc AAAA   machin}    {bidule}
@item
@multitable {AAAA} {machin}
@item AAAA @tab machin
@end multitable
 @tab bidule
@item other item @tab in tab
@end multitable

@printindex cp

@bye


code:
\input texinfo @c -*-texinfo-*-

@setfilename nested_multitable_anchor_index.info

@node Top
@top Element

@multitable {truc AAAA   machin}    {bidule}
@item
@multitable {AAAA} {machin}
@item AAAA @tab machin @anchor{mark inside}
@cindex index entry inside
@end multitable
 @tab bidule
@item other item @tab in tab @anchor{mark}
@cindex index entry
@end multitable

@printindex cp

@xref{mark}.
@xref{mark inside}.

@bye


code:
\input texinfo @c -*-texinfo-*-

@setfilename noindent_after_smallexample.info

@node Top
@top Element

You can obtain the newest version of @file{config.guess} and
@file{config.sub} from the CVS of the @samp{config} project at
@file{http://savannah.gnu.org/}. The commands to fetch them are
@smallexample
$ wget 'http://savannah.gnu.org/cgi-bin/viewcvs/config/config/config.guess?rev=HEAD&content-type=text/plain'
$ wget 'http://savannah.gnu.org/cgi-bin/viewcvs/config/config/config.sub?rev=HEAD&content-type=text/plain'
@end smallexample
@noindent
Less recent versions are also contained in the GNU @code{automake} and
GNU @code{libtool} packages.

@bye


code:
\input texinfo @c -*-texinfo-*-

@setfilename noindent_in_paragraph.info

@node Top
@top Element

Begin para
@noindent
after noindent.

Begin para2
@noindent
after noindent2.

@bye


code:
\input texinfo @c -*-texinfo-*-

@setfilename note_in_strong.info

@node Top
@top Element

One @strong{Note}.

3 @strong{Note a}.

2 @strong{note}.

4 @strong{note b}.

@bye


code:
\input texinfo @c -*-texinfo-*-

@setfilename paragraphindent.info

@node Top
@top Element top

First

           aaa b default

@paragraphindent asis

           aaa b asis

@paragraphindent 0

           aaa b 0

@paragraphindent 7

           aaa b 7

@bye


code:
\input texinfo @c -*-texinfo-*-

@setfilename simple_2nodes.info

@node Top
@top Element

before menu.

@menu
* name::
* name1::
@end menu

@node name
@chapter name

@node name1
@chapter name1

@bye


code:
\input texinfo @c -*-texinfo-*-
@setfilename simple_cartouche.info
@node Top
@top Top section

Before cartouche
@cartouche
In cartouche
@end cartouche
After cartouche

Before cartouche empty line

@cartouche
In cartouche
@end cartouche

After cartouche empty line

Before cartouche
@cartouche

In cartouche after and before empty line

@end cartouche
After cartouche

@quotation
In quotation
@cartouche
In cartouche in quotation
@end cartouche
end quotation
@end quotation

@bye


code:
\input texinfo @c -*-texinfo-*-
@setfilename simple_def.info

@macro mymacro
@deffn fset @var{i} a g
deff lines
@end deffn

@deffn aa bb cc
@deffnx aax bbx ccx
deffnx lines
@end deffn

Something
@deffn ggg hhh ooo
@end deffn
Something after

@deffn vgvg bhbh njnj
@end deffn
@deffn colle a la precendent
@end deffn

@deffn truc aa

@deffnx bidule bb

Para

@end deffn

@deffn eeeetruc aeeea
@deffnx eeeebidule beeeb

Para2

@end deffn

@deffn ffffftruc afffa
Para3

@end deffn

@deffn ggggggtruc gggga

Para4
@end deffn

@deffn now with many para

First para.

Second para.
@end deffn

@end macro

@node Top
@top Test for definition commands

in text
@mymacro{}

@example
In example
@mymacro{}
@end example

@bye


code:
\input texinfo @c -*-texinfo-*-

@setfilename simple_enumerate.info

@node Top
@top Element

@enumerate
@item first item
@item
@example
In example

end example.
@end example
@item

empty line.
@item

@example
In second example
@end example
@item
@quotation
Quotation
@end quotation

@item

@quotation
quotation after a blank line
@end quotation
@end enumerate

@enumerate
@item aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa fffffffff ggggggggg vvvvvvvvv ggggggggg h
@end enumerate

@bye


code:
\input texinfo @c -*-texinfo-*-

@setfilename simple_float.info

@node Top
@top Element

@float Text, Label
float

@caption{Caption Label}
@shortcaption{Shortcaption Label}
@end float

@float Text, Label no sc
float no Shortcaption

@caption{Caption Label no sc}
@end float

@float Text
float no Label

@caption{Caption no Label}
@end float

@float Text, Label no cap
float no Caption

@end float

@float
Float no label no type.

@caption{Caption no label no type}
@end float

@float
Float no label no type shortcap.

@caption{Caption no label no type shortcap}
@shortcaption{Caption no label no type shortcap}
@end float

@float , label no type

Float label no type
@caption{label no type}
@end float

@float , label no type no cap

Float label no type no cap
@end float

@listoffloats Text

Listoffloats
@listoffloats

@bye


code:
\input texinfo @c -*-texinfo-*-

@setfilename simple_footnotes.info

@node Top
@top Element

before menu@footnote{first footnote}.

@menu
* name::            description@footnote{in menu description}
* name1::
@end menu

@node name
@chapter name

First para@footnote{First para in footnote.

Second para in footnote.

Third one.

}

Text@footnote{Footnot long

@quotation
Quotation in a footnote
@end quotation}.

@node name1
@chapter name1

Texte@footnote{@quotation
in quotation on the first footnote line
@end quotation}.

Last text @footnote{@example
in example
@end example

}

@bye


code:
\input texinfo @c -*-texinfo-*-

@setfilename simple_index.info

@node Top
@top Element top

@xref{a counting anchor}.

before menu.
@cindex in Top
@cindex @@
@cindex @exclamdown{}
@cindex "

@deffn fset @var{i} a g
@deffnx truc machin bidule chose

@end deffn

@ftable @emph
@item a fun
Var text

@item second fun
@itemx itemx fun

@end ftable

@menu
* name::
* name1 looooooooooooooooooooooooooooooooooooooooooooooooooooooooong::
@end menu

@node name
@chapter A chapter

@cindex index entry looooooooooooooooooooooooooooooooooooooooooooooooooooooooong
@findex function index entry

A paragraph
@findex other function
end paragraph

a

a

a

a

a

@findex after lines.

b

b

b

b

b

b

b

b

b

b

b

b

b

b

b

b

b

b

b

b

b

b

b

b

b

b

b

b

b

b

b

b

b

b

b

b

b

b

b

b

b

b

b

b

b

b

b

b

b

b

b

b

b

b

b

b

b

b

b

b

b

b

b

b

b

b

b

b

b

b

b

b

b

b

b

@findex after more than 100 lines

@node name1 looooooooooooooooooooooooooooooooooooooooooooooooooooooooong
@appendix Index

@cindex index entry in appendix before para
Para.

Concept index
@printindex cp

@findex index entry between indices

Functions index
@printindex fn

@appendixsec appendixsec

@appendixsubsec appendixsubsec

@appendixsubsubsec appendixsubsubsec

@chapheading chapheading

@centerchap centerchap

@chapter chapter end

@cindex index in chapter end

@anchor{a counting anchor}

@bye


code:
\input texinfo @c -*-texinfo-*-

@setfilename simple_itemize.info

@node Top
@top Element

@itemize youhou
@item first item
@item
@example
In example

end example.
@end example
@item

empty line.
@item

@example
In second example
@end example
@quotation
Quotation
@end quotation

@item

@quotation
quotation after a blank line
@end quotation
@end itemize

@itemize
@item first item
@item
@example
In example

end example.
@end example
@item

empty line.
@item

@example
In second example
@end example
@item
@quotation
Quotation
@end quotation

@item

@quotation
quotation after a blank line
@end quotation
@end itemize

An itemize
@itemize @minus
@item truc
line
@end itemize
After itemize

A nested itemize
@itemize @minus
@item truc
line
@itemize @bullet
@item in nested itemize
@end itemize
After inside nested itemize.
@end itemize
After nested itemize

@itemize @bullet
@item the version number of Texinfo and the program(s) or manual(s) involved.
@item hardware and operating system names and versions.
@item something aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa aaaaaa
b b bbbbbbbbbbbbbbbbbbbbbbb.
@end itemize

@bye


code:
\input texinfo @c -*-texinfo-*-

@setfilename simple_multitable.info

@node Top
@top Element

@multitable @columnfractions 0.4 0.6
@headitem mu--ltitable headitem @tab another tab
@item mu--ltitable item @tab multitable tab
@c comment in multitable
@item mu--ltitable item 2 @tab multitable tab 2
@cindex index entry within multitable
@anchor{anchor in multitable}
@item lone mu--ltitable item
@end multitable

@multitable {truc}    {bidule}
@item truc @tab bidule
@item   truc2     @tab bidule2
@end multitable

@multitable {t}    {b}
@item AAAAAAAAAAAA @tab BBBBBBBBBBBBBBB
@item A @tab B
@item AA @tab BB
@item AAA @tab BBB
@item AAAA @tab BBBB
@item 1 1 @tab 1 2B
@item 1 3BB @tab 1 4BBB
@item 2A 1 @tab AA AA
@item 2A 3BB @tab 2A 4BBB
@item 3AA 1 @tab 3AA 2B
@item 3AA 3BB @tab 3AA 4BBB
@item 4AAA 1 @tab 4AAA 2B
@item 4AAA 3BB @tab 4AAA 4BBB
@headitem he @tab th
@end multitable

@multitable {AA} {BB}
@item a b @tab AA BB
@item aa b @tab AA B
@item aaa b @tab A BB
@end multitable

@multitable {A}
@item A
B
@item a b
@end multitable

@multitable {A} {B}
@item U
V
@tab u
v
@item a b
@tab A B
@end multitable

@multitable {A} {B}
@item A
B

C
@tab G
@item lsfd mlkdsf lk s
mlsdmjlfdsjm mdsfk
@cindex index entry
@item lsfd2 mlkdsf2 lk2 s2
mlsdmjlfdsjm mdsfk2
@tab ATTTTTTTTTTTTTTTTTTTTT
BTTTTTTt @anchor{mark}

CTTTTTT

@end multitable

@printindex cp
@ref{mark}
@ref{anchor in multitable}

@bye


code:
\input texinfo @c -*-texinfo-*-

@setfilename simple_verbatim.info

@node Top
@top Element

@verbatim
In verbatim                @@                        aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa       bbbbbbbbbbbbbb
@end verbatim

Text before
@verbatim
in verbatime
@end verbatim
Text after

@quotation
In quotation
@verbatim
In verbatim in quotation
In verbatim                @@                        aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa       bbbbbbbbbbbbbb
@end verbatim
@end quotation

Before
@verbatim
In verbatim test text
@end verbatim
After

@verbatiminclude verb.txt

@quotation
In quotation include
@verbatiminclude verb.txt
@end quotation

Before include
@verbatiminclude verb.txt
After

@example
In example

@verbatim
In verbatim in example
In verbatim                @@                        aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa       bbbbbbbbbbbbbb
@end verbatim

@end example

@quotation
In quotation with spaces

@verbatim
In verbatim in quotation with spaces
In verbatim                @@                        aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa       bbbbbbbbbbbbbb
@end verbatim

@end quotation

@quotation
In quotation

@verbatim
In verbatim in quotation
@end verbatim
in quotation after end verbaatim
@end quotation

@bye


code:
\input texinfo @c -*-texinfo-*-

@setfilename space_at_menu_end.info

@node Top
@top Element

Para.

@menu
* (out)::

@end menu

A para.

@bye


code:
\input texinfo @c -*-texinfo-*-

@setfilename space_in_menu.info

@node Top
@top Element

Text.

@menu
* node::
@end menu

@node node
@chapter node

in chapter.

@bye


code:
\input texinfo
@setfilename split-nocopying.info

@node Top
@top Top

This is the top node.

@menu
* Ch1::
@end menu

@node Ch1
@chapter Ch1

First chapter.

@bye


code:
\input texinfo @c -*-texinfo-*-

@setfilename star_at_command.info

@node Top
@top Test star * at command and how spaces are ignored after

Some text @*
mode text. @
Even more text. @* not at eol.

Now foloowed by @@ : followed@*@
And now followed by a space and @@ : follow @* @
And now followed by a space and @@ and text: follow @* @ text
Followeed by empty asis and a space @asis{}
Followeed by asis with space and a space @asis{ }
And now with * empty @@asis: @*@asis{}
And now with * asis with space @@asis: @* @asis{ }
And end para.

@bye


code:
\input texinfo @c -*-texinfo-*-

@setfilename star_at_command_in_formats.info

@node Top
@top Test star * at command and how spaces are ignored after

@macro mymacro
Some text @*
mode text. @
Even more text. @* not at eol.

Now foloowed by @@ : followed@*@
And now followed by a space and @@ : follow @* @
And now followed by a space and @@ and text: follow @* @ text
Followeed by empty asis and a space @asis{}
Followeed by asis with space and a space @asis{ }
And now with * empty @@asis: @*@asis{}
And now with * asis with space @@asis: @* @asis{ }
And end para.
@end macro

@example
Example
@mymacro{}
@end example

@quotation
Quotation
@mymacro{}
@end quotation

@bye


code:
\input texinfo @c -*-texinfo-*-

@setfilename table_long_item.info

@node Top
@top Element

@table @emph
@item first item      aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa aaaaaaaaaaaaaaaaaa
@itemx second itemx bbbbbbbbbbbbbbbbbbbbbbbbbbbbb b b b b b b b b b b b b b

Text.

@item example
@example
In example

end example.
@end example
@item empty line

empty line.
@item quotation
@quotation
Quotation
@end quotation

@item quotation after a blank line

@quotation
quotation after a blank line
@end quotation
@end table

@vtable @asis

VTable

@item first item
@itemx
@itemx after an empty itemx, before an empty item
@item
@item in item before end table
@end vtable

@bye


code:
\input texinfo.tex    @c -*-texinfo-*-
@setfilename ttttt

@node Top
@top

A.

@bye


code:
anchor_paragraph anchor_paragraph.texi
long_line long_line.texi
star_at_command star_at_command.texi
simple_2nodes simple_2nodes.texi
simple_index simple_index.texi
simple_footnotes simple_footnotes.texi
simple_itemize simple_itemize.texi
simple_enumerate simple_enumerate.texi
comment_in_example comment_in_example.texi
paragraphindent paragraphindent.texi
commentexample commentexample.texi
thing_in_menu thing_in_menu.texi
star_at_command_in_formats star_at_command_in_formats.texi
exdent_and_formats exdent_and_formats.texi
noindent_after_smallexample noindent_after_smallexample.texi
noindent_in_paragraph noindent_in_paragraph.texi
line_passed_and_formats line_passed_and_formats.texi
images_quotes images_quotes.texi
center_flush center_flush.texi
itemize_long_item itemize_long_item.texi
table_long_item table_long_item.texi
exdent_and_commands exdent_and_commands.texi
simple_multitable simple_multitable.texi
multitable multitable.texi
nested_multitable nested_multitable.texi
nested_multitable_anchor_index nested_multitable_anchor_index.texi
def def.texi
def_in_copying def_in_copying.texi
def_cmds ../formatting/def_cmds.texi -U texi2html
simple_def simple_def.texi
def_cmds_clean def_cmds_clean.texi -U texi2html
simple_float simple_float.texi
float ../coverage/float.texi -U texi2html
simple_verbatim simple_verbatim.texi
float_long_captions float_long_captions.texi
simple_cartouche simple_cartouche.texi
test_setfilename test_setfilename.texi
space_in_menu space_in_menu.texi
space_at_menu_end space_at_menu_end.texi
def_in_example def_in_example.texi
images_eol images_eol.texi
long_uref_after_item long_uref_after_item.texi
menu_in_deffn menu_in_deffn.texi
multitable_in_example multitable_in_example.texi
empty_multitable_in_itemize empty_multitable_in_itemize.texi
enumerate_in_example enumerate_in_example.texi
itemize_in_example itemize_in_example.texi
cindex_at_end_node cindex_at_end_node.texi
html_expanded html_expanded.texi --ifhtml
headings_in_footnote headings_in_footnote.texi
code code.texi
kbd kbd.texi
note_in_strong note_in_strong.texi
simple_footnotes_no_number simple_footnotes.texi --no-number-footnotes
simple_footnotes_no_number_separate simple_footnotes.texi --footnote-style=separate --no-number-footnotes
split_nocopying split_nocopying.texi
split_nocopying_split split_nocopying.texi --split-size 10
# FIXME /dev/null not portable
split_nocopying_split_dev_null split_nocopying.texi --split-size 1 -o /dev/null


code:
\input texinfo @c -*-texinfo-*-

@setfilename thing_in_menu.info

@node Top
@top Element

@'a. @^{a}. @^{@dotless{i}}. @v{@'r}. @v{@'{r}}.

@menu
* @error{}::
@end menu

@node @error{}
@chapter @error{}

@bye


code:
EXTRA_DIST = brace_not_closed.texi recursive_copying.texi \
 bad_nesting.texi code_not_closed.texi formats_not_closed.texi \
 commands_not_closed.texi math_not_closed.texi not_closed_in_menu.texi \
 macro_call_not_closed.texi macro_def_not_closed.texi ignored_not_closed.texi \
 verb_not_closed.texi tex_not_closed.texi html_not_closed.texi \
 verbatim_not_closed.texi copying_not_closed.texi node_in_copying.texi \
 tex_in_copying.texi titlepage_not_closed.texi footnote_not_closed.texi \
 caption_not_closed.texi def_cmd_dble.texi style_not_closed_in_table_line.texi \
 style_not_closed_in_cartouche.texi multitable_too_much_col.texi \
 bad_style_nesting.texi tab_in_index.texi bad_tab_nesting.texi \
 code_not_closed_no_newline.texi invalid_command_in_table.texi \
 unknown_command_with_braces.texi multitable_begin_with_tab.texi \
 ref_to_unknown_node.texi def_bad_defx_command.texi \
 direntry_dircategory_after_first_node.texi node_too_much_arguments.texi \
 bad_documentencoding.texi error_in_footnote_caption.texi \
 unclosed_verb_line_commands.texi at_after_accent_command.texi \
 command_without_open_brace.texi author_outside_titlepage_quotation.texi \
 itemx_in_itemize.texi double_top_section.texi \
 verb_end_of_line.texi verb_and_char_end_of_line.texi \
 def_braces_and_empty.texi \
 empty_ifclear.texi \
 tests.txt res res_all res_info

DISTCLEANFILES = tests.log tests.out

distclean-local:
	rm -rf out out_all out_info diffs

dist-hook:
	rm -rf `find $(distdir)/res $(distdir)/res_info $(distdir)/res_all -name .svn`


code:
\input texinfo @c -*-texinfo-*-

@setfilename at_after_accent_command.info

@node Top
@top Test @@ as accent command argument

@ringaccent @@. @^@@.

@bye


code:
\input texinfo.tex    @c -*-texinfo-*-

@setfilename author_outside_titlepage_quotation.info

@node Top
@top top

@author Some One

@bye


code:
\input texinfo @c -*-texinfo-*-
@setfilename bad_documentencoding.info

@node Top
@top test wrong @@documentencoding

@c this one is valid
@documentencoding us-ascii@asis{}

@documentencoding latin1@asis{a}
@documentencoding YS-ASCII
@@documentencoding @documentencoding bad encoding name
@documentencoding
@documentencoding 1
@documentencoding %
@documentencoding @@
@documentencoding AAA@TeX{}
@documentencoding BBB@'e
@set badvalue bad
@documentencoding @value{badvalue}
@macro badmacro
badm
@end macro
@documentencoding @badmacro{}
@documentencoding @strong{

@bye


code:
\input texinfo @c -*-texinfo-*-

@setfilename bad_nesting.info

@node Top
@top Test for bad nestings

Tests for environments not matching

@quotation
A quotation
@end cartouche

@deffn {Function Reference} print_navigation $filehandle
Text
@end deftypefun

@table
@item item
line
@end vtable

@table @emph
@item ref
@example
example
@end display
@end table

@group
in group
@end table

@group
in group 2
@end cartouche

@cartouche
cartouche
@end group

@cartouche
carouche
@end float

@bye


code:
\input texinfo @c -*-texinfo-*-

@setfilename bad_style_nesting.info

@node Top
@top Test for bad style @@-command nestings

@code{
@quotation
in quotation}
@end quotation

@bye


code:
\input texinfo @c -*-texinfo-*-

@setfilename bad_tab_nesting.info

@node Top
@top Test for bad @@tab  nesting with style @@-command

@multitable {truc} {bidule}
@item truc
@code{@tab bidule}
@end multitable

@bye


code:
\input texinfo @c -*-texinfo-*-

@setfilename brace_not_closed

@node ToP
Top node

@samp{Closing} @samp{ @} without opening macro }.}

anchor{truc@} @anchor{truc}.

Some text @|.
More text

@bye


code:
\input texinfo.tex    @c -*-texinfo-*-

@setfilename caption_not_closed.info

@node Top
@top Test caption not closed

@float Text
No label but caption.

@caption{Not closed caption

The caption trigger a keep_texi, so everything until the end of the file
is in the caption. Also the caption is formatted twice which leads to 2
error messages.

@end float

@listoffloats Text

@bye


code:
\input texinfo @c -*-texinfo-*-
@settitle code_not_closed

@node Top
@top Missing closing bracket

@menu
* chapter::
@end menu

@code{not closed

@node chapter
@chapter chapter

@code{still not closed

@bye


code:
\input texinfo @c -*-texinfo-*-
@settitle code_not_closed_no_newline

@node Top
@top Missing closing bracket without a following newline

@menu
* chapter::
@end menu

@code{not closed
@node chapter
@chapter chapter

@code{still not closed
@bye


code:
\input texinfo @c -*-texinfo-*-

@setfilename command_without_open_brace.info

@node Top
@top Test @@-comamnd without open brace or after a space

@code {c}.

@code arg.

@code
Arg.

@bye


code:
\input texinfo @c -*-texinfo-*-

@setfilename commands_not_closed.info

@node Top

@'{e

@chapter Chapter 1

@anchor{an

anchor}

@anchor{my anchor

@chapter Chapter 2

See @ref{my anchor}, and @ref{an anchor}, and @ref{footnote anchor}

@chapter Chapter 3

@ref{an anchor

@chapter Chapter 4

@math{A
@chapter Chapter 5

Footnote@footnote{
Footnote
@anchor{footnote anchor}

@bye


code:
\input texinfo @c -*-texinfo-*-

@node Top

texte

@insertcopying

@copying

This is a copyright notice

@copying

And a second one (?)


code:
\input texinfo @c -*-texinfo-*-

@setfilename def_bad_defx_command.info

@node Top
@top Test wrong @@def*x

@defun {my def} args @var{arg} @dots{}
@deffnx {type} {name} and now the args

In defun.

@end defun

@bye


code:
\input texinfo @c -*-texinfo-*-
@setfilename def_braces_and_empty.info

@node Top
@top Test for bad definition commands

@deffn fset @var{i} a g
@deffnx @b{id @samp{i} ule}
@deffnx
@deffnx aaa
@deffnx {} {}
@deffnx{}
@deffnx{truc} { }
@deffnx{truc}
@deffnx{} {}
@deffnx truc machin bidule chose and }
@deffnx truc machin bidule chose and } after
@deffnx truc machin bidule chose and {
@deffnx truc machin bidule chose and { and after
@end deffn

@deffn category name args { @
  more args
deffn with @{
@end deffn

@deffn category name args } @
  more args
deffn with @}
@end deffn

@c deffn
@deffn
@end deffn

@c defvr
@defvr
@end defvr

@c deftypefn
@deftypefn
@end deftypefn

@c deftypeop
@deftypeop
@end deftypeop

@c deftypevr
@deftypevr
@end deftypevr

@c defcv
@defcv
@end defcv

@c deftypecv
@deftypecv
@end deftypecv

@c defop
@defop
@end defop

@c deftp
@deftp
@end deftp

@c name is missing. This breaks texinfo.tex
@deftypeop Command@code{com} {Window@code{int}} expose@var{exp}
@end deftypeop

@printindex vr
@printindex fn

@bye


code:
\input texinfo @c -*-texinfo-*-
@setfilename def_cmd_dble.info
@node Top
@top Test for double definition commands

@deffn func plot (a, b, c, ...) @deffnx func plot2 (a, b, c, ..., d)
aaa
@end deffn

@deffn func aaaa args  @defvr c--ategory d--efvr_name
bbb
@end deffn

@bye


code:
\input texinfo @c -*-texinfo-*-

@setfilename direntry_dircategory_after_first_node.info

@node Top
@top direntry direcategory after first node

@dircategory Cat
@direntry
* in text: (in_text). in text
@end direntry

@bye


code:
\input texinfo @c -*-texinfo-*-
@settitle double_top_section.info

@top First top

First top.

@top Second top

Second top.

@bye


code:
\input texinfo @c -*-texinfo-*-
@setfilename empty_ifclear.info
@node Top
@top Test for empty @@if*

@ifclear

Something

@end ifclear

@ifset

Something ifset

@end ifset

@bye


code:
nput texinfo @c -*-texinfo-*-
@setfilename error_in_footnote_caption.info

@node Top
@top Test an error in a footnote within a @@caption

@float Text, label

Float text

@caption{In caption@footnote{TeX without brace @TeX} LaTeX without brace @LaTeX}
@end float

@float Text, label1

Float text1

@caption{In

caption 2@footnote{TeX2 without brace @TeX} Second @footnote{bullet1 without brace @bullet} LaTeX2 without
brace @LaTeX}
@end float

@float Text, label2

Float text2

@caption{In

caption 2@footnote{TeX3 without brace @TeX
and now @copyright

@itemize @bullet
@item ERror on error @error in item
@end itemize
} Second @footnote{bullet1 without brace @bullet} LaTeX3 without
brace @LaTeX}
@end float

@listoffloats Text

@bye


code:
\input texinfo @c -*-texinfo-*-

@setfilename footnote_not_closed.info

@node Top
@top Top section

texte@footnote{We have a footnote.

This is an important footnote.

@menu
* chapter::           the chapter
* chapter2::           the second chapter
@end menu

@node chapter
@chapter Chapter

In chapter@footnote{Another footnote

@quotation
In a quotation

@node chapter2
@chapter Chapter2

@bye


code:
\input texinfo @c -*-texinfo-*-

@node Top

@example

@table @minus
@item item
table line

Some text.
@enumerate

@item first item
@item an item

@end example

@section a section

Node text

an end table without correspondiing opening part
@end table

Multitable not closed with item and tab

@multitable {r} {t}
@item rt @tab ds

@section a section
Multitable not closed with item

@multitable {r} {t}
@item rt

@section a section
Multitable not closed
@multitable {r} {t}

@section a section
@deffn truc bidule machin
@deffnx truc chose args
@defvar type1 var bidule

@section a section

flushright not closed

@flushright

text flushed right

@section a section

group not closed

@group

text in group

@bye


code:
\input texinfo @c -*-texinfo-*-

@node Top

texte

@html

This is some html
<address> my address </address>


code:
\input texinfo @c -*-texinfo-*-

@node Top

texte

@ignore

This is ignored


code:
\input texinfo @c -*-texinfo-*-

@setfilename invalid_command_in_table.info

@node Top
Top node

@table
{ @itemTop,, title
long title}
Item line
@end table

@bye


code:
\input texinfo @c -*-texinfo-*-
@settitle itemx_in_itemize.info

@node Top
@top itemx in itemize and enumerate

@itemize
@item item
@itemx itemx
@headitem headitem
@end itemize

@enumerate
@item item enumerate
@itemx itemx enumerate
@headitem headitem enumerate
@end enumerate

@table @strong
@headitem headitem in table

headitem In table text.

@item item

In item, nested itemize
@itemize
@itemx in nested itemize itemx
@end itemize

@enumerate
@itemx in nested enumerate itemx
@end enumerate

@end table

@itemx itemx outside.
@headitem headitem outside.
@someitem someitem outside.

@bye


code:
\input texinfo @c -*-texinfo-*-

@macro macro1 { arg1 , arg2 }
result: @emph{\arg1\} protected \\ -> \\arg1\\ @emph{\arg2\}
@end macro

@node Top

after end macro

@macro1 { bidule {truc{machin


code:
\input texinfo @c -*-texinfo-*-

@node Top

texte

@macro the_macro {arg1, arg2}

Macro body


code:
\input texinfo @c -*-texinfo-*-

@setfilename math_no_closed.info

@node Top

@math{\delta + 2
@chapter Chapter

@math{3\delta + 2
@bye


code:
\input texinfo @c -*-texinfo-*-

@setfilename multitable_begin_with_tab.info

@node Top
@top Test for tab beginning a multitable

@multitable {a} {b}
@tab t
@end multitable

@multitable {c} {d}
@tab t2
@item it
@end multitable

@bye


code:
\input texinfo @c -*-texinfo-*-

@node Top
@top test multitable with too much cells

@multitable
@item item in empty multitable @tab tab in empty m @tab second tab in empty m
@item item in empty m
@end multitable

@multitable {a}
@item a @tab additional tab @tab other additional tab @tab 3rd  additiona tab
@item a1
@item a2 @tab additional tab2 @tab other additional tab2 @tab 3rd  additional tab2
@item a3 @tab one additional tab
@end multitable

@multitable @columnfractions 0.4 0.6
@item first @tab second @tab first out @tab second out @tab third out
@item first1
@item first2 @tab second2 @tab first2 out
@end multitable

@bye


code:
\input texinfo @c -*-texinfo-*-

@setfilename node_in_copying.info

@copying

This is an unterminatted copyright notice

@node Top
@top Top section

@insertcopying

This is a manual testing @@node appearing within an unterminated @@copying.

@bye


code:
\input texinfo @c -*-texinfo-*-

@setfilename node_too_much_arguments.info

@node Top
@top Top

@menu
* node::
@end menu

@node node,,,,too much arg

@bye


code:
\input texinfo @c -*-texinfo-*-

@node Top

@menu
* (gcc):: text @table @minus
@item item
table line
@end menu

Some text.

@menu
* (manual):: desc

@table @bullet
@item item
comment
* (manual2)::
@end menu

@menu
* (info):: before deff @deffn bidule truc chose

deffn text
@end menu
After menu

@menu
* (manual_in_menu):: desc2

@bye


code:
\input texinfo @c -*-texinfo-*-

@setfilename recursive_copying.info

@copying

In copying.

@insertcopying
@end copying

@node Top
@top Test recursive copying

Test recursive copying.

@insertcopying

@bye


code:
\input texinfo @c -*-texinfo-*-

@setfilename ref_to_unknown_node.info

@node Top
@top Ref to nonexisting node.

ref to a non existing node@ref{bidule}.

@bye


code:
\input texinfo @c -*-texinfo-*-

@setfilename style_not_closed_in_cartouche.info

@node Top
@top Test command not closed in cartouche

@cartouche
cartouche @code{in code
@end cartouche

@bye


code:
\input texinfo @c -*-texinfo-*-

@setfilename style_not_closed_in_table_line.info

@node Top
@top Test command not closed on table line

@table @asis
@item first item
line
line @code{in code @item in item
@end table

@bye


code:
\input texinfo @c -*-texinfo-*-

@setfilename tab_in_index.info

@node Top
@top Test for @@tab in @@index

@multitable {one nonlettered character} {normal text}
@item one nonlettered character @tab aaa
@vindex in index entry @tab in tab
@end multitable

@multitable {aaa} {bbb}
@vindex @item on item line
@end multitable

@printindex vr

@bye


code:
texi brace_not_closed.texi
texi recursive_copying.texi
texi bad_nesting.texi
texi code_not_closed.texi
texi code_not_closed_no_newline.texi
texi formats_not_closed.texi
texi commands_not_closed.texi
texi math_not_closed.texi --set-customization-variable 'L2H 1' --iftex
texi not_closed_in_menu.texi
texi macro_call_not_closed.texi
texi macro_def_not_closed.texi
texi ignored_not_closed.texi
texi verb_not_closed.texi
texi tex_not_closed.texi --set-customization-variable 'L2H 1' --iftex
texi html_not_closed.texi
texi verbatim_not_closed.texi
texi copying_not_closed.texi
texi node_in_copying.texi
texi tex_in_copying.texi --set-customization-variable 'L2H 1' --iftex
texi titlepage_not_closed.texi
texi footnote_not_closed.texi
texi caption_not_closed.texi
texi def_cmd_dble.texi
texi style_not_closed_in_table_line.texi
texi style_not_closed_in_cartouche.texi
texi multitable_too_much_col.texi
texi bad_style_nesting.texi
texi tab_in_index.texi
texi bad_tab_nesting.texi
texi invalid_command_in_table.texi
texi unknown_command_with_braces.texi
texi multitable_begin_with_tab.texi
texi ref_to_unknown_node.texi
texi def_bad_defx_command.texi
texi direntry_dircategory_after_first_node.texi
texi node_too_much_arguments.texi
texi bad_documentencoding.texi
texi error_in_footnote_caption.texi
texi unclosed_verb_line_commands.texi
texi at_after_accent_command.texi
texi command_without_open_brace.texi
texi itemx_in_itemize.texi
texi double_top_section.texi
texi author_outside_titlepage_quotation.texi
texi verb_end_of_line.texi
texi verb_and_char_end_of_line.texi
texi empty_ifclear.texi
texi def_braces_and_empty.texi
brace_not_closed brace_not_closed.texi
recursive_copying recursive_copying.texi
bad_nesting bad_nesting.texi
code_not_closed code_not_closed.texi
code_not_closed_no_newline code_not_closed_no_newline.texi
formats_not_closed formats_not_closed.texi
commands_not_closed commands_not_closed.texi
not_closed_in_menu not_closed_in_menu.texi
macro_call_not_closed macro_call_not_closed.texi
macro_def_not_closed macro_def_not_closed.texi
ignored_not_closed ignored_not_closed.texi
verb_not_closed verb_not_closed.texi
html_not_closed html_not_closed.texi
verbatim_not_closed verbatim_not_closed.texi
copying_not_closed copying_not_closed.texi
node_in_copying node_in_copying.texi
titlepage_not_closed titlepage_not_closed.texi
footnote_not_closed footnote_not_closed.texi
caption_not_closed caption_not_closed.texi
def_cmd_dble def_cmd_dble.texi
style_not_closed_in_table_line style_not_closed_in_table_line.texi
style_not_closed_in_cartouche style_not_closed_in_cartouche.texi
multitable_too_much_col multitable_too_much_col.texi
bad_style_nesting bad_style_nesting.texi
tab_in_index tab_in_index.texi
bad_tab_nesting bad_tab_nesting.texi
#-debug 255
invalid_command_in_table invalid_command_in_table.texi
unknown_command_with_braces unknown_command_with_braces.texi
multitable_begin_with_tab multitable_begin_with_tab.texi
ref_to_unknown_node ref_to_unknown_node.texi
def_bad_defx_command def_bad_defx_command.texi
direntry_dircategory_after_first_node direntry_dircategory_after_first_node.texi
node_too_much_arguments node_too_much_arguments.texi
bad_documentencoding bad_documentencoding.texi
error_in_footnote_caption error_in_footnote_caption.texi
unclosed_verb_line_commands unclosed_verb_line_commands.texi
at_after_accent_command at_after_accent_command.texi
command_without_open_brace command_without_open_brace.texi
itemx_in_itemize itemx_in_itemize.texi
double_top_section double_top_section.texi
author_outside_titlepage_quotation author_outside_titlepage_quotation.texi
verb_end_of_line verb_end_of_line.texi
verb_and_char_end_of_line verb_and_char_end_of_line.texi
empty_ifclear empty_ifclear.texi
def_braces_and_empty def_braces_and_empty.texi


code:
texi brace_not_closed.texi
texi recursive_copying.texi
texi bad_nesting.texi
texi code_not_closed.texi
texi code_not_closed_no_newline.texi
texi formats_not_closed.texi
texi commands_not_closed.texi
texi math_not_closed.texi --set-init-var 'L2H 1' --iftex
texi not_closed_in_menu.texi
texi macro_call_not_closed.texi
texi macro_def_not_closed.texi
texi ignored_not_closed.texi
texi verb_not_closed.texi
texi tex_not_closed.texi --set-init-var 'L2H 1' --iftex
texi html_not_closed.texi
texi verbatim_not_closed.texi
texi copying_not_closed.texi
texi node_in_copying.texi
texi tex_in_copying.texi --set-init-var 'L2H 1' --iftex
texi titlepage_not_closed.texi
texi footnote_not_closed.texi
texi caption_not_closed.texi
texi def_cmd_dble.texi
texi style_not_closed_in_table_line.texi
texi style_not_closed_in_cartouche.texi
texi multitable_too_much_col.texi
texi bad_style_nesting.texi
texi tab_in_index.texi
texi bad_tab_nesting.texi
texi invalid_command_in_table.texi
texi unknown_command_with_braces.texi
texi multitable_begin_with_tab.texi
texi ref_to_unknown_node.texi
texi def_bad_defx_command.texi
texi direntry_dircategory_after_first_node.texi
texi node_too_much_arguments.texi
texi bad_documentencoding.texi
texi error_in_footnote_caption.texi
texi unclosed_verb_line_commands.texi
texi at_after_accent_command.texi
texi command_without_open_brace.texi
texi itemx_in_itemize.texi
texi double_top_section.texi
texi author_outside_titlepage_quotation.texi
texi verb_end_of_line.texi
texi verb_and_char_end_of_line.texi
texi empty_ifclear.texi
texi def_braces_and_empty.texi
brace_not_closed brace_not_closed.texi
recursive_copying recursive_copying.texi
bad_nesting bad_nesting.texi
code_not_closed code_not_closed.texi
code_not_closed_no_newline code_not_closed_no_newline.texi
formats_not_closed formats_not_closed.texi
commands_not_closed commands_not_closed.texi
not_closed_in_menu not_closed_in_menu.texi
macro_call_not_closed macro_call_not_closed.texi
macro_def_not_closed macro_def_not_closed.texi
ignored_not_closed ignored_not_closed.texi
verb_not_closed verb_not_closed.texi
html_not_closed html_not_closed.texi
verbatim_not_closed verbatim_not_closed.texi
copying_not_closed copying_not_closed.texi
node_in_copying node_in_copying.texi
titlepage_not_closed titlepage_not_closed.texi
footnote_not_closed footnote_not_closed.texi
caption_not_closed caption_not_closed.texi
def_cmd_dble def_cmd_dble.texi
style_not_closed_in_table_line style_not_closed_in_table_line.texi
style_not_closed_in_cartouche style_not_closed_in_cartouche.texi
multitable_too_much_col multitable_too_much_col.texi
bad_style_nesting bad_style_nesting.texi
tab_in_index tab_in_index.texi
bad_tab_nesting bad_tab_nesting.texi
#-debug 255
invalid_command_in_table invalid_command_in_table.texi
unknown_command_with_braces unknown_command_with_braces.texi
multitable_begin_with_tab multitable_begin_with_tab.texi
ref_to_unknown_node ref_to_unknown_node.texi
def_bad_defx_command def_bad_defx_command.texi
direntry_dircategory_after_first_node direntry_dircategory_after_first_node.texi
node_too_much_arguments node_too_much_arguments.texi
bad_documentencoding bad_documentencoding.texi
error_in_footnote_caption error_in_footnote_caption.texi
unclosed_verb_line_commands unclosed_verb_line_commands.texi
at_after_accent_command at_after_accent_command.texi
command_without_open_brace command_without_open_brace.texi
itemx_in_itemize itemx_in_itemize.texi
double_top_section double_top_section.texi
author_outside_titlepage_quotation author_outside_titlepage_quotation.texi
verb_end_of_line verb_end_of_line.texi
verb_and_char_end_of_line verb_and_char_end_of_line.texi
empty_ifclear empty_ifclear.texi
def_braces_and_empty def_braces_and_empty.texi


code:
\input texinfo @c -*-texinfo-*-

@setfilename tex_in_copying.info

@copying
Some equation is indeed needed to understand the copyright of
that file
@tex
From @ someone <> !
$$
a = \phi
$$
@end tex

@end copying

@node Top
@top Top node

@insertcopying

@menu
* chapter::
@end menu

@insertcopying

@node chapter
@chapter chapter

The fundamental equation is
@tex
$$
2 a = \dot{\phi}
$$
@end tex

@insertcopying

@bye


code:
\input texinfo @c -*-texinfo-*-

@node Top

texte

@tex

This is some \LaTeX{}


code:
\input texinfo @c -*-texinfo-*-

@node Top

texte

@titlepage

This is in title page

@titlepage

And still in title page


code:
\input texinfo @c -*-texinfo-*-

@setfilename @verb{setfilename.info @c setfilename
@settitle @verb{Settitle @c settittle

@node @verb{Top @c comment mode
@top @verb{top element@  @comment @top

@menu
* (gcc)node::{@  @c comment menu entry
* node {name:(truc)node@ @c comment menu entru node
* nodesub@ ::
* next::
@end menu

@heading @verb{Heading @     @c heading

@c quotation argument is put within @b and prepended, therefore a @verb{
@c will extend to the end of the file.
@quotation {truc@ @c quotation
In quotation
@end quotation

@float @verb{Text @ , label @ @c float
Float
@end float

@listoffloats @verb{Text @ @c listoffloats

@cindex index @verb{entry @c index entry

@printindex cp @c printindex

@node @verb{nodesub@ ,next,,Top

@node next, @verb{nodesub@
@bye @c bye


code:
\input texinfo @c -*-texinfo-*-

@setfilename unknown_command_with_braces.info

@node Top
@top Test unknown command with braces

Unknown macro @unknown{ first paragraph

second paragraph}

@unknown2{ first paragraph

second paragraph

third}

Unknown thing @thing{}

@bye


code:
\input texinfo @c -*-texinfo-*-

@setfilename verb_and_char_end_of_line.info

@settitle in set title @verb{*

@node Top

texte

some @verb{*

In verb

*}

Another verb, not  closed @verb{*

@bye


code:
\input texinfo @c -*-texinfo-*-

@setfilename verb_end_of_line.info

@settitle in set title @verb{

@node Top

texte

some @verb{

In verb

}

Another verb, not  closed @verb{

@bye


code:
\input texinfo @c -*-texinfo-*-

@node Top

texte

@verb{*

In verb

*


code:
\input texinfo @c -*-texinfo-*-

@node Top

texte

@verbatim

some verbatim @

@macro


code:
EXTRA_DIST = no_monolithic.texi navigation.texi formatting_regions.texi \
 only_toc_out.init misc_file_collision.init \
 ignore_and_comments_output.init \
 tests.txt res res_all res_info

DISTCLEANFILES = tests.log tests.out

distclean-local:
	rm -rf out out_all out_info diffs

dist-hook:
	rm -rf `find $(distdir)/res $(distdir)/res_info $(distdir)/res_all -name .svn`


code:
\input texinfo @c -*-texinfo-*-
@setfilename formatting-regions.info

@documentdescription
This is the explicit d--ocument @code{d@'escription}.
@end documentdescription

@node Top
@top Top section
@ifnothtml

@menu
* constructs::
* chapter::               chapter

Menu comment

* chapter2:description.   Chapter 2
@end menu

@end ifnothtml
@node constructs
@chapter constructs

@include coverage_macro.texi

@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

Titlepage
@mymacro{}

insertcopying in titlepage
@insertcopying
end titlepage
@end titlepage

@mymacro{}

@example
@mymacro{}
@end example

insertcopying
@insertcopying

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

cp
@printindex cp

fn
@printindex fn

vr
@printindex vr

ky
@printindex ky

pg
@printindex pg

tp
@printindex tp

@node chapter
@chapter chapter

@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::
@end menu

@node subsection
@subsection subsection

@menu
* subsubsection::
@end menu

@anchor{anchor}

@node subsubsection
@subsubsection subsubsection

@node chapter2
@centerchap chapter 2

@printindex cp
@printindex fn

@contents
@shortcontents


code:
use strict;

# output comment lines in comments

$misc_command_line = \&comments_output_misc_command_line;

sub comments_output_misc_command_line($$$$$)
{
   my $macro = shift;
   my $line = shift;
   my $args = shift;
   my $stack = shift;
   my $state = shift;

   my $result;

    if ($macro eq 'c' or $macro eq 'comment' and scalar(@$args))
    {
        my $comment_line = $args->[0];
        chomp ($comment_line);
        # makeinfo remove all the leading spaces
        $comment_line =~ s/^\s//;
        $result = &$comment ($comment_line);
    }
   return ($macro, $line, $result);
}

# output @ignore blocks in comments.

$texi_formats_map{'ignore'} = 'raw';
#$format_in_paragraph{'ignore'} = 1;
$no_paragraph_commands{'end ignore'} = 1;
$no_paragraph_commands{'ignore'} = 1;

$command_handler{'ignore'} = { 'init' => \&collect_ignore_blocks,
  'expand' => \&ignore_blocks_to_comments,
};

my %ignore_blocks;

push @command_handler_init, \&ignore_block_to_comments_init;

sub ignore_block_to_comments_init
{
  %ignore_blocks = ();
}

sub collect_ignore_blocks($$$)
{
  my $command = shift;
  my $text = shift;
  my $counter = shift;

  $ignore_blocks{$command}->{$counter} = $text;
}

sub ignore_blocks_to_comments($$)
{
  my $command = shift;
  my $counter = shift;
  my $result = &$comment ($ignore_blocks{$command}->{$counter});
  chomp ($result);
  return $result;
}


code:
use strict;

$element_file_name = \&test_misc_file_name;

sub test_misc_file_name($$$)
{
  my $element = shift;
  my $type = shift;
  my $docu_name = shift;

  if ($type eq 'top' or (defined($element->{'doc_nr'}) and $element->{'doc_nr'} == 2))
  {
     my $extension = get_conf('EXTENSION');
     return "${docu_name}_abt"
      . ((defined($extension)) ? ".$extension" : '');
  }
  return undef;
}

set_from_init_file('DO_ABOUT', 1);

1;


code:
\input texinfo @c -*-texinfo-*-

@setfilename navigation.info

@node Top
@top File used for navigation testing

@menu
* chapter::
@end menu

@node chapter
@chapter First chapter

@menu
* section::
@end menu

@node section
@section Section in chapter

AAAA

AAAA

AAAA

AAAA

AAAA

AAAA

AAAA

AAAA

AAAA

AAAA

AAAA

AAAA

b b b b b b b b b b b b b b b b b b b b b b b b b b b b b b b b b b b
b b b b b b b b b b b b b b b b  b b b b b bb b b b b b b  bb  b bb.

@menu
* subsection::
@end menu

@node subsection
@subsection Sub section in section

@contents

@bye


code:
\input texinfo @c -*-texinfo-*-

@setfilename no_monolithic.info

@node Top
@top Not monolithic

Not monolitic manual@footnote{my footnote}.

@cindex top

@menu
* chapter::
@end menu

@node chapter
@chapter Chapter

Chapter.

@contents
@shortcontents

@printindex cp
@bye


code:
$element_file_name = \&toc_out_element_file_name;

sub toc_out_element_file_name($$$)
{
    my $element = shift;
    my $type = shift;
    my $prefix = shift;

    if ($type and ($type ne 'top') and ($type ne 'toc'))
    {
        return "$prefix.".get_conf('EXTENSION');
    }
    return undef;
}

1;


code:
texi no_monolithic.texi
texi navigation.texi
texi formatting_regions.texi
texi ../coverage/comments.texi --init ignore_and_comments_output.init
no_monolithic no_monolithic.texi --set-customization-variable 'MONOLITHIC 0'
no_monolithic_only_toc_out no_monolithic.texi --set-customization-variable 'MONOLITHIC 0' --init only_toc_out.init
navigation navigation.texi
navigation_no_header navigation.texi --no-header
#navigation_noheaders_init navigation.texi --init noheaders.pm
navigation_vertical navigation.texi --set-customization-variable 'VERTICAL_HEAD_NAVIGATION 1'
navigation_no_header_vertical navigation.texi --set-customization-variable 'VERTICAL_HEAD_NAVIGATION 1' --set-customization-variable HEADERS=0
navigation_chapter navigation.texi --split chapter
navigation_section navigation.texi --split section
navigation_node navigation.texi --split node
navigation_chapter_no_header navigation.texi --split chapter --no-header
navigation_section_no_header navigation.texi --split section --no-header
navigation_node_no_header navigation.texi --split node --no-header
#navigation_chapter_noheaders_init navigation.texi --split chapter --init noheaders.pm
#navigation_section_noheaders_init navigation.texi --split section --init noheaders.pm
#navigation_node_noheaders_init navigation.texi --split node  --init noheaders.pm
navigation_chapter_vertical navigation.texi --set-customization-variable 'VERTICAL_HEAD_NAVIGATION 1' --split chapter
navigation_section_vertical navigation.texi --set-customization-variable 'VERTICAL_HEAD_NAVIGATION 1' --split section
navigation_node_vertical navigation.texi --set-customization-variable 'VERTICAL_HEAD_NAVIGATION 1' --split node
navigation_chapter_no_header_vertical navigation.texi --set-customization-variable 'VERTICAL_HEAD_NAVIGATION 1' --split chapter --set-customization-variable HEADERS=0
navigation_section_no_header_vertical navigation.texi --set-customization-variable 'VERTICAL_HEAD_NAVIGATION 1' --split section --set-customization-variable HEADERS=0
navigation_node_no_header_vertical navigation.texi --set-customization-variable 'VERTICAL_HEAD_NAVIGATION 1' --split node --set-customization-variable HEADERS=0
navigation_test_misc_file_collision navigation.texi --split node --init misc_file_collision.init
formatting_regions formatting_regions.texi
formatting_exotic ../coverage/formatting.texi --split section --no-header --no-number-sections --set-customization-variable 'TOC_LINKS 1' --set-customization-variable 'DEF_TABLE 1' --set-customization-variable 'XREF_USE_NODE_NAME_ARG 1' --footnote-style=end --css-ref http://www.environnement.ens.fr/perso/dumas/background-color.css --internal-links=/dev/null --set-customization-variable 'USE_TITLEPAGE_FOR_TITLE 0'
#formatting_makeinfo ../coverage/formatting.texi --init makeinfo.pm --no-warn
formatting_chm ../coverage/formatting.texi --init chm.pm
#formatting_program_texi2any ../coverage/formatting.texi --program texi2any
#formatting_program_foo ../coverage/formatting.texi --program foo
#float_program_texi2any ../coverage/float.texi --program texi2any
formatting_nodes ../coverage/formatting.texi --split node
#formatting_program_texi2any_nodes ../coverage/formatting.texi --program texi2any --split nodes
comments_ignore_and_comments_output ../coverage/comments.texi --init ignore_and_comments_output.init


code:
texi no_monolithic.texi
texi navigation.texi
texi formatting_regions.texi
texi ../coverage/comments.texi --init ignore_and_comments_output.init
no_monolithic no_monolithic.texi --set-init-var 'MONOLITHIC 0'
no_monolithic_only_toc_out no_monolithic.texi --set-init-var 'MONOLITHIC 0' --init only_toc_out.init
navigation navigation.texi
navigation_no_header navigation.texi --no-header
navigation_noheaders_init navigation.texi --init noheaders.pm
navigation_vertical navigation.texi --set-init-var 'VERTICAL_HEAD_NAVIGATION 1'
navigation_no_header_vertical navigation.texi --set-init-var 'VERTICAL_HEAD_NAVIGATION 1' --set-init-var HEADERS=0
navigation_chapter navigation.texi --split chapter
navigation_section navigation.texi --split section
navigation_node navigation.texi --split node
navigation_chapter_no_header navigation.texi --split chapter --no-header
navigation_section_no_header navigation.texi --split section --no-header
navigation_node_no_header navigation.texi --split node --no-header
navigation_chapter_noheaders_init navigation.texi --split chapter --init noheaders.pm
navigation_section_noheaders_init navigation.texi --split section --init noheaders.pm
navigation_node_noheaders_init navigation.texi --split node  --init noheaders.pm
navigation_chapter_vertical navigation.texi --set-init-var 'VERTICAL_HEAD_NAVIGATION 1' --split chapter
navigation_section_vertical navigation.texi --set-init-var 'VERTICAL_HEAD_NAVIGATION 1' --split section
navigation_node_vertical navigation.texi --set-init-var 'VERTICAL_HEAD_NAVIGATION 1' --split node
navigation_chapter_no_header_vertical navigation.texi --set-init-var 'VERTICAL_HEAD_NAVIGATION 1' --split chapter --set-init-var HEADERS=0
navigation_section_no_header_vertical navigation.texi --set-init-var 'VERTICAL_HEAD_NAVIGATION 1' --split section --set-init-var HEADERS=0
navigation_node_no_header_vertical navigation.texi --set-init-var 'VERTICAL_HEAD_NAVIGATION 1' --split node --set-init-var HEADERS=0
navigation_test_misc_file_collision navigation.texi --split node --init misc_file_collision.init
formatting_regions formatting_regions.texi
formatting_exotic ../coverage/formatting.texi --split section --no-header --no-number-sections --set-init-var 'TOC_LINKS 1' --set-init-var 'DEF_TABLE 1' --set-init-var 'SHORT_REF 1' --footnote-style=end --css-ref http://www.environnement.ens.fr/perso/dumas/background-color.css --internal-links=/dev/null --set-init-var 'USE_TITLEPAGE_FOR_TITLE 0'
formatting_makeinfo ../coverage/formatting.texi --init makeinfo.pm --no-warn
formatting_chm ../coverage/formatting.texi --init chm.pm
formatting_program_texi2any ../coverage/formatting.texi --program texi2any
formatting_program_foo ../coverage/formatting.texi --program foo
float_program_texi2any ../coverage/float.texi --program texi2any
formatting_nodes ../coverage/formatting.texi --split nodes
formatting_program_texi2any_nodes ../coverage/formatting.texi --program texi2any --split nodes
comments_ignore_and_comments_output ../coverage/comments.texi --init ignore_and_comments_output.init


code:
#! /bin/sh
# Copyright (C) 2010 Free Software Foundation, Inc.
#
# Copying and distribution of this file, with or without modification,
# are permitted in any medium without royalty provided the copyright
# notice and this notice are preserved.

if [ z"$srcdir" = 'z' ]; then
  srcdir=.
fi

"$srcdir"/tests.sh all \
 misc manuals xemacs_manual texi2html_manual tar_manual singular_manual


code:
EXTRA_DIST = macros.texi simple_macro.texi nested_macro_calls.texi \
 glossary.texi imbricated_macros.texi expansion_order.texi \
 ifclear_in_macro.texi macro_call_in_ifset.texi ifset_in_macro.texi \
 not_ifset_text.texi bib-example.texi quote-args.texi alias.texi \
 test_include.texi nested_ignore.texi include_macro.texi \
 cond.texi defxcond.texi include-value.texi macro_in_misc.texi \
 value_in_misc_valid.texi macro-at.texi node-expand.texi \
 value_in_pass0_macros.texi macros_in_pass0_macros.texi macro_zero.texi \
 macro_in_pass_texi_commands.texi two_macros_on_a_line.texi \
 macro_commands_in_pass_texi_commands.texi node-value.texi empty_macro.texi \
 test_include_with_setfilename.texi no_arg_macro.texi \
 simple_imbricated_macro.texi test_paths.texi \
 setfilename_comment.texi double_setfilename.texi bad_setfilename.texi \
 space_in_setfilename.texi space_end_setfilename.texi \
 setfilename_space_comment.texi \
 inc_@f--ile.texi \
 file.texi inc_file.texi macro_included.texi my-bib-macros.texi \
 incl-incl.txi included_file_with_setfilename.texi \
 tests.txt res res_all res_info

DISTCLEANFILES = tests.log tests.out

distclean-local:
	rm -rf out out_all out_info diffs

dist-hook:
	rm -rf `find $(distdir)/res $(distdir)/res_info $(distdir)/res_all -name .svn`


code:
\input texinfo
@setfilename alias.info

@top test alias

@alias myalias = code

@ignore
@alias ignored = file
@end ignore

@macro mymacro{arg}
before \arg\ after arg
@end macro

@mymacro{
@alias inmymacro = verb

@ignore
@alias ignoredinmymacro = file
@end ignore
}

Should be code: @myalias{code}

Should be verb: @inmymacro{!verb!}

Should not be defined: @ignored{ignored}

Should not be defined: @ignoredinmymacro{ignoredinmymacro}

@table @myalias
@item table item (code)
@end table

@bye


code:
\input texinfo @c -*-texinfo-*-

@setfilename file @setfilename other file @include are you joking!

@node Top
@top In top @setfilename very badly placed setfilename

@setfilename a bit too late

@bye


code:
\input texinfo   @c -*-texinfo-*-
@c % Copyright (C) 2004  Aaron S. Hawley

@c % Author: Aaron S. Hawley <ashawley@gnu.uvm.edu>
@c % Keywords: docs, texinfo, extensions, bib

@c % This file is free software; you can redistribute it and/or modify
@c % it under the terms of the GNU General Public License as published by
@c % the Free Software Foundation; either version 2, or (at your option)
@c % any later version.

@c % This file is distributed in the hope that it will be useful,
@c % but WITHOUT ANY WARRANTY; without even the implied warranty of
@c % MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
@c % GNU General Public License for more details.

@c % You should have received a copy of the GNU General Public License
@c % along with texi2html; see the file COPYING.  If not, write to
@c % the Free Software Foundation, Inc., 59 Temple Place - Suite 330,
@c % Boston, MA 02111-1307, USA.

@comment %**start of header
@setfilename my-file-with-bib.info
@settitle Texinfo with a Bibliography and References

@include my-bib-macros.texi
@mybibuselist{References}

@comment %**end of header

@node Top
@top Top

@menu
* Introduction::
* @mybibnode{}::

@end menu

@node Introduction
@chapter Introduction

The ability of a documentation format to make cross references to a
bibliography, a feature of LaTeX @mybibcite{LaTeX2e}, isn't
currently supported in Texinfo.

@node @mybibnode{}
@chapter References

@itemize @asis

@mybibitem{LaTeX2e} Leslie Lamport, LaTeX User's Guide and
Reference Manual, 2nd edition, Addison-Wesley, Reading,
Massachusetts, 1994.

@end itemize

@bye


code:
\input texinfo
@setfilename cond.info

@node Top

@html
This is html text.
@end html

@ifhtml
This is ifhtml text.
@end ifhtml

@ifnothtml
This is ifnothtml text.
@end ifnothtml

@ifinfo
This is ifinfo text.
@end ifinfo

@ifnotinfo
This is ifnotinfo text.
@end ifnotinfo

@tex
This is tex text.
@end tex

@iftex
This is iftex text.
@end iftex

@ifnottex
This is ifnottex text.
@end ifnottex

@bye


code:
\input texinfo
@setfilename defxcond.info

@c set this from the command line.
@c set bar

@c deffnx inside conditional.
@deffn foo

@ifset bar
@deffnx bar
@end ifset

Documentation.

@end deffn

@bye


code:
\input texinfo @c -*-texinfo-*-

@setfilename file1

@setfilename file2
@node Top
@top In top

@bye


code:
\input texinfo
@setfilename empty_macro.info

@node Top
@top test empty macro

@macro foo
@end macro

@foo

@foo{}

@bye


code:
@macro bidule{arg}
@machin
@end macro

@macro machin
\\arg\\

@end macro

@bidule{ab}


code: content of included file with arg2: \arg2\


code:
\input texinfo.tex

@setfilename glossary

@macro glossarytext
@table @asis
@end macro

@macro glossary
@glossarytext
@end table

@end macro

@macro gentry {id, name, text}
@ifhtml
@ref{\id\,\name\}
@end ifhtml
@ifnothtml
\name\ (@pxref{\id\})
@end ifnothtml
@unmacro expandglossary
@macro expandglossary{glossary}
@unmacro glossarytext
@macro glossarytext
\\glossary\\
@item \name\ @anchor{\id\}
\text\
@end macro
@end macro
@expandglossary {@glossarytext}

@end macro

@node Top
@top Top

@menu
* glossary::
@end menu

The @gentry{id1, name1, text1\, arg1 } is used in many cases while
@gentry{id2, name2, text2} is quite specific

@node glossary
@chapter glossary
@glossary


code:
\input texinfo.tex    @c -*-texinfo-*-

@setfilename ifclear_in_macro.info
@macro note {arg}
@ifclear notes
\arg\
@end ifclear
@end macro

@node Top

@note{
arg
}

text

@bye


code:
\input texinfo.tex    @c -*-texinfo-*-

@setfilename ifset_in_macro.info
@macro note {arg}
@ifset notes
\arg\
@end ifset
@end macro

@node Top

@note{
arg
}

text

@bye


code:
\input texinfo.tex

@setfilename imbricated_macros

@node Top

@macro macro1
a, @macro2
@end macro
@macro macro11
a, macro2
@end macro

@macro macro2{arg}
coucou \arg\ after arg
@end macro

@macro macro3{text, arg}
\text\
&&&& \arg\
@end macro

@macro macro4 {}
1
2
3
4
@end macro

@c the arguments are broken at , before macro expansion
@c @ protect the following @.
@c
@macro3{@macro1{}text for macro2}

@c the macro inside @macro1 is expanded before the remaining args
@c are appended.

@macro3{@macro11{}text for macro2}

@macro3{@verb{% @macro2 %}
@c @macro4
@pagesizes 4 @macro4
@headings doubleafter @macro4
@verbatim
@macro2
@end verbatim
@ignore
@macro4
@end ignore
@macro macro7 {truc}
@emph{\\truc\\}
@end macro
macro7 defined
@ifinfo
@macro4
@end ifinfo
@iftex
@macro2{aa\,bb}
@end iftex
@macro4
}

Call macro7
@macro7{aaa}

@bye

@c makeinfo doesn't like not closed environments
@macro v1{}
@verbatim

@end macro

@macro v2{}
@c @end verbatim

@end macro

@v1

@c @v2
@c @end verbatim

@bye


code: This is the @emph{included} file (include-value2.txi).


code:
\input texinfo
@setfilename include-value.info
@c

@set testvar incl-incl.txi

@c test - in the variable name, and concatenation of text after.
@set test-var incl-incl.tx

@c test - in the variable name, and concatenation of text before and after.
@set test_var ncl-incl.tx

@node Top

testvar include: @include @value{testvar}

testvar verbatiminclude: @verbatiminclude @value{testvar}

test-var include: @include @value{test-var}i

test-var verbatiminclude: @verbatiminclude @value{test-var}i

test_var include: @include i@value{test_var}i

test_var verbatiminclude: @verbatiminclude i@value{test_var}i

@bye


code:
\input texinfo @c -*-texinfo-*-

@node Top
@top test inclusion of a file defining a macro

@include macro_included.texi

Call macro
@themacro

@bye


code:
@setfilename included_file.info

In included file.


code:
\input texinfo @c -*- texinfo -*-
@setfilename macro-at.info
@settitle AUTHORS -- who did what on GNU LilyPond

@macro foo
foo-expansion
@end macro

@macro bar
bar-expansion
@end macro

@node Top, , AUTHORS -- who did what on GNU LilyPond, (dir)
@top
@menu
* AUTHORS -- who did what on GNU LilyPond:: AUTHORS -- who did what.
@end menu

@node AUTHORS -- who did what on GNU LilyPond, Top, , Top
@chapter AUTHORS -- who did what on GNU LilyPond?

This file lists authors of GNU LilyPond, and what they wrote.
It also uses foobar@{.

@itemize @bullet
@item @email{pinard@@iro.montreal.ca, Fran@,{c}ois Pinard},
  parts of Documentation.
@item @email{foobar@@baz@@, The Foobar},
  the usual foobarical thing.
@item @email{another@@foobar@{, Buzzer},
  buzzed all the way.
@item @email{@foo{}@@@bar{}},
  also helped.
@item @email{tomcato@@xoommail.com, Tom Cato Amundsen},
  cembalo-partita in mundela.
@end itemize

@bye


code:
\input texinfo   @c -*-texinfo-*-
@comment %**start of header
@setfilename macro_in_ifset.info

@macro macro1 {arg}
@end ifset
@end macro

@node Top
@top Top

@ifset a
@macro1
in ifset
@end ifset

@ifset a
@macro1{
@end ifset
}
in ifset
@end ifset

24 text

@bye


code:
\input texinfo @c -*-texinfo-*-

@macro begin_file
macro_i--n_pass@@
@end macro
@macro end_file_name {ext}
texi_commands.\ext\
@end macro

@setfilename @begin_file{}@end_file_name{info}

@macro definfoenclose_name
phi
@end macro
@definfoenclose @definfoenclose_name{},:,:

@macro latin1
ISO-8859-1@@
@end macro

@macro documentencoding_command
@documentencoding
@end macro

@documentencoding_command @latin1{}

@macro multiinclude
macro_included.texi
@include inc_@@f--ile.texi
@end macro

@node Top
@top top

@include @multiinclude

@themacro

macro_in_pass_texi_commands@{info@}
@end_file_name{info}

@verbatiminclude inc_@@f--ile.texi

@bye