use vars qw(%result_texis %result_texts %result_trees %result_errors
%result_indices %result_sectioning %result_nodes %result_menus
%result_floats %result_converted %result_converted_errors
%result_elements %result_directions_text %result_indices_sort_strings);
use utf8;
$result_trees{'empty_listoffloats_with_floats'} = {
'contents' => [
{
'contents' => [
{
'contents' => [
{
'text' => '
',
'type' => 'text_before_beginning'
}
],
'type' => 'preamble_before_beginning'
},
{
'contents' => [],
'type' => 'preamble_before_content'
},
{
'args' => [
{
'type' => 'block_line_arg'
},
{
'contents' => [
{
'text' => 'label1'
}
],
'info' => {
'spaces_after_argument' => {
'text' => '
'
},
'spaces_before_argument' => {
'text' => ' '
}
},
'type' => 'block_line_arg'
}
],
'cmdname' => 'float',
'contents' => [
{
'contents' => [
{
'text' => 'Label no caption.
'
}
],
'type' => 'paragraph'
},
{
'args' => [
{
'contents' => [
{
'text' => 'float'
}
],
'info' => {
'spaces_after_argument' => {
'text' => '
'
}
},
'type' => 'line_arg'
}
],
'cmdname' => 'end',
'extra' => {
'text_arg' => 'float'
},
'info' => {
'spaces_before_argument' => {
'text' => ' '
}
},
'source_info' => {
'file_name' => '',
'line_nr' => 4,
'macro' => ''
}
}
],
'extra' => {
'float_type' => '',
'normalized' => 'label1'
},
'info' => {
'spaces_before_argument' => {
'text' => ' '
}
},
'source_info' => {
'file_name' => '',
'line_nr' => 2,
'macro' => ''
}
},
{
'text' => '
',
'type' => 'empty_line'
},
{
'args' => [
{
'type' => 'block_line_arg'
},
{
'contents' => [
{
'text' => 'label2'
}
],
'info' => {
'spaces_after_argument' => {
'text' => '
'
},
'spaces_before_argument' => {
'text' => ' '
}
},
'type' => 'block_line_arg'
}
],
'cmdname' => 'float',
'contents' => [
{
'contents' => [
{
'text' => 'Label and caption.
'
}
],
'type' => 'paragraph'
},
{
'args' => [
{
'contents' => [
{
'contents' => [
{
'text' => 'caption with label'
}
],
'type' => 'paragraph'
}
],
'type' => 'brace_command_context'
}
],
'cmdname' => 'caption',
'extra' => {
'float' => {}
},
'source_info' => {
'file_name' => '',
'line_nr' => 8,
'macro' => ''
}
},
{
'text' => '
',
'type' => 'spaces_after_close_brace'
},
{
'args' => [
{
'contents' => [
{
'text' => 'float'
}
],
'info' => {
'spaces_after_argument' => {
'text' => '
'
}
},
'type' => 'line_arg'
}
],
'cmdname' => 'end',
'extra' => {
'text_arg' => 'float'
},
'info' => {
'spaces_before_argument' => {
'text' => ' '
}
},
'source_info' => {
'file_name' => '',
'line_nr' => 9,
'macro' => ''
}
}
],
'extra' => {
'caption' => {},
'float_type' => '',
'normalized' => 'label2'
},
'info' => {
'spaces_before_argument' => {
'text' => ' '
}
},
'source_info' => {
'file_name' => '',
'line_nr' => 6,
'macro' => ''
}
},
{
'text' => '
',
'type' => 'empty_line'
},
{
'args' => [
{
'info' => {
'spaces_after_argument' => {
'text' => '
'
}
},
'type' => 'block_line_arg'
}
],
'cmdname' => 'float',
'contents' => [
{
'contents' => [
{
'text' => 'no label no caption
'
}
],
'type' => 'paragraph'
},
{
'args' => [
{
'contents' => [
{
'text' => 'float'
}
],
'info' => {
'spaces_after_argument' => {
'text' => '
'
}
},
'type' => 'line_arg'
}
],
'cmdname' => 'end',
'extra' => {
'text_arg' => 'float'
},
'info' => {
'spaces_before_argument' => {
'text' => ' '
}
},
'source_info' => {
'file_name' => '',
'line_nr' => 13,
'macro' => ''
}
}
],
'extra' => {
'float_type' => ''
},
'source_info' => {
'file_name' => '',
'line_nr' => 11,
'macro' => ''
}
},
{
'text' => '
',
'type' => 'empty_line'
},
{
'args' => [
{
'info' => {
'spaces_after_argument' => {
'text' => '
'
}
},
'type' => 'block_line_arg'
}
],
'cmdname' => 'float',
'contents' => [
{
'contents' => [
{
'text' => 'no label caption
'
}
],
'type' => 'paragraph'
},
{
'args' => [
{
'contents' => [
{
'contents' => [
{
'text' => 'caption no label'
}
],
'type' => 'paragraph'
}
],
'type' => 'brace_command_context'
}
],
'cmdname' => 'caption',
'extra' => {
'float' => {}
},
'source_info' => {
'file_name' => '',
'line_nr' => 17,
'macro' => ''
}
},
{
'text' => '
',
'type' => 'spaces_after_close_brace'
},
{
'args' => [
{
'contents' => [
{
'text' => 'float'
}
],
'info' => {
'spaces_after_argument' => {
'text' => '
'
}
},
'type' => 'line_arg'
}
],
'cmdname' => 'end',
'extra' => {
'text_arg' => 'float'
},
'info' => {
'spaces_before_argument' => {
'text' => ' '
}
},
'source_info' => {
'file_name' => '',
'line_nr' => 18,
'macro' => ''
}
}
],
'extra' => {
'caption' => {},
'float_type' => ''
},
'source_info' => {
'file_name' => '',
'line_nr' => 15,
'macro' => ''
}
},
{
'text' => '
',
'type' => 'empty_line'
},
{
'args' => [
{
'info' => {
'spaces_after_argument' => {
'text' => '
'
}
},
'type' => 'line_arg'
}
],
'cmdname' => 'listoffloats',
'extra' => {
'float_type' => ''
},
'source_info' => {
'file_name' => '',
'line_nr' => 20,
'macro' => ''
}
}
],
'type' => 'before_node_section'
}
],
'type' => 'document_root'
};
$result_trees{'empty_listoffloats_with_floats'}{'contents'}[0]{'contents'}[4]{'contents'}[1]{'extra'}{'float'} = $result_trees{'empty_listoffloats_with_floats'}{'contents'}[0]{'contents'}[4];
$result_trees{'empty_listoffloats_with_floats'}{'contents'}[0]{'contents'}[4]{'extra'}{'caption'} = $result_trees{'empty_listoffloats_with_floats'}{'contents'}[0]{'contents'}[4]{'contents'}[1];
$result_trees{'empty_listoffloats_with_floats'}{'contents'}[0]{'contents'}[8]{'contents'}[1]{'extra'}{'float'} = $result_trees{'empty_listoffloats_with_floats'}{'contents'}[0]{'contents'}[8];
$result_trees{'empty_listoffloats_with_floats'}{'contents'}[0]{'contents'}[8]{'extra'}{'caption'} = $result_trees{'empty_listoffloats_with_floats'}{'contents'}[0]{'contents'}[8]{'contents'}[1];
$result_texis{'empty_listoffloats_with_floats'} = '
@float , label1
Label no caption.
@end float
@float , label2
Label and caption.
@caption{caption with label}
@end float
@float
no label no caption
@end float
@float
no label caption
@caption{caption no label}
@end float
@listoffloats
';
$result_texts{'empty_listoffloats_with_floats'} = 'label1
Label no caption.
label2
Label and caption.
no label no caption
no label caption
';
$result_errors{'empty_listoffloats_with_floats'} = [];
$result_floats{'empty_listoffloats_with_floats'} = {
'' => [
{
'cmdname' => 'float',
'extra' => {
'float_type' => '',
'normalized' => 'label1'
},
'structure' => {
'float_number' => 1
}
},
{
'cmdname' => 'float',
'extra' => {
'caption' => {
'cmdname' => 'caption',
'extra' => {
'float' => {}
}
},
'float_type' => '',
'normalized' => 'label2'
},
'structure' => {
'float_number' => 2
}
},
{
'cmdname' => 'float',
'extra' => {
'float_type' => ''
}
},
{
'cmdname' => 'float',
'extra' => {
'caption' => {
'cmdname' => 'caption',
'extra' => {
'float' => {}
}
},
'float_type' => ''
}
}
]
};
$result_floats{'empty_listoffloats_with_floats'}{''}[1]{'extra'}{'caption'}{'extra'}{'float'} = $result_floats{'empty_listoffloats_with_floats'}{''}[1];
$result_floats{'empty_listoffloats_with_floats'}{''}[3]{'extra'}{'caption'}{'extra'}{'float'} = $result_floats{'empty_listoffloats_with_floats'}{''}[3];
$result_converted{'plaintext'}->{'empty_listoffloats_with_floats'} = 'Label no caption.
1
Label and caption.
2: caption with label
no label no caption
no label caption
caption no label
* Menu:
* 1: label1.
* 2: label2. caption with label
';
$result_converted{'html'}->{'empty_listoffloats_with_floats'} = '<!DOCTYPE html>
<html>
<!-- Created by texinfo, http://www.gnu.org/software/texinfo/ -->
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
<title>Untitled Document</title>
<meta name="description" content="Untitled Document">
<meta name="keywords" content="Untitled Document">
<meta name="resource-type" content="document">
<meta name="distribution" content="global">
<meta name="viewport" content="width=device-width,initial-scale=1">
</head>
<body lang="en">
<div class="float" id="label1">
<p>Label no caption.
</p><div class="type-number-float"><p><strong class="strong">1</strong></p></div></div>
<div class="float" id="label2">
<p>Label and caption.
</p><div class="caption"><p><strong class="strong">2: </strong>caption with label</p></div></div>
<div class="float">
<p>no label no caption
</p></div>
<div class="float">
<p>no label caption
</p><div class="caption"><p>caption no label</p></div></div>
<dl class="listoffloats">
<dt><a href="#label1">1</a></dt><dd></dd>
<dt><a href="#label2">2</a></dt><dd class="caption-in-listoffloats"><p>caption with label</p></dd>
</dl>
</body>
</html>
';
$result_converted_errors{'html'}->{'empty_listoffloats_with_floats'} = [
{
'error_line' => 'warning: must specify a title with a title command or @top
',
'text' => 'must specify a title with a title command or @top',
'type' => 'warning'
}
];
$result_converted{'xml'}->{'empty_listoffloats_with_floats'} = '<preamblebeforebeginning>
</preamblebeforebeginning><float name="label1" type="" number="1" spaces=" " endspaces=" "><floatname spaces=" ">label1</floatname>
<para>Label no caption.
</para></float>
<float name="label2" type="" number="2" spaces=" " endspaces=" "><floatname spaces=" ">label2</floatname>
<para>Label and caption.
</para><caption><para>caption with label</para></caption>
</float>
<float type="" endspaces=" ">
<para>no label no caption
</para></float>
<float type="" endspaces=" ">
<para>no label caption
</para><caption><para>caption no label</para></caption>
</float>
<listoffloats type=""></listoffloats>
';
$result_converted{'latex'}->{'empty_listoffloats_with_floats'} = '\\documentclass{book}
\\usepackage{amsfonts}
\\usepackage{amsmath}
\\usepackage[gen]{eurosym}
\\usepackage{textcomp}
\\usepackage{graphicx}
\\usepackage{etoolbox}
\\usepackage{titleps}
\\usepackage[utf8]{inputenc}
\\usepackage[T1]{fontenc}
\\usepackage{float}
% use hidelinks to remove boxes around links to be similar to Texinfo TeX
\\usepackage[hidelinks]{hyperref}
\\makeatletter
\\newcommand{\\Texinfosettitle}{No Title}%
% new float for type `\'
\\newfloat{TexinfoFloat}{htb}{tfl}[chapter]
\\floatname{TexinfoFloat}{}
% redefine the \\mainmatter command such that it does not clear page
% as if in double page
\\renewcommand\\mainmatter{\\clearpage\\@mainmattertrue\\pagenumbering{arabic}}
\\newenvironment{Texinfopreformatted}{%
\\par\\GNUTobeylines\\obeyspaces\\frenchspacing\\parskip=\\z@\\parindent=\\z@}{}
{\\catcode`\\^^M=13 \\gdef\\GNUTobeylines{\\catcode`\\^^M=13 \\def^^M{\\null\\par}}}
\\newenvironment{Texinfoindented}{\\begin{list}{}{}\\item\\relax}{\\end{list}}
% used for substitutions in commands
\\newcommand{\\Texinfoplaceholder}[1]{}
\\newpagestyle{single}{\\sethead[\\chaptername{} \\thechapter{} \\chaptertitle{}][][\\thepage]
{\\chaptername{} \\thechapter{} \\chaptertitle{}}{}{\\thepage}}
% allow line breaking at underscore
\\let\\Texinfounderscore\\_
\\renewcommand{\\_}{\\Texinfounderscore\\discretionary{}{}{}}
\\renewcommand{\\includegraphics}[1]{\\fbox{FIG \\detokenize{#1}}}
\\makeatother
% set default for @setchapternewpage
\\makeatletter
\\patchcmd{\\chapter}{\\if@openright\\cleardoublepage\\else\\clearpage\\fi}{\\Texinfoplaceholder{setchapternewpage placeholder}\\clearpage}{}{}
\\makeatother
\\pagestyle{single}%
\\begin{document}
\\begin{TexinfoFloat}
Label no caption.
\\label{anchor:label1}%
\\end{TexinfoFloat}
\\begin{TexinfoFloat}
Label and caption.
\\caption{caption with label}
\\label{anchor:label2}%
\\end{TexinfoFloat}
\\begin{TexinfoFloat}
no label no caption
\\end{TexinfoFloat}
\\begin{TexinfoFloat}
no label caption
\\caption{caption no label}
\\end{TexinfoFloat}
\\listof{TexinfoFloat}{}
\\end{document}
';
1;