[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
branch master updated: Add file_latex tests, add a setfilename.
From: |
Patrice Dumas |
Subject: |
branch master updated: Add file_latex tests, add a setfilename. |
Date: |
Sun, 15 Aug 2021 17:54:42 -0400 |
This is an automated email from the git hooks/post-receive script.
pertusus pushed a commit to branch master
in repository texinfo.
The following commit(s) were added to refs/heads/master by this push:
new 441d46d Add file_latex tests, add a setfilename.
441d46d is described below
commit 441d46d06169a0af6c013cb7add7a56bb3818252
Author: Patrice Dumas <pertusus@free.fr>
AuthorDate: Sun Aug 15 23:54:11 2021 +0200
Add file_latex tests, add a setfilename.
---
tp/t/30sectioning.t | 20 +++++-
.../res_latex/chapter_between_nodes.tex | 65 ++++++++++++++++++++
.../lone_Top_node/res_latex/lone_Top_node.tex | 61 +++++++++++++++++++
.../sectioning/loop_nodes/res_latex/loop_nodes.tex | 59 ++++++++++++++++++
.../res_latex/nodes_before_after_top.tex | 67 ++++++++++++++++++++
.../res_latex/nodes_before_top.tex | 66 ++++++++++++++++++++
.../sectioning/section_before_after_top_node.pl | 71 ++++++++++++++++++----
.../res_latex/section_before_after_top_node.tex | 63 +++++++++++++++++++
.../section_before_after_top_node_last_node.pl | 16 ++---
.../section_before_after_top_node_last_node.tex | 61 +++++++++++++++++++
.../res_latex/section_chapter_before_top_nodes.tex | 68 +++++++++++++++++++++
11 files changed, 594 insertions(+), 23 deletions(-)
diff --git a/tp/t/30sectioning.t b/tp/t/30sectioning.t
index eb1e009..e083857 100644
--- a/tp/t/30sectioning.t
+++ b/tp/t/30sectioning.t
@@ -865,8 +865,9 @@ section.
@contents
', {}, {'CONTENTS_OUTPUT_LOCATION' => 'inline'}],
+# FIXME in LaTeX @node node after is missing
['section_before_after_top_node_last_node',
-'@setfilename section_before_after_top_node_last_node
+'@setfilename section_before_after_top_node_last_node.info
@unnumbered before
@@ -880,7 +881,9 @@ in chapter
@node node after
'],
['section_before_after_top_node',
-'@unnumbered before
+'@setfilename section_before_after_top_node.info
+
+@unnumbered before
@node Top
@top top section
@@ -1827,6 +1830,7 @@ Second top.
@node second node
@chapter a chapter
'],
+# FIXME in LaTeX "in node after" is missing
['nodes_before_after_top',
'@setfilename nodes_before_after_top.info
@@ -2062,6 +2066,11 @@ my @latex_tests_info_tests = ('chapter_between_nodes',
'section_before_after_top_node',
'section_chapter_before_top_nodes', 'unnumbered_top_without_node_sections');
+my @file_latex_tests_info_tests = ('chapter_between_nodes',
+ 'section_before_after_top_node_last_node',
+ 'section_before_after_top_node',
+ 'section_chapter_before_top_nodes');
+
foreach my $test (@tests_info) {
push @{$test->[2]->{'test_formats'}}, 'info';
push @{$test->[2]->{'test_formats'}}, 'html';
@@ -2071,6 +2080,8 @@ foreach my $test (@tests_info) {
if (grep {$_ eq $test->[0]} @docbook_tests_info_tests);
push @{$test->[2]->{'test_formats'}}, 'latex'
if (grep {$_ eq $test->[0]} @latex_tests_info_tests);
+ push @{$test->[2]->{'test_formats'}}, 'file_latex'
+ if (grep {$_ eq $test->[0]} @file_latex_tests_info_tests);
}
my @xml_tests_cases_tests = ('part_before_section',
@@ -2084,11 +2095,16 @@ my @xml_tests_cases_tests = ('part_before_section',
my @latex_tests_cases_tests = ('loop_nodes', 'lone_Top_node',
'nodes_before_top', 'nodes_before_after_top');
+my @file_latex_tests_cases_tests = ('loop_nodes', 'lone_Top_node',
+ 'nodes_before_top', 'nodes_before_after_top');
+
foreach my $test (@test_cases) {
push @{$test->[2]->{'test_formats'}}, 'xml'
if (grep {$_ eq $test->[0]} @xml_tests_cases_tests);
push @{$test->[2]->{'test_formats'}}, 'latex'
if (grep {$_ eq $test->[0]} @latex_tests_cases_tests);
+ push @{$test->[2]->{'test_formats'}}, 'file_latex'
+ if (grep {$_ eq $test->[0]} @file_latex_tests_cases_tests);
}
our ($arg_test_case, $arg_generate, $arg_debug);
diff --git
a/tp/t/results/sectioning/chapter_between_nodes/res_latex/chapter_between_nodes.tex
b/tp/t/results/sectioning/chapter_between_nodes/res_latex/chapter_between_nodes.tex
new file mode 100644
index 0000000..3c18700
--- /dev/null
+++
b/tp/t/results/sectioning/chapter_between_nodes/res_latex/chapter_between_nodes.tex
@@ -0,0 +1,65 @@
+\documentclass{book}
+\usepackage{makeidx}\makeindex
+\usepackage{amsfonts}
+\usepackage{amsmath}
+\usepackage[gen]{eurosym}
+\usepackage[T1]{fontenc}
+\usepackage{textcomp}
+\usepackage{graphicx}
+\usepackage{needspace}
+\usepackage{etoolbox}
+\usepackage{fancyhdr}
+\usepackage[utf8]{inputenc}
+
+% command that does nothing used to help with substitutions in commands
+\newcommand{\GNUTexinfoplaceholder}[1]{}
+
+% called when setting single headers
+% use \nouppercase to match with Texinfo TeX style
+\newcommand{\GNUTexinfosetsingleheader}{\pagestyle{fancy}
+\fancyhf{}
+\lhead{\nouppercase{\leftmark}}
+\rhead{\thepage}
+}
+
+% called when setting double headers
+\newcommand{\GNUTexinfosetdoubleheader}[1]{\pagestyle{fancy}
+\fancyhf{}
+\fancyhead[LE,RO]{\thepage}
+\fancyhead[RE]{#1}
+\fancyhead[LO]{\nouppercase{\leftmark}}
+}
+
+% for part and chapter, which call \thispagestyle{plain}
+\fancypagestyle{plain}{ %
+ \fancyhf{}
+ \fancyhead[LE,RO]{\thepage}
+}
+
+% match Texinfo TeX style
+\renewcommand{\headrulewidth}{0pt}%
+
+% avoid pagebreak and headings setting for a sectionning command
+\newcommand{\GNUTexinfonopagebreakheading}[2]{\let\clearpage\relax
\let\cleardoublepage\relax \let\thispagestyle\GNUTexinfoplaceholder #1{#2}}
+
+
+\renewcommand{\includegraphics}[1]{\fbox{FIG #1}}
+
+%temporary to avoid "no line here to end" errors in test suite constructs
+\renewcommand{\obeycr}{\relax}
+
+% set default for @setchapternewpage
+\makeatletter
+\patchcmd{\chapter}{\if@openright\cleardoublepage\else\clearpage\fi}{\GNUTexinfoplaceholder{setchapternewpage
placeholder}\clearpage}{}{}
+\makeatother
+\GNUTexinfosetsingleheader{}%
+
+\begin{document}
+
+\section{section}
+\label{anchor:section-node}%
+
+section.
+
+\tableofcontents\newpage
+\end{document}
diff --git a/tp/t/results/sectioning/lone_Top_node/res_latex/lone_Top_node.tex
b/tp/t/results/sectioning/lone_Top_node/res_latex/lone_Top_node.tex
new file mode 100644
index 0000000..6c6b432
--- /dev/null
+++ b/tp/t/results/sectioning/lone_Top_node/res_latex/lone_Top_node.tex
@@ -0,0 +1,61 @@
+\documentclass{book}
+\usepackage{makeidx}\makeindex
+\usepackage{amsfonts}
+\usepackage{amsmath}
+\usepackage[gen]{eurosym}
+\usepackage[T1]{fontenc}
+\usepackage{textcomp}
+\usepackage{graphicx}
+\usepackage{needspace}
+\usepackage{etoolbox}
+\usepackage{fancyhdr}
+\usepackage[utf8]{inputenc}
+
+% command that does nothing used to help with substitutions in commands
+\newcommand{\GNUTexinfoplaceholder}[1]{}
+
+% called when setting single headers
+% use \nouppercase to match with Texinfo TeX style
+\newcommand{\GNUTexinfosetsingleheader}{\pagestyle{fancy}
+\fancyhf{}
+\lhead{\nouppercase{\leftmark}}
+\rhead{\thepage}
+}
+
+% called when setting double headers
+\newcommand{\GNUTexinfosetdoubleheader}[1]{\pagestyle{fancy}
+\fancyhf{}
+\fancyhead[LE,RO]{\thepage}
+\fancyhead[RE]{#1}
+\fancyhead[LO]{\nouppercase{\leftmark}}
+}
+
+% for part and chapter, which call \thispagestyle{plain}
+\fancypagestyle{plain}{ %
+ \fancyhf{}
+ \fancyhead[LE,RO]{\thepage}
+}
+
+% match Texinfo TeX style
+\renewcommand{\headrulewidth}{0pt}%
+
+% avoid pagebreak and headings setting for a sectionning command
+\newcommand{\GNUTexinfonopagebreakheading}[2]{\let\clearpage\relax
\let\cleardoublepage\relax \let\thispagestyle\GNUTexinfoplaceholder #1{#2}}
+
+
+\renewcommand{\includegraphics}[1]{\fbox{FIG #1}}
+
+%temporary to avoid "no line here to end" errors in test suite constructs
+\renewcommand{\obeycr}{\relax}
+
+% set default for @setchapternewpage
+\makeatletter
+\patchcmd{\chapter}{\if@openright\cleardoublepage\else\clearpage\fi}{\GNUTexinfoplaceholder{setchapternewpage
placeholder}\clearpage}{}{}
+\makeatother
+\GNUTexinfosetsingleheader{}%
+
+\begin{document}
+
+\chapter{chap}
+\label{anchor:First}%
+\end{document}
diff --git a/tp/t/results/sectioning/loop_nodes/res_latex/loop_nodes.tex
b/tp/t/results/sectioning/loop_nodes/res_latex/loop_nodes.tex
new file mode 100644
index 0000000..c916a18
--- /dev/null
+++ b/tp/t/results/sectioning/loop_nodes/res_latex/loop_nodes.tex
@@ -0,0 +1,59 @@
+\documentclass{book}
+\usepackage{makeidx}\makeindex
+\usepackage{amsfonts}
+\usepackage{amsmath}
+\usepackage[gen]{eurosym}
+\usepackage[T1]{fontenc}
+\usepackage{textcomp}
+\usepackage{graphicx}
+\usepackage{needspace}
+\usepackage{etoolbox}
+\usepackage{fancyhdr}
+\usepackage[utf8]{inputenc}
+
+% command that does nothing used to help with substitutions in commands
+\newcommand{\GNUTexinfoplaceholder}[1]{}
+
+% called when setting single headers
+% use \nouppercase to match with Texinfo TeX style
+\newcommand{\GNUTexinfosetsingleheader}{\pagestyle{fancy}
+\fancyhf{}
+\lhead{\nouppercase{\leftmark}}
+\rhead{\thepage}
+}
+
+% called when setting double headers
+\newcommand{\GNUTexinfosetdoubleheader}[1]{\pagestyle{fancy}
+\fancyhf{}
+\fancyhead[LE,RO]{\thepage}
+\fancyhead[RE]{#1}
+\fancyhead[LO]{\nouppercase{\leftmark}}
+}
+
+% for part and chapter, which call \thispagestyle{plain}
+\fancypagestyle{plain}{ %
+ \fancyhf{}
+ \fancyhead[LE,RO]{\thepage}
+}
+
+% match Texinfo TeX style
+\renewcommand{\headrulewidth}{0pt}%
+
+% avoid pagebreak and headings setting for a sectionning command
+\newcommand{\GNUTexinfonopagebreakheading}[2]{\let\clearpage\relax
\let\cleardoublepage\relax \let\thispagestyle\GNUTexinfoplaceholder #1{#2}}
+
+
+\renewcommand{\includegraphics}[1]{\fbox{FIG #1}}
+
+%temporary to avoid "no line here to end" errors in test suite constructs
+\renewcommand{\obeycr}{\relax}
+
+% set default for @setchapternewpage
+\makeatletter
+\patchcmd{\chapter}{\if@openright\cleardoublepage\else\clearpage\fi}{\GNUTexinfoplaceholder{setchapternewpage
placeholder}\clearpage}{}{}
+\makeatother
+\GNUTexinfosetsingleheader{}%
+
+\begin{document}
+
+\end{document}
diff --git
a/tp/t/results/sectioning/nodes_before_after_top/res_latex/nodes_before_after_top.tex
b/tp/t/results/sectioning/nodes_before_after_top/res_latex/nodes_before_after_top.tex
new file mode 100644
index 0000000..3ba9f91
--- /dev/null
+++
b/tp/t/results/sectioning/nodes_before_after_top/res_latex/nodes_before_after_top.tex
@@ -0,0 +1,67 @@
+\documentclass{book}
+\usepackage{makeidx}\makeindex
+\usepackage{amsfonts}
+\usepackage{amsmath}
+\usepackage[gen]{eurosym}
+\usepackage[T1]{fontenc}
+\usepackage{textcomp}
+\usepackage{graphicx}
+\usepackage{needspace}
+\usepackage{etoolbox}
+\usepackage{fancyhdr}
+\usepackage[utf8]{inputenc}
+
+% command that does nothing used to help with substitutions in commands
+\newcommand{\GNUTexinfoplaceholder}[1]{}
+
+% called when setting single headers
+% use \nouppercase to match with Texinfo TeX style
+\newcommand{\GNUTexinfosetsingleheader}{\pagestyle{fancy}
+\fancyhf{}
+\lhead{\nouppercase{\leftmark}}
+\rhead{\thepage}
+}
+
+% called when setting double headers
+\newcommand{\GNUTexinfosetdoubleheader}[1]{\pagestyle{fancy}
+\fancyhf{}
+\fancyhead[LE,RO]{\thepage}
+\fancyhead[RE]{#1}
+\fancyhead[LO]{\nouppercase{\leftmark}}
+}
+
+% for part and chapter, which call \thispagestyle{plain}
+\fancypagestyle{plain}{ %
+ \fancyhf{}
+ \fancyhead[LE,RO]{\thepage}
+}
+
+% match Texinfo TeX style
+\renewcommand{\headrulewidth}{0pt}%
+
+% avoid pagebreak and headings setting for a sectionning command
+\newcommand{\GNUTexinfonopagebreakheading}[2]{\let\clearpage\relax
\let\cleardoublepage\relax \let\thispagestyle\GNUTexinfoplaceholder #1{#2}}
+
+
+\renewcommand{\includegraphics}[1]{\fbox{FIG #1}}
+
+%temporary to avoid "no line here to end" errors in test suite constructs
+\renewcommand{\obeycr}{\relax}
+
+% set default for @setchapternewpage
+\makeatletter
+\patchcmd{\chapter}{\if@openright\cleardoublepage\else\clearpage\fi}{\GNUTexinfoplaceholder{setchapternewpage
placeholder}\clearpage}{}{}
+\makeatother
+\GNUTexinfosetsingleheader{}%
+
+\begin{document}
+
+\label{anchor:node-before}%
+
+In node before
+
+\chapter{chap}
+\label{anchor:chap}%
+
+in chap
+\end{document}
diff --git
a/tp/t/results/sectioning/nodes_before_top/res_latex/nodes_before_top.tex
b/tp/t/results/sectioning/nodes_before_top/res_latex/nodes_before_top.tex
new file mode 100644
index 0000000..e09c505
--- /dev/null
+++ b/tp/t/results/sectioning/nodes_before_top/res_latex/nodes_before_top.tex
@@ -0,0 +1,66 @@
+\documentclass{book}
+\usepackage{makeidx}\makeindex
+\usepackage{amsfonts}
+\usepackage{amsmath}
+\usepackage[gen]{eurosym}
+\usepackage[T1]{fontenc}
+\usepackage{textcomp}
+\usepackage{graphicx}
+\usepackage{needspace}
+\usepackage{etoolbox}
+\usepackage{fancyhdr}
+\usepackage[utf8]{inputenc}
+
+% command that does nothing used to help with substitutions in commands
+\newcommand{\GNUTexinfoplaceholder}[1]{}
+
+% called when setting single headers
+% use \nouppercase to match with Texinfo TeX style
+\newcommand{\GNUTexinfosetsingleheader}{\pagestyle{fancy}
+\fancyhf{}
+\lhead{\nouppercase{\leftmark}}
+\rhead{\thepage}
+}
+
+% called when setting double headers
+\newcommand{\GNUTexinfosetdoubleheader}[1]{\pagestyle{fancy}
+\fancyhf{}
+\fancyhead[LE,RO]{\thepage}
+\fancyhead[RE]{#1}
+\fancyhead[LO]{\nouppercase{\leftmark}}
+}
+
+% for part and chapter, which call \thispagestyle{plain}
+\fancypagestyle{plain}{ %
+ \fancyhf{}
+ \fancyhead[LE,RO]{\thepage}
+}
+
+% match Texinfo TeX style
+\renewcommand{\headrulewidth}{0pt}%
+
+% avoid pagebreak and headings setting for a sectionning command
+\newcommand{\GNUTexinfonopagebreakheading}[2]{\let\clearpage\relax
\let\cleardoublepage\relax \let\thispagestyle\GNUTexinfoplaceholder #1{#2}}
+
+
+\renewcommand{\includegraphics}[1]{\fbox{FIG #1}}
+
+%temporary to avoid "no line here to end" errors in test suite constructs
+\renewcommand{\obeycr}{\relax}
+
+% set default for @setchapternewpage
+\makeatletter
+\patchcmd{\chapter}{\if@openright\cleardoublepage\else\clearpage\fi}{\GNUTexinfoplaceholder{setchapternewpage
placeholder}\clearpage}{}{}
+\makeatother
+\GNUTexinfosetsingleheader{}%
+
+\begin{document}
+
+\label{anchor:first}%
+
+
+\label{anchor:node-in-menu-before-top}%
+
+\chapter{a chapter}
+\label{anchor:second-node}%
+\end{document}
diff --git a/tp/t/results/sectioning/section_before_after_top_node.pl
b/tp/t/results/sectioning/section_before_after_top_node.pl
index 70a1303..47db7a7 100644
--- a/tp/t/results/sectioning/section_before_after_top_node.pl
+++ b/tp/t/results/sectioning/section_before_after_top_node.pl
@@ -8,7 +8,43 @@ use utf8;
$result_trees{'section_before_after_top_node'} = {
'contents' => [
{
- 'contents' => [],
+ 'contents' => [
+ {
+ 'args' => [
+ {
+ 'contents' => [
+ {
+ 'parent' => {},
+ 'text' => 'section_before_after_top_node.info'
+ }
+ ],
+ 'extra' => {
+ 'spaces_after_argument' => '
+'
+ },
+ 'parent' => {},
+ 'type' => 'line_arg'
+ }
+ ],
+ 'cmdname' => 'setfilename',
+ 'extra' => {
+ 'spaces_before_argument' => ' ',
+ 'text_arg' => 'section_before_after_top_node.info'
+ },
+ 'line_nr' => {
+ 'file_name' => '',
+ 'line_nr' => 1,
+ 'macro' => ''
+ },
+ 'parent' => {}
+ },
+ {
+ 'parent' => {},
+ 'text' => '
+',
+ 'type' => 'empty_line'
+ }
+ ],
'parent' => {},
'type' => 'text_root'
},
@@ -44,7 +80,7 @@ $result_trees{'section_before_after_top_node'} = {
'level' => 1,
'line_nr' => {
'file_name' => '',
- 'line_nr' => 1,
+ 'line_nr' => 3,
'macro' => ''
},
'parent' => {}
@@ -85,7 +121,7 @@ $result_trees{'section_before_after_top_node'} = {
},
'line_nr' => {
'file_name' => '',
- 'line_nr' => 3,
+ 'line_nr' => 5,
'macro' => ''
},
'parent' => {}
@@ -122,7 +158,7 @@ $result_trees{'section_before_after_top_node'} = {
'level' => 1,
'line_nr' => {
'file_name' => '',
- 'line_nr' => 4,
+ 'line_nr' => 6,
'macro' => ''
},
'parent' => {}
@@ -170,7 +206,7 @@ $result_trees{'section_before_after_top_node'} = {
'level' => 1,
'line_nr' => {
'file_name' => '',
- 'line_nr' => 6,
+ 'line_nr' => 8,
'macro' => ''
},
'number' => 1,
@@ -179,6 +215,10 @@ $result_trees{'section_before_after_top_node'} = {
],
'type' => 'document_root'
};
+$result_trees{'section_before_after_top_node'}{'contents'}[0]{'contents'}[0]{'args'}[0]{'contents'}[0]{'parent'}
=
$result_trees{'section_before_after_top_node'}{'contents'}[0]{'contents'}[0]{'args'}[0];
+$result_trees{'section_before_after_top_node'}{'contents'}[0]{'contents'}[0]{'args'}[0]{'parent'}
= $result_trees{'section_before_after_top_node'}{'contents'}[0]{'contents'}[0];
+$result_trees{'section_before_after_top_node'}{'contents'}[0]{'contents'}[0]{'parent'}
= $result_trees{'section_before_after_top_node'}{'contents'}[0];
+$result_trees{'section_before_after_top_node'}{'contents'}[0]{'contents'}[1]{'parent'}
= $result_trees{'section_before_after_top_node'}{'contents'}[0];
$result_trees{'section_before_after_top_node'}{'contents'}[0]{'parent'} =
$result_trees{'section_before_after_top_node'};
$result_trees{'section_before_after_top_node'}{'contents'}[1]{'args'}[0]{'contents'}[0]{'parent'}
= $result_trees{'section_before_after_top_node'}{'contents'}[1]{'args'}[0];
$result_trees{'section_before_after_top_node'}{'contents'}[1]{'args'}[0]{'parent'}
= $result_trees{'section_before_after_top_node'}{'contents'}[1];
@@ -200,7 +240,9 @@
$result_trees{'section_before_after_top_node'}{'contents'}[4]{'contents'}[1]{'co
$result_trees{'section_before_after_top_node'}{'contents'}[4]{'contents'}[1]{'parent'}
= $result_trees{'section_before_after_top_node'}{'contents'}[4];
$result_trees{'section_before_after_top_node'}{'contents'}[4]{'parent'} =
$result_trees{'section_before_after_top_node'};
-$result_texis{'section_before_after_top_node'} = '@unnumbered before
+$result_texis{'section_before_after_top_node'} = '@setfilename
section_before_after_top_node.info
+
+@unnumbered before
@node Top
@top top section
@@ -211,7 +253,8 @@ in chapter
';
-$result_texts{'section_before_after_top_node'} = 'before
+$result_texts{'section_before_after_top_node'} = '
+before
******
top section
@@ -299,10 +342,10 @@ $result_menus{'section_before_after_top_node'} = {
$result_errors{'section_before_after_top_node'} = [
{
- 'error_line' => ':4: warning: lowering the section level of @top appearing
after a lower element
+ 'error_line' => ':6: warning: lowering the section level of @top appearing
after a lower element
',
'file_name' => '',
- 'line_nr' => 4,
+ 'line_nr' => 6,
'macro' => '',
'text' => 'lowering the section level of @top appearing after a lower
element',
'type' => 'warning'
@@ -314,13 +357,13 @@ $result_floats{'section_before_after_top_node'} = {};
-$result_converted{'info'}->{'section_before_after_top_node'} = 'This is ,
produced from .
+$result_converted{'info'}->{'section_before_after_top_node'} = 'This is
section_before_after_top_node.info, produced from .
before
******
-File: , Node: Top, Up: (dir)
+File: section_before_after_top_node.info, Node: Top, Up: (dir)
top section
***********
@@ -332,7 +375,7 @@ in chapter
Tag Table:
-Node: Top42
+Node: Top76
End Tag Table
@@ -381,6 +424,7 @@ ul.no-bullet {list-style: none}
</head>
<body lang="en">
+
<div class="unnumbered" id="before">
<h2 class="unnumbered">before</h2>
@@ -402,7 +446,8 @@ ul.no-bullet {list-style: none}
';
-$result_converted{'latex'}->{'section_before_after_top_node'} =
'\\chapter*{before}
+$result_converted{'latex'}->{'section_before_after_top_node'} = '
+\\chapter*{before}
\\chapter{Chapter}
diff --git
a/tp/t/results/sectioning/section_before_after_top_node/res_latex/section_before_after_top_node.tex
b/tp/t/results/sectioning/section_before_after_top_node/res_latex/section_before_after_top_node.tex
new file mode 100644
index 0000000..e1cf5a2
--- /dev/null
+++
b/tp/t/results/sectioning/section_before_after_top_node/res_latex/section_before_after_top_node.tex
@@ -0,0 +1,63 @@
+\documentclass{book}
+\usepackage{makeidx}\makeindex
+\usepackage{amsfonts}
+\usepackage{amsmath}
+\usepackage[gen]{eurosym}
+\usepackage[T1]{fontenc}
+\usepackage{textcomp}
+\usepackage{graphicx}
+\usepackage{needspace}
+\usepackage{etoolbox}
+\usepackage{fancyhdr}
+\usepackage[utf8]{inputenc}
+
+% command that does nothing used to help with substitutions in commands
+\newcommand{\GNUTexinfoplaceholder}[1]{}
+
+% called when setting single headers
+% use \nouppercase to match with Texinfo TeX style
+\newcommand{\GNUTexinfosetsingleheader}{\pagestyle{fancy}
+\fancyhf{}
+\lhead{\nouppercase{\leftmark}}
+\rhead{\thepage}
+}
+
+% called when setting double headers
+\newcommand{\GNUTexinfosetdoubleheader}[1]{\pagestyle{fancy}
+\fancyhf{}
+\fancyhead[LE,RO]{\thepage}
+\fancyhead[RE]{#1}
+\fancyhead[LO]{\nouppercase{\leftmark}}
+}
+
+% for part and chapter, which call \thispagestyle{plain}
+\fancypagestyle{plain}{ %
+ \fancyhf{}
+ \fancyhead[LE,RO]{\thepage}
+}
+
+% match Texinfo TeX style
+\renewcommand{\headrulewidth}{0pt}%
+
+% avoid pagebreak and headings setting for a sectionning command
+\newcommand{\GNUTexinfonopagebreakheading}[2]{\let\clearpage\relax
\let\cleardoublepage\relax \let\thispagestyle\GNUTexinfoplaceholder #1{#2}}
+
+
+\renewcommand{\includegraphics}[1]{\fbox{FIG #1}}
+
+%temporary to avoid "no line here to end" errors in test suite constructs
+\renewcommand{\obeycr}{\relax}
+
+% set default for @setchapternewpage
+\makeatletter
+\patchcmd{\chapter}{\if@openright\cleardoublepage\else\clearpage\fi}{\GNUTexinfoplaceholder{setchapternewpage
placeholder}\clearpage}{}{}
+\makeatother
+\GNUTexinfosetsingleheader{}%
+
+\begin{document}
+
+\chapter*{before}
+
+
+(`Top' node ignored)
+\end{document}
diff --git a/tp/t/results/sectioning/section_before_after_top_node_last_node.pl
b/tp/t/results/sectioning/section_before_after_top_node_last_node.pl
index d41603a..826fab9 100644
--- a/tp/t/results/sectioning/section_before_after_top_node_last_node.pl
+++ b/tp/t/results/sectioning/section_before_after_top_node_last_node.pl
@@ -15,7 +15,7 @@ $result_trees{'section_before_after_top_node_last_node'} = {
'contents' => [
{
'parent' => {},
- 'text' => 'section_before_after_top_node_last_node'
+ 'text' => 'section_before_after_top_node_last_node.info'
}
],
'extra' => {
@@ -29,7 +29,7 @@ $result_trees{'section_before_after_top_node_last_node'} = {
'cmdname' => 'setfilename',
'extra' => {
'spaces_before_argument' => ' ',
- 'text_arg' => 'section_before_after_top_node_last_node'
+ 'text_arg' => 'section_before_after_top_node_last_node.info'
},
'line_nr' => {
'file_name' => '',
@@ -293,7 +293,7 @@
$result_trees{'section_before_after_top_node_last_node'}{'contents'}[5]{'extra'}
$result_trees{'section_before_after_top_node_last_node'}{'contents'}[5]{'extra'}{'nodes_manuals'}[0]{'node_content'}[0]
=
$result_trees{'section_before_after_top_node_last_node'}{'contents'}[5]{'args'}[0]{'contents'}[0];
$result_trees{'section_before_after_top_node_last_node'}{'contents'}[5]{'parent'}
= $result_trees{'section_before_after_top_node_last_node'};
-$result_texis{'section_before_after_top_node_last_node'} = '@setfilename
section_before_after_top_node_last_node
+$result_texis{'section_before_after_top_node_last_node'} = '@setfilename
section_before_after_top_node_last_node.info
@unnumbered before
@@ -422,13 +422,13 @@ $result_floats{'section_before_after_top_node_last_node'}
= {};
-$result_converted{'info'}->{'section_before_after_top_node_last_node'} = 'This
is section_before_after_top_node_last_node, produced from .
+$result_converted{'info'}->{'section_before_after_top_node_last_node'} = 'This
is section_before_after_top_node_last_node.info, produced from .
before
******
-File: section_before_after_top_node_last_node, Node: Top, Next: node after,
Up: (dir)
+File: section_before_after_top_node_last_node.info, Node: Top, Next: node
after, Up: (dir)
top section
***********
@@ -439,13 +439,13 @@ top section
in chapter
-File: section_before_after_top_node_last_node, Node: node after, Prev: Top
+File: section_before_after_top_node_last_node.info, Node: node after, Prev:
Top
Tag Table:
-Node: Top81
-Node: node after231
+Node: Top86
+Node: node after241
End Tag Table
diff --git
a/tp/t/results/sectioning/section_before_after_top_node_last_node/res_latex/section_before_after_top_node_last_node.tex
b/tp/t/results/sectioning/section_before_after_top_node_last_node/res_latex/section_before_after_top_node_last_node.tex
new file mode 100644
index 0000000..e916548
--- /dev/null
+++
b/tp/t/results/sectioning/section_before_after_top_node_last_node/res_latex/section_before_after_top_node_last_node.tex
@@ -0,0 +1,61 @@
+\documentclass{book}
+\usepackage{makeidx}\makeindex
+\usepackage{amsfonts}
+\usepackage{amsmath}
+\usepackage[gen]{eurosym}
+\usepackage[T1]{fontenc}
+\usepackage{textcomp}
+\usepackage{graphicx}
+\usepackage{needspace}
+\usepackage{etoolbox}
+\usepackage{fancyhdr}
+\usepackage[utf8]{inputenc}
+
+% command that does nothing used to help with substitutions in commands
+\newcommand{\GNUTexinfoplaceholder}[1]{}
+
+% called when setting single headers
+% use \nouppercase to match with Texinfo TeX style
+\newcommand{\GNUTexinfosetsingleheader}{\pagestyle{fancy}
+\fancyhf{}
+\lhead{\nouppercase{\leftmark}}
+\rhead{\thepage}
+}
+
+% called when setting double headers
+\newcommand{\GNUTexinfosetdoubleheader}[1]{\pagestyle{fancy}
+\fancyhf{}
+\fancyhead[LE,RO]{\thepage}
+\fancyhead[RE]{#1}
+\fancyhead[LO]{\nouppercase{\leftmark}}
+}
+
+% for part and chapter, which call \thispagestyle{plain}
+\fancypagestyle{plain}{ %
+ \fancyhf{}
+ \fancyhead[LE,RO]{\thepage}
+}
+
+% match Texinfo TeX style
+\renewcommand{\headrulewidth}{0pt}%
+
+% avoid pagebreak and headings setting for a sectionning command
+\newcommand{\GNUTexinfonopagebreakheading}[2]{\let\clearpage\relax
\let\cleardoublepage\relax \let\thispagestyle\GNUTexinfoplaceholder #1{#2}}
+
+
+\renewcommand{\includegraphics}[1]{\fbox{FIG #1}}
+
+%temporary to avoid "no line here to end" errors in test suite constructs
+\renewcommand{\obeycr}{\relax}
+
+% set default for @setchapternewpage
+\makeatletter
+\patchcmd{\chapter}{\if@openright\cleardoublepage\else\clearpage\fi}{\GNUTexinfoplaceholder{setchapternewpage
placeholder}\clearpage}{}{}
+\makeatother
+\GNUTexinfosetsingleheader{}%
+
+\begin{document}
+
+\chapter*{before}
+
+\end{document}
diff --git
a/tp/t/results/sectioning/section_chapter_before_top_nodes/res_latex/section_chapter_before_top_nodes.tex
b/tp/t/results/sectioning/section_chapter_before_top_nodes/res_latex/section_chapter_before_top_nodes.tex
new file mode 100644
index 0000000..668d157
--- /dev/null
+++
b/tp/t/results/sectioning/section_chapter_before_top_nodes/res_latex/section_chapter_before_top_nodes.tex
@@ -0,0 +1,68 @@
+\documentclass{book}
+\usepackage{makeidx}\makeindex
+\usepackage{amsfonts}
+\usepackage{amsmath}
+\usepackage[gen]{eurosym}
+\usepackage[T1]{fontenc}
+\usepackage{textcomp}
+\usepackage{graphicx}
+\usepackage{needspace}
+\usepackage{etoolbox}
+\usepackage{fancyhdr}
+\usepackage[utf8]{inputenc}
+
+% command that does nothing used to help with substitutions in commands
+\newcommand{\GNUTexinfoplaceholder}[1]{}
+
+% called when setting single headers
+% use \nouppercase to match with Texinfo TeX style
+\newcommand{\GNUTexinfosetsingleheader}{\pagestyle{fancy}
+\fancyhf{}
+\lhead{\nouppercase{\leftmark}}
+\rhead{\thepage}
+}
+
+% called when setting double headers
+\newcommand{\GNUTexinfosetdoubleheader}[1]{\pagestyle{fancy}
+\fancyhf{}
+\fancyhead[LE,RO]{\thepage}
+\fancyhead[RE]{#1}
+\fancyhead[LO]{\nouppercase{\leftmark}}
+}
+
+% for part and chapter, which call \thispagestyle{plain}
+\fancypagestyle{plain}{ %
+ \fancyhf{}
+ \fancyhead[LE,RO]{\thepage}
+}
+
+% match Texinfo TeX style
+\renewcommand{\headrulewidth}{0pt}%
+
+% avoid pagebreak and headings setting for a sectionning command
+\newcommand{\GNUTexinfonopagebreakheading}[2]{\let\clearpage\relax
\let\cleardoublepage\relax \let\thispagestyle\GNUTexinfoplaceholder #1{#2}}
+
+
+\renewcommand{\includegraphics}[1]{\fbox{FIG #1}}
+
+%temporary to avoid "no line here to end" errors in test suite constructs
+\renewcommand{\obeycr}{\relax}
+
+% set default for @setchapternewpage
+\makeatletter
+\patchcmd{\chapter}{\if@openright\cleardoublepage\else\clearpage\fi}{\GNUTexinfoplaceholder{setchapternewpage
placeholder}\clearpage}{}{}
+\makeatother
+\GNUTexinfosetsingleheader{}%
+
+\begin{document}
+
+\section{section}
+\label{anchor:section-node}%
+
+\chapter{chapter}
+\label{anchor:chapter-node}%
+
+
+
+(`Top' node ignored)
+\end{document}
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- branch master updated: Add file_latex tests, add a setfilename.,
Patrice Dumas <=