[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
branch master updated: Output Top node label in LaTeX
From: |
Patrice Dumas |
Subject: |
branch master updated: Output Top node label in LaTeX |
Date: |
Wed, 27 Jul 2022 16:55:32 -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 fe498e0345 Output Top node label in LaTeX
fe498e0345 is described below
commit fe498e034570c08952c84c085e81299ba2263798
Author: Patrice Dumas <pertusus@free.fr>
AuthorDate: Wed Jul 27 22:55:19 2022 +0200
Output Top node label in LaTeX
* tp/Texinfo/Convert/LaTeX.pm (_convert): process the command
normally even if the Top node was seen in order to have the Top
label added.
* tp/Texinfo/Convert/LaTeX.pm: update TODO comment for definitions.
---
ChangeLog | 10 +
tp/Texinfo/Convert/LaTeX.pm | 82 ++--
tp/t/converters_tests.t | 7 +
tp/t/results/converters_tests/accent_with_text.pl | 4 +
tp/t/results/converters_tests/empty_accent.pl | 4 +
tp/t/results/converters_tests/non_empty_part.pl | 3 +-
tp/t/results/converters_tests/refs_formatting.pl | 40 ++
.../some_at_commands_in_ref_nodes.pl | 433 +++++++++++++++++++++
tp/t/results/converters_tests/top_in_ref.pl | 40 ++
.../res_latex/char_latin1_latin1_in_refs.tex | 1 +
.../def_syn_indices/res_latex/def_syn_indices.tex | 1 +
.../res_latex/double_seeentry_seealso.tex | 1 +
.../indices/seeentry/res_latex/seeentry.tex | 1 +
.../indices/subentries/res_latex/subentries.tex | 1 +
.../res_latex/subentry_and_sortas.tex | 1 +
.../res_latex/syncode_index_print_both.tex | 1 +
.../res_latex/inter_item_commands_in_enumerate.tex | 1 +
.../res_latex/inter_item_commands_in_itemize.tex | 1 +
.../res_latex/multiple_lang_chapters.tex | 1 +
.../anchor_links_xref_xrefautomaticsectiontitle.pl | 1 +
...anchor_links_xref_xrefautomaticsectiontitle.tex | 1 +
tp/t/results/latex_tests/combined_fonts.pl | 1 +
.../combined_fonts/res_latex/combined_fonts.tex | 1 +
tp/t/results/latex_tests/custom_headings.pl | 1 +
.../custom_headings/res_latex/custom_headings.tex | 1 +
tp/t/results/latex_tests/definition_commands.pl | 1 +
.../res_latex/definition_commands.tex | 1 +
.../latex_tests/error_in_sectioning_command.pl | 1 +
.../res_latex/error_in_sectioning_command.tex | 1 +
tp/t/results/latex_tests/float_and_refs.pl | 1 +
.../float_and_refs/res_latex/float_and_refs.tex | 1 +
tp/t/results/latex_tests/fonttextsize.pl | 1 +
.../fonttextsize/res_latex/fonttextsize.tex | 1 +
tp/t/results/latex_tests/indices.pl | 1 +
.../latex_tests/indices/res_latex/indices.tex | 1 +
.../informative_commands_in_top_node.pl | 1 +
.../res_latex/informative_commands_in_top_node.tex | 1 +
tp/t/results/latex_tests/pagesizes.pl | 1 +
.../latex_tests/pagesizes/res_latex/pagesizes.tex | 1 +
tp/t/results/latex_tests/pagetype.pl | 1 +
.../latex_tests/pagetype/res_latex/pagetype.tex | 1 +
tp/t/results/latex_tests/shorttitlepage.pl | 1 +
.../shorttitlepage/res_latex/shorttitlepage.tex | 1 +
tp/t/results/latex_tests/titlepage_classical.pl | 1 +
.../res_latex/titlepage_classical.tex | 1 +
tp/t/results/latex_tests/titlepage_in_top_node.pl | 1 +
.../res_latex/titlepage_in_top_node.tex | 1 +
tp/t/results/latex_tests/titlepage_long_title.pl | 1 +
.../res_latex/titlepage_long_title.tex | 1 +
tp/t/results/latex_tests/titlepage_no_author.pl | 1 +
.../res_latex/titlepage_no_author.tex | 1 +
tp/t/results/latex_tests/titlepage_no_title.pl | 1 +
.../res_latex/titlepage_no_title.tex | 1 +
.../titlepage_with_commands_classical.pl | 1 +
.../titlepage_with_commands_classical.tex | 1 +
tp/t/results/sectioning/chapter_between_nodes.pl | 1 +
.../res_latex/chapter_between_nodes.tex | 1 +
tp/t/results/sectioning/lone_Top_node.pl | 1 +
.../lone_Top_node/res_latex/lone_Top_node.tex | 1 +
tp/t/results/sectioning/loop_nodes.pl | 1 +
.../sectioning/loop_nodes/res_latex/loop_nodes.tex | 1 +
.../node_sectop_before_chapter_no_node.pl | 1 +
.../node_sectop_before_chapter_no_node.tex | 1 +
.../sectioning/node_sectop_before_lone_node_Top.pl | 1 +
.../res_latex/node_sectop_before_lone_node_Top.tex | 1 +
tp/t/results/sectioning/nodes_before_after_top.pl | 1 +
.../res_latex/nodes_before_after_top.tex | 1 +
.../sectioning/nodes_before_after_top_xref.pl | 1 +
.../res_latex/nodes_before_after_top_xref.tex | 1 +
tp/t/results/sectioning/nodes_before_top.pl | 1 +
.../res_latex/nodes_before_top.tex | 1 +
.../sectioning/section_before_after_top_node.pl | 1 +
.../res_latex/section_before_after_top_node.tex | 1 +
.../section_before_after_top_node_last_node.pl | 1 +
.../section_before_after_top_node_last_node.tex | 1 +
.../sectioning/section_chapter_before_top_nodes.pl | 1 +
.../res_latex/section_chapter_before_top_nodes.tex | 1 +
tp/t/results/sectioning/two_nodes_at_the_end.pl | 1 +
.../res_latex/inter_item_commands_in_table.tex | 1 +
.../indices_in_begin_tables_lists.tex | 1 +
.../indices_in_begin_tables_lists.tex | 1 +
.../res_parser/formatting_latex/formatting.tex | 1 +
82 files changed, 654 insertions(+), 42 deletions(-)
diff --git a/ChangeLog b/ChangeLog
index 69fd3cf82b..60d553b271 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,13 @@
+2022-07-27 Patrice Dumas <pertusus@free.fr>
+
+ Output Top node label in LaTeX
+
+ * tp/Texinfo/Convert/LaTeX.pm (_convert): process the command
+ normally even if the Top node was seen in order to have the Top
+ label added.
+
+ * tp/Texinfo/Convert/LaTeX.pm: update TODO comment for definitions.
+
2022-07-27 Gavin Smith <gavinsmith0123@gmail.com>
texi2any --help
diff --git a/tp/Texinfo/Convert/LaTeX.pm b/tp/Texinfo/Convert/LaTeX.pm
index b9a5d2b5f3..2067de28ad 100644
--- a/tp/Texinfo/Convert/LaTeX.pm
+++ b/tp/Texinfo/Convert/LaTeX.pm
@@ -54,13 +54,12 @@
# difference is more marked for @def* within a @*table or @quotation.
# Also Texinfo TeX leaves more space for the category on the right
# if the def line is too long.
-# In Texinfo TeX in @def* arguments ()&[] are handled especially,
-# they are not slanted and & and following word is bold.
-# Not clear what we want to implement in LaTeX output.
#
-# In Texinfo TeX, and this is documented in the manual, @var in @def
-# argument produces slanted typewriter (which is quite counter intuitive,
-# by the way).
+# Upright parentheses and brackets on @def* lines.
+# Could use
https://mirror.mwt.me/ctan/macros/latex/contrib/embrac/embrac_en.pdf
+# with \EmbracOff and \EmbracOn. Font is the surrounding text font.
+#
+# @deftype* in typewriter, not slanted. Other @def* in typewriter and slanted.
#
# There is something about form feeds to do. There is some processing of form
# feeds right now, which simply amounts to keeping them in ignorable spaces
@@ -3059,45 +3058,46 @@ sub _convert($$)
and $node_element->{'extra'}->{'normalized'}
and $node_element->{'extra'}->{'normalized'} eq 'Top') {
$self->{'formatting_context'}->[-1]->{'in_skipped_node_top'} = 1;
+ }
+ if ($cmdname eq 'node') {
+ # add the label only if not associated with a section
+ if (not $element->{'extra'}->{'associated_section'}) {
+ my $node_label
+ = _tree_anchor_label($element->{'extra'}->{'node_content'});
+ $result .= "\\label{$node_label}%\n";
+ }
} else {
- if ($cmdname eq 'node') {
- # add the label only if not associated with a section
- if (not $element->{'extra'}->{'associated_section'}) {
- my $node_label
- = _tree_anchor_label($element->{'extra'}->{'node_content'});
- $result .= "\\label{$node_label}%\n";
+ if ($cmdname eq 'appendix' and not $self->{'appendix_done'}) {
+ $result .= "\\appendix\n";
+ $self->{'appendix_done'} = 1;
+ }
+ if (not $self->{'formatting_context'}->[-1]->{'in_skipped_node_top'}) {
+ my $heading = '';
+ if ($element->{'args'}->[0]->{'contents'}) {
+ # It is useful to know that this is a heading formatting as
+ # the formatted heading is in the table of content, and some
formatting
+ # may be different for that case, for instance with
\texorpdfstring
+
$self->{'formatting_context'}->[-1]->{'in_sectioning_command_heading'} = 1;
+ $heading = $self->_convert({'contents' =>
$element->{'args'}->[0]->{'contents'}});
+ delete
$self->{'formatting_context'}->[-1]->{'in_sectioning_command_heading'};
}
- } else {
- if ($cmdname eq 'appendix' and not $self->{'appendix_done'}) {
- $result .= "\\appendix\n";
- $self->{'appendix_done'} = 1;
- }
- if (not
$self->{'formatting_context'}->[-1]->{'in_skipped_node_top'}) {
- my $heading = '';
- if ($element->{'args'}->[0]->{'contents'}) {
-
$self->{'formatting_context'}->[-1]->{'in_sectioning_command_heading'} = 1;
- $heading = $self->_convert({'contents' =>
$element->{'args'}->[0]->{'contents'}});
- delete
$self->{'formatting_context'}->[-1]->{'in_sectioning_command_heading'};
- }
-
- my $section_cmd = $section_map{$cmdname};
- if (not defined($section_map{$cmdname})) {
- die "BUG: no section_map for $cmdname";
- }
-
- if ($cmdname ne 'centerchap') {
- $result .= "\\".$section_cmd."{$heading}\n";
- } else {
- $result .= "\\".$section_cmd."{\\centering $heading}\n";
- }
- if ($element->{'extra'}->{'associated_node'}) {
- my $associated_node = $element->{'extra'}->{'associated_node'};
- my $node_label
- =
_tree_anchor_label($associated_node->{'extra'}->{'node_content'});
- $result .= "\\label{$node_label}%\n";
- }
+ my $section_cmd = $section_map{$cmdname};
+ die "BUG: no section_map for $cmdname"
+ if (not defined($section_map{$cmdname}));
+ if ($cmdname ne 'centerchap') {
+ $result .= "\\".$section_cmd."{$heading}\n";
+ } else {
+ $result .= "\\".$section_cmd."{\\centering $heading}\n";
}
}
+ # we add a label even if in_skipped_node_top (should only
+ # be for the Top node, as another node ends in_skipped_node_top).
+ if ($element->{'extra'}->{'associated_node'}) {
+ my $associated_node = $element->{'extra'}->{'associated_node'};
+ my $node_label
+ =
_tree_anchor_label($associated_node->{'extra'}->{'node_content'});
+ $result .= "\\label{$node_label}%\n";
+ }
}
} elsif (($cmdname eq 'item' or $cmdname eq 'itemx')
and $element->{'args'} and $element->{'args'}->[0]
diff --git a/tp/t/converters_tests.t b/tp/t/converters_tests.t
index bb5bbc7c96..2edda35eae 100644
--- a/tp/t/converters_tests.t
+++ b/tp/t/converters_tests.t
@@ -156,6 +156,8 @@ my @test_cases = (
@chapter A @sc{sc} node @"i @"{@dotless{i}} @`{@=E} @l{} @,{@\'C}
@exclamdown{}
see @ref{a @strong{strong} ref with @sc{sc}@comma{} a i trema @"i@comma{} a
dotless i trema @"{@dotless{i}} @`{@=E} and exclamdown @exclamdown{},,,manual}.
+
+@xref{A @sc{sc @~n @aa{} @TeX{}} node @"i @"{@dotless{i}} @`{@=E} @l{}
@,{@\'C} @exclamdown{}}.
'],
['refs_formatting',
'@node chapter
@@ -838,6 +840,11 @@ my %docbooc_doc_tests = (
# this is temporary, all the files in @test_cases should go
# through the LaTeX converter
my %latex_tests = (
+ 'accent_with_text' => 1,
+ 'empty_accent' => 1,
+ 'some_at_commands_in_ref_nodes' => 1,
+ 'refs_formatting' => 1,
+ 'top_in_ref' => 1,
'inline' => 1,
'test_sp' => 1,
'non_empty_part' => 1,
diff --git a/tp/t/results/converters_tests/accent_with_text.pl
b/tp/t/results/converters_tests/accent_with_text.pl
index def05812ed..55bac46a7d 100644
--- a/tp/t/results/converters_tests/accent_with_text.pl
+++ b/tp/t/results/converters_tests/accent_with_text.pl
@@ -265,4 +265,8 @@ $result_converted{'xml'}->{'accent_with_text'} =
'<para><accent type="breve">&te
$result_converted{'docbook'}->{'accent_with_text'} = '<para>–ă
–b î ĵ –â
</para>';
+
+$result_converted{'latex'}->{'accent_with_text'} = '\\u{--a} --b \\^{--\\i{}}
\\^{--\\j{}} \\^{--a}
+';
+
1;
diff --git a/tp/t/results/converters_tests/empty_accent.pl
b/tp/t/results/converters_tests/empty_accent.pl
index 3b09786ffa..20ef634768 100644
--- a/tp/t/results/converters_tests/empty_accent.pl
+++ b/tp/t/results/converters_tests/empty_accent.pl
@@ -79,4 +79,8 @@ $result_converted{'xml'}->{'empty_accent'} = '<para><accent
type="grave"></accen
$result_converted{'docbook'}->{'empty_accent'} = '<para>̀
</para>';
+
+$result_converted{'latex'}->{'empty_accent'} = '\\`{}
+';
+
1;
diff --git a/tp/t/results/converters_tests/non_empty_part.pl
b/tp/t/results/converters_tests/non_empty_part.pl
index bce99ef4cd..55f4147d32 100644
--- a/tp/t/results/converters_tests/non_empty_part.pl
+++ b/tp/t/results/converters_tests/non_empty_part.pl
@@ -1777,7 +1777,8 @@ $result_converted{'docbook'}->{'non_empty_part'} = '<part
label="">
';
-$result_converted{'latex'}->{'non_empty_part'} = '\\part{part I}
+$result_converted{'latex'}->{'non_empty_part'} = '\\label{anchor:Top}%
+\\part{part I}
Content I
diff --git a/tp/t/results/converters_tests/refs_formatting.pl
b/tp/t/results/converters_tests/refs_formatting.pl
index 9f21cdd88c..5b64ef3edf 100644
--- a/tp/t/results/converters_tests/refs_formatting.pl
+++ b/tp/t/results/converters_tests/refs_formatting.pl
@@ -4583,4 +4583,44 @@ $result_converted{'docbook'}->{'refs_formatting'} =
'<chapter label="1" id="chap
</para></chapter>
';
+
+$result_converted{'latex'}->{'refs_formatting'} = '\\chapter{chapter}
+\\label{anchor:chapter}%
+
+\\texttt{@ref\\{chapter,cross ref name\\}}
\\hyperref[anchor:chapter]{\\chaptername~\\ref*{anchor:chapter} [chapter],
page~\\pageref*{anchor:chapter}}
+\\texttt{@ref\\{chapter,,title\\}}
\\hyperref[anchor:chapter]{\\chaptername~\\ref*{anchor:chapter} [title],
page~\\pageref*{anchor:chapter}}
+\\texttt{@ref\\{chapter,,,file name\\}} Section ``chapter\'\' in \\texttt{file
name}
+\\texttt{@ref\\{chapter,,,,manual\\}} Section ``chapter\'\' in \\textsl{manual}
+\\texttt{@ref\\{chapter,cross ref name,title,\\}}
\\hyperref[anchor:chapter]{\\chaptername~\\ref*{anchor:chapter} [title],
page~\\pageref*{anchor:chapter}}
+\\texttt{@ref\\{chapter,cross ref name,,file name\\}} Section ``chapter\'\' in
\\texttt{file name}
+\\texttt{@ref\\{chapter,cross ref name,,,manual\\}} Section ``chapter\'\' in
\\textsl{manual}
+\\texttt{@ref\\{chapter,cross ref name,title,file name\\}} Section ``title\'\'
in \\texttt{file name}
+\\texttt{@ref\\{chapter,cross ref name,title,,manual\\}} Section ``title\'\'
in \\textsl{manual}
+\\texttt{@ref\\{chapter,cross ref name,title, file name, manual\\}} Section
``title\'\' in \\textsl{manual}
+\\texttt{@ref\\{chapter,,title,file name\\}} Section ``title\'\' in
\\texttt{file name}
+\\texttt{@ref\\{chapter,,title,,manual\\}} Section ``title\'\' in
\\textsl{manual}
+\\texttt{@ref\\{chapter,,title, file name, manual\\}} Section ``title\'\' in
\\textsl{manual}
+\\texttt{@ref\\{chapter,,,file name,manual\\}} Section ``chapter\'\' in
\\textsl{manual}
+
+\\texttt{@ref\\{(pman)anode,cross ref name\\}} (pman)anode
+\\texttt{@ref\\{(pman)anode,,title\\}} title
+\\texttt{@ref\\{(pman)anode,,,file name\\}} Section ``(pman)anode\'\' in
\\texttt{file name}
+\\texttt{@ref\\{(pman)anode,,,,manual\\}} Section ``(pman)anode\'\' in
\\textsl{manual}
+\\texttt{@ref\\{(pman)anode,cross ref name,title,\\}} title
+\\texttt{@ref\\{(pman)anode,cross ref name,,file name\\}} Section
``(pman)anode\'\' in \\texttt{file name}
+\\texttt{@ref\\{(pman)anode,cross ref name,,,manual\\}} Section
``(pman)anode\'\' in \\textsl{manual}
+\\texttt{@ref\\{(pman)anode,cross ref name,title,file name\\}} Section
``title\'\' in \\texttt{file name}
+\\texttt{@ref\\{(pman)anode,cross ref name,title,,manual\\}} Section
``title\'\' in \\textsl{manual}
+\\texttt{@ref\\{(pman)anode,cross ref name,title, file name, manual\\}}
Section ``title\'\' in \\textsl{manual}
+\\texttt{@ref\\{(pman)anode,,title,file name\\}} Section ``title\'\' in
\\texttt{file name}
+\\texttt{@ref\\{(pman)anode,,title,,manual\\}} Section ``title\'\' in
\\textsl{manual}
+\\texttt{@ref\\{(pman)anode,,title, file name, manual\\}} Section ``title\'\'
in \\textsl{manual}
+\\texttt{@ref\\{(pman)anode,,,file name,manual\\}} Section ``(pman)anode\'\'
in \\textsl{manual}
+
+\\texttt{@inforef\\{chapter, cross ref name, file name\\}} Section
``chapter\'\' in \\texttt{file name}
+\\texttt{@inforef\\{chapter\\}} chapter
+\\texttt{@inforef\\{chapter, cross ref name\\}} chapter
+\\texttt{@inforef\\{chapter,,file name\\}} Section ``chapter\'\' in
\\texttt{file name}
+';
+
1;
diff --git a/tp/t/results/converters_tests/some_at_commands_in_ref_nodes.pl
b/tp/t/results/converters_tests/some_at_commands_in_ref_nodes.pl
index 604c0e5109..b88d631335 100644
--- a/tp/t/results/converters_tests/some_at_commands_in_ref_nodes.pl
+++ b/tp/t/results/converters_tests/some_at_commands_in_ref_nodes.pl
@@ -1399,6 +1399,353 @@ $result_trees{'some_at_commands_in_ref_nodes'} = {
{
'parent' => {},
'text' => '.
+'
+ }
+ ],
+ 'parent' => {},
+ 'type' => 'paragraph'
+ },
+ {
+ 'parent' => {},
+ 'text' => '
+',
+ 'type' => 'empty_line'
+ },
+ {
+ 'contents' => [
+ {
+ 'args' => [
+ {
+ 'contents' => [
+ {
+ 'parent' => {},
+ 'text' => 'A '
+ },
+ {
+ 'args' => [
+ {
+ 'contents' => [
+ {
+ 'parent' => {},
+ 'text' => 'sc '
+ },
+ {
+ 'args' => [
+ {
+ 'contents' => [
+ {
+ 'parent' => {},
+ 'text' => 'n'
+ }
+ ],
+ 'parent' => {},
+ 'type' => 'following_arg'
+ }
+ ],
+ 'cmdname' => '~',
+ 'contents' => [],
+ 'parent' => {},
+ 'source_info' => {
+ 'file_name' => '',
+ 'line_nr' => 14,
+ 'macro' => ''
+ }
+ },
+ {
+ 'parent' => {},
+ 'text' => ' '
+ },
+ {
+ 'args' => [
+ {
+ 'contents' => [],
+ 'parent' => {},
+ 'type' => 'brace_command_arg'
+ }
+ ],
+ 'cmdname' => 'aa',
+ 'contents' => [],
+ 'parent' => {},
+ 'source_info' => {
+ 'file_name' => '',
+ 'line_nr' => 14,
+ 'macro' => ''
+ }
+ },
+ {
+ 'parent' => {},
+ 'text' => ' '
+ },
+ {
+ 'args' => [
+ {
+ 'contents' => [],
+ 'parent' => {},
+ 'type' => 'brace_command_arg'
+ }
+ ],
+ 'cmdname' => 'TeX',
+ 'contents' => [],
+ 'parent' => {},
+ 'source_info' => {
+ 'file_name' => '',
+ 'line_nr' => 14,
+ 'macro' => ''
+ }
+ }
+ ],
+ 'parent' => {},
+ 'type' => 'brace_command_arg'
+ }
+ ],
+ 'cmdname' => 'sc',
+ 'contents' => [],
+ 'parent' => {},
+ 'source_info' => {
+ 'file_name' => '',
+ 'line_nr' => 14,
+ 'macro' => ''
+ }
+ },
+ {
+ 'parent' => {},
+ 'text' => ' node '
+ },
+ {
+ 'args' => [
+ {
+ 'contents' => [
+ {
+ 'parent' => {},
+ 'text' => 'i'
+ }
+ ],
+ 'parent' => {},
+ 'type' => 'following_arg'
+ }
+ ],
+ 'cmdname' => '"',
+ 'contents' => [],
+ 'parent' => {},
+ 'source_info' => {
+ 'file_name' => '',
+ 'line_nr' => 14,
+ 'macro' => ''
+ }
+ },
+ {
+ 'parent' => {},
+ 'text' => ' '
+ },
+ {
+ 'args' => [
+ {
+ 'contents' => [
+ {
+ 'args' => [
+ {
+ 'contents' => [
+ {
+ 'parent' => {},
+ 'text' => 'i'
+ }
+ ],
+ 'parent' => {},
+ 'type' => 'brace_command_arg'
+ }
+ ],
+ 'cmdname' => 'dotless',
+ 'contents' => [],
+ 'parent' => {},
+ 'source_info' => {
+ 'file_name' => '',
+ 'line_nr' => 14,
+ 'macro' => ''
+ }
+ }
+ ],
+ 'parent' => {},
+ 'type' => 'brace_command_arg'
+ }
+ ],
+ 'cmdname' => '"',
+ 'contents' => [],
+ 'parent' => {},
+ 'source_info' => {
+ 'file_name' => '',
+ 'line_nr' => 14,
+ 'macro' => ''
+ }
+ },
+ {
+ 'parent' => {},
+ 'text' => ' '
+ },
+ {
+ 'args' => [
+ {
+ 'contents' => [
+ {
+ 'args' => [
+ {
+ 'contents' => [
+ {
+ 'parent' => {},
+ 'text' => 'E'
+ }
+ ],
+ 'parent' => {},
+ 'type' => 'following_arg'
+ }
+ ],
+ 'cmdname' => '=',
+ 'contents' => [],
+ 'parent' => {},
+ 'source_info' => {
+ 'file_name' => '',
+ 'line_nr' => 14,
+ 'macro' => ''
+ }
+ }
+ ],
+ 'parent' => {},
+ 'type' => 'brace_command_arg'
+ }
+ ],
+ 'cmdname' => '`',
+ 'contents' => [],
+ 'parent' => {},
+ 'source_info' => {
+ 'file_name' => '',
+ 'line_nr' => 14,
+ 'macro' => ''
+ }
+ },
+ {
+ 'parent' => {},
+ 'text' => ' '
+ },
+ {
+ 'args' => [
+ {
+ 'contents' => [],
+ 'parent' => {},
+ 'type' => 'brace_command_arg'
+ }
+ ],
+ 'cmdname' => 'l',
+ 'contents' => [],
+ 'parent' => {},
+ 'source_info' => {
+ 'file_name' => '',
+ 'line_nr' => 14,
+ 'macro' => ''
+ }
+ },
+ {
+ 'parent' => {},
+ 'text' => ' '
+ },
+ {
+ 'args' => [
+ {
+ 'contents' => [
+ {
+ 'args' => [
+ {
+ 'contents' => [
+ {
+ 'parent' => {},
+ 'text' => 'C'
+ }
+ ],
+ 'parent' => {},
+ 'type' => 'following_arg'
+ }
+ ],
+ 'cmdname' => '\'',
+ 'contents' => [],
+ 'parent' => {},
+ 'source_info' => {
+ 'file_name' => '',
+ 'line_nr' => 14,
+ 'macro' => ''
+ }
+ }
+ ],
+ 'parent' => {},
+ 'type' => 'brace_command_arg'
+ }
+ ],
+ 'cmdname' => ',',
+ 'contents' => [],
+ 'parent' => {},
+ 'source_info' => {
+ 'file_name' => '',
+ 'line_nr' => 14,
+ 'macro' => ''
+ }
+ },
+ {
+ 'parent' => {},
+ 'text' => ' '
+ },
+ {
+ 'args' => [
+ {
+ 'contents' => [],
+ 'parent' => {},
+ 'type' => 'brace_command_arg'
+ }
+ ],
+ 'cmdname' => 'exclamdown',
+ 'contents' => [],
+ 'parent' => {},
+ 'source_info' => {
+ 'file_name' => '',
+ 'line_nr' => 14,
+ 'macro' => ''
+ }
+ }
+ ],
+ 'parent' => {},
+ 'type' => 'brace_command_arg'
+ }
+ ],
+ 'cmdname' => 'xref',
+ 'contents' => [],
+ 'extra' => {
+ 'label' => {},
+ 'node_argument' => {
+ 'node_content' => [
+ {},
+ {},
+ {},
+ {},
+ {},
+ {},
+ {},
+ {},
+ {},
+ {},
+ {},
+ {},
+ {},
+ {}
+ ],
+ 'normalized' =>
'A-SC-_00d1-_00c5-TeX-node-_00ef-_00ef-_1e14-_0142-_1e08-_00a1'
+ }
+ },
+ 'parent' => {},
+ 'source_info' => {
+ 'file_name' => '',
+ 'line_nr' => 14,
+ 'macro' => ''
+ }
+ },
+ {
+ 'parent' => {},
+ 'text' => '.
'
}
],
@@ -1660,6 +2007,67 @@
$result_trees{'some_at_commands_in_ref_nodes'}{'contents'}[4]{'contents'}[1]{'co
$result_trees{'some_at_commands_in_ref_nodes'}{'contents'}[4]{'contents'}[1]{'contents'}[1]{'parent'}
= $result_trees{'some_at_commands_in_ref_nodes'}{'contents'}[4]{'contents'}[1];
$result_trees{'some_at_commands_in_ref_nodes'}{'contents'}[4]{'contents'}[1]{'contents'}[2]{'parent'}
= $result_trees{'some_at_commands_in_ref_nodes'}{'contents'}[4]{'contents'}[1];
$result_trees{'some_at_commands_in_ref_nodes'}{'contents'}[4]{'contents'}[1]{'parent'}
= $result_trees{'some_at_commands_in_ref_nodes'}{'contents'}[4];
+$result_trees{'some_at_commands_in_ref_nodes'}{'contents'}[4]{'contents'}[2]{'parent'}
= $result_trees{'some_at_commands_in_ref_nodes'}{'contents'}[4];
+$result_trees{'some_at_commands_in_ref_nodes'}{'contents'}[4]{'contents'}[3]{'contents'}[0]{'args'}[0]{'contents'}[0]{'parent'}
=
$result_trees{'some_at_commands_in_ref_nodes'}{'contents'}[4]{'contents'}[3]{'contents'}[0]{'args'}[0];
+$result_trees{'some_at_commands_in_ref_nodes'}{'contents'}[4]{'contents'}[3]{'contents'}[0]{'args'}[0]{'contents'}[1]{'args'}[0]{'contents'}[0]{'parent'}
=
$result_trees{'some_at_commands_in_ref_nodes'}{'contents'}[4]{'contents'}[3]{'contents'}[0]{'args'}[0]{'contents'}[1]{'args'}[0];
+$result_trees{'some_at_commands_in_ref_nodes'}{'contents'}[4]{'contents'}[3]{'contents'}[0]{'args'}[0]{'contents'}[1]{'args'}[0]{'contents'}[1]{'args'}[0]{'contents'}[0]{'parent'}
=
$result_trees{'some_at_commands_in_ref_nodes'}{'contents'}[4]{'contents'}[3]{'contents'}[0]{'args'}[0]{'contents'}[1]{'args'}[0]{'contents'}[1]{'args'}[0];
+$result_trees{'some_at_commands_in_ref_nodes'}{'contents'}[4]{'contents'}[3]{'contents'}[0]{'args'}[0]{'contents'}[1]{'args'}[0]{'contents'}[1]{'args'}[0]{'parent'}
=
$result_trees{'some_at_commands_in_ref_nodes'}{'contents'}[4]{'contents'}[3]{'contents'}[0]{'args'}[0]{'contents'}[1]{'args'}[0]{'contents'}[1];
+$result_trees{'some_at_commands_in_ref_nodes'}{'contents'}[4]{'contents'}[3]{'contents'}[0]{'args'}[0]{'contents'}[1]{'args'}[0]{'contents'}[1]{'parent'}
=
$result_trees{'some_at_commands_in_ref_nodes'}{'contents'}[4]{'contents'}[3]{'contents'}[0]{'args'}[0]{'contents'}[1]{'args'}[0];
+$result_trees{'some_at_commands_in_ref_nodes'}{'contents'}[4]{'contents'}[3]{'contents'}[0]{'args'}[0]{'contents'}[1]{'args'}[0]{'contents'}[2]{'parent'}
=
$result_trees{'some_at_commands_in_ref_nodes'}{'contents'}[4]{'contents'}[3]{'contents'}[0]{'args'}[0]{'contents'}[1]{'args'}[0];
+$result_trees{'some_at_commands_in_ref_nodes'}{'contents'}[4]{'contents'}[3]{'contents'}[0]{'args'}[0]{'contents'}[1]{'args'}[0]{'contents'}[3]{'args'}[0]{'parent'}
=
$result_trees{'some_at_commands_in_ref_nodes'}{'contents'}[4]{'contents'}[3]{'contents'}[0]{'args'}[0]{'contents'}[1]{'args'}[0]{'contents'}[3];
+$result_trees{'some_at_commands_in_ref_nodes'}{'contents'}[4]{'contents'}[3]{'contents'}[0]{'args'}[0]{'contents'}[1]{'args'}[0]{'contents'}[3]{'parent'}
=
$result_trees{'some_at_commands_in_ref_nodes'}{'contents'}[4]{'contents'}[3]{'contents'}[0]{'args'}[0]{'contents'}[1]{'args'}[0];
+$result_trees{'some_at_commands_in_ref_nodes'}{'contents'}[4]{'contents'}[3]{'contents'}[0]{'args'}[0]{'contents'}[1]{'args'}[0]{'contents'}[4]{'parent'}
=
$result_trees{'some_at_commands_in_ref_nodes'}{'contents'}[4]{'contents'}[3]{'contents'}[0]{'args'}[0]{'contents'}[1]{'args'}[0];
+$result_trees{'some_at_commands_in_ref_nodes'}{'contents'}[4]{'contents'}[3]{'contents'}[0]{'args'}[0]{'contents'}[1]{'args'}[0]{'contents'}[5]{'args'}[0]{'parent'}
=
$result_trees{'some_at_commands_in_ref_nodes'}{'contents'}[4]{'contents'}[3]{'contents'}[0]{'args'}[0]{'contents'}[1]{'args'}[0]{'contents'}[5];
+$result_trees{'some_at_commands_in_ref_nodes'}{'contents'}[4]{'contents'}[3]{'contents'}[0]{'args'}[0]{'contents'}[1]{'args'}[0]{'contents'}[5]{'parent'}
=
$result_trees{'some_at_commands_in_ref_nodes'}{'contents'}[4]{'contents'}[3]{'contents'}[0]{'args'}[0]{'contents'}[1]{'args'}[0];
+$result_trees{'some_at_commands_in_ref_nodes'}{'contents'}[4]{'contents'}[3]{'contents'}[0]{'args'}[0]{'contents'}[1]{'args'}[0]{'parent'}
=
$result_trees{'some_at_commands_in_ref_nodes'}{'contents'}[4]{'contents'}[3]{'contents'}[0]{'args'}[0]{'contents'}[1];
+$result_trees{'some_at_commands_in_ref_nodes'}{'contents'}[4]{'contents'}[3]{'contents'}[0]{'args'}[0]{'contents'}[1]{'parent'}
=
$result_trees{'some_at_commands_in_ref_nodes'}{'contents'}[4]{'contents'}[3]{'contents'}[0]{'args'}[0];
+$result_trees{'some_at_commands_in_ref_nodes'}{'contents'}[4]{'contents'}[3]{'contents'}[0]{'args'}[0]{'contents'}[2]{'parent'}
=
$result_trees{'some_at_commands_in_ref_nodes'}{'contents'}[4]{'contents'}[3]{'contents'}[0]{'args'}[0];
+$result_trees{'some_at_commands_in_ref_nodes'}{'contents'}[4]{'contents'}[3]{'contents'}[0]{'args'}[0]{'contents'}[3]{'args'}[0]{'contents'}[0]{'parent'}
=
$result_trees{'some_at_commands_in_ref_nodes'}{'contents'}[4]{'contents'}[3]{'contents'}[0]{'args'}[0]{'contents'}[3]{'args'}[0];
+$result_trees{'some_at_commands_in_ref_nodes'}{'contents'}[4]{'contents'}[3]{'contents'}[0]{'args'}[0]{'contents'}[3]{'args'}[0]{'parent'}
=
$result_trees{'some_at_commands_in_ref_nodes'}{'contents'}[4]{'contents'}[3]{'contents'}[0]{'args'}[0]{'contents'}[3];
+$result_trees{'some_at_commands_in_ref_nodes'}{'contents'}[4]{'contents'}[3]{'contents'}[0]{'args'}[0]{'contents'}[3]{'parent'}
=
$result_trees{'some_at_commands_in_ref_nodes'}{'contents'}[4]{'contents'}[3]{'contents'}[0]{'args'}[0];
+$result_trees{'some_at_commands_in_ref_nodes'}{'contents'}[4]{'contents'}[3]{'contents'}[0]{'args'}[0]{'contents'}[4]{'parent'}
=
$result_trees{'some_at_commands_in_ref_nodes'}{'contents'}[4]{'contents'}[3]{'contents'}[0]{'args'}[0];
+$result_trees{'some_at_commands_in_ref_nodes'}{'contents'}[4]{'contents'}[3]{'contents'}[0]{'args'}[0]{'contents'}[5]{'args'}[0]{'contents'}[0]{'args'}[0]{'contents'}[0]{'parent'}
=
$result_trees{'some_at_commands_in_ref_nodes'}{'contents'}[4]{'contents'}[3]{'contents'}[0]{'args'}[0]{'contents'}[5]{'args'}[0]{'contents'}[0]{'args'}[0];
+$result_trees{'some_at_commands_in_ref_nodes'}{'contents'}[4]{'contents'}[3]{'contents'}[0]{'args'}[0]{'contents'}[5]{'args'}[0]{'contents'}[0]{'args'}[0]{'parent'}
=
$result_trees{'some_at_commands_in_ref_nodes'}{'contents'}[4]{'contents'}[3]{'contents'}[0]{'args'}[0]{'contents'}[5]{'args'}[0]{'contents'}[0];
+$result_trees{'some_at_commands_in_ref_nodes'}{'contents'}[4]{'contents'}[3]{'contents'}[0]{'args'}[0]{'contents'}[5]{'args'}[0]{'contents'}[0]{'parent'}
=
$result_trees{'some_at_commands_in_ref_nodes'}{'contents'}[4]{'contents'}[3]{'contents'}[0]{'args'}[0]{'contents'}[5]{'args'}[0];
+$result_trees{'some_at_commands_in_ref_nodes'}{'contents'}[4]{'contents'}[3]{'contents'}[0]{'args'}[0]{'contents'}[5]{'args'}[0]{'parent'}
=
$result_trees{'some_at_commands_in_ref_nodes'}{'contents'}[4]{'contents'}[3]{'contents'}[0]{'args'}[0]{'contents'}[5];
+$result_trees{'some_at_commands_in_ref_nodes'}{'contents'}[4]{'contents'}[3]{'contents'}[0]{'args'}[0]{'contents'}[5]{'parent'}
=
$result_trees{'some_at_commands_in_ref_nodes'}{'contents'}[4]{'contents'}[3]{'contents'}[0]{'args'}[0];
+$result_trees{'some_at_commands_in_ref_nodes'}{'contents'}[4]{'contents'}[3]{'contents'}[0]{'args'}[0]{'contents'}[6]{'parent'}
=
$result_trees{'some_at_commands_in_ref_nodes'}{'contents'}[4]{'contents'}[3]{'contents'}[0]{'args'}[0];
+$result_trees{'some_at_commands_in_ref_nodes'}{'contents'}[4]{'contents'}[3]{'contents'}[0]{'args'}[0]{'contents'}[7]{'args'}[0]{'contents'}[0]{'args'}[0]{'contents'}[0]{'parent'}
=
$result_trees{'some_at_commands_in_ref_nodes'}{'contents'}[4]{'contents'}[3]{'contents'}[0]{'args'}[0]{'contents'}[7]{'args'}[0]{'contents'}[0]{'args'}[0];
+$result_trees{'some_at_commands_in_ref_nodes'}{'contents'}[4]{'contents'}[3]{'contents'}[0]{'args'}[0]{'contents'}[7]{'args'}[0]{'contents'}[0]{'args'}[0]{'parent'}
=
$result_trees{'some_at_commands_in_ref_nodes'}{'contents'}[4]{'contents'}[3]{'contents'}[0]{'args'}[0]{'contents'}[7]{'args'}[0]{'contents'}[0];
+$result_trees{'some_at_commands_in_ref_nodes'}{'contents'}[4]{'contents'}[3]{'contents'}[0]{'args'}[0]{'contents'}[7]{'args'}[0]{'contents'}[0]{'parent'}
=
$result_trees{'some_at_commands_in_ref_nodes'}{'contents'}[4]{'contents'}[3]{'contents'}[0]{'args'}[0]{'contents'}[7]{'args'}[0];
+$result_trees{'some_at_commands_in_ref_nodes'}{'contents'}[4]{'contents'}[3]{'contents'}[0]{'args'}[0]{'contents'}[7]{'args'}[0]{'parent'}
=
$result_trees{'some_at_commands_in_ref_nodes'}{'contents'}[4]{'contents'}[3]{'contents'}[0]{'args'}[0]{'contents'}[7];
+$result_trees{'some_at_commands_in_ref_nodes'}{'contents'}[4]{'contents'}[3]{'contents'}[0]{'args'}[0]{'contents'}[7]{'parent'}
=
$result_trees{'some_at_commands_in_ref_nodes'}{'contents'}[4]{'contents'}[3]{'contents'}[0]{'args'}[0];
+$result_trees{'some_at_commands_in_ref_nodes'}{'contents'}[4]{'contents'}[3]{'contents'}[0]{'args'}[0]{'contents'}[8]{'parent'}
=
$result_trees{'some_at_commands_in_ref_nodes'}{'contents'}[4]{'contents'}[3]{'contents'}[0]{'args'}[0];
+$result_trees{'some_at_commands_in_ref_nodes'}{'contents'}[4]{'contents'}[3]{'contents'}[0]{'args'}[0]{'contents'}[9]{'args'}[0]{'parent'}
=
$result_trees{'some_at_commands_in_ref_nodes'}{'contents'}[4]{'contents'}[3]{'contents'}[0]{'args'}[0]{'contents'}[9];
+$result_trees{'some_at_commands_in_ref_nodes'}{'contents'}[4]{'contents'}[3]{'contents'}[0]{'args'}[0]{'contents'}[9]{'parent'}
=
$result_trees{'some_at_commands_in_ref_nodes'}{'contents'}[4]{'contents'}[3]{'contents'}[0]{'args'}[0];
+$result_trees{'some_at_commands_in_ref_nodes'}{'contents'}[4]{'contents'}[3]{'contents'}[0]{'args'}[0]{'contents'}[10]{'parent'}
=
$result_trees{'some_at_commands_in_ref_nodes'}{'contents'}[4]{'contents'}[3]{'contents'}[0]{'args'}[0];
+$result_trees{'some_at_commands_in_ref_nodes'}{'contents'}[4]{'contents'}[3]{'contents'}[0]{'args'}[0]{'contents'}[11]{'args'}[0]{'contents'}[0]{'args'}[0]{'contents'}[0]{'parent'}
=
$result_trees{'some_at_commands_in_ref_nodes'}{'contents'}[4]{'contents'}[3]{'contents'}[0]{'args'}[0]{'contents'}[11]{'args'}[0]{'contents'}[0]{'args'}[0];
+$result_trees{'some_at_commands_in_ref_nodes'}{'contents'}[4]{'contents'}[3]{'contents'}[0]{'args'}[0]{'contents'}[11]{'args'}[0]{'contents'}[0]{'args'}[0]{'parent'}
=
$result_trees{'some_at_commands_in_ref_nodes'}{'contents'}[4]{'contents'}[3]{'contents'}[0]{'args'}[0]{'contents'}[11]{'args'}[0]{'contents'}[0];
+$result_trees{'some_at_commands_in_ref_nodes'}{'contents'}[4]{'contents'}[3]{'contents'}[0]{'args'}[0]{'contents'}[11]{'args'}[0]{'contents'}[0]{'parent'}
=
$result_trees{'some_at_commands_in_ref_nodes'}{'contents'}[4]{'contents'}[3]{'contents'}[0]{'args'}[0]{'contents'}[11]{'args'}[0];
+$result_trees{'some_at_commands_in_ref_nodes'}{'contents'}[4]{'contents'}[3]{'contents'}[0]{'args'}[0]{'contents'}[11]{'args'}[0]{'parent'}
=
$result_trees{'some_at_commands_in_ref_nodes'}{'contents'}[4]{'contents'}[3]{'contents'}[0]{'args'}[0]{'contents'}[11];
+$result_trees{'some_at_commands_in_ref_nodes'}{'contents'}[4]{'contents'}[3]{'contents'}[0]{'args'}[0]{'contents'}[11]{'parent'}
=
$result_trees{'some_at_commands_in_ref_nodes'}{'contents'}[4]{'contents'}[3]{'contents'}[0]{'args'}[0];
+$result_trees{'some_at_commands_in_ref_nodes'}{'contents'}[4]{'contents'}[3]{'contents'}[0]{'args'}[0]{'contents'}[12]{'parent'}
=
$result_trees{'some_at_commands_in_ref_nodes'}{'contents'}[4]{'contents'}[3]{'contents'}[0]{'args'}[0];
+$result_trees{'some_at_commands_in_ref_nodes'}{'contents'}[4]{'contents'}[3]{'contents'}[0]{'args'}[0]{'contents'}[13]{'args'}[0]{'parent'}
=
$result_trees{'some_at_commands_in_ref_nodes'}{'contents'}[4]{'contents'}[3]{'contents'}[0]{'args'}[0]{'contents'}[13];
+$result_trees{'some_at_commands_in_ref_nodes'}{'contents'}[4]{'contents'}[3]{'contents'}[0]{'args'}[0]{'contents'}[13]{'parent'}
=
$result_trees{'some_at_commands_in_ref_nodes'}{'contents'}[4]{'contents'}[3]{'contents'}[0]{'args'}[0];
+$result_trees{'some_at_commands_in_ref_nodes'}{'contents'}[4]{'contents'}[3]{'contents'}[0]{'args'}[0]{'parent'}
=
$result_trees{'some_at_commands_in_ref_nodes'}{'contents'}[4]{'contents'}[3]{'contents'}[0];
+$result_trees{'some_at_commands_in_ref_nodes'}{'contents'}[4]{'contents'}[3]{'contents'}[0]{'extra'}{'label'}
= $result_trees{'some_at_commands_in_ref_nodes'}{'contents'}[3];
+$result_trees{'some_at_commands_in_ref_nodes'}{'contents'}[4]{'contents'}[3]{'contents'}[0]{'extra'}{'node_argument'}{'node_content'}[0]
=
$result_trees{'some_at_commands_in_ref_nodes'}{'contents'}[4]{'contents'}[3]{'contents'}[0]{'args'}[0]{'contents'}[0];
+$result_trees{'some_at_commands_in_ref_nodes'}{'contents'}[4]{'contents'}[3]{'contents'}[0]{'extra'}{'node_argument'}{'node_content'}[1]
=
$result_trees{'some_at_commands_in_ref_nodes'}{'contents'}[4]{'contents'}[3]{'contents'}[0]{'args'}[0]{'contents'}[1];
+$result_trees{'some_at_commands_in_ref_nodes'}{'contents'}[4]{'contents'}[3]{'contents'}[0]{'extra'}{'node_argument'}{'node_content'}[2]
=
$result_trees{'some_at_commands_in_ref_nodes'}{'contents'}[4]{'contents'}[3]{'contents'}[0]{'args'}[0]{'contents'}[2];
+$result_trees{'some_at_commands_in_ref_nodes'}{'contents'}[4]{'contents'}[3]{'contents'}[0]{'extra'}{'node_argument'}{'node_content'}[3]
=
$result_trees{'some_at_commands_in_ref_nodes'}{'contents'}[4]{'contents'}[3]{'contents'}[0]{'args'}[0]{'contents'}[3];
+$result_trees{'some_at_commands_in_ref_nodes'}{'contents'}[4]{'contents'}[3]{'contents'}[0]{'extra'}{'node_argument'}{'node_content'}[4]
=
$result_trees{'some_at_commands_in_ref_nodes'}{'contents'}[4]{'contents'}[3]{'contents'}[0]{'args'}[0]{'contents'}[4];
+$result_trees{'some_at_commands_in_ref_nodes'}{'contents'}[4]{'contents'}[3]{'contents'}[0]{'extra'}{'node_argument'}{'node_content'}[5]
=
$result_trees{'some_at_commands_in_ref_nodes'}{'contents'}[4]{'contents'}[3]{'contents'}[0]{'args'}[0]{'contents'}[5];
+$result_trees{'some_at_commands_in_ref_nodes'}{'contents'}[4]{'contents'}[3]{'contents'}[0]{'extra'}{'node_argument'}{'node_content'}[6]
=
$result_trees{'some_at_commands_in_ref_nodes'}{'contents'}[4]{'contents'}[3]{'contents'}[0]{'args'}[0]{'contents'}[6];
+$result_trees{'some_at_commands_in_ref_nodes'}{'contents'}[4]{'contents'}[3]{'contents'}[0]{'extra'}{'node_argument'}{'node_content'}[7]
=
$result_trees{'some_at_commands_in_ref_nodes'}{'contents'}[4]{'contents'}[3]{'contents'}[0]{'args'}[0]{'contents'}[7];
+$result_trees{'some_at_commands_in_ref_nodes'}{'contents'}[4]{'contents'}[3]{'contents'}[0]{'extra'}{'node_argument'}{'node_content'}[8]
=
$result_trees{'some_at_commands_in_ref_nodes'}{'contents'}[4]{'contents'}[3]{'contents'}[0]{'args'}[0]{'contents'}[8];
+$result_trees{'some_at_commands_in_ref_nodes'}{'contents'}[4]{'contents'}[3]{'contents'}[0]{'extra'}{'node_argument'}{'node_content'}[9]
=
$result_trees{'some_at_commands_in_ref_nodes'}{'contents'}[4]{'contents'}[3]{'contents'}[0]{'args'}[0]{'contents'}[9];
+$result_trees{'some_at_commands_in_ref_nodes'}{'contents'}[4]{'contents'}[3]{'contents'}[0]{'extra'}{'node_argument'}{'node_content'}[10]
=
$result_trees{'some_at_commands_in_ref_nodes'}{'contents'}[4]{'contents'}[3]{'contents'}[0]{'args'}[0]{'contents'}[10];
+$result_trees{'some_at_commands_in_ref_nodes'}{'contents'}[4]{'contents'}[3]{'contents'}[0]{'extra'}{'node_argument'}{'node_content'}[11]
=
$result_trees{'some_at_commands_in_ref_nodes'}{'contents'}[4]{'contents'}[3]{'contents'}[0]{'args'}[0]{'contents'}[11];
+$result_trees{'some_at_commands_in_ref_nodes'}{'contents'}[4]{'contents'}[3]{'contents'}[0]{'extra'}{'node_argument'}{'node_content'}[12]
=
$result_trees{'some_at_commands_in_ref_nodes'}{'contents'}[4]{'contents'}[3]{'contents'}[0]{'args'}[0]{'contents'}[12];
+$result_trees{'some_at_commands_in_ref_nodes'}{'contents'}[4]{'contents'}[3]{'contents'}[0]{'extra'}{'node_argument'}{'node_content'}[13]
=
$result_trees{'some_at_commands_in_ref_nodes'}{'contents'}[4]{'contents'}[3]{'contents'}[0]{'args'}[0]{'contents'}[13];
+$result_trees{'some_at_commands_in_ref_nodes'}{'contents'}[4]{'contents'}[3]{'contents'}[0]{'parent'}
= $result_trees{'some_at_commands_in_ref_nodes'}{'contents'}[4]{'contents'}[3];
+$result_trees{'some_at_commands_in_ref_nodes'}{'contents'}[4]{'contents'}[3]{'contents'}[1]{'parent'}
= $result_trees{'some_at_commands_in_ref_nodes'}{'contents'}[4]{'contents'}[3];
+$result_trees{'some_at_commands_in_ref_nodes'}{'contents'}[4]{'contents'}[3]{'parent'}
= $result_trees{'some_at_commands_in_ref_nodes'}{'contents'}[4];
$result_trees{'some_at_commands_in_ref_nodes'}{'contents'}[4]{'parent'} =
$result_trees{'some_at_commands_in_ref_nodes'};
$result_texis{'some_at_commands_in_ref_nodes'} = '
@@ -1674,6 +2082,8 @@ $result_texis{'some_at_commands_in_ref_nodes'} = '
@chapter A @sc{sc} node @"i @"{@dotless{i}} @`{@=E} @l{} @,{@\'C}
@exclamdown{}
see @ref{a @strong{strong} ref with @sc{sc}@comma{} a i trema @"i@comma{} a
dotless i trema @"{@dotless{i}} @`{@=E} and exclamdown @exclamdown{},,,manual}.
+
+@xref{A @sc{sc @~n @aa{} @TeX{}} node @"i @"{@dotless{i}} @`{@=E} @l{}
@,{@\'C} @exclamdown{}}.
';
@@ -1687,6 +2097,8 @@ Top
******************************
see a strong ref with SC, a i trema i", a dotless i trema i" E=` and
exclamdown !.
+
+A SC N~ AA TeX node i" i" E=` /l C\', !.
';
$result_sectioning{'some_at_commands_in_ref_nodes'} = {
@@ -1816,6 +2228,8 @@
$result_converted{'plaintext'}->{'some_at_commands_in_ref_nodes'} = 'Top
see *note (manual)a *strong* ref with SC, a i trema ï, a dotless i trema
ï Ḕ and exclamdown ¡::.
+
+ *Note A SC Ñ Å TeX node ï ï Ḕ ł Ḉ ¡::.
';
@@ -1840,6 +2254,8 @@
$result_converted{'html_text'}->{'some_at_commands_in_ref_nodes'} = '
<h2 class="chapter" id="A-SC-node-i-i-E-l-C-_00a1">1 A <small
class="sc">SC</small> node ï ï Ḕ ł Ḉ
¡</h2>
<p>see <a data-manual="manual"
href="manual.html#a-strong-ref-with-SC_002c-a-i-trema-_00ef_002c-a-dotless-i-trema-_00ef-_1e14-and-exclamdown-_00a1">(manual)a
<strong class="strong">strong</strong> ref with <small class="sc">SC</small>,
a i trema ï, a dotless i trema ï Ḕ and exclamdown
¡</a>.
+</p>
+<p>See <a class="xref"
href="#A-SC-_00d1-_00c5-TeX-node-_00ef-_00ef-_1e14-_0142-_1e08-_00a1">A <small
class="sc">SC</small> node ï ï Ḕ ł Ḉ
¡</a>.
</p></div>
</div>
';
@@ -1858,6 +2274,8 @@
$result_converted{'xml'}->{'some_at_commands_in_ref_nodes'} = '
<chapter spaces=" "><sectiontitle>A <sc>sc</sc> node <accent type="uml"
bracketed="off">i</accent> <accent type="uml"><dotless>i</dotless></accent>
<accent type="grave"><accent type="macr" bracketed="off">E</accent></accent>
&lslash; <accent type="cedil"><accent type="acute"
bracketed="off">C</accent></accent> ¡</sectiontitle>
<para>see <ref
label="a-strong-ref-with-SC_002c-a-i-trema-_00ef_002c-a-dotless-i-trema-_00ef-_1e14-and-exclamdown-_00a1"
manual="manual"><xrefnodename>a <strong>strong</strong> ref with
<sc>sc</sc>, a i trema <accent type="uml"
bracketed="off">i</accent>, a dotless i trema <accent
type="uml"><dotless>i</dotless></accent> <accent type="grave"><accent
type="macr" bracketed="off">E</accent></accent> and exclamdown
¡</xrefnodename><xrefinfofile>manual</xrefinfofile></ref>.
+</para>
+<para><xref
label="A-SC-_00d1-_00c5-TeX-node-_00ef-_00ef-_1e14-_0142-_1e08-_00a1"><xrefnodename>A
<sc>sc <accent type="tilde" bracketed="off">n</accent> å &tex;</sc> node
<accent type="uml" bracketed="off">i</accent> <accent
type="uml"><dotless>i</dotless></accent> <accent type="grave"><accent
type="macr" bracketed="off">E</accent></accent> &lslash; <accent
type="cedil"><accent type="acute" bracketed="off">C</accent></accent>
¡</xrefnodename></xref>.
</para></chapter>
';
@@ -1866,10 +2284,23 @@
$result_converted{'docbook'}->{'some_at_commands_in_ref_nodes'} = '<chapter labe
<title>A SC node ï ï Ḕ ł Ḉ ¡</title>
<para>see .
+</para>
+<para>See <link
linkend="A-SC-_00d1-_00c5-TeX-node-_00ef-_00ef-_1e14-_0142-_1e08-_00a1">A SC
Ñ Å &tex; node ï ï Ḕ ł Ḉ
¡</link>.
</para></chapter>
';
+$result_converted{'latex'}->{'some_at_commands_in_ref_nodes'} = '
+\\label{anchor:Top}%
+\\chapter{A \\textsc{sc} node \\"{i} \\"{\\i{}} \\`{\\={E}} \\l{} \\c{\\\'{C}}
\\textexclamdown{}}
+\\label{anchor:A-SC-_00d1-_00c5-TeX-node-_00ef-_00ef-_1e14-_0142-_1e08-_00a1}%
+
+see Section ``a \\textbf{strong} ref with \\textsc{sc}, a i trema \\"{i}, a
dotless i trema \\"{\\i{}} \\`{\\={E}} and exclamdown \\textexclamdown{}\'\' in
\\texttt{manual}.
+
+See
\\hyperref[anchor:A-SC-_00d1-_00c5-TeX-node-_00ef-_00ef-_1e14-_0142-_1e08-_00a1]{\\chaptername~\\ref*{anchor:A-SC-_00d1-_00c5-TeX-node-_00ef-_00ef-_1e14-_0142-_1e08-_00a1}
[A \\textsc{sc \\~{n} \\aa{} \\TeX{}} node \\"{i} \\"{\\i{}} \\`{\\={E}} \\l{}
\\c{\\\'{C}} \\textexclamdown{}],
page~\\pageref*{anchor:A-SC-_00d1-_00c5-TeX-node-_00ef-_00ef-_1e14-_0142-_1e08-_00a1}}.
+';
+
+
$result_converted{'info'}->{'some_at_commands_in_ref_nodes'} = 'This is ,
produced from .
@@ -1891,6 +2322,8 @@ File: , Node: A SC Ñ Å TeX node ï ï Ḕ ł Ḉ ¡, Prev: Top,
Up: Top
see *note (manual)a *strong* ref with SC, a i trema ï, a dotless i trema
ï Ḕ and exclamdown ¡::.
+ *Note A SC Ñ Å TeX node ï ï Ḕ ł Ḉ ¡::.
+
Tag Table:
Node: Top27
diff --git a/tp/t/results/converters_tests/top_in_ref.pl
b/tp/t/results/converters_tests/top_in_ref.pl
index 4818ba493f..1108986241 100644
--- a/tp/t/results/converters_tests/top_in_ref.pl
+++ b/tp/t/results/converters_tests/top_in_ref.pl
@@ -4587,4 +4587,44 @@ $result_converted{'docbook'}->{'top_in_ref'} = '<anchor
id="refs-node"/>
<literal>@inforef{Top,,file name}</literal> See Info file <filename>file
name</filename>, node ‘<literal>Top</literal>’
</para>';
+
+$result_converted{'latex'}->{'top_in_ref'} = '\\label{anchor:Top}%
+\\label{anchor:refs-node}%
+
+\\texttt{@ref\\{Top,cross ref name\\}} \\hyperref[anchor:Top]{[Top],
page~\\pageref*{anchor:Top}}
+\\texttt{@ref\\{Top,,title\\}} \\hyperref[anchor:Top]{[title],
page~\\pageref*{anchor:Top}}
+\\texttt{@ref\\{Top,,,file name\\}} Section ``Top\'\' in \\texttt{file name}
+\\texttt{@ref\\{Top,,,,manual\\}} Section ``Top\'\' in \\textsl{manual}
+\\texttt{@ref\\{Top,cross ref name,title,\\}} \\hyperref[anchor:Top]{[title],
page~\\pageref*{anchor:Top}}
+\\texttt{@ref\\{Top,cross ref name,,file name\\}} Section ``Top\'\' in
\\texttt{file name}
+\\texttt{@ref\\{Top,cross ref name,,,manual\\}} Section ``Top\'\' in
\\textsl{manual}
+\\texttt{@ref\\{Top,cross ref name,title,file name\\}} Section ``title\'\' in
\\texttt{file name}
+\\texttt{@ref\\{Top,cross ref name,title,,manual\\}} Section ``title\'\' in
\\textsl{manual}
+\\texttt{@ref\\{Top,cross ref name,title, file name, manual\\}} Section
``title\'\' in \\textsl{manual}
+\\texttt{@ref\\{Top,,title,file name\\}} Section ``title\'\' in \\texttt{file
name}
+\\texttt{@ref\\{Top,,title,,manual\\}} Section ``title\'\' in \\textsl{manual}
+\\texttt{@ref\\{Top,,title, file name, manual\\}} Section ``title\'\' in
\\textsl{manual}
+\\texttt{@ref\\{Top,,,file name,manual\\}} Section ``Top\'\' in
\\textsl{manual}
+
+\\texttt{@ref\\{(pman)Top,cross ref name\\}} (pman)Top
+\\texttt{@ref\\{(pman)Top,,title\\}} title
+\\texttt{@ref\\{(pman)Top,,,file name\\}} Section ``(pman)Top\'\' in
\\texttt{file name}
+\\texttt{@ref\\{(pman)Top,,,,manual\\}} Section ``(pman)Top\'\' in
\\textsl{manual}
+\\texttt{@ref\\{(pman)Top,cross ref name,title,\\}} title
+\\texttt{@ref\\{(pman)Top,cross ref name,,file name\\}} Section
``(pman)Top\'\' in \\texttt{file name}
+\\texttt{@ref\\{(pman)Top,cross ref name,,,manual\\}} Section ``(pman)Top\'\'
in \\textsl{manual}
+\\texttt{@ref\\{(pman)Top,cross ref name,title,file name\\}} Section
``title\'\' in \\texttt{file name}
+\\texttt{@ref\\{(pman)Top,cross ref name,title,,manual\\}} Section ``title\'\'
in \\textsl{manual}
+\\texttt{@ref\\{(pman)Top,cross ref name,title, file name, manual\\}} Section
``title\'\' in \\textsl{manual}
+\\texttt{@ref\\{(pman)Top,,title,file name\\}} Section ``title\'\' in
\\texttt{file name}
+\\texttt{@ref\\{(pman)Top,,title,,manual\\}} Section ``title\'\' in
\\textsl{manual}
+\\texttt{@ref\\{(pman)Top,,title, file name, manual\\}} Section ``title\'\' in
\\textsl{manual}
+\\texttt{@ref\\{(pman)Top,,,file name,manual\\}} Section ``(pman)Top\'\' in
\\textsl{manual}
+
+\\texttt{@inforef\\{Top, cross ref name, file name\\}} Section ``Top\'\' in
\\texttt{file name}
+\\texttt{@inforef\\{Top\\}} Top
+\\texttt{@inforef\\{Top, cross ref name\\}} Top
+\\texttt{@inforef\\{Top,,file name\\}} Section ``Top\'\' in \\texttt{file name}
+';
+
1;
diff --git
a/tp/t/results/formats_encodings/char_latin1_latin1_in_refs/res_latex/char_latin1_latin1_in_refs.tex
b/tp/t/results/formats_encodings/char_latin1_latin1_in_refs/res_latex/char_latin1_latin1_in_refs.tex
index 154c312b66..f2d1a0e7e2 100644
---
a/tp/t/results/formats_encodings/char_latin1_latin1_in_refs/res_latex/char_latin1_latin1_in_refs.tex
+++
b/tp/t/results/formats_encodings/char_latin1_latin1_in_refs/res_latex/char_latin1_latin1_in_refs.tex
@@ -61,6 +61,7 @@
\begin{document}
+\label{anchor:Top}%
\chapter{� � � � � � � � � � �}
\label{anchor:_00e4-_00eb-_00ef-_00f6-_00fc-_00ff-_00c4-_00cb-_00cf-_00d6-_00dc}%
diff --git a/tp/t/results/indices/def_syn_indices/res_latex/def_syn_indices.tex
b/tp/t/results/indices/def_syn_indices/res_latex/def_syn_indices.tex
index af0db12ddb..3557b6e2b4 100644
--- a/tp/t/results/indices/def_syn_indices/res_latex/def_syn_indices.tex
+++ b/tp/t/results/indices/def_syn_indices/res_latex/def_syn_indices.tex
@@ -63,6 +63,7 @@
\begin{document}
+\label{anchor:Top}%
\chapter{Index}
\label{anchor:Chapter-index}%
diff --git
a/tp/t/results/indices/double_seeentry_seealso/res_latex/double_seeentry_seealso.tex
b/tp/t/results/indices/double_seeentry_seealso/res_latex/double_seeentry_seealso.tex
index 5ab9eea3b3..b69dcba3f4 100644
---
a/tp/t/results/indices/double_seeentry_seealso/res_latex/double_seeentry_seealso.tex
+++
b/tp/t/results/indices/double_seeentry_seealso/res_latex/double_seeentry_seealso.tex
@@ -57,6 +57,7 @@
\begin{document}
+\label{anchor:Top}%
\chapter{Chapter Index}
\label{anchor:node-index}%
diff --git a/tp/t/results/indices/seeentry/res_latex/seeentry.tex
b/tp/t/results/indices/seeentry/res_latex/seeentry.tex
index 34d1606363..f37be78f34 100644
--- a/tp/t/results/indices/seeentry/res_latex/seeentry.tex
+++ b/tp/t/results/indices/seeentry/res_latex/seeentry.tex
@@ -57,6 +57,7 @@
\begin{document}
+\label{anchor:Top}%
\chapter{Index}
\label{anchor:chapter-index}%
diff --git a/tp/t/results/indices/subentries/res_latex/subentries.tex
b/tp/t/results/indices/subentries/res_latex/subentries.tex
index 056ec7e24c..3858a17d41 100644
--- a/tp/t/results/indices/subentries/res_latex/subentries.tex
+++ b/tp/t/results/indices/subentries/res_latex/subentries.tex
@@ -61,6 +61,7 @@
\begin{document}
+\label{anchor:Top}%
\chapter{Index}
\label{anchor:chapter-index}%
diff --git
a/tp/t/results/indices/subentry_and_sortas/res_latex/subentry_and_sortas.tex
b/tp/t/results/indices/subentry_and_sortas/res_latex/subentry_and_sortas.tex
index bae568dc8d..ea2d3551f8 100644
--- a/tp/t/results/indices/subentry_and_sortas/res_latex/subentry_and_sortas.tex
+++ b/tp/t/results/indices/subentry_and_sortas/res_latex/subentry_and_sortas.tex
@@ -61,6 +61,7 @@
\begin{document}
+\label{anchor:Top}%
\chapter{Index}
\label{anchor:chapter-index}%
diff --git
a/tp/t/results/indices/syncode_index_print_both/res_latex/syncode_index_print_both.tex
b/tp/t/results/indices/syncode_index_print_both/res_latex/syncode_index_print_both.tex
index e544f0483a..dfb72b3842 100644
---
a/tp/t/results/indices/syncode_index_print_both/res_latex/syncode_index_print_both.tex
+++
b/tp/t/results/indices/syncode_index_print_both/res_latex/syncode_index_print_both.tex
@@ -61,6 +61,7 @@
\begin{document}
+\label{anchor:Top}%
\chapter{index}
\label{anchor:chapter-index}%
diff --git
a/tp/t/results/itemize/inter_item_commands_in_enumerate/res_latex/inter_item_commands_in_enumerate.tex
b/tp/t/results/itemize/inter_item_commands_in_enumerate/res_latex/inter_item_commands_in_enumerate.tex
index a69f09075d..a2025d59ca 100644
---
a/tp/t/results/itemize/inter_item_commands_in_enumerate/res_latex/inter_item_commands_in_enumerate.tex
+++
b/tp/t/results/itemize/inter_item_commands_in_enumerate/res_latex/inter_item_commands_in_enumerate.tex
@@ -64,6 +64,7 @@
\begin{document}
+\label{anchor:Top}%
\chapter{chap}
\label{anchor:chapter}%
diff --git
a/tp/t/results/itemize/inter_item_commands_in_itemize/res_latex/inter_item_commands_in_itemize.tex
b/tp/t/results/itemize/inter_item_commands_in_itemize/res_latex/inter_item_commands_in_itemize.tex
index 44bb521c2d..631b62f286 100644
---
a/tp/t/results/itemize/inter_item_commands_in_itemize/res_latex/inter_item_commands_in_itemize.tex
+++
b/tp/t/results/itemize/inter_item_commands_in_itemize/res_latex/inter_item_commands_in_itemize.tex
@@ -64,6 +64,7 @@
\begin{document}
+\label{anchor:Top}%
\chapter{chap}
\label{anchor:chapter}%
diff --git
a/tp/t/results/languages/multiple_lang_chapters_latex/res_latex/multiple_lang_chapters.tex
b/tp/t/results/languages/multiple_lang_chapters_latex/res_latex/multiple_lang_chapters.tex
index d9e1a6ab80..817abee713 100644
---
a/tp/t/results/languages/multiple_lang_chapters_latex/res_latex/multiple_lang_chapters.tex
+++
b/tp/t/results/languages/multiple_lang_chapters_latex/res_latex/multiple_lang_chapters.tex
@@ -70,6 +70,7 @@
\selectlanguage{ja}%
\begin{document}
+\label{anchor:Top}%
\selectlanguage{ja}%
\chapter{ja}
\label{anchor:chapter-ja}%
diff --git
a/tp/t/results/latex_tests/anchor_links_xref_xrefautomaticsectiontitle.pl
b/tp/t/results/latex_tests/anchor_links_xref_xrefautomaticsectiontitle.pl
index 6393d4d9c9..6fd05aa315 100644
--- a/tp/t/results/latex_tests/anchor_links_xref_xrefautomaticsectiontitle.pl
+++ b/tp/t/results/latex_tests/anchor_links_xref_xrefautomaticsectiontitle.pl
@@ -1194,6 +1194,7 @@
$result_converted{'latex'}->{'anchor_links_xref_xrefautomaticsectiontitle'} = '
In node before
\\label{anchor:anch_003a-in-node-before}%
+\\label{anchor:Top}%
\\label{anchor:after}%
in node after
diff --git
a/tp/t/results/latex_tests/anchor_links_xref_xrefautomaticsectiontitle/res_latex/anchor_links_xref_xrefautomaticsectiontitle.tex
b/tp/t/results/latex_tests/anchor_links_xref_xrefautomaticsectiontitle/res_latex/anchor_links_xref_xrefautomaticsectiontitle.tex
index a4a5c6558a..b607e34c2f 100644
---
a/tp/t/results/latex_tests/anchor_links_xref_xrefautomaticsectiontitle/res_latex/anchor_links_xref_xrefautomaticsectiontitle.tex
+++
b/tp/t/results/latex_tests/anchor_links_xref_xrefautomaticsectiontitle/res_latex/anchor_links_xref_xrefautomaticsectiontitle.tex
@@ -62,6 +62,7 @@
In node before
\label{anchor:anch_003a-in-node-before}%
+\label{anchor:Top}%
\label{anchor:after}%
in node after
diff --git a/tp/t/results/latex_tests/combined_fonts.pl
b/tp/t/results/latex_tests/combined_fonts.pl
index 418643d617..048cf0ce68 100644
--- a/tp/t/results/latex_tests/combined_fonts.pl
+++ b/tp/t/results/latex_tests/combined_fonts.pl
@@ -1515,6 +1515,7 @@ $result_floats{'combined_fonts'} = {};
$result_converted{'latex'}->{'combined_fonts'} = '
\\begin{document}
+\\label{anchor:Top}%
\\chapter{chapter}
\\label{anchor:chapter}%
diff --git
a/tp/t/results/latex_tests/combined_fonts/res_latex/combined_fonts.tex
b/tp/t/results/latex_tests/combined_fonts/res_latex/combined_fonts.tex
index c71b1d4daf..cee94ef978 100644
--- a/tp/t/results/latex_tests/combined_fonts/res_latex/combined_fonts.tex
+++ b/tp/t/results/latex_tests/combined_fonts/res_latex/combined_fonts.tex
@@ -60,6 +60,7 @@
\begin{document}
+\label{anchor:Top}%
\chapter{chapter}
\label{anchor:chapter}%
diff --git a/tp/t/results/latex_tests/custom_headings.pl
b/tp/t/results/latex_tests/custom_headings.pl
index 9ee0e3b4b0..895f72973d 100644
--- a/tp/t/results/latex_tests/custom_headings.pl
+++ b/tp/t/results/latex_tests/custom_headings.pl
@@ -1103,6 +1103,7 @@ $result_converted{'latex'}->{'custom_headings'} = '
\\pagestyle{custom}%
\\begin{document}
+\\label{anchor:Top}%
\\chapter{ch--ap}
\\label{anchor:chapter}%
diff --git
a/tp/t/results/latex_tests/custom_headings/res_latex/custom_headings.tex
b/tp/t/results/latex_tests/custom_headings/res_latex/custom_headings.tex
index d817856f14..bf16db20b1 100644
--- a/tp/t/results/latex_tests/custom_headings/res_latex/custom_headings.tex
+++ b/tp/t/results/latex_tests/custom_headings/res_latex/custom_headings.tex
@@ -70,6 +70,7 @@
\pagestyle{custom}%
\begin{document}
+\label{anchor:Top}%
\chapter{ch--ap}
\label{anchor:chapter}%
diff --git a/tp/t/results/latex_tests/definition_commands.pl
b/tp/t/results/latex_tests/definition_commands.pl
index 419d406fd6..b0fe7adb88 100644
--- a/tp/t/results/latex_tests/definition_commands.pl
+++ b/tp/t/results/latex_tests/definition_commands.pl
@@ -2255,6 +2255,7 @@ $result_indices_sort_strings{'definition_commands'} = {
$result_converted{'latex'}->{'definition_commands'} = '
\\begin{document}
+\\label{anchor:Top}%
\\chapter{chapter}
\\label{anchor:chapter}%
diff --git
a/tp/t/results/latex_tests/definition_commands/res_latex/definition_commands.tex
b/tp/t/results/latex_tests/definition_commands/res_latex/definition_commands.tex
index 426e257ba3..7a4b55a2b8 100644
---
a/tp/t/results/latex_tests/definition_commands/res_latex/definition_commands.tex
+++
b/tp/t/results/latex_tests/definition_commands/res_latex/definition_commands.tex
@@ -61,6 +61,7 @@
\begin{document}
+\label{anchor:Top}%
\chapter{chapter}
\label{anchor:chapter}%
diff --git a/tp/t/results/latex_tests/error_in_sectioning_command.pl
b/tp/t/results/latex_tests/error_in_sectioning_command.pl
index 561ef0d1c3..b553c02f62 100644
--- a/tp/t/results/latex_tests/error_in_sectioning_command.pl
+++ b/tp/t/results/latex_tests/error_in_sectioning_command.pl
@@ -565,6 +565,7 @@ $result_converted{'latex'}->{'error_in_sectioning_command'}
= '
\\begin{document}
\\tableofcontents\\newpage
+\\label{anchor:Top}%
\\chapter{\\texttt{@error\\{\\}} (\\texorpdfstring{\\fbox{error}}{error}):
Indicating an Error Message}
\\label{anchor:_0040error_007b_007d-_0028error_002d_002d_003e_0029_003a-Indicating-an-Error-Message}%
diff --git
a/tp/t/results/latex_tests/error_in_sectioning_command/res_latex/error_in_sectioning_command.tex
b/tp/t/results/latex_tests/error_in_sectioning_command/res_latex/error_in_sectioning_command.tex
index 344a53add1..9bfe4a724c 100644
---
a/tp/t/results/latex_tests/error_in_sectioning_command/res_latex/error_in_sectioning_command.tex
+++
b/tp/t/results/latex_tests/error_in_sectioning_command/res_latex/error_in_sectioning_command.tex
@@ -59,6 +59,7 @@
\begin{document}
\tableofcontents\newpage
+\label{anchor:Top}%
\chapter{\texttt{@error\{\}} (\texorpdfstring{\fbox{error}}{error}):
Indicating an Error Message}
\label{anchor:_0040error_007b_007d-_0028error_002d_002d_003e_0029_003a-Indicating-an-Error-Message}%
diff --git a/tp/t/results/latex_tests/float_and_refs.pl
b/tp/t/results/latex_tests/float_and_refs.pl
index e30b09d88c..f923f5f812 100644
--- a/tp/t/results/latex_tests/float_and_refs.pl
+++ b/tp/t/results/latex_tests/float_and_refs.pl
@@ -2470,6 +2470,7 @@
$result_floats{'float_and_refs'}{'Thing'}[0]{'extra'}{'shortcaption'}{'extra'}{'
$result_converted{'latex'}->{'float_and_refs'} = '
\\begin{document}
+\\label{anchor:Top}%
\\chapter{chapter}
\\label{anchor:chapter}%
diff --git
a/tp/t/results/latex_tests/float_and_refs/res_latex/float_and_refs.tex
b/tp/t/results/latex_tests/float_and_refs/res_latex/float_and_refs.tex
index 2cce9eac88..890db0d101 100644
--- a/tp/t/results/latex_tests/float_and_refs/res_latex/float_and_refs.tex
+++ b/tp/t/results/latex_tests/float_and_refs/res_latex/float_and_refs.tex
@@ -63,6 +63,7 @@
\begin{document}
+\label{anchor:Top}%
\chapter{chapter}
\label{anchor:chapter}%
diff --git a/tp/t/results/latex_tests/fonttextsize.pl
b/tp/t/results/latex_tests/fonttextsize.pl
index 7329c68d37..1454d63382 100644
--- a/tp/t/results/latex_tests/fonttextsize.pl
+++ b/tp/t/results/latex_tests/fonttextsize.pl
@@ -911,6 +911,7 @@ $result_converted{'latex'}->{'fonttextsize'} = '
\\changefontsize{10}
\\begin{document}
+\\label{anchor:Top}%
\\chapter{Chapter}
\\label{anchor:chapter}%
diff --git a/tp/t/results/latex_tests/fonttextsize/res_latex/fonttextsize.tex
b/tp/t/results/latex_tests/fonttextsize/res_latex/fonttextsize.tex
index 9cccf2ffd4..d17f8fea8e 100644
--- a/tp/t/results/latex_tests/fonttextsize/res_latex/fonttextsize.tex
+++ b/tp/t/results/latex_tests/fonttextsize/res_latex/fonttextsize.tex
@@ -60,6 +60,7 @@
\changefontsize{10}
\begin{document}
+\label{anchor:Top}%
\chapter{Chapter}
\label{anchor:chapter}%
diff --git a/tp/t/results/latex_tests/indices.pl
b/tp/t/results/latex_tests/indices.pl
index 4630dafde1..64668f76d0 100644
--- a/tp/t/results/latex_tests/indices.pl
+++ b/tp/t/results/latex_tests/indices.pl
@@ -1360,6 +1360,7 @@ $result_indices_sort_strings{'indices'} = {
$result_converted{'latex'}->{'indices'} = '
\\begin{document}
+\\label{anchor:Top}%
\\chapter{Index}
\\label{anchor:chapter}%
diff --git a/tp/t/results/latex_tests/indices/res_latex/indices.tex
b/tp/t/results/latex_tests/indices/res_latex/indices.tex
index b2c9f3cfe9..fc3c330243 100644
--- a/tp/t/results/latex_tests/indices/res_latex/indices.tex
+++ b/tp/t/results/latex_tests/indices/res_latex/indices.tex
@@ -62,6 +62,7 @@
\begin{document}
+\label{anchor:Top}%
\chapter{Index}
\label{anchor:chapter}%
diff --git a/tp/t/results/latex_tests/informative_commands_in_top_node.pl
b/tp/t/results/latex_tests/informative_commands_in_top_node.pl
index c653a8f1c0..f532e60025 100644
--- a/tp/t/results/latex_tests/informative_commands_in_top_node.pl
+++ b/tp/t/results/latex_tests/informative_commands_in_top_node.pl
@@ -560,6 +560,7 @@ $result_floats{'informative_commands_in_top_node'} = {};
$result_converted{'latex'}->{'informative_commands_in_top_node'} = '
\\begin{document}
+\\label{anchor:Top}%
\\setlength{\\parindent}{5em}
\\newpagestyle{custom}{%
\\setfoot[\\chaptername{} \\thechapter{} \\chaptertitle{}
\\GNUTexinfosettitle{}][][\\texttt{\\chaptertitle{}}]%
diff --git
a/tp/t/results/latex_tests/informative_commands_in_top_node/res_latex/informative_commands_in_top_node.tex
b/tp/t/results/latex_tests/informative_commands_in_top_node/res_latex/informative_commands_in_top_node.tex
index 6cddc0401c..9e2532f3bc 100644
---
a/tp/t/results/latex_tests/informative_commands_in_top_node/res_latex/informative_commands_in_top_node.tex
+++
b/tp/t/results/latex_tests/informative_commands_in_top_node/res_latex/informative_commands_in_top_node.tex
@@ -57,6 +57,7 @@
\begin{document}
+\label{anchor:Top}%
\setlength{\parindent}{5em}
\newpagestyle{custom}{%
\setfoot[\chaptername{} \thechapter{} \chaptertitle{}
\GNUTexinfosettitle{}][][\texttt{\chaptertitle{}}]%
diff --git a/tp/t/results/latex_tests/pagesizes.pl
b/tp/t/results/latex_tests/pagesizes.pl
index f5be6de63b..2bb59167e0 100644
--- a/tp/t/results/latex_tests/pagesizes.pl
+++ b/tp/t/results/latex_tests/pagesizes.pl
@@ -601,6 +601,7 @@ $result_converted{'latex'}->{'pagesizes'} = '
\\newgeometry{textheight=200mm,textwidth=150mm}
\\begin{document}
+\\label{anchor:Top}%
\\chapter{Chapter}
\\label{anchor:chapter}%
diff --git a/tp/t/results/latex_tests/pagesizes/res_latex/pagesizes.tex
b/tp/t/results/latex_tests/pagesizes/res_latex/pagesizes.tex
index 69765689d6..cae29039d2 100644
--- a/tp/t/results/latex_tests/pagesizes/res_latex/pagesizes.tex
+++ b/tp/t/results/latex_tests/pagesizes/res_latex/pagesizes.tex
@@ -60,6 +60,7 @@
\newgeometry{textheight=200mm,textwidth=150mm}
\begin{document}
+\label{anchor:Top}%
\chapter{Chapter}
\label{anchor:chapter}%
diff --git a/tp/t/results/latex_tests/pagetype.pl
b/tp/t/results/latex_tests/pagetype.pl
index b71c79d113..7acbc5aa31 100644
--- a/tp/t/results/latex_tests/pagetype.pl
+++ b/tp/t/results/latex_tests/pagetype.pl
@@ -633,6 +633,7 @@ $result_converted{'latex'}->{'pagetype'} = '
\\geometry{papername=a4paper}%
\\begin{document}
+\\label{anchor:Top}%
\\chapter{Chapter}
\\label{anchor:chapter}%
diff --git a/tp/t/results/latex_tests/pagetype/res_latex/pagetype.tex
b/tp/t/results/latex_tests/pagetype/res_latex/pagetype.tex
index 18cfc49c88..2edaa470f2 100644
--- a/tp/t/results/latex_tests/pagetype/res_latex/pagetype.tex
+++ b/tp/t/results/latex_tests/pagetype/res_latex/pagetype.tex
@@ -62,6 +62,7 @@
\geometry{papername=a4paper}%
\begin{document}
+\label{anchor:Top}%
\chapter{Chapter}
\label{anchor:chapter}%
diff --git a/tp/t/results/latex_tests/shorttitlepage.pl
b/tp/t/results/latex_tests/shorttitlepage.pl
index dcf9060ad1..946b31da70 100644
--- a/tp/t/results/latex_tests/shorttitlepage.pl
+++ b/tp/t/results/latex_tests/shorttitlepage.pl
@@ -431,6 +431,7 @@ $result_converted{'latex'}->{'shorttitlepage'} = '
\\end{titlepage}
\\GNUTexinfosetsingleheader{}%
\\GNUTexinfomainmatter
+\\label{anchor:Top}%
\\chapter{Chapter}
\\label{anchor:chapter}%
diff --git
a/tp/t/results/latex_tests/shorttitlepage/res_latex/shorttitlepage.tex
b/tp/t/results/latex_tests/shorttitlepage/res_latex/shorttitlepage.tex
index aa8744fb04..e8a55afb20 100644
--- a/tp/t/results/latex_tests/shorttitlepage/res_latex/shorttitlepage.tex
+++ b/tp/t/results/latex_tests/shorttitlepage/res_latex/shorttitlepage.tex
@@ -69,6 +69,7 @@
\end{titlepage}
\GNUTexinfosetsingleheader{}%
\GNUTexinfomainmatter
+\label{anchor:Top}%
\chapter{Chapter}
\label{anchor:chapter}%
diff --git a/tp/t/results/latex_tests/titlepage_classical.pl
b/tp/t/results/latex_tests/titlepage_classical.pl
index 6b321c2efd..30ba97daaa 100644
--- a/tp/t/results/latex_tests/titlepage_classical.pl
+++ b/tp/t/results/latex_tests/titlepage_classical.pl
@@ -830,6 +830,7 @@ in Copying
\\end{titlepage}
\\GNUTexinfosetsingleheader{}%
\\GNUTexinfomainmatter
+\\label{anchor:Top}%
\\chapter{Chapter}
\\label{anchor:chapter}%
diff --git
a/tp/t/results/latex_tests/titlepage_classical/res_latex/titlepage_classical.tex
b/tp/t/results/latex_tests/titlepage_classical/res_latex/titlepage_classical.tex
index cd75ee59bf..7fc6be9b17 100644
---
a/tp/t/results/latex_tests/titlepage_classical/res_latex/titlepage_classical.tex
+++
b/tp/t/results/latex_tests/titlepage_classical/res_latex/titlepage_classical.tex
@@ -90,6 +90,7 @@ in Copying
\end{titlepage}
\GNUTexinfosetsingleheader{}%
\GNUTexinfomainmatter
+\label{anchor:Top}%
\chapter{Chapter}
\label{anchor:chapter}%
diff --git a/tp/t/results/latex_tests/titlepage_in_top_node.pl
b/tp/t/results/latex_tests/titlepage_in_top_node.pl
index 1d7f55bcaa..f44a30785f 100644
--- a/tp/t/results/latex_tests/titlepage_in_top_node.pl
+++ b/tp/t/results/latex_tests/titlepage_in_top_node.pl
@@ -514,6 +514,7 @@ $result_converted{'latex'}->{'titlepage_in_top_node'} = '
\\end{titlepage}
\\GNUTexinfosetsingleheader{}%
\\GNUTexinfomainmatter
+\\label{anchor:Top}%
\\chapter{chap}
\\label{anchor:chap}%
diff --git
a/tp/t/results/latex_tests/titlepage_in_top_node/res_latex/titlepage_in_top_node.tex
b/tp/t/results/latex_tests/titlepage_in_top_node/res_latex/titlepage_in_top_node.tex
index 6fed702e31..8da2717902 100644
---
a/tp/t/results/latex_tests/titlepage_in_top_node/res_latex/titlepage_in_top_node.tex
+++
b/tp/t/results/latex_tests/titlepage_in_top_node/res_latex/titlepage_in_top_node.tex
@@ -76,6 +76,7 @@
\end{titlepage}
\GNUTexinfosetsingleheader{}%
\GNUTexinfomainmatter
+\label{anchor:Top}%
\chapter{chap}
\label{anchor:chap}%
diff --git a/tp/t/results/latex_tests/titlepage_long_title.pl
b/tp/t/results/latex_tests/titlepage_long_title.pl
index 349a1b475b..3c8a4eacac 100644
--- a/tp/t/results/latex_tests/titlepage_long_title.pl
+++ b/tp/t/results/latex_tests/titlepage_long_title.pl
@@ -500,6 +500,7 @@ $result_converted{'latex'}->{'titlepage_long_title'} = '
\\end{titlepage}
\\GNUTexinfosetsingleheader{}%
\\GNUTexinfomainmatter
+\\label{anchor:Top}%
\\chapter{Chapter}
\\label{anchor:chapter}%
diff --git
a/tp/t/results/latex_tests/titlepage_long_title/res_latex/titlepage_long_title.tex
b/tp/t/results/latex_tests/titlepage_long_title/res_latex/titlepage_long_title.tex
index b4a0450c0d..065d00200e 100644
---
a/tp/t/results/latex_tests/titlepage_long_title/res_latex/titlepage_long_title.tex
+++
b/tp/t/results/latex_tests/titlepage_long_title/res_latex/titlepage_long_title.tex
@@ -77,6 +77,7 @@
\end{titlepage}
\GNUTexinfosetsingleheader{}%
\GNUTexinfomainmatter
+\label{anchor:Top}%
\chapter{Chapter}
\label{anchor:chapter}%
diff --git a/tp/t/results/latex_tests/titlepage_no_author.pl
b/tp/t/results/latex_tests/titlepage_no_author.pl
index f044cac0e5..74c665a0ae 100644
--- a/tp/t/results/latex_tests/titlepage_no_author.pl
+++ b/tp/t/results/latex_tests/titlepage_no_author.pl
@@ -481,6 +481,7 @@ $result_converted{'latex'}->{'titlepage_no_author'} = '
\\end{titlepage}
\\GNUTexinfosetsingleheader{}%
\\GNUTexinfomainmatter
+\\label{anchor:Top}%
\\chapter{Chapter}
\\label{anchor:chapter}%
diff --git
a/tp/t/results/latex_tests/titlepage_no_author/res_latex/titlepage_no_author.tex
b/tp/t/results/latex_tests/titlepage_no_author/res_latex/titlepage_no_author.tex
index 81f928a4eb..50a653fa32 100644
---
a/tp/t/results/latex_tests/titlepage_no_author/res_latex/titlepage_no_author.tex
+++
b/tp/t/results/latex_tests/titlepage_no_author/res_latex/titlepage_no_author.tex
@@ -76,6 +76,7 @@
\end{titlepage}
\GNUTexinfosetsingleheader{}%
\GNUTexinfomainmatter
+\label{anchor:Top}%
\chapter{Chapter}
\label{anchor:chapter}%
diff --git a/tp/t/results/latex_tests/titlepage_no_title.pl
b/tp/t/results/latex_tests/titlepage_no_title.pl
index a630068f96..fbde1ba029 100644
--- a/tp/t/results/latex_tests/titlepage_no_title.pl
+++ b/tp/t/results/latex_tests/titlepage_no_title.pl
@@ -523,6 +523,7 @@ $result_converted{'latex'}->{'titlepage_no_title'} = '
\\end{titlepage}
\\GNUTexinfosetsingleheader{}%
\\GNUTexinfomainmatter
+\\label{anchor:Top}%
\\chapter{Chapter}
\\label{anchor:chapter}%
diff --git
a/tp/t/results/latex_tests/titlepage_no_title/res_latex/titlepage_no_title.tex
b/tp/t/results/latex_tests/titlepage_no_title/res_latex/titlepage_no_title.tex
index 09c533715b..550eaa7354 100644
---
a/tp/t/results/latex_tests/titlepage_no_title/res_latex/titlepage_no_title.tex
+++
b/tp/t/results/latex_tests/titlepage_no_title/res_latex/titlepage_no_title.tex
@@ -76,6 +76,7 @@
\end{titlepage}
\GNUTexinfosetsingleheader{}%
\GNUTexinfomainmatter
+\label{anchor:Top}%
\chapter{Chapter}
\label{anchor:chapter}%
diff --git a/tp/t/results/latex_tests/titlepage_with_commands_classical.pl
b/tp/t/results/latex_tests/titlepage_with_commands_classical.pl
index e0bbbf1769..f463afa549 100644
--- a/tp/t/results/latex_tests/titlepage_with_commands_classical.pl
+++ b/tp/t/results/latex_tests/titlepage_with_commands_classical.pl
@@ -1059,6 +1059,7 @@ in Copying
\\end{titlepage}
\\GNUTexinfosetsingleheader{}%
\\GNUTexinfomainmatter
+\\label{anchor:Top}%
\\chapter{Chapter}
\\label{anchor:chapter}%
diff --git
a/tp/t/results/latex_tests/titlepage_with_commands_classical/res_latex/titlepage_with_commands_classical.tex
b/tp/t/results/latex_tests/titlepage_with_commands_classical/res_latex/titlepage_with_commands_classical.tex
index db2e422a7d..3ffd0363a1 100644
---
a/tp/t/results/latex_tests/titlepage_with_commands_classical/res_latex/titlepage_with_commands_classical.tex
+++
b/tp/t/results/latex_tests/titlepage_with_commands_classical/res_latex/titlepage_with_commands_classical.tex
@@ -96,6 +96,7 @@ in Copying
\end{titlepage}
\GNUTexinfosetsingleheader{}%
\GNUTexinfomainmatter
+\label{anchor:Top}%
\chapter{Chapter}
\label{anchor:chapter}%
diff --git a/tp/t/results/sectioning/chapter_between_nodes.pl
b/tp/t/results/sectioning/chapter_between_nodes.pl
index 59bb45b3a7..c5c1cb5ec9 100644
--- a/tp/t/results/sectioning/chapter_between_nodes.pl
+++ b/tp/t/results/sectioning/chapter_between_nodes.pl
@@ -848,6 +848,7 @@ $result_converted{'docbook'}->{'chapter_between_nodes'} =
'<sect1 label="1.1" id
$result_converted{'latex'}->{'chapter_between_nodes'} = '
\\begin{document}
+\\label{anchor:Top}%
\\section{section}
\\label{anchor:section-node}%
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
index 105f7870eb..439df4b971 100644
---
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
@@ -57,6 +57,7 @@
\begin{document}
+\label{anchor:Top}%
\section{section}
\label{anchor:section-node}%
diff --git a/tp/t/results/sectioning/lone_Top_node.pl
b/tp/t/results/sectioning/lone_Top_node.pl
index 032b77a44a..5958ade816 100644
--- a/tp/t/results/sectioning/lone_Top_node.pl
+++ b/tp/t/results/sectioning/lone_Top_node.pl
@@ -573,6 +573,7 @@ $result_directions_text{'lone_Top_node'} = 'element:
@chapter chap
$result_converted{'latex'}->{'lone_Top_node'} = '
\\begin{document}
+\\label{anchor:Top}%
\\chapter{chap}
\\label{anchor:First}%
';
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
index cc7b5b4780..76cdf71709 100644
--- 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
@@ -57,6 +57,7 @@
\begin{document}
+\label{anchor:Top}%
\chapter{chap}
\label{anchor:First}%
\end{document}
diff --git a/tp/t/results/sectioning/loop_nodes.pl
b/tp/t/results/sectioning/loop_nodes.pl
index 65a3d2c785..6012ceb857 100644
--- a/tp/t/results/sectioning/loop_nodes.pl
+++ b/tp/t/results/sectioning/loop_nodes.pl
@@ -969,6 +969,7 @@ $result_floats{'loop_nodes'} = {};
$result_converted{'latex'}->{'loop_nodes'} = '
\\begin{document}
+\\label{anchor:Top}%
\\label{anchor:node-up}%
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
index a0f00d8f29..4294f9276f 100644
--- a/tp/t/results/sectioning/loop_nodes/res_latex/loop_nodes.tex
+++ b/tp/t/results/sectioning/loop_nodes/res_latex/loop_nodes.tex
@@ -57,6 +57,7 @@
\begin{document}
+\label{anchor:Top}%
\label{anchor:node-up}%
diff --git a/tp/t/results/sectioning/node_sectop_before_chapter_no_node.pl
b/tp/t/results/sectioning/node_sectop_before_chapter_no_node.pl
index c1753b4735..add7260b97 100644
--- a/tp/t/results/sectioning/node_sectop_before_chapter_no_node.pl
+++ b/tp/t/results/sectioning/node_sectop_before_chapter_no_node.pl
@@ -317,6 +317,7 @@
$result_converted{'docbook'}->{'node_sectop_before_chapter_no_node'} = '';
$result_converted{'latex'}->{'node_sectop_before_chapter_no_node'} = '
\\begin{document}
+\\label{anchor:Top}%
';
1;
diff --git
a/tp/t/results/sectioning/node_sectop_before_chapter_no_node/res_latex/node_sectop_before_chapter_no_node.tex
b/tp/t/results/sectioning/node_sectop_before_chapter_no_node/res_latex/node_sectop_before_chapter_no_node.tex
index 28315e8368..39f1f3ac9b 100644
---
a/tp/t/results/sectioning/node_sectop_before_chapter_no_node/res_latex/node_sectop_before_chapter_no_node.tex
+++
b/tp/t/results/sectioning/node_sectop_before_chapter_no_node/res_latex/node_sectop_before_chapter_no_node.tex
@@ -57,6 +57,7 @@
\begin{document}
+\label{anchor:Top}%
(`Top' node ignored)
\end{document}
diff --git a/tp/t/results/sectioning/node_sectop_before_lone_node_Top.pl
b/tp/t/results/sectioning/node_sectop_before_lone_node_Top.pl
index 1fd3d45372..99af251d24 100644
--- a/tp/t/results/sectioning/node_sectop_before_lone_node_Top.pl
+++ b/tp/t/results/sectioning/node_sectop_before_lone_node_Top.pl
@@ -576,6 +576,7 @@
$result_converted{'latex'}->{'node_sectop_before_lone_node_Top'} = '
in node before
+\\label{anchor:Top}%
\\chapter{chap}
\\label{anchor:chap}%
diff --git
a/tp/t/results/sectioning/node_sectop_before_lone_node_Top/res_latex/node_sectop_before_lone_node_Top.tex
b/tp/t/results/sectioning/node_sectop_before_lone_node_Top/res_latex/node_sectop_before_lone_node_Top.tex
index 82ed04065b..23cdddf82f 100644
---
a/tp/t/results/sectioning/node_sectop_before_lone_node_Top/res_latex/node_sectop_before_lone_node_Top.tex
+++
b/tp/t/results/sectioning/node_sectop_before_lone_node_Top/res_latex/node_sectop_before_lone_node_Top.tex
@@ -62,6 +62,7 @@
in node before
+\label{anchor:Top}%
\chapter{chap}
\label{anchor:chap}%
diff --git a/tp/t/results/sectioning/nodes_before_after_top.pl
b/tp/t/results/sectioning/nodes_before_after_top.pl
index 153a90473e..83b744b3a5 100644
--- a/tp/t/results/sectioning/nodes_before_after_top.pl
+++ b/tp/t/results/sectioning/nodes_before_after_top.pl
@@ -579,6 +579,7 @@ $result_converted{'latex'}->{'nodes_before_after_top'} = '
In node before
+\\label{anchor:Top}%
\\label{anchor:after}%
in node after
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
index 6e3117facc..94e4471adb 100644
---
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
@@ -61,6 +61,7 @@
In node before
+\label{anchor:Top}%
\label{anchor:after}%
in node after
diff --git a/tp/t/results/sectioning/nodes_before_after_top_xref.pl
b/tp/t/results/sectioning/nodes_before_after_top_xref.pl
index 9ef220900f..6bea05cdad 100644
--- a/tp/t/results/sectioning/nodes_before_after_top_xref.pl
+++ b/tp/t/results/sectioning/nodes_before_after_top_xref.pl
@@ -847,6 +847,7 @@ $result_converted{'latex'}->{'nodes_before_after_top_xref'}
= '
In node before
+\\label{anchor:Top}%
\\label{anchor:after}%
in node after
diff --git
a/tp/t/results/sectioning/nodes_before_after_top_xref/res_latex/nodes_before_after_top_xref.tex
b/tp/t/results/sectioning/nodes_before_after_top_xref/res_latex/nodes_before_after_top_xref.tex
index 431fc0f719..9bbd8b2d3c 100644
---
a/tp/t/results/sectioning/nodes_before_after_top_xref/res_latex/nodes_before_after_top_xref.tex
+++
b/tp/t/results/sectioning/nodes_before_after_top_xref/res_latex/nodes_before_after_top_xref.tex
@@ -61,6 +61,7 @@
In node before
+\label{anchor:Top}%
\label{anchor:after}%
in node after
diff --git a/tp/t/results/sectioning/nodes_before_top.pl
b/tp/t/results/sectioning/nodes_before_top.pl
index a2f6e72688..a059d88fff 100644
--- a/tp/t/results/sectioning/nodes_before_top.pl
+++ b/tp/t/results/sectioning/nodes_before_top.pl
@@ -916,6 +916,7 @@ $result_converted{'latex'}->{'nodes_before_top'} = '
\\label{anchor:node-in-menu-before-top}%
+\\label{anchor:Top}%
\\chapter{a chapter}
\\label{anchor:second-node}%
';
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
index cf0127a9a4..c7c3e5395f 100644
--- 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
@@ -62,6 +62,7 @@
\label{anchor:node-in-menu-before-top}%
+\label{anchor: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 47b27f1ef0..5bccbc3406 100644
--- a/tp/t/results/sectioning/section_before_after_top_node.pl
+++ b/tp/t/results/sectioning/section_before_after_top_node.pl
@@ -439,6 +439,7 @@
$result_converted{'latex'}->{'section_before_after_top_node'} = '
\\begin{document}
\\chapter*{before}
+\\label{anchor:Top}%
';
1;
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
index f19266661f..9162ece615 100644
---
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
@@ -59,6 +59,7 @@
\begin{document}
\chapter*{before}
+\label{anchor:Top}%
(`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 0b9ccdc080..70373f99b2 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
@@ -526,6 +526,7 @@
$result_converted{'latex'}->{'section_before_after_top_node_last_node'} = '
\\begin{document}
\\chapter*{before}
+\\label{anchor:Top}%
\\label{anchor:node-after}%
';
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
index c20121471d..6a0f615d77 100644
---
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
@@ -59,5 +59,6 @@
\begin{document}
\chapter*{before}
+\label{anchor:Top}%
\label{anchor:node-after}%
\end{document}
diff --git a/tp/t/results/sectioning/section_chapter_before_top_nodes.pl
b/tp/t/results/sectioning/section_chapter_before_top_nodes.pl
index a40ada9ec0..a656ff2725 100644
--- a/tp/t/results/sectioning/section_chapter_before_top_nodes.pl
+++ b/tp/t/results/sectioning/section_chapter_before_top_nodes.pl
@@ -965,6 +965,7 @@
$result_converted{'latex'}->{'section_chapter_before_top_nodes'} = '
\\label{anchor:chapter-node}%
+\\label{anchor:Top}%
';
1;
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
index 688edfaaf2..97cf050e70 100644
---
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
@@ -64,6 +64,7 @@
\label{anchor:chapter-node}%
+\label{anchor:Top}%
(`Top' node ignored)
\end{document}
diff --git a/tp/t/results/sectioning/two_nodes_at_the_end.pl
b/tp/t/results/sectioning/two_nodes_at_the_end.pl
index 8f0782d7fb..ac7dd83de9 100644
--- a/tp/t/results/sectioning/two_nodes_at_the_end.pl
+++ b/tp/t/results/sectioning/two_nodes_at_the_end.pl
@@ -1243,6 +1243,7 @@ Previous: <a href="#node-after-chapter-1" accesskey="p"
rel="prev">node after ch
$result_converted{'latex'}->{'two_nodes_at_the_end'} = '\\begin{document}
+\\label{anchor:Top}%
\\chapter{chapter c1}
\\label{anchor:chapter-1}%
diff --git
a/tp/t/results/xtable/inter_item_commands_in_table/res_latex/inter_item_commands_in_table.tex
b/tp/t/results/xtable/inter_item_commands_in_table/res_latex/inter_item_commands_in_table.tex
index 4ca24b166e..33242449df 100644
---
a/tp/t/results/xtable/inter_item_commands_in_table/res_latex/inter_item_commands_in_table.tex
+++
b/tp/t/results/xtable/inter_item_commands_in_table/res_latex/inter_item_commands_in_table.tex
@@ -69,6 +69,7 @@
\begin{document}
+\label{anchor:Top}%
\chapter{chap}
\label{anchor:chapter}%
diff --git
a/tp/tests/indices/res_parser/indices_in_begin_tables_lists_latex/indices_in_begin_tables_lists.tex
b/tp/tests/indices/res_parser/indices_in_begin_tables_lists_latex/indices_in_begin_tables_lists.tex
index b1e6b8fd00..e7ec6bc24b 100644
---
a/tp/tests/indices/res_parser/indices_in_begin_tables_lists_latex/indices_in_begin_tables_lists.tex
+++
b/tp/tests/indices/res_parser/indices_in_begin_tables_lists_latex/indices_in_begin_tables_lists.tex
@@ -71,6 +71,7 @@
\begin{document}
+\label{anchor:Top}%
\chapter{chap}
\label{anchor:chapter}%
diff --git
a/tp/tests/indices/res_parser_info/indices_in_begin_tables_lists_latex/indices_in_begin_tables_lists.tex
b/tp/tests/indices/res_parser_info/indices_in_begin_tables_lists_latex/indices_in_begin_tables_lists.tex
index b1e6b8fd00..e7ec6bc24b 100644
---
a/tp/tests/indices/res_parser_info/indices_in_begin_tables_lists_latex/indices_in_begin_tables_lists.tex
+++
b/tp/tests/indices/res_parser_info/indices_in_begin_tables_lists_latex/indices_in_begin_tables_lists.tex
@@ -71,6 +71,7 @@
\begin{document}
+\label{anchor:Top}%
\chapter{chap}
\label{anchor:chapter}%
diff --git a/tp/tests/layout/res_parser/formatting_latex/formatting.tex
b/tp/tests/layout/res_parser/formatting_latex/formatting.tex
index 9f448a739a..3a3a56578a 100644
--- a/tp/tests/layout/res_parser/formatting_latex/formatting.tex
+++ b/tp/tests/layout/res_parser/formatting_latex/formatting.tex
@@ -2771,6 +2771,7 @@ g--roupe
+\label{anchor:Top}%
\chapter{chapter}
\label{anchor:chapter}%
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- branch master updated: Output Top node label in LaTeX,
Patrice Dumas <=