texinfo-commits
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

branch master updated: LaTeX.pm handle @titlepage formatting and corresp


From: Patrice Dumas
Subject: branch master updated: LaTeX.pm handle @titlepage formatting and corresponding @-commandss
Date: Thu, 19 Aug 2021 06:01:17 -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 5a1bedb  LaTeX.pm handle @titlepage formatting and corresponding 
@-commandss
5a1bedb is described below

commit 5a1bedb013febc438efbdc8ac4422915707a0312
Author: Patrice Dumas <pertusus@free.fr>
AuthorDate: Thu Aug 19 12:00:39 2021 +0200

    LaTeX.pm handle @titlepage formatting and corresponding @-commandss
---
 tp/Texinfo/Convert/LaTeX.pm                        |  117 ++-
 tp/t/latex_tests.t                                 |  113 +++
 .../no_titlepage_and_setchapternewpage_odd.tex     |    5 +
 .../no_titlepage_and_setchapternewpage_on.tex      |    5 +
 .../setchapternewpage_on_odd_titlepage.pl          |    7 +
 .../setchapternewpage_on_odd_titlepage.tex         |   12 +
 .../res_latex/settitle_and_headings.tex            |    5 +
 .../three_setchapternewpage_on_odd_off.tex         |    5 +
 tp/t/results/latex_tests/titlepage_and_headings.pl |    7 +
 .../res_latex/titlepage_and_headings.tex           |   12 +
 .../titlepage_and_setchapternewpage_odd.pl         |    7 +
 .../titlepage_and_setchapternewpage_odd.tex        |   12 +
 .../titlepage_and_setchapternewpage_on.pl          |    7 +
 .../titlepage_and_setchapternewpage_on.tex         |   12 +
 tp/t/results/latex_tests/titlepage_classical.pl    |  828 +++++++++++++++
 .../res_latex/titlepage_classical.tex}             |   33 +-
 .../res_latex/titlepage_in_top_node.tex            |    5 +
 tp/t/results/latex_tests/titlepage_long_title.pl   |  499 +++++++++
 .../res_latex/titlepage_long_title.tex}            |   23 +-
 tp/t/results/latex_tests/titlepage_no_author.pl    |  480 +++++++++
 .../res_latex/titlepage_no_author.tex}             |   22 +-
 tp/t/results/latex_tests/titlepage_no_title.pl     |  522 ++++++++++
 .../res_latex/titlepage_no_title.tex}              |   22 +-
 .../titlepage_with_commands_classical.pl           | 1057 ++++++++++++++++++++
 .../titlepage_with_commands_classical.tex}         |   39 +-
 .../res_latex/two_setchapternewpage_odd_on.tex     |    5 +
 .../res_latex/two_setchapternewpage_on_odd.tex     |    5 +
 .../res_latex/chapter_between_nodes.tex            |    5 +
 .../lone_Top_node/res_latex/lone_Top_node.tex      |    5 +
 .../sectioning/loop_nodes/res_latex/loop_nodes.tex |    5 +
 .../node_sectop_before_chapter_no_node.tex         |    5 +
 .../res_latex/node_sectop_before_lone_node_Top.tex |    5 +
 .../res_latex/nodes_before_after_top.tex           |    5 +
 .../res_latex/nodes_before_top.tex                 |    5 +
 .../res_latex/section_before_after_top_node.tex    |    5 +
 .../section_before_after_top_node_last_node.tex    |    5 +
 .../res_latex/section_chapter_before_top_nodes.tex |    5 +
 .../res_parser/formatting_latex/formatting.tex     |   33 +-
 38 files changed, 3924 insertions(+), 25 deletions(-)

diff --git a/tp/Texinfo/Convert/LaTeX.pm b/tp/Texinfo/Convert/LaTeX.pm
index 896bf53..4a6cc24 100644
--- a/tp/Texinfo/Convert/LaTeX.pm
+++ b/tp/Texinfo/Convert/LaTeX.pm
@@ -135,7 +135,8 @@ my %letter_no_arg_commands = 
%Texinfo::Common::letter_no_arg_commands;
 foreach my $kept_command (keys(%informative_commands),
   keys(%default_index_commands),
   'verbatiminclude', 'insertcopying', 'xrefautomaticsectiontitle',
-  'listoffloats', 'printindex', 'indent', 'noindent', 'need', 'page') {
+  'listoffloats', 'printindex', 'indent', 'noindent', 'need', 'page',
+  'title', 'subtitle', 'author', 'vskip') {
   $formatting_misc_commands{$kept_command} = 1;
 }
 
@@ -513,6 +514,7 @@ sub converter_initialize($)
     'math_style' => [],
     'code' => 0,
     'dot_not_end_sentence' => 0,
+    'in_quotation' => 0,
     'type' => 'main'
   }];
 
@@ -622,6 +624,11 @@ sub _latex_header {
   #  $header .= "\\usepackage{shorttoc}\n";
   #}
   $header .= '
+% redefine the \mainmatter command such that it does not clear the page
+\makeatletter
+\renewcommand\mainmatter{\clearpage\@mainmattertrue\pagenumbering{arabic}}
+\makeatother
+
 % command that does nothing used to help with substitutions in commands
 \newcommand{\GNUTexinfoplaceholder}[1]{}
 
@@ -778,7 +785,7 @@ sub _set_chapter_new_page($$)
 
   # reset headings after titlepage only, or immediately
   # if there is no titlepage
-  if ((not  $self->{'extra'}->{'titlepage'})
+  if ((not $self->{'extra'}->{'titlepage'})
       or $self->{'titlepage_done'}) {
     $result .= _set_headings($self, 'on');
   }
@@ -974,6 +981,30 @@ sub _close_preformatted_stack($)
   return $result;
 }
 
+sub _title_font($$)
+{
+  my $self = shift;
+  my $root = shift;
+  # in Texinfo TeX seems a bit smaller, but LARGE seems too small
+  my $result = "{\\huge \\bfseries ";
+  $result .= _convert($self, {'contents' => 
$root->{'args'}->[0]->{'contents'}});
+  $result .= '}';
+  return $result;
+}
+
+sub _end_title_page($)
+{
+  my $self = shift;
+  # add a rule if there was a @title (same as in Texinfo TeX)
+  if ($self->{'titlepage_formatting'}->{'title'}) {
+    delete $self->{'titlepage_formatting'}->{'title'};
+    return '\vskip4pt \hrule height 2pt width \hsize
+  \vskip\titlepagebottomglue
+';
+  }
+  return '';
+}
+
 sub _printindex($$)
 {
   my ($self, $printindex) = @_;
@@ -1381,6 +1412,7 @@ sub _convert($$)
            'math_style' => [],
            'code' => 0,
            'dot_not_end_sentence' => 0,
+           'in_quotation' => 0,
            'type' => 'footnote'
          };
       $result .= '\footnote{';
@@ -1522,7 +1554,7 @@ sub _convert($$)
           return $result;
         } else {
           # external ref
-          # TODO reference to manual file which seems to be implemented
+          # TODO hyper reference to manual file which seems to be implemented
           # in recent Texinfo TeX
           # TODO: should translate
           if ($command eq 'xref') {
@@ -1634,10 +1666,7 @@ sub _convert($$)
         }
       }
     } elsif ($command eq 'titlefont') {
-      $result .= "{\\Huge \\bfseries ";
-      $result .= $self->_convert({'contents'
-                                  => $root->{'args'}->[0]->{'contents'}});
-      $result .= '}';
+      $result .= _title_font($self, $root);
       return $result;
     } elsif ($command eq 'U') {
       my $arg;
@@ -1696,9 +1725,25 @@ sub _convert($$)
           or $command eq 'float') {
         push @{$self->{'style_context'}->[-1]->{'context'}}, $command;
       }
+      if ($command eq 'titlepage') {
+        # start a group such that the changes are forgotten when closed
+        # define glues dimensions that are used in titlepage formatting.
+        # taken from Texinfo TeX.
+        # FIXME replace \\newskip by \\newlen?
+        $result .= "\\begingroup
+\\newskip\\titlepagetopglue \\titlepagetopglue = 1.5in
+\\newskip\\titlepagebottomglue \\titlepagebottomglue = 2pc
+\\setlength{\\parindent}{0pt}\n";
+        $result .= "% Leave some space at the very top of the page.
+    \\vglue\\titlepagetopglue\n";
+        $self->{'titlepage_formatting'} = {'in_titlepage' => 1};
+      }
 
       if ($command eq 'quotation'
           or $command eq 'smallquotation') {
+        # this is only used to avoid @author converted as
+        # a @titlepage author, for a @quotation in @titlepage @author
+        $self->{'style_context'}->[-1]->{'in_quotation'} += 1;
         if ($root->{'args'} and $root->{'args'}->[0]
             and $root->{'args'}->[0]->{'contents'}
             and @{$root->{'args'}->[0]->{'contents'}}) {
@@ -1836,6 +1881,7 @@ sub _convert($$)
     } elsif ($command eq 'listoffloats') {
       return '';
     } elsif ($command eq 'page') {
+      $result .= _end_title_page($self);
       $result .= "\\newpage{}%\n";
       return $result;
     } elsif ($command eq 'indent') {
@@ -1865,6 +1911,46 @@ sub _convert($$)
         $result .= "\\needspace{${need_value}pt}%\n";
       }
       return $result;
+    } elsif ($command eq 'title') {
+      my $title_text = _title_font($self, $root);
+      #$result .= "\\begin{flushleft}\n";
+      #$result .= $title_text."\n";
+      #$result .= "\\end{flushleft}\n";
+      # FIXME In Texinfo TeX the interline space seems more even
+      $result .= "{\\raggedright $title_text}\n";
+      $result .= "\\vskip 4pt \\hrule height 4pt width \\hsize \\vskip 4pt\n";
+      $self->{'titlepage_formatting'}->{'title'} = 1;
+    } elsif ($command eq 'subtitle') {
+      my $subtitle_text = _convert($self,
+               {'contents' => $root->{'args'}->[0]->{'contents'}});
+      # too much vertical spacing
+      #$result .= "\\begin{flushright}\n";
+      #$result .= $subtitle_text."\n";
+      #$result .= "\\end{flushright}\n";
+      $result .= "\\rightline{$subtitle_text}\n";
+    } elsif ($command eq 'author') {
+      if ($self->{'titlepage_formatting'}->{'in_titlepage'}
+          and not $self->{'style_context'}->[-1]->{'in_quotation'}) {
+        if (not $self->{'titlepage_formatting'}->{'author'}) {
+          # first author, add space before
+          $self->{'titlepage_formatting'}->{'author'} = 1;
+          $result .= "\\vskip 0pt plus 1filll\n";
+        }
+        my $author_name = _convert($self,
+                       {'contents' => $root->{'args'}->[0]->{'contents'}});
+        # use \leftline as in Texinfo TeX
+        # FIXME In Texinfo TeX the interline space between @author lines
+        # seems better
+        $result .= "\\leftline{\\Large \\bfseries $author_name}%\n";
+        return $result;
+      }
+    } elsif ($command eq 'vskip') {
+      if ($root->{'extra'}->{'misc_args'}->[0]) {
+        # no need for space in front and end of line they are in the
+        # argument
+        $result .= "\\vskip$root->{'extra'}->{'misc_args'}->[0]";
+      }
+      return $result;
     } elsif ($command eq 'contents') {
       if ($self->{'structuring'}
             and $self->{'structuring'}->{'sectioning_root'}) {
@@ -2162,14 +2248,16 @@ sub _convert($$)
           $result .= _convert($self, $tree);
         }
       }
-    } elsif (($command eq 'quotation' 
-               or $command eq 'smallquotation')
-             and $root->{'extra'} and $root->{'extra'}->{'authors'}) {
-      foreach my $author (@{$root->{'extra'}->{'authors'}}) {
-        $result .= _convert($self, 
+    } elsif ($command eq 'quotation'
+               or $command eq 'smallquotation') {
+      if ($root->{'extra'} and $root->{'extra'}->{'authors'}) {
+        foreach my $author (@{$root->{'extra'}->{'authors'}}) {
+          $result .= _convert($self,
                  $self->gdt("\@center --- \@emph{{author}}\n",
                     {'author' => $author->{'args'}->[0]->{'contents'}}));
+        }
       }
+      $self->{'style_context'}->[-1]->{'in_quotation'} -= 1;
     }
  
     # close the contexts and register the cells
@@ -2193,6 +2281,11 @@ sub _convert($$)
       my $old_math_style = pop 
@{$self->{'style_context'}->[-1]->{'math_style'}};
       die if ($old_math_style ne 'one-line');
     }
+    if ($command eq 'titlepage') {
+      $result .= _end_title_page($self);
+      $result .= "\\endgroup\n";
+      $self->{'titlepage_formatting'}->{'in_titlepage'} = 0;
+    }
     if ($LaTeX_block_commands{$command}) {
       $result .= "\\end{".$LaTeX_block_commands{$command}."}\n";
     } elsif ($preformatted_commands{$command}) {
diff --git a/tp/t/latex_tests.t b/tp/t/latex_tests.t
index 29bd0aa..ee44165 100644
--- a/tp/t/latex_tests.t
+++ b/tp/t/latex_tests.t
@@ -134,6 +134,119 @@ In top
 
 in chap
 '],
+['titlepage_no_author',
+'@setfilename titlepage_no_author.info
+@titlepage
+@title Some manual tested
+@end titlepage
+
+@node Top
+@top section top
+
+@node chapter
+@chapter Chapter
+
+In chapter
+'],
+['titlepage_no_title',
+'@setfilename titlepage_no_title.info
+@titlepage
+@titlefont{Some manual tested}
+
+@author Some Author
+@end titlepage
+
+@node Top
+@top section top
+
+@node chapter
+@chapter Chapter
+
+In chapter
+'],
+['titlepage_long_title',
+'@setfilename titlepage_long_title.info
+@titlepage
+@title a title than is long, very long, veeeeeeeeeeeeeeeeery long, it seems to 
never stop and it is not so interesting only very long oh an end of line @* and 
the title continue and keep on being unfinished until it is the end
+
+@end titlepage
+
+@node Top
+@top section top
+
+@node chapter
+@chapter Chapter
+
+In chapter
+'],
+# FIXME texi2pdf output has a blank page after the main title page
+# thanks to the second page, while two newpage do not produce two pages
+['titlepage_classical',
+'@setfilename titlepage_classical.info
+
+@copying
+in Copying
+@end copying
+
+@titlepage
+@title Some manual tested
+@subtitle Subtitle manual tested
+@subtitle Subtitle 2 manual tested
+@author First author
+@author Second author
+
+@page
+@c The following two commands start the copyright page.
+@page
+@vskip 0pt plus 1filll
+@insertcopying
+@end titlepage
+
+@node Top
+@top section top
+
+@node chapter
+@chapter Chapter
+
+In chapter
+
+'],
+['titlepage_with_commands_classical',
+'@setfilename titlepage_with_commands_classical.info
+
+@copying
+in Copying
+@end copying
+
+@titlepage
+@title Some manual @* tested
+@subtitle Subtitle manual @* tested
+@subtitle Subtitle 2 manual @* tested
+@author First @* author
+@author Second @* author@footnote{Something
+about the address of author.
+
+Something about the life. 
+@displaymath
+\frac{a}{b}
+@end displaymath
+}
+@page
+@c The following two commands start the copyright page.
+@page
+@vskip 0pt plus 1filll
+@insertcopying
+@end titlepage
+
+@node Top
+@top section top
+
+@node chapter
+@chapter Chapter
+
+In chapter
+
+']
 );
 
 foreach my $test (@test_cases) {
diff --git 
a/tp/t/results/latex_tests/no_titlepage_and_setchapternewpage_odd/res_latex/no_titlepage_and_setchapternewpage_odd.tex
 
b/tp/t/results/latex_tests/no_titlepage_and_setchapternewpage_odd/res_latex/no_titlepage_and_setchapternewpage_odd.tex
index a6aaa73..c8fdc5c 100644
--- 
a/tp/t/results/latex_tests/no_titlepage_and_setchapternewpage_odd/res_latex/no_titlepage_and_setchapternewpage_odd.tex
+++ 
b/tp/t/results/latex_tests/no_titlepage_and_setchapternewpage_odd/res_latex/no_titlepage_and_setchapternewpage_odd.tex
@@ -13,6 +13,11 @@
 \usepackage[hidelinks]{hyperref}
 \usepackage[utf8]{inputenc}
 
+% redefine the \mainmatter command such that it does not clear the page
+\makeatletter
+\renewcommand\mainmatter{\clearpage\@mainmattertrue\pagenumbering{arabic}}
+\makeatother
+
 % command that does nothing used to help with substitutions in commands
 \newcommand{\GNUTexinfoplaceholder}[1]{}
 
diff --git 
a/tp/t/results/latex_tests/no_titlepage_and_setchapternewpage_on/res_latex/no_titlepage_and_setchapternewpage_on.tex
 
b/tp/t/results/latex_tests/no_titlepage_and_setchapternewpage_on/res_latex/no_titlepage_and_setchapternewpage_on.tex
index 6a7041b..145ee30 100644
--- 
a/tp/t/results/latex_tests/no_titlepage_and_setchapternewpage_on/res_latex/no_titlepage_and_setchapternewpage_on.tex
+++ 
b/tp/t/results/latex_tests/no_titlepage_and_setchapternewpage_on/res_latex/no_titlepage_and_setchapternewpage_on.tex
@@ -13,6 +13,11 @@
 \usepackage[hidelinks]{hyperref}
 \usepackage[utf8]{inputenc}
 
+% redefine the \mainmatter command such that it does not clear the page
+\makeatletter
+\renewcommand\mainmatter{\clearpage\@mainmattertrue\pagenumbering{arabic}}
+\makeatother
+
 % command that does nothing used to help with substitutions in commands
 \newcommand{\GNUTexinfoplaceholder}[1]{}
 
diff --git a/tp/t/results/latex_tests/setchapternewpage_on_odd_titlepage.pl 
b/tp/t/results/latex_tests/setchapternewpage_on_odd_titlepage.pl
index 3e063dc..9b3ae2d 100644
--- a/tp/t/results/latex_tests/setchapternewpage_on_odd_titlepage.pl
+++ b/tp/t/results/latex_tests/setchapternewpage_on_odd_titlepage.pl
@@ -239,7 +239,14 @@ 
$result_converted{'latex'}->{'setchapternewpage_on_odd_titlepage'} = '\\makeatle
 \\makeatother
 
 \\begin{titlepage}
+\\begingroup
+\\newskip\\titlepagetopglue \\titlepagetopglue = 1.5in
+\\newskip\\titlepagebottomglue \\titlepagebottomglue = 2pc
+\\setlength{\\parindent}{0pt}
+% Leave some space at the very top of the page.
+    \\vglue\\titlepagetopglue
 in titlepage
+\\endgroup
 \\end{titlepage}
 \\GNUTexinfosetdoubleheader{No Title}%
 \\mainmatter
diff --git 
a/tp/t/results/latex_tests/setchapternewpage_on_odd_titlepage/res_latex/setchapternewpage_on_odd_titlepage.tex
 
b/tp/t/results/latex_tests/setchapternewpage_on_odd_titlepage/res_latex/setchapternewpage_on_odd_titlepage.tex
index dcabc25..39d6cbe 100644
--- 
a/tp/t/results/latex_tests/setchapternewpage_on_odd_titlepage/res_latex/setchapternewpage_on_odd_titlepage.tex
+++ 
b/tp/t/results/latex_tests/setchapternewpage_on_odd_titlepage/res_latex/setchapternewpage_on_odd_titlepage.tex
@@ -13,6 +13,11 @@
 \usepackage[hidelinks]{hyperref}
 \usepackage[utf8]{inputenc}
 
+% redefine the \mainmatter command such that it does not clear the page
+\makeatletter
+\renewcommand\mainmatter{\clearpage\@mainmattertrue\pagenumbering{arabic}}
+\makeatother
+
 % command that does nothing used to help with substitutions in commands
 \newcommand{\GNUTexinfoplaceholder}[1]{}
 
@@ -64,7 +69,14 @@
 \makeatother
 
 \begin{titlepage}
+\begingroup
+\newskip\titlepagetopglue \titlepagetopglue = 1.5in
+\newskip\titlepagebottomglue \titlepagebottomglue = 2pc
+\setlength{\parindent}{0pt}
+% Leave some space at the very top of the page.
+    \vglue\titlepagetopglue
 in titlepage
+\endgroup
 \end{titlepage}
 \GNUTexinfosetdoubleheader{No Title}%
 \mainmatter
diff --git 
a/tp/t/results/latex_tests/settitle_and_headings/res_latex/settitle_and_headings.tex
 
b/tp/t/results/latex_tests/settitle_and_headings/res_latex/settitle_and_headings.tex
index 4b5acca..374f710 100644
--- 
a/tp/t/results/latex_tests/settitle_and_headings/res_latex/settitle_and_headings.tex
+++ 
b/tp/t/results/latex_tests/settitle_and_headings/res_latex/settitle_and_headings.tex
@@ -13,6 +13,11 @@
 \usepackage[hidelinks]{hyperref}
 \usepackage[utf8]{inputenc}
 
+% redefine the \mainmatter command such that it does not clear the page
+\makeatletter
+\renewcommand\mainmatter{\clearpage\@mainmattertrue\pagenumbering{arabic}}
+\makeatother
+
 % command that does nothing used to help with substitutions in commands
 \newcommand{\GNUTexinfoplaceholder}[1]{}
 
diff --git 
a/tp/t/results/latex_tests/three_setchapternewpage_on_odd_off/res_latex/three_setchapternewpage_on_odd_off.tex
 
b/tp/t/results/latex_tests/three_setchapternewpage_on_odd_off/res_latex/three_setchapternewpage_on_odd_off.tex
index 9ceace0..2f143dd 100644
--- 
a/tp/t/results/latex_tests/three_setchapternewpage_on_odd_off/res_latex/three_setchapternewpage_on_odd_off.tex
+++ 
b/tp/t/results/latex_tests/three_setchapternewpage_on_odd_off/res_latex/three_setchapternewpage_on_odd_off.tex
@@ -13,6 +13,11 @@
 \usepackage[hidelinks]{hyperref}
 \usepackage[utf8]{inputenc}
 
+% redefine the \mainmatter command such that it does not clear the page
+\makeatletter
+\renewcommand\mainmatter{\clearpage\@mainmattertrue\pagenumbering{arabic}}
+\makeatother
+
 % command that does nothing used to help with substitutions in commands
 \newcommand{\GNUTexinfoplaceholder}[1]{}
 
diff --git a/tp/t/results/latex_tests/titlepage_and_headings.pl 
b/tp/t/results/latex_tests/titlepage_and_headings.pl
index 1be8a73..2d07bcd 100644
--- a/tp/t/results/latex_tests/titlepage_and_headings.pl
+++ b/tp/t/results/latex_tests/titlepage_and_headings.pl
@@ -152,7 +152,14 @@ $result_floats{'titlepage_and_headings'} = {};
 
 $result_converted{'latex'}->{'titlepage_and_headings'} = '
 \\begin{titlepage}
+\\begingroup
+\\newskip\\titlepagetopglue \\titlepagetopglue = 1.5in
+\\newskip\\titlepagebottomglue \\titlepagebottomglue = 2pc
+\\setlength{\\parindent}{0pt}
+% Leave some space at the very top of the page.
+    \\vglue\\titlepagetopglue
 in titlepage
+\\endgroup
 \\end{titlepage}
 \\GNUTexinfosetsingleheader{}%
 \\mainmatter
diff --git 
a/tp/t/results/latex_tests/titlepage_and_headings/res_latex/titlepage_and_headings.tex
 
b/tp/t/results/latex_tests/titlepage_and_headings/res_latex/titlepage_and_headings.tex
index 2aeb767..0dbe909 100644
--- 
a/tp/t/results/latex_tests/titlepage_and_headings/res_latex/titlepage_and_headings.tex
+++ 
b/tp/t/results/latex_tests/titlepage_and_headings/res_latex/titlepage_and_headings.tex
@@ -13,6 +13,11 @@
 \usepackage[hidelinks]{hyperref}
 \usepackage[utf8]{inputenc}
 
+% redefine the \mainmatter command such that it does not clear the page
+\makeatletter
+\renewcommand\mainmatter{\clearpage\@mainmattertrue\pagenumbering{arabic}}
+\makeatother
+
 % command that does nothing used to help with substitutions in commands
 \newcommand{\GNUTexinfoplaceholder}[1]{}
 
@@ -60,7 +65,14 @@
 \frontmatter
 
 \begin{titlepage}
+\begingroup
+\newskip\titlepagetopglue \titlepagetopglue = 1.5in
+\newskip\titlepagebottomglue \titlepagebottomglue = 2pc
+\setlength{\parindent}{0pt}
+% Leave some space at the very top of the page.
+    \vglue\titlepagetopglue
 in titlepage
+\endgroup
 \end{titlepage}
 \GNUTexinfosetsingleheader{}%
 \mainmatter
diff --git a/tp/t/results/latex_tests/titlepage_and_setchapternewpage_odd.pl 
b/tp/t/results/latex_tests/titlepage_and_setchapternewpage_odd.pl
index 3bd8316..1004f6b 100644
--- a/tp/t/results/latex_tests/titlepage_and_setchapternewpage_odd.pl
+++ b/tp/t/results/latex_tests/titlepage_and_setchapternewpage_odd.pl
@@ -197,7 +197,14 @@ $result_floats{'titlepage_and_setchapternewpage_odd'} = {};
 $result_converted{'latex'}->{'titlepage_and_setchapternewpage_odd'} = '
 
 \\begin{titlepage}
+\\begingroup
+\\newskip\\titlepagetopglue \\titlepagetopglue = 1.5in
+\\newskip\\titlepagebottomglue \\titlepagebottomglue = 2pc
+\\setlength{\\parindent}{0pt}
+% Leave some space at the very top of the page.
+    \\vglue\\titlepagetopglue
 in titlepage
+\\endgroup
 \\end{titlepage}
 \\GNUTexinfosetdoubleheader{No Title}%
 \\mainmatter
diff --git 
a/tp/t/results/latex_tests/titlepage_and_setchapternewpage_odd/res_latex/titlepage_and_setchapternewpage_odd.tex
 
b/tp/t/results/latex_tests/titlepage_and_setchapternewpage_odd/res_latex/titlepage_and_setchapternewpage_odd.tex
index 38f4ac5..9963287 100644
--- 
a/tp/t/results/latex_tests/titlepage_and_setchapternewpage_odd/res_latex/titlepage_and_setchapternewpage_odd.tex
+++ 
b/tp/t/results/latex_tests/titlepage_and_setchapternewpage_odd/res_latex/titlepage_and_setchapternewpage_odd.tex
@@ -13,6 +13,11 @@
 \usepackage[hidelinks]{hyperref}
 \usepackage[utf8]{inputenc}
 
+% redefine the \mainmatter command such that it does not clear the page
+\makeatletter
+\renewcommand\mainmatter{\clearpage\@mainmattertrue\pagenumbering{arabic}}
+\makeatother
+
 % command that does nothing used to help with substitutions in commands
 \newcommand{\GNUTexinfoplaceholder}[1]{}
 
@@ -64,7 +69,14 @@
 \makeatother
 
 \begin{titlepage}
+\begingroup
+\newskip\titlepagetopglue \titlepagetopglue = 1.5in
+\newskip\titlepagebottomglue \titlepagebottomglue = 2pc
+\setlength{\parindent}{0pt}
+% Leave some space at the very top of the page.
+    \vglue\titlepagetopglue
 in titlepage
+\endgroup
 \end{titlepage}
 \GNUTexinfosetdoubleheader{No Title}%
 \mainmatter
diff --git a/tp/t/results/latex_tests/titlepage_and_setchapternewpage_on.pl 
b/tp/t/results/latex_tests/titlepage_and_setchapternewpage_on.pl
index 74f379e..3a8b245 100644
--- a/tp/t/results/latex_tests/titlepage_and_setchapternewpage_on.pl
+++ b/tp/t/results/latex_tests/titlepage_and_setchapternewpage_on.pl
@@ -190,7 +190,14 @@ 
$result_converted{'latex'}->{'titlepage_and_setchapternewpage_on'} = '\\makeatle
 \\makeatother
 
 \\begin{titlepage}
+\\begingroup
+\\newskip\\titlepagetopglue \\titlepagetopglue = 1.5in
+\\newskip\\titlepagebottomglue \\titlepagebottomglue = 2pc
+\\setlength{\\parindent}{0pt}
+% Leave some space at the very top of the page.
+    \\vglue\\titlepagetopglue
 in titlepage
+\\endgroup
 \\end{titlepage}
 \\GNUTexinfosetsingleheader{}%
 \\mainmatter
diff --git 
a/tp/t/results/latex_tests/titlepage_and_setchapternewpage_on/res_latex/titlepage_and_setchapternewpage_on.tex
 
b/tp/t/results/latex_tests/titlepage_and_setchapternewpage_on/res_latex/titlepage_and_setchapternewpage_on.tex
index 2aeb767..0dbe909 100644
--- 
a/tp/t/results/latex_tests/titlepage_and_setchapternewpage_on/res_latex/titlepage_and_setchapternewpage_on.tex
+++ 
b/tp/t/results/latex_tests/titlepage_and_setchapternewpage_on/res_latex/titlepage_and_setchapternewpage_on.tex
@@ -13,6 +13,11 @@
 \usepackage[hidelinks]{hyperref}
 \usepackage[utf8]{inputenc}
 
+% redefine the \mainmatter command such that it does not clear the page
+\makeatletter
+\renewcommand\mainmatter{\clearpage\@mainmattertrue\pagenumbering{arabic}}
+\makeatother
+
 % command that does nothing used to help with substitutions in commands
 \newcommand{\GNUTexinfoplaceholder}[1]{}
 
@@ -60,7 +65,14 @@
 \frontmatter
 
 \begin{titlepage}
+\begingroup
+\newskip\titlepagetopglue \titlepagetopglue = 1.5in
+\newskip\titlepagebottomglue \titlepagebottomglue = 2pc
+\setlength{\parindent}{0pt}
+% Leave some space at the very top of the page.
+    \vglue\titlepagetopglue
 in titlepage
+\endgroup
 \end{titlepage}
 \GNUTexinfosetsingleheader{}%
 \mainmatter
diff --git a/tp/t/results/latex_tests/titlepage_classical.pl 
b/tp/t/results/latex_tests/titlepage_classical.pl
new file mode 100644
index 0000000..a258691
--- /dev/null
+++ b/tp/t/results/latex_tests/titlepage_classical.pl
@@ -0,0 +1,828 @@
+use vars qw(%result_texis %result_texts %result_trees %result_errors 
+   %result_indices %result_sectioning %result_nodes %result_menus
+   %result_floats %result_converted %result_converted_errors 
+   %result_elements %result_directions_text);
+
+use utf8;
+
+$result_trees{'titlepage_classical'} = {
+  'contents' => [
+    {
+      'contents' => [
+        {
+          'args' => [
+            {
+              'contents' => [
+                {
+                  'parent' => {},
+                  'text' => 'titlepage_classical.info'
+                }
+              ],
+              'extra' => {
+                'spaces_after_argument' => '
+'
+              },
+              'parent' => {},
+              'type' => 'line_arg'
+            }
+          ],
+          'cmdname' => 'setfilename',
+          'extra' => {
+            'spaces_before_argument' => ' ',
+            'text_arg' => 'titlepage_classical.info'
+          },
+          'line_nr' => {
+            'file_name' => '',
+            'line_nr' => 1,
+            'macro' => ''
+          },
+          'parent' => {}
+        },
+        {
+          'parent' => {},
+          'text' => '
+',
+          'type' => 'empty_line'
+        },
+        {
+          'cmdname' => 'copying',
+          'contents' => [
+            {
+              'extra' => {
+                'command' => {}
+              },
+              'parent' => {},
+              'text' => '
+',
+              'type' => 'empty_line_after_command'
+            },
+            {
+              'contents' => [
+                {
+                  'parent' => {},
+                  'text' => 'in Copying
+'
+                }
+              ],
+              'parent' => {},
+              'type' => 'paragraph'
+            },
+            {
+              'args' => [
+                {
+                  'contents' => [
+                    {
+                      'parent' => {},
+                      'text' => 'copying'
+                    }
+                  ],
+                  'extra' => {
+                    'spaces_after_argument' => '
+'
+                  },
+                  'parent' => {},
+                  'type' => 'line_arg'
+                }
+              ],
+              'cmdname' => 'end',
+              'extra' => {
+                'command_argument' => 'copying',
+                'spaces_before_argument' => ' ',
+                'text_arg' => 'copying'
+              },
+              'line_nr' => {
+                'file_name' => '',
+                'line_nr' => 5,
+                'macro' => ''
+              },
+              'parent' => {}
+            }
+          ],
+          'extra' => {
+            'end_command' => {}
+          },
+          'line_nr' => {
+            'file_name' => '',
+            'line_nr' => 3,
+            'macro' => ''
+          },
+          'parent' => {}
+        },
+        {
+          'parent' => {},
+          'text' => '
+',
+          'type' => 'empty_line'
+        },
+        {
+          'cmdname' => 'titlepage',
+          'contents' => [
+            {
+              'extra' => {
+                'command' => {}
+              },
+              'parent' => {},
+              'text' => '
+',
+              'type' => 'empty_line_after_command'
+            },
+            {
+              'args' => [
+                {
+                  'contents' => [
+                    {
+                      'parent' => {},
+                      'text' => 'Some manual tested'
+                    }
+                  ],
+                  'extra' => {
+                    'spaces_after_argument' => '
+'
+                  },
+                  'parent' => {},
+                  'type' => 'line_arg'
+                }
+              ],
+              'cmdname' => 'title',
+              'extra' => {
+                'spaces_before_argument' => ' '
+              },
+              'line_nr' => {
+                'file_name' => '',
+                'line_nr' => 8,
+                'macro' => ''
+              },
+              'parent' => {}
+            },
+            {
+              'args' => [
+                {
+                  'contents' => [
+                    {
+                      'parent' => {},
+                      'text' => 'Subtitle manual tested'
+                    }
+                  ],
+                  'extra' => {
+                    'spaces_after_argument' => '
+'
+                  },
+                  'parent' => {},
+                  'type' => 'line_arg'
+                }
+              ],
+              'cmdname' => 'subtitle',
+              'extra' => {
+                'spaces_before_argument' => ' '
+              },
+              'line_nr' => {
+                'file_name' => '',
+                'line_nr' => 9,
+                'macro' => ''
+              },
+              'parent' => {}
+            },
+            {
+              'args' => [
+                {
+                  'contents' => [
+                    {
+                      'parent' => {},
+                      'text' => 'Subtitle 2 manual tested'
+                    }
+                  ],
+                  'extra' => {
+                    'spaces_after_argument' => '
+'
+                  },
+                  'parent' => {},
+                  'type' => 'line_arg'
+                }
+              ],
+              'cmdname' => 'subtitle',
+              'extra' => {
+                'spaces_before_argument' => ' '
+              },
+              'line_nr' => {
+                'file_name' => '',
+                'line_nr' => 10,
+                'macro' => ''
+              },
+              'parent' => {}
+            },
+            {
+              'args' => [
+                {
+                  'contents' => [
+                    {
+                      'parent' => {},
+                      'text' => 'First author'
+                    }
+                  ],
+                  'extra' => {
+                    'spaces_after_argument' => '
+'
+                  },
+                  'parent' => {},
+                  'type' => 'line_arg'
+                }
+              ],
+              'cmdname' => 'author',
+              'extra' => {
+                'spaces_before_argument' => ' ',
+                'titlepage' => {}
+              },
+              'line_nr' => {
+                'file_name' => '',
+                'line_nr' => 11,
+                'macro' => ''
+              },
+              'parent' => {}
+            },
+            {
+              'args' => [
+                {
+                  'contents' => [
+                    {
+                      'parent' => {},
+                      'text' => 'Second author'
+                    }
+                  ],
+                  'extra' => {
+                    'spaces_after_argument' => '
+'
+                  },
+                  'parent' => {},
+                  'type' => 'line_arg'
+                }
+              ],
+              'cmdname' => 'author',
+              'extra' => {
+                'spaces_before_argument' => ' ',
+                'titlepage' => {}
+              },
+              'line_nr' => {
+                'file_name' => '',
+                'line_nr' => 12,
+                'macro' => ''
+              },
+              'parent' => {}
+            },
+            {
+              'parent' => {},
+              'text' => '
+',
+              'type' => 'empty_line'
+            },
+            {
+              'args' => [
+                {
+                  'parent' => {},
+                  'text' => '
+',
+                  'type' => 'misc_arg'
+                }
+              ],
+              'cmdname' => 'page',
+              'parent' => {}
+            },
+            {
+              'args' => [
+                {
+                  'parent' => {},
+                  'text' => ' The following two commands start the copyright 
page.
+',
+                  'type' => 'misc_arg'
+                }
+              ],
+              'cmdname' => 'c',
+              'extra' => {
+                'misc_args' => [
+                  ' The following two commands start the copyright page.
+'
+                ]
+              },
+              'parent' => {}
+            },
+            {
+              'args' => [
+                {
+                  'parent' => {},
+                  'text' => '
+',
+                  'type' => 'misc_arg'
+                }
+              ],
+              'cmdname' => 'page',
+              'parent' => {}
+            },
+            {
+              'args' => [
+                {
+                  'parent' => {},
+                  'text' => ' 0pt plus 1filll
+',
+                  'type' => 'misc_arg'
+                }
+              ],
+              'cmdname' => 'vskip',
+              'extra' => {
+                'misc_args' => [
+                  ' 0pt plus 1filll
+'
+                ]
+              },
+              'parent' => {}
+            },
+            {
+              'args' => [
+                {
+                  'parent' => {},
+                  'text' => '
+',
+                  'type' => 'misc_arg'
+                }
+              ],
+              'cmdname' => 'insertcopying',
+              'line_nr' => {
+                'file_name' => '',
+                'line_nr' => 18,
+                'macro' => ''
+              },
+              'parent' => {}
+            },
+            {
+              'args' => [
+                {
+                  'contents' => [
+                    {
+                      'parent' => {},
+                      'text' => 'titlepage'
+                    }
+                  ],
+                  'extra' => {
+                    'spaces_after_argument' => '
+'
+                  },
+                  'parent' => {},
+                  'type' => 'line_arg'
+                }
+              ],
+              'cmdname' => 'end',
+              'extra' => {
+                'command_argument' => 'titlepage',
+                'spaces_before_argument' => ' ',
+                'text_arg' => 'titlepage'
+              },
+              'line_nr' => {
+                'file_name' => '',
+                'line_nr' => 19,
+                'macro' => ''
+              },
+              'parent' => {}
+            }
+          ],
+          'extra' => {
+            'end_command' => {}
+          },
+          'line_nr' => {
+            'file_name' => '',
+            'line_nr' => 7,
+            'macro' => ''
+          },
+          'parent' => {}
+        },
+        {
+          'parent' => {},
+          'text' => '
+',
+          'type' => 'empty_line'
+        }
+      ],
+      'parent' => {},
+      'type' => 'text_root'
+    },
+    {
+      'args' => [
+        {
+          'contents' => [
+            {
+              'parent' => {},
+              'text' => 'Top'
+            }
+          ],
+          'extra' => {
+            'spaces_after_argument' => '
+'
+          },
+          'parent' => {},
+          'type' => 'line_arg'
+        }
+      ],
+      'cmdname' => 'node',
+      'contents' => [],
+      'extra' => {
+        'node_content' => [
+          {}
+        ],
+        'nodes_manuals' => [
+          {
+            'node_content' => [
+              {}
+            ],
+            'normalized' => 'Top'
+          }
+        ],
+        'normalized' => 'Top',
+        'spaces_before_argument' => ' '
+      },
+      'line_nr' => {
+        'file_name' => '',
+        'line_nr' => 21,
+        'macro' => ''
+      },
+      'parent' => {}
+    },
+    {
+      'args' => [
+        {
+          'contents' => [
+            {
+              'parent' => {},
+              'text' => 'section top'
+            }
+          ],
+          'extra' => {
+            'spaces_after_argument' => '
+'
+          },
+          'parent' => {},
+          'type' => 'line_arg'
+        }
+      ],
+      'cmdname' => 'top',
+      'contents' => [
+        {
+          'parent' => {},
+          'text' => '
+',
+          'type' => 'empty_line'
+        }
+      ],
+      'extra' => {
+        'spaces_before_argument' => ' '
+      },
+      'level' => 0,
+      'line_nr' => {
+        'file_name' => '',
+        'line_nr' => 22,
+        'macro' => ''
+      },
+      'parent' => {}
+    },
+    {
+      'args' => [
+        {
+          'contents' => [
+            {
+              'parent' => {},
+              'text' => 'chapter'
+            }
+          ],
+          'extra' => {
+            'spaces_after_argument' => '
+'
+          },
+          'parent' => {},
+          'type' => 'line_arg'
+        }
+      ],
+      'cmdname' => 'node',
+      'contents' => [],
+      'extra' => {
+        'node_content' => [
+          {}
+        ],
+        'nodes_manuals' => [
+          {
+            'node_content' => [
+              {}
+            ],
+            'normalized' => 'chapter'
+          }
+        ],
+        'normalized' => 'chapter',
+        'spaces_before_argument' => ' '
+      },
+      'line_nr' => {
+        'file_name' => '',
+        'line_nr' => 24,
+        'macro' => ''
+      },
+      'parent' => {}
+    },
+    {
+      'args' => [
+        {
+          'contents' => [
+            {
+              'parent' => {},
+              'text' => 'Chapter'
+            }
+          ],
+          'extra' => {
+            'spaces_after_argument' => '
+'
+          },
+          'parent' => {},
+          'type' => 'line_arg'
+        }
+      ],
+      'cmdname' => 'chapter',
+      'contents' => [
+        {
+          'parent' => {},
+          'text' => '
+',
+          'type' => 'empty_line'
+        },
+        {
+          'contents' => [
+            {
+              'parent' => {},
+              'text' => 'In chapter
+'
+            }
+          ],
+          'parent' => {},
+          'type' => 'paragraph'
+        },
+        {
+          'parent' => {},
+          'text' => '
+',
+          'type' => 'empty_line'
+        }
+      ],
+      'extra' => {
+        'spaces_before_argument' => ' '
+      },
+      'level' => 1,
+      'line_nr' => {
+        'file_name' => '',
+        'line_nr' => 25,
+        'macro' => ''
+      },
+      'number' => 1,
+      'parent' => {}
+    }
+  ],
+  'type' => 'document_root'
+};
+$result_trees{'titlepage_classical'}{'contents'}[0]{'contents'}[0]{'args'}[0]{'contents'}[0]{'parent'}
 = 
$result_trees{'titlepage_classical'}{'contents'}[0]{'contents'}[0]{'args'}[0];
+$result_trees{'titlepage_classical'}{'contents'}[0]{'contents'}[0]{'args'}[0]{'parent'}
 = $result_trees{'titlepage_classical'}{'contents'}[0]{'contents'}[0];
+$result_trees{'titlepage_classical'}{'contents'}[0]{'contents'}[0]{'parent'} = 
$result_trees{'titlepage_classical'}{'contents'}[0];
+$result_trees{'titlepage_classical'}{'contents'}[0]{'contents'}[1]{'parent'} = 
$result_trees{'titlepage_classical'}{'contents'}[0];
+$result_trees{'titlepage_classical'}{'contents'}[0]{'contents'}[2]{'contents'}[0]{'extra'}{'command'}
 = $result_trees{'titlepage_classical'}{'contents'}[0]{'contents'}[2];
+$result_trees{'titlepage_classical'}{'contents'}[0]{'contents'}[2]{'contents'}[0]{'parent'}
 = $result_trees{'titlepage_classical'}{'contents'}[0]{'contents'}[2];
+$result_trees{'titlepage_classical'}{'contents'}[0]{'contents'}[2]{'contents'}[1]{'contents'}[0]{'parent'}
 = 
$result_trees{'titlepage_classical'}{'contents'}[0]{'contents'}[2]{'contents'}[1];
+$result_trees{'titlepage_classical'}{'contents'}[0]{'contents'}[2]{'contents'}[1]{'parent'}
 = $result_trees{'titlepage_classical'}{'contents'}[0]{'contents'}[2];
+$result_trees{'titlepage_classical'}{'contents'}[0]{'contents'}[2]{'contents'}[2]{'args'}[0]{'contents'}[0]{'parent'}
 = 
$result_trees{'titlepage_classical'}{'contents'}[0]{'contents'}[2]{'contents'}[2]{'args'}[0];
+$result_trees{'titlepage_classical'}{'contents'}[0]{'contents'}[2]{'contents'}[2]{'args'}[0]{'parent'}
 = 
$result_trees{'titlepage_classical'}{'contents'}[0]{'contents'}[2]{'contents'}[2];
+$result_trees{'titlepage_classical'}{'contents'}[0]{'contents'}[2]{'contents'}[2]{'parent'}
 = $result_trees{'titlepage_classical'}{'contents'}[0]{'contents'}[2];
+$result_trees{'titlepage_classical'}{'contents'}[0]{'contents'}[2]{'extra'}{'end_command'}
 = 
$result_trees{'titlepage_classical'}{'contents'}[0]{'contents'}[2]{'contents'}[2];
+$result_trees{'titlepage_classical'}{'contents'}[0]{'contents'}[2]{'parent'} = 
$result_trees{'titlepage_classical'}{'contents'}[0];
+$result_trees{'titlepage_classical'}{'contents'}[0]{'contents'}[3]{'parent'} = 
$result_trees{'titlepage_classical'}{'contents'}[0];
+$result_trees{'titlepage_classical'}{'contents'}[0]{'contents'}[4]{'contents'}[0]{'extra'}{'command'}
 = $result_trees{'titlepage_classical'}{'contents'}[0]{'contents'}[4];
+$result_trees{'titlepage_classical'}{'contents'}[0]{'contents'}[4]{'contents'}[0]{'parent'}
 = $result_trees{'titlepage_classical'}{'contents'}[0]{'contents'}[4];
+$result_trees{'titlepage_classical'}{'contents'}[0]{'contents'}[4]{'contents'}[1]{'args'}[0]{'contents'}[0]{'parent'}
 = 
$result_trees{'titlepage_classical'}{'contents'}[0]{'contents'}[4]{'contents'}[1]{'args'}[0];
+$result_trees{'titlepage_classical'}{'contents'}[0]{'contents'}[4]{'contents'}[1]{'args'}[0]{'parent'}
 = 
$result_trees{'titlepage_classical'}{'contents'}[0]{'contents'}[4]{'contents'}[1];
+$result_trees{'titlepage_classical'}{'contents'}[0]{'contents'}[4]{'contents'}[1]{'parent'}
 = $result_trees{'titlepage_classical'}{'contents'}[0]{'contents'}[4];
+$result_trees{'titlepage_classical'}{'contents'}[0]{'contents'}[4]{'contents'}[2]{'args'}[0]{'contents'}[0]{'parent'}
 = 
$result_trees{'titlepage_classical'}{'contents'}[0]{'contents'}[4]{'contents'}[2]{'args'}[0];
+$result_trees{'titlepage_classical'}{'contents'}[0]{'contents'}[4]{'contents'}[2]{'args'}[0]{'parent'}
 = 
$result_trees{'titlepage_classical'}{'contents'}[0]{'contents'}[4]{'contents'}[2];
+$result_trees{'titlepage_classical'}{'contents'}[0]{'contents'}[4]{'contents'}[2]{'parent'}
 = $result_trees{'titlepage_classical'}{'contents'}[0]{'contents'}[4];
+$result_trees{'titlepage_classical'}{'contents'}[0]{'contents'}[4]{'contents'}[3]{'args'}[0]{'contents'}[0]{'parent'}
 = 
$result_trees{'titlepage_classical'}{'contents'}[0]{'contents'}[4]{'contents'}[3]{'args'}[0];
+$result_trees{'titlepage_classical'}{'contents'}[0]{'contents'}[4]{'contents'}[3]{'args'}[0]{'parent'}
 = 
$result_trees{'titlepage_classical'}{'contents'}[0]{'contents'}[4]{'contents'}[3];
+$result_trees{'titlepage_classical'}{'contents'}[0]{'contents'}[4]{'contents'}[3]{'parent'}
 = $result_trees{'titlepage_classical'}{'contents'}[0]{'contents'}[4];
+$result_trees{'titlepage_classical'}{'contents'}[0]{'contents'}[4]{'contents'}[4]{'args'}[0]{'contents'}[0]{'parent'}
 = 
$result_trees{'titlepage_classical'}{'contents'}[0]{'contents'}[4]{'contents'}[4]{'args'}[0];
+$result_trees{'titlepage_classical'}{'contents'}[0]{'contents'}[4]{'contents'}[4]{'args'}[0]{'parent'}
 = 
$result_trees{'titlepage_classical'}{'contents'}[0]{'contents'}[4]{'contents'}[4];
+$result_trees{'titlepage_classical'}{'contents'}[0]{'contents'}[4]{'contents'}[4]{'extra'}{'titlepage'}
 = $result_trees{'titlepage_classical'}{'contents'}[0]{'contents'}[4];
+$result_trees{'titlepage_classical'}{'contents'}[0]{'contents'}[4]{'contents'}[4]{'parent'}
 = $result_trees{'titlepage_classical'}{'contents'}[0]{'contents'}[4];
+$result_trees{'titlepage_classical'}{'contents'}[0]{'contents'}[4]{'contents'}[5]{'args'}[0]{'contents'}[0]{'parent'}
 = 
$result_trees{'titlepage_classical'}{'contents'}[0]{'contents'}[4]{'contents'}[5]{'args'}[0];
+$result_trees{'titlepage_classical'}{'contents'}[0]{'contents'}[4]{'contents'}[5]{'args'}[0]{'parent'}
 = 
$result_trees{'titlepage_classical'}{'contents'}[0]{'contents'}[4]{'contents'}[5];
+$result_trees{'titlepage_classical'}{'contents'}[0]{'contents'}[4]{'contents'}[5]{'extra'}{'titlepage'}
 = $result_trees{'titlepage_classical'}{'contents'}[0]{'contents'}[4];
+$result_trees{'titlepage_classical'}{'contents'}[0]{'contents'}[4]{'contents'}[5]{'parent'}
 = $result_trees{'titlepage_classical'}{'contents'}[0]{'contents'}[4];
+$result_trees{'titlepage_classical'}{'contents'}[0]{'contents'}[4]{'contents'}[6]{'parent'}
 = $result_trees{'titlepage_classical'}{'contents'}[0]{'contents'}[4];
+$result_trees{'titlepage_classical'}{'contents'}[0]{'contents'}[4]{'contents'}[7]{'args'}[0]{'parent'}
 = 
$result_trees{'titlepage_classical'}{'contents'}[0]{'contents'}[4]{'contents'}[7];
+$result_trees{'titlepage_classical'}{'contents'}[0]{'contents'}[4]{'contents'}[7]{'parent'}
 = $result_trees{'titlepage_classical'}{'contents'}[0]{'contents'}[4];
+$result_trees{'titlepage_classical'}{'contents'}[0]{'contents'}[4]{'contents'}[8]{'args'}[0]{'parent'}
 = 
$result_trees{'titlepage_classical'}{'contents'}[0]{'contents'}[4]{'contents'}[8];
+$result_trees{'titlepage_classical'}{'contents'}[0]{'contents'}[4]{'contents'}[8]{'parent'}
 = $result_trees{'titlepage_classical'}{'contents'}[0]{'contents'}[4];
+$result_trees{'titlepage_classical'}{'contents'}[0]{'contents'}[4]{'contents'}[9]{'args'}[0]{'parent'}
 = 
$result_trees{'titlepage_classical'}{'contents'}[0]{'contents'}[4]{'contents'}[9];
+$result_trees{'titlepage_classical'}{'contents'}[0]{'contents'}[4]{'contents'}[9]{'parent'}
 = $result_trees{'titlepage_classical'}{'contents'}[0]{'contents'}[4];
+$result_trees{'titlepage_classical'}{'contents'}[0]{'contents'}[4]{'contents'}[10]{'args'}[0]{'parent'}
 = 
$result_trees{'titlepage_classical'}{'contents'}[0]{'contents'}[4]{'contents'}[10];
+$result_trees{'titlepage_classical'}{'contents'}[0]{'contents'}[4]{'contents'}[10]{'parent'}
 = $result_trees{'titlepage_classical'}{'contents'}[0]{'contents'}[4];
+$result_trees{'titlepage_classical'}{'contents'}[0]{'contents'}[4]{'contents'}[11]{'args'}[0]{'parent'}
 = 
$result_trees{'titlepage_classical'}{'contents'}[0]{'contents'}[4]{'contents'}[11];
+$result_trees{'titlepage_classical'}{'contents'}[0]{'contents'}[4]{'contents'}[11]{'parent'}
 = $result_trees{'titlepage_classical'}{'contents'}[0]{'contents'}[4];
+$result_trees{'titlepage_classical'}{'contents'}[0]{'contents'}[4]{'contents'}[12]{'args'}[0]{'contents'}[0]{'parent'}
 = 
$result_trees{'titlepage_classical'}{'contents'}[0]{'contents'}[4]{'contents'}[12]{'args'}[0];
+$result_trees{'titlepage_classical'}{'contents'}[0]{'contents'}[4]{'contents'}[12]{'args'}[0]{'parent'}
 = 
$result_trees{'titlepage_classical'}{'contents'}[0]{'contents'}[4]{'contents'}[12];
+$result_trees{'titlepage_classical'}{'contents'}[0]{'contents'}[4]{'contents'}[12]{'parent'}
 = $result_trees{'titlepage_classical'}{'contents'}[0]{'contents'}[4];
+$result_trees{'titlepage_classical'}{'contents'}[0]{'contents'}[4]{'extra'}{'end_command'}
 = 
$result_trees{'titlepage_classical'}{'contents'}[0]{'contents'}[4]{'contents'}[12];
+$result_trees{'titlepage_classical'}{'contents'}[0]{'contents'}[4]{'parent'} = 
$result_trees{'titlepage_classical'}{'contents'}[0];
+$result_trees{'titlepage_classical'}{'contents'}[0]{'contents'}[5]{'parent'} = 
$result_trees{'titlepage_classical'}{'contents'}[0];
+$result_trees{'titlepage_classical'}{'contents'}[0]{'parent'} = 
$result_trees{'titlepage_classical'};
+$result_trees{'titlepage_classical'}{'contents'}[1]{'args'}[0]{'contents'}[0]{'parent'}
 = $result_trees{'titlepage_classical'}{'contents'}[1]{'args'}[0];
+$result_trees{'titlepage_classical'}{'contents'}[1]{'args'}[0]{'parent'} = 
$result_trees{'titlepage_classical'}{'contents'}[1];
+$result_trees{'titlepage_classical'}{'contents'}[1]{'extra'}{'node_content'}[0]
 = 
$result_trees{'titlepage_classical'}{'contents'}[1]{'args'}[0]{'contents'}[0];
+$result_trees{'titlepage_classical'}{'contents'}[1]{'extra'}{'nodes_manuals'}[0]{'node_content'}[0]
 = 
$result_trees{'titlepage_classical'}{'contents'}[1]{'args'}[0]{'contents'}[0];
+$result_trees{'titlepage_classical'}{'contents'}[1]{'parent'} = 
$result_trees{'titlepage_classical'};
+$result_trees{'titlepage_classical'}{'contents'}[2]{'args'}[0]{'contents'}[0]{'parent'}
 = $result_trees{'titlepage_classical'}{'contents'}[2]{'args'}[0];
+$result_trees{'titlepage_classical'}{'contents'}[2]{'args'}[0]{'parent'} = 
$result_trees{'titlepage_classical'}{'contents'}[2];
+$result_trees{'titlepage_classical'}{'contents'}[2]{'contents'}[0]{'parent'} = 
$result_trees{'titlepage_classical'}{'contents'}[2];
+$result_trees{'titlepage_classical'}{'contents'}[2]{'parent'} = 
$result_trees{'titlepage_classical'};
+$result_trees{'titlepage_classical'}{'contents'}[3]{'args'}[0]{'contents'}[0]{'parent'}
 = $result_trees{'titlepage_classical'}{'contents'}[3]{'args'}[0];
+$result_trees{'titlepage_classical'}{'contents'}[3]{'args'}[0]{'parent'} = 
$result_trees{'titlepage_classical'}{'contents'}[3];
+$result_trees{'titlepage_classical'}{'contents'}[3]{'extra'}{'node_content'}[0]
 = 
$result_trees{'titlepage_classical'}{'contents'}[3]{'args'}[0]{'contents'}[0];
+$result_trees{'titlepage_classical'}{'contents'}[3]{'extra'}{'nodes_manuals'}[0]{'node_content'}[0]
 = 
$result_trees{'titlepage_classical'}{'contents'}[3]{'args'}[0]{'contents'}[0];
+$result_trees{'titlepage_classical'}{'contents'}[3]{'parent'} = 
$result_trees{'titlepage_classical'};
+$result_trees{'titlepage_classical'}{'contents'}[4]{'args'}[0]{'contents'}[0]{'parent'}
 = $result_trees{'titlepage_classical'}{'contents'}[4]{'args'}[0];
+$result_trees{'titlepage_classical'}{'contents'}[4]{'args'}[0]{'parent'} = 
$result_trees{'titlepage_classical'}{'contents'}[4];
+$result_trees{'titlepage_classical'}{'contents'}[4]{'contents'}[0]{'parent'} = 
$result_trees{'titlepage_classical'}{'contents'}[4];
+$result_trees{'titlepage_classical'}{'contents'}[4]{'contents'}[1]{'contents'}[0]{'parent'}
 = $result_trees{'titlepage_classical'}{'contents'}[4]{'contents'}[1];
+$result_trees{'titlepage_classical'}{'contents'}[4]{'contents'}[1]{'parent'} = 
$result_trees{'titlepage_classical'}{'contents'}[4];
+$result_trees{'titlepage_classical'}{'contents'}[4]{'contents'}[2]{'parent'} = 
$result_trees{'titlepage_classical'}{'contents'}[4];
+$result_trees{'titlepage_classical'}{'contents'}[4]{'parent'} = 
$result_trees{'titlepage_classical'};
+
+$result_texis{'titlepage_classical'} = '@setfilename titlepage_classical.info
+
+@copying
+in Copying
+@end copying
+
+@titlepage
+@title Some manual tested
+@subtitle Subtitle manual tested
+@subtitle Subtitle 2 manual tested
+@author First author
+@author Second author
+
+@page
+@c The following two commands start the copyright page.
+@page
+@vskip 0pt plus 1filll
+@insertcopying
+@end titlepage
+
+@node Top
+@top section top
+
+@node chapter
+@chapter Chapter
+
+In chapter
+
+';
+
+
+$result_texts{'titlepage_classical'} = '
+
+
+section top
+***********
+
+1 Chapter
+*********
+
+In chapter
+
+';
+
+$result_sectioning{'titlepage_classical'} = {
+  'level' => -1,
+  'section_childs' => [
+    {
+      'cmdname' => 'top',
+      'extra' => {
+        'associated_node' => {
+          'cmdname' => 'node',
+          'extra' => {
+            'normalized' => 'Top',
+            'spaces_before_argument' => ' '
+          }
+        },
+        'spaces_before_argument' => ' '
+      },
+      'level' => 0,
+      'section_childs' => [
+        {
+          'cmdname' => 'chapter',
+          'extra' => {
+            'associated_node' => {
+              'cmdname' => 'node',
+              'extra' => {
+                'normalized' => 'chapter',
+                'spaces_before_argument' => ' '
+              }
+            },
+            'spaces_before_argument' => ' '
+          },
+          'level' => 1,
+          'number' => 1,
+          'section_up' => {},
+          'toplevel_prev' => {},
+          'toplevel_up' => {}
+        }
+      ],
+      'section_up' => {}
+    }
+  ]
+};
+$result_sectioning{'titlepage_classical'}{'section_childs'}[0]{'section_childs'}[0]{'section_up'}
 = $result_sectioning{'titlepage_classical'}{'section_childs'}[0];
+$result_sectioning{'titlepage_classical'}{'section_childs'}[0]{'section_childs'}[0]{'toplevel_prev'}
 = $result_sectioning{'titlepage_classical'}{'section_childs'}[0];
+$result_sectioning{'titlepage_classical'}{'section_childs'}[0]{'section_childs'}[0]{'toplevel_up'}
 = $result_sectioning{'titlepage_classical'}{'section_childs'}[0];
+$result_sectioning{'titlepage_classical'}{'section_childs'}[0]{'section_up'} = 
$result_sectioning{'titlepage_classical'};
+
+$result_nodes{'titlepage_classical'} = {
+  'cmdname' => 'node',
+  'extra' => {
+    'associated_section' => {
+      'cmdname' => 'top',
+      'extra' => {
+        'spaces_before_argument' => ' '
+      },
+      'level' => 0
+    },
+    'normalized' => 'Top',
+    'spaces_before_argument' => ' '
+  },
+  'node_next' => {
+    'cmdname' => 'node',
+    'extra' => {
+      'associated_section' => {
+        'cmdname' => 'chapter',
+        'extra' => {
+          'spaces_before_argument' => ' '
+        },
+        'level' => 1,
+        'number' => 1
+      },
+      'normalized' => 'chapter',
+      'spaces_before_argument' => ' '
+    },
+    'node_prev' => {},
+    'node_up' => {}
+  }
+};
+$result_nodes{'titlepage_classical'}{'node_next'}{'node_prev'} = 
$result_nodes{'titlepage_classical'};
+$result_nodes{'titlepage_classical'}{'node_next'}{'node_up'} = 
$result_nodes{'titlepage_classical'};
+
+$result_menus{'titlepage_classical'} = {
+  'cmdname' => 'node',
+  'extra' => {
+    'normalized' => 'Top',
+    'spaces_before_argument' => ' '
+  }
+};
+
+$result_errors{'titlepage_classical'} = [];
+
+
+$result_floats{'titlepage_classical'} = {};
+
+
+
+$result_converted{'latex'}->{'titlepage_classical'} = '
+
+\\begin{titlepage}
+\\begingroup
+\\newskip\\titlepagetopglue \\titlepagetopglue = 1.5in
+\\newskip\\titlepagebottomglue \\titlepagebottomglue = 2pc
+\\setlength{\\parindent}{0pt}
+% Leave some space at the very top of the page.
+    \\vglue\\titlepagetopglue
+{\\raggedright {\\huge \\bfseries Some manual tested}}
+\\vskip 4pt \\hrule height 4pt width \\hsize \\vskip 4pt
+\\rightline{Subtitle manual tested}
+\\rightline{Subtitle 2 manual tested}
+\\vskip 0pt plus 1filll
+\\leftline{\\Large \\bfseries First author}%
+\\leftline{\\Large \\bfseries Second author}%
+
+\\vskip4pt \\hrule height 2pt width \\hsize
+  \\vskip\\titlepagebottomglue
+\\newpage{}%
+\\newpage{}%
+\\vskip 0pt plus 1filll
+in Copying
+\\endgroup
+\\end{titlepage}
+\\GNUTexinfosetsingleheader{}%
+\\mainmatter
+
+\\chapter{Chapter}
+\\label{anchor:chapter}%
+
+In chapter
+
+';
+
+1;
diff --git 
a/tp/t/results/latex_tests/titlepage_and_setchapternewpage_on/res_latex/titlepage_and_setchapternewpage_on.tex
 
b/tp/t/results/latex_tests/titlepage_classical/res_latex/titlepage_classical.tex
similarity index 66%
copy from 
tp/t/results/latex_tests/titlepage_and_setchapternewpage_on/res_latex/titlepage_and_setchapternewpage_on.tex
copy to 
tp/t/results/latex_tests/titlepage_classical/res_latex/titlepage_classical.tex
index 2aeb767..78833f9 100644
--- 
a/tp/t/results/latex_tests/titlepage_and_setchapternewpage_on/res_latex/titlepage_and_setchapternewpage_on.tex
+++ 
b/tp/t/results/latex_tests/titlepage_classical/res_latex/titlepage_classical.tex
@@ -13,6 +13,11 @@
 \usepackage[hidelinks]{hyperref}
 \usepackage[utf8]{inputenc}
 
+% redefine the \mainmatter command such that it does not clear the page
+\makeatletter
+\renewcommand\mainmatter{\clearpage\@mainmattertrue\pagenumbering{arabic}}
+\makeatother
+
 % command that does nothing used to help with substitutions in commands
 \newcommand{\GNUTexinfoplaceholder}[1]{}
 
@@ -59,10 +64,36 @@
 
 \frontmatter
 
+
 \begin{titlepage}
-in titlepage
+\begingroup
+\newskip\titlepagetopglue \titlepagetopglue = 1.5in
+\newskip\titlepagebottomglue \titlepagebottomglue = 2pc
+\setlength{\parindent}{0pt}
+% Leave some space at the very top of the page.
+    \vglue\titlepagetopglue
+{\raggedright {\huge \bfseries Some manual tested}}
+\vskip 4pt \hrule height 4pt width \hsize \vskip 4pt
+\rightline{Subtitle manual tested}
+\rightline{Subtitle 2 manual tested}
+\vskip 0pt plus 1filll
+\leftline{\Large \bfseries First author}%
+\leftline{\Large \bfseries Second author}%
+
+\vskip4pt \hrule height 2pt width \hsize
+  \vskip\titlepagebottomglue
+\newpage{}%
+\newpage{}%
+\vskip 0pt plus 1filll
+in Copying
+\endgroup
 \end{titlepage}
 \GNUTexinfosetsingleheader{}%
 \mainmatter
 
+\chapter{Chapter}
+\label{anchor:chapter}%
+
+In chapter
+
 \end{document}
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 aef10b2..57af954 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
@@ -13,6 +13,11 @@
 \usepackage[hidelinks]{hyperref}
 \usepackage[utf8]{inputenc}
 
+% redefine the \mainmatter command such that it does not clear the page
+\makeatletter
+\renewcommand\mainmatter{\clearpage\@mainmattertrue\pagenumbering{arabic}}
+\makeatother
+
 % command that does nothing used to help with substitutions in commands
 \newcommand{\GNUTexinfoplaceholder}[1]{}
 
diff --git a/tp/t/results/latex_tests/titlepage_long_title.pl 
b/tp/t/results/latex_tests/titlepage_long_title.pl
new file mode 100644
index 0000000..80471c3
--- /dev/null
+++ b/tp/t/results/latex_tests/titlepage_long_title.pl
@@ -0,0 +1,499 @@
+use vars qw(%result_texis %result_texts %result_trees %result_errors 
+   %result_indices %result_sectioning %result_nodes %result_menus
+   %result_floats %result_converted %result_converted_errors 
+   %result_elements %result_directions_text);
+
+use utf8;
+
+$result_trees{'titlepage_long_title'} = {
+  'contents' => [
+    {
+      'contents' => [
+        {
+          'args' => [
+            {
+              'contents' => [
+                {
+                  'parent' => {},
+                  'text' => 'titlepage_long_title.info'
+                }
+              ],
+              'extra' => {
+                'spaces_after_argument' => '
+'
+              },
+              'parent' => {},
+              'type' => 'line_arg'
+            }
+          ],
+          'cmdname' => 'setfilename',
+          'extra' => {
+            'spaces_before_argument' => ' ',
+            'text_arg' => 'titlepage_long_title.info'
+          },
+          'line_nr' => {
+            'file_name' => '',
+            'line_nr' => 1,
+            'macro' => ''
+          },
+          'parent' => {}
+        },
+        {
+          'cmdname' => 'titlepage',
+          'contents' => [
+            {
+              'extra' => {
+                'command' => {}
+              },
+              'parent' => {},
+              'text' => '
+',
+              'type' => 'empty_line_after_command'
+            },
+            {
+              'args' => [
+                {
+                  'contents' => [
+                    {
+                      'parent' => {},
+                      'text' => 'a title than is long, very long, 
veeeeeeeeeeeeeeeeery long, it seems to never stop and it is not so interesting 
only very long oh an end of line '
+                    },
+                    {
+                      'cmdname' => '*',
+                      'parent' => {}
+                    },
+                    {
+                      'parent' => {},
+                      'text' => ' and the title continue and keep on being 
unfinished until it is the end'
+                    }
+                  ],
+                  'extra' => {
+                    'spaces_after_argument' => '
+'
+                  },
+                  'parent' => {},
+                  'type' => 'line_arg'
+                }
+              ],
+              'cmdname' => 'title',
+              'extra' => {
+                'spaces_before_argument' => ' '
+              },
+              'line_nr' => {
+                'file_name' => '',
+                'line_nr' => 3,
+                'macro' => ''
+              },
+              'parent' => {}
+            },
+            {
+              'parent' => {},
+              'text' => '
+',
+              'type' => 'empty_line'
+            },
+            {
+              'args' => [
+                {
+                  'contents' => [
+                    {
+                      'parent' => {},
+                      'text' => 'titlepage'
+                    }
+                  ],
+                  'extra' => {
+                    'spaces_after_argument' => '
+'
+                  },
+                  'parent' => {},
+                  'type' => 'line_arg'
+                }
+              ],
+              'cmdname' => 'end',
+              'extra' => {
+                'command_argument' => 'titlepage',
+                'spaces_before_argument' => ' ',
+                'text_arg' => 'titlepage'
+              },
+              'line_nr' => {
+                'file_name' => '',
+                'line_nr' => 5,
+                'macro' => ''
+              },
+              'parent' => {}
+            }
+          ],
+          'extra' => {
+            'end_command' => {}
+          },
+          'line_nr' => {
+            'file_name' => '',
+            'line_nr' => 2,
+            'macro' => ''
+          },
+          'parent' => {}
+        },
+        {
+          'parent' => {},
+          'text' => '
+',
+          'type' => 'empty_line'
+        }
+      ],
+      'parent' => {},
+      'type' => 'text_root'
+    },
+    {
+      'args' => [
+        {
+          'contents' => [
+            {
+              'parent' => {},
+              'text' => 'Top'
+            }
+          ],
+          'extra' => {
+            'spaces_after_argument' => '
+'
+          },
+          'parent' => {},
+          'type' => 'line_arg'
+        }
+      ],
+      'cmdname' => 'node',
+      'contents' => [],
+      'extra' => {
+        'node_content' => [
+          {}
+        ],
+        'nodes_manuals' => [
+          {
+            'node_content' => [
+              {}
+            ],
+            'normalized' => 'Top'
+          }
+        ],
+        'normalized' => 'Top',
+        'spaces_before_argument' => ' '
+      },
+      'line_nr' => {
+        'file_name' => '',
+        'line_nr' => 7,
+        'macro' => ''
+      },
+      'parent' => {}
+    },
+    {
+      'args' => [
+        {
+          'contents' => [
+            {
+              'parent' => {},
+              'text' => 'section top'
+            }
+          ],
+          'extra' => {
+            'spaces_after_argument' => '
+'
+          },
+          'parent' => {},
+          'type' => 'line_arg'
+        }
+      ],
+      'cmdname' => 'top',
+      'contents' => [
+        {
+          'parent' => {},
+          'text' => '
+',
+          'type' => 'empty_line'
+        }
+      ],
+      'extra' => {
+        'spaces_before_argument' => ' '
+      },
+      'level' => 0,
+      'line_nr' => {
+        'file_name' => '',
+        'line_nr' => 8,
+        'macro' => ''
+      },
+      'parent' => {}
+    },
+    {
+      'args' => [
+        {
+          'contents' => [
+            {
+              'parent' => {},
+              'text' => 'chapter'
+            }
+          ],
+          'extra' => {
+            'spaces_after_argument' => '
+'
+          },
+          'parent' => {},
+          'type' => 'line_arg'
+        }
+      ],
+      'cmdname' => 'node',
+      'contents' => [],
+      'extra' => {
+        'node_content' => [
+          {}
+        ],
+        'nodes_manuals' => [
+          {
+            'node_content' => [
+              {}
+            ],
+            'normalized' => 'chapter'
+          }
+        ],
+        'normalized' => 'chapter',
+        'spaces_before_argument' => ' '
+      },
+      'line_nr' => {
+        'file_name' => '',
+        'line_nr' => 10,
+        'macro' => ''
+      },
+      'parent' => {}
+    },
+    {
+      'args' => [
+        {
+          'contents' => [
+            {
+              'parent' => {},
+              'text' => 'Chapter'
+            }
+          ],
+          'extra' => {
+            'spaces_after_argument' => '
+'
+          },
+          'parent' => {},
+          'type' => 'line_arg'
+        }
+      ],
+      'cmdname' => 'chapter',
+      'contents' => [
+        {
+          'parent' => {},
+          'text' => '
+',
+          'type' => 'empty_line'
+        },
+        {
+          'contents' => [
+            {
+              'parent' => {},
+              'text' => 'In chapter
+'
+            }
+          ],
+          'parent' => {},
+          'type' => 'paragraph'
+        }
+      ],
+      'extra' => {
+        'spaces_before_argument' => ' '
+      },
+      'level' => 1,
+      'line_nr' => {
+        'file_name' => '',
+        'line_nr' => 11,
+        'macro' => ''
+      },
+      'number' => 1,
+      'parent' => {}
+    }
+  ],
+  'type' => 'document_root'
+};
+$result_trees{'titlepage_long_title'}{'contents'}[0]{'contents'}[0]{'args'}[0]{'contents'}[0]{'parent'}
 = 
$result_trees{'titlepage_long_title'}{'contents'}[0]{'contents'}[0]{'args'}[0];
+$result_trees{'titlepage_long_title'}{'contents'}[0]{'contents'}[0]{'args'}[0]{'parent'}
 = $result_trees{'titlepage_long_title'}{'contents'}[0]{'contents'}[0];
+$result_trees{'titlepage_long_title'}{'contents'}[0]{'contents'}[0]{'parent'} 
= $result_trees{'titlepage_long_title'}{'contents'}[0];
+$result_trees{'titlepage_long_title'}{'contents'}[0]{'contents'}[1]{'contents'}[0]{'extra'}{'command'}
 = $result_trees{'titlepage_long_title'}{'contents'}[0]{'contents'}[1];
+$result_trees{'titlepage_long_title'}{'contents'}[0]{'contents'}[1]{'contents'}[0]{'parent'}
 = $result_trees{'titlepage_long_title'}{'contents'}[0]{'contents'}[1];
+$result_trees{'titlepage_long_title'}{'contents'}[0]{'contents'}[1]{'contents'}[1]{'args'}[0]{'contents'}[0]{'parent'}
 = 
$result_trees{'titlepage_long_title'}{'contents'}[0]{'contents'}[1]{'contents'}[1]{'args'}[0];
+$result_trees{'titlepage_long_title'}{'contents'}[0]{'contents'}[1]{'contents'}[1]{'args'}[0]{'contents'}[1]{'parent'}
 = 
$result_trees{'titlepage_long_title'}{'contents'}[0]{'contents'}[1]{'contents'}[1]{'args'}[0];
+$result_trees{'titlepage_long_title'}{'contents'}[0]{'contents'}[1]{'contents'}[1]{'args'}[0]{'contents'}[2]{'parent'}
 = 
$result_trees{'titlepage_long_title'}{'contents'}[0]{'contents'}[1]{'contents'}[1]{'args'}[0];
+$result_trees{'titlepage_long_title'}{'contents'}[0]{'contents'}[1]{'contents'}[1]{'args'}[0]{'parent'}
 = 
$result_trees{'titlepage_long_title'}{'contents'}[0]{'contents'}[1]{'contents'}[1];
+$result_trees{'titlepage_long_title'}{'contents'}[0]{'contents'}[1]{'contents'}[1]{'parent'}
 = $result_trees{'titlepage_long_title'}{'contents'}[0]{'contents'}[1];
+$result_trees{'titlepage_long_title'}{'contents'}[0]{'contents'}[1]{'contents'}[2]{'parent'}
 = $result_trees{'titlepage_long_title'}{'contents'}[0]{'contents'}[1];
+$result_trees{'titlepage_long_title'}{'contents'}[0]{'contents'}[1]{'contents'}[3]{'args'}[0]{'contents'}[0]{'parent'}
 = 
$result_trees{'titlepage_long_title'}{'contents'}[0]{'contents'}[1]{'contents'}[3]{'args'}[0];
+$result_trees{'titlepage_long_title'}{'contents'}[0]{'contents'}[1]{'contents'}[3]{'args'}[0]{'parent'}
 = 
$result_trees{'titlepage_long_title'}{'contents'}[0]{'contents'}[1]{'contents'}[3];
+$result_trees{'titlepage_long_title'}{'contents'}[0]{'contents'}[1]{'contents'}[3]{'parent'}
 = $result_trees{'titlepage_long_title'}{'contents'}[0]{'contents'}[1];
+$result_trees{'titlepage_long_title'}{'contents'}[0]{'contents'}[1]{'extra'}{'end_command'}
 = 
$result_trees{'titlepage_long_title'}{'contents'}[0]{'contents'}[1]{'contents'}[3];
+$result_trees{'titlepage_long_title'}{'contents'}[0]{'contents'}[1]{'parent'} 
= $result_trees{'titlepage_long_title'}{'contents'}[0];
+$result_trees{'titlepage_long_title'}{'contents'}[0]{'contents'}[2]{'parent'} 
= $result_trees{'titlepage_long_title'}{'contents'}[0];
+$result_trees{'titlepage_long_title'}{'contents'}[0]{'parent'} = 
$result_trees{'titlepage_long_title'};
+$result_trees{'titlepage_long_title'}{'contents'}[1]{'args'}[0]{'contents'}[0]{'parent'}
 = $result_trees{'titlepage_long_title'}{'contents'}[1]{'args'}[0];
+$result_trees{'titlepage_long_title'}{'contents'}[1]{'args'}[0]{'parent'} = 
$result_trees{'titlepage_long_title'}{'contents'}[1];
+$result_trees{'titlepage_long_title'}{'contents'}[1]{'extra'}{'node_content'}[0]
 = 
$result_trees{'titlepage_long_title'}{'contents'}[1]{'args'}[0]{'contents'}[0];
+$result_trees{'titlepage_long_title'}{'contents'}[1]{'extra'}{'nodes_manuals'}[0]{'node_content'}[0]
 = 
$result_trees{'titlepage_long_title'}{'contents'}[1]{'args'}[0]{'contents'}[0];
+$result_trees{'titlepage_long_title'}{'contents'}[1]{'parent'} = 
$result_trees{'titlepage_long_title'};
+$result_trees{'titlepage_long_title'}{'contents'}[2]{'args'}[0]{'contents'}[0]{'parent'}
 = $result_trees{'titlepage_long_title'}{'contents'}[2]{'args'}[0];
+$result_trees{'titlepage_long_title'}{'contents'}[2]{'args'}[0]{'parent'} = 
$result_trees{'titlepage_long_title'}{'contents'}[2];
+$result_trees{'titlepage_long_title'}{'contents'}[2]{'contents'}[0]{'parent'} 
= $result_trees{'titlepage_long_title'}{'contents'}[2];
+$result_trees{'titlepage_long_title'}{'contents'}[2]{'parent'} = 
$result_trees{'titlepage_long_title'};
+$result_trees{'titlepage_long_title'}{'contents'}[3]{'args'}[0]{'contents'}[0]{'parent'}
 = $result_trees{'titlepage_long_title'}{'contents'}[3]{'args'}[0];
+$result_trees{'titlepage_long_title'}{'contents'}[3]{'args'}[0]{'parent'} = 
$result_trees{'titlepage_long_title'}{'contents'}[3];
+$result_trees{'titlepage_long_title'}{'contents'}[3]{'extra'}{'node_content'}[0]
 = 
$result_trees{'titlepage_long_title'}{'contents'}[3]{'args'}[0]{'contents'}[0];
+$result_trees{'titlepage_long_title'}{'contents'}[3]{'extra'}{'nodes_manuals'}[0]{'node_content'}[0]
 = 
$result_trees{'titlepage_long_title'}{'contents'}[3]{'args'}[0]{'contents'}[0];
+$result_trees{'titlepage_long_title'}{'contents'}[3]{'parent'} = 
$result_trees{'titlepage_long_title'};
+$result_trees{'titlepage_long_title'}{'contents'}[4]{'args'}[0]{'contents'}[0]{'parent'}
 = $result_trees{'titlepage_long_title'}{'contents'}[4]{'args'}[0];
+$result_trees{'titlepage_long_title'}{'contents'}[4]{'args'}[0]{'parent'} = 
$result_trees{'titlepage_long_title'}{'contents'}[4];
+$result_trees{'titlepage_long_title'}{'contents'}[4]{'contents'}[0]{'parent'} 
= $result_trees{'titlepage_long_title'}{'contents'}[4];
+$result_trees{'titlepage_long_title'}{'contents'}[4]{'contents'}[1]{'contents'}[0]{'parent'}
 = $result_trees{'titlepage_long_title'}{'contents'}[4]{'contents'}[1];
+$result_trees{'titlepage_long_title'}{'contents'}[4]{'contents'}[1]{'parent'} 
= $result_trees{'titlepage_long_title'}{'contents'}[4];
+$result_trees{'titlepage_long_title'}{'contents'}[4]{'parent'} = 
$result_trees{'titlepage_long_title'};
+
+$result_texis{'titlepage_long_title'} = '@setfilename titlepage_long_title.info
+@titlepage
+@title a title than is long, very long, veeeeeeeeeeeeeeeeery long, it seems to 
never stop and it is not so interesting only very long oh an end of line @* and 
the title continue and keep on being unfinished until it is the end
+
+@end titlepage
+
+@node Top
+@top section top
+
+@node chapter
+@chapter Chapter
+
+In chapter
+';
+
+
+$result_texts{'titlepage_long_title'} = '
+section top
+***********
+
+1 Chapter
+*********
+
+In chapter
+';
+
+$result_sectioning{'titlepage_long_title'} = {
+  'level' => -1,
+  'section_childs' => [
+    {
+      'cmdname' => 'top',
+      'extra' => {
+        'associated_node' => {
+          'cmdname' => 'node',
+          'extra' => {
+            'normalized' => 'Top',
+            'spaces_before_argument' => ' '
+          }
+        },
+        'spaces_before_argument' => ' '
+      },
+      'level' => 0,
+      'section_childs' => [
+        {
+          'cmdname' => 'chapter',
+          'extra' => {
+            'associated_node' => {
+              'cmdname' => 'node',
+              'extra' => {
+                'normalized' => 'chapter',
+                'spaces_before_argument' => ' '
+              }
+            },
+            'spaces_before_argument' => ' '
+          },
+          'level' => 1,
+          'number' => 1,
+          'section_up' => {},
+          'toplevel_prev' => {},
+          'toplevel_up' => {}
+        }
+      ],
+      'section_up' => {}
+    }
+  ]
+};
+$result_sectioning{'titlepage_long_title'}{'section_childs'}[0]{'section_childs'}[0]{'section_up'}
 = $result_sectioning{'titlepage_long_title'}{'section_childs'}[0];
+$result_sectioning{'titlepage_long_title'}{'section_childs'}[0]{'section_childs'}[0]{'toplevel_prev'}
 = $result_sectioning{'titlepage_long_title'}{'section_childs'}[0];
+$result_sectioning{'titlepage_long_title'}{'section_childs'}[0]{'section_childs'}[0]{'toplevel_up'}
 = $result_sectioning{'titlepage_long_title'}{'section_childs'}[0];
+$result_sectioning{'titlepage_long_title'}{'section_childs'}[0]{'section_up'} 
= $result_sectioning{'titlepage_long_title'};
+
+$result_nodes{'titlepage_long_title'} = {
+  'cmdname' => 'node',
+  'extra' => {
+    'associated_section' => {
+      'cmdname' => 'top',
+      'extra' => {
+        'spaces_before_argument' => ' '
+      },
+      'level' => 0
+    },
+    'normalized' => 'Top',
+    'spaces_before_argument' => ' '
+  },
+  'node_next' => {
+    'cmdname' => 'node',
+    'extra' => {
+      'associated_section' => {
+        'cmdname' => 'chapter',
+        'extra' => {
+          'spaces_before_argument' => ' '
+        },
+        'level' => 1,
+        'number' => 1
+      },
+      'normalized' => 'chapter',
+      'spaces_before_argument' => ' '
+    },
+    'node_prev' => {},
+    'node_up' => {}
+  }
+};
+$result_nodes{'titlepage_long_title'}{'node_next'}{'node_prev'} = 
$result_nodes{'titlepage_long_title'};
+$result_nodes{'titlepage_long_title'}{'node_next'}{'node_up'} = 
$result_nodes{'titlepage_long_title'};
+
+$result_menus{'titlepage_long_title'} = {
+  'cmdname' => 'node',
+  'extra' => {
+    'normalized' => 'Top',
+    'spaces_before_argument' => ' '
+  }
+};
+
+$result_errors{'titlepage_long_title'} = [];
+
+
+$result_floats{'titlepage_long_title'} = {};
+
+
+
+$result_converted{'latex'}->{'titlepage_long_title'} = '\\begin{titlepage}
+\\begingroup
+\\newskip\\titlepagetopglue \\titlepagetopglue = 1.5in
+\\newskip\\titlepagebottomglue \\titlepagebottomglue = 2pc
+\\setlength{\\parindent}{0pt}
+% Leave some space at the very top of the page.
+    \\vglue\\titlepagetopglue
+{\\raggedright {\\huge \\bfseries a title than is long, very long, 
veeeeeeeeeeeeeeeeery long, it seems to never stop and it is not so interesting 
only very long oh an end of line \\leavevmode{}\\\\ and the title continue and 
keep on being unfinished until it is the end}}
+\\vskip 4pt \\hrule height 4pt width \\hsize \\vskip 4pt
+
+\\vskip4pt \\hrule height 2pt width \\hsize
+  \\vskip\\titlepagebottomglue
+\\endgroup
+\\end{titlepage}
+\\GNUTexinfosetsingleheader{}%
+\\mainmatter
+
+\\chapter{Chapter}
+\\label{anchor:chapter}%
+
+In chapter
+';
+
+1;
diff --git 
a/tp/t/results/latex_tests/titlepage_and_setchapternewpage_on/res_latex/titlepage_and_setchapternewpage_on.tex
 
b/tp/t/results/latex_tests/titlepage_long_title/res_latex/titlepage_long_title.tex
similarity index 67%
copy from 
tp/t/results/latex_tests/titlepage_and_setchapternewpage_on/res_latex/titlepage_and_setchapternewpage_on.tex
copy to 
tp/t/results/latex_tests/titlepage_long_title/res_latex/titlepage_long_title.tex
index 2aeb767..402138c 100644
--- 
a/tp/t/results/latex_tests/titlepage_and_setchapternewpage_on/res_latex/titlepage_and_setchapternewpage_on.tex
+++ 
b/tp/t/results/latex_tests/titlepage_long_title/res_latex/titlepage_long_title.tex
@@ -13,6 +13,11 @@
 \usepackage[hidelinks]{hyperref}
 \usepackage[utf8]{inputenc}
 
+% redefine the \mainmatter command such that it does not clear the page
+\makeatletter
+\renewcommand\mainmatter{\clearpage\@mainmattertrue\pagenumbering{arabic}}
+\makeatother
+
 % command that does nothing used to help with substitutions in commands
 \newcommand{\GNUTexinfoplaceholder}[1]{}
 
@@ -58,11 +63,25 @@
 \begin{document}
 
 \frontmatter
-
 \begin{titlepage}
-in titlepage
+\begingroup
+\newskip\titlepagetopglue \titlepagetopglue = 1.5in
+\newskip\titlepagebottomglue \titlepagebottomglue = 2pc
+\setlength{\parindent}{0pt}
+% Leave some space at the very top of the page.
+    \vglue\titlepagetopglue
+{\raggedright {\huge \bfseries a title than is long, very long, 
veeeeeeeeeeeeeeeeery long, it seems to never stop and it is not so interesting 
only very long oh an end of line \leavevmode{}\\ and the title continue and 
keep on being unfinished until it is the end}}
+\vskip 4pt \hrule height 4pt width \hsize \vskip 4pt
+
+\vskip4pt \hrule height 2pt width \hsize
+  \vskip\titlepagebottomglue
+\endgroup
 \end{titlepage}
 \GNUTexinfosetsingleheader{}%
 \mainmatter
 
+\chapter{Chapter}
+\label{anchor:chapter}%
+
+In chapter
 \end{document}
diff --git a/tp/t/results/latex_tests/titlepage_no_author.pl 
b/tp/t/results/latex_tests/titlepage_no_author.pl
new file mode 100644
index 0000000..84cdecf
--- /dev/null
+++ b/tp/t/results/latex_tests/titlepage_no_author.pl
@@ -0,0 +1,480 @@
+use vars qw(%result_texis %result_texts %result_trees %result_errors 
+   %result_indices %result_sectioning %result_nodes %result_menus
+   %result_floats %result_converted %result_converted_errors 
+   %result_elements %result_directions_text);
+
+use utf8;
+
+$result_trees{'titlepage_no_author'} = {
+  'contents' => [
+    {
+      'contents' => [
+        {
+          'args' => [
+            {
+              'contents' => [
+                {
+                  'parent' => {},
+                  'text' => 'titlepage_no_author.info'
+                }
+              ],
+              'extra' => {
+                'spaces_after_argument' => '
+'
+              },
+              'parent' => {},
+              'type' => 'line_arg'
+            }
+          ],
+          'cmdname' => 'setfilename',
+          'extra' => {
+            'spaces_before_argument' => ' ',
+            'text_arg' => 'titlepage_no_author.info'
+          },
+          'line_nr' => {
+            'file_name' => '',
+            'line_nr' => 1,
+            'macro' => ''
+          },
+          'parent' => {}
+        },
+        {
+          'cmdname' => 'titlepage',
+          'contents' => [
+            {
+              'extra' => {
+                'command' => {}
+              },
+              'parent' => {},
+              'text' => '
+',
+              'type' => 'empty_line_after_command'
+            },
+            {
+              'args' => [
+                {
+                  'contents' => [
+                    {
+                      'parent' => {},
+                      'text' => 'Some manual tested'
+                    }
+                  ],
+                  'extra' => {
+                    'spaces_after_argument' => '
+'
+                  },
+                  'parent' => {},
+                  'type' => 'line_arg'
+                }
+              ],
+              'cmdname' => 'title',
+              'extra' => {
+                'spaces_before_argument' => ' '
+              },
+              'line_nr' => {
+                'file_name' => '',
+                'line_nr' => 3,
+                'macro' => ''
+              },
+              'parent' => {}
+            },
+            {
+              'args' => [
+                {
+                  'contents' => [
+                    {
+                      'parent' => {},
+                      'text' => 'titlepage'
+                    }
+                  ],
+                  'extra' => {
+                    'spaces_after_argument' => '
+'
+                  },
+                  'parent' => {},
+                  'type' => 'line_arg'
+                }
+              ],
+              'cmdname' => 'end',
+              'extra' => {
+                'command_argument' => 'titlepage',
+                'spaces_before_argument' => ' ',
+                'text_arg' => 'titlepage'
+              },
+              'line_nr' => {
+                'file_name' => '',
+                'line_nr' => 4,
+                'macro' => ''
+              },
+              'parent' => {}
+            }
+          ],
+          'extra' => {
+            'end_command' => {}
+          },
+          'line_nr' => {
+            'file_name' => '',
+            'line_nr' => 2,
+            'macro' => ''
+          },
+          'parent' => {}
+        },
+        {
+          'parent' => {},
+          'text' => '
+',
+          'type' => 'empty_line'
+        }
+      ],
+      'parent' => {},
+      'type' => 'text_root'
+    },
+    {
+      'args' => [
+        {
+          'contents' => [
+            {
+              'parent' => {},
+              'text' => 'Top'
+            }
+          ],
+          'extra' => {
+            'spaces_after_argument' => '
+'
+          },
+          'parent' => {},
+          'type' => 'line_arg'
+        }
+      ],
+      'cmdname' => 'node',
+      'contents' => [],
+      'extra' => {
+        'node_content' => [
+          {}
+        ],
+        'nodes_manuals' => [
+          {
+            'node_content' => [
+              {}
+            ],
+            'normalized' => 'Top'
+          }
+        ],
+        'normalized' => 'Top',
+        'spaces_before_argument' => ' '
+      },
+      'line_nr' => {
+        'file_name' => '',
+        'line_nr' => 6,
+        'macro' => ''
+      },
+      'parent' => {}
+    },
+    {
+      'args' => [
+        {
+          'contents' => [
+            {
+              'parent' => {},
+              'text' => 'section top'
+            }
+          ],
+          'extra' => {
+            'spaces_after_argument' => '
+'
+          },
+          'parent' => {},
+          'type' => 'line_arg'
+        }
+      ],
+      'cmdname' => 'top',
+      'contents' => [
+        {
+          'parent' => {},
+          'text' => '
+',
+          'type' => 'empty_line'
+        }
+      ],
+      'extra' => {
+        'spaces_before_argument' => ' '
+      },
+      'level' => 0,
+      'line_nr' => {
+        'file_name' => '',
+        'line_nr' => 7,
+        'macro' => ''
+      },
+      'parent' => {}
+    },
+    {
+      'args' => [
+        {
+          'contents' => [
+            {
+              'parent' => {},
+              'text' => 'chapter'
+            }
+          ],
+          'extra' => {
+            'spaces_after_argument' => '
+'
+          },
+          'parent' => {},
+          'type' => 'line_arg'
+        }
+      ],
+      'cmdname' => 'node',
+      'contents' => [],
+      'extra' => {
+        'node_content' => [
+          {}
+        ],
+        'nodes_manuals' => [
+          {
+            'node_content' => [
+              {}
+            ],
+            'normalized' => 'chapter'
+          }
+        ],
+        'normalized' => 'chapter',
+        'spaces_before_argument' => ' '
+      },
+      'line_nr' => {
+        'file_name' => '',
+        'line_nr' => 9,
+        'macro' => ''
+      },
+      'parent' => {}
+    },
+    {
+      'args' => [
+        {
+          'contents' => [
+            {
+              'parent' => {},
+              'text' => 'Chapter'
+            }
+          ],
+          'extra' => {
+            'spaces_after_argument' => '
+'
+          },
+          'parent' => {},
+          'type' => 'line_arg'
+        }
+      ],
+      'cmdname' => 'chapter',
+      'contents' => [
+        {
+          'parent' => {},
+          'text' => '
+',
+          'type' => 'empty_line'
+        },
+        {
+          'contents' => [
+            {
+              'parent' => {},
+              'text' => 'In chapter
+'
+            }
+          ],
+          'parent' => {},
+          'type' => 'paragraph'
+        }
+      ],
+      'extra' => {
+        'spaces_before_argument' => ' '
+      },
+      'level' => 1,
+      'line_nr' => {
+        'file_name' => '',
+        'line_nr' => 10,
+        'macro' => ''
+      },
+      'number' => 1,
+      'parent' => {}
+    }
+  ],
+  'type' => 'document_root'
+};
+$result_trees{'titlepage_no_author'}{'contents'}[0]{'contents'}[0]{'args'}[0]{'contents'}[0]{'parent'}
 = 
$result_trees{'titlepage_no_author'}{'contents'}[0]{'contents'}[0]{'args'}[0];
+$result_trees{'titlepage_no_author'}{'contents'}[0]{'contents'}[0]{'args'}[0]{'parent'}
 = $result_trees{'titlepage_no_author'}{'contents'}[0]{'contents'}[0];
+$result_trees{'titlepage_no_author'}{'contents'}[0]{'contents'}[0]{'parent'} = 
$result_trees{'titlepage_no_author'}{'contents'}[0];
+$result_trees{'titlepage_no_author'}{'contents'}[0]{'contents'}[1]{'contents'}[0]{'extra'}{'command'}
 = $result_trees{'titlepage_no_author'}{'contents'}[0]{'contents'}[1];
+$result_trees{'titlepage_no_author'}{'contents'}[0]{'contents'}[1]{'contents'}[0]{'parent'}
 = $result_trees{'titlepage_no_author'}{'contents'}[0]{'contents'}[1];
+$result_trees{'titlepage_no_author'}{'contents'}[0]{'contents'}[1]{'contents'}[1]{'args'}[0]{'contents'}[0]{'parent'}
 = 
$result_trees{'titlepage_no_author'}{'contents'}[0]{'contents'}[1]{'contents'}[1]{'args'}[0];
+$result_trees{'titlepage_no_author'}{'contents'}[0]{'contents'}[1]{'contents'}[1]{'args'}[0]{'parent'}
 = 
$result_trees{'titlepage_no_author'}{'contents'}[0]{'contents'}[1]{'contents'}[1];
+$result_trees{'titlepage_no_author'}{'contents'}[0]{'contents'}[1]{'contents'}[1]{'parent'}
 = $result_trees{'titlepage_no_author'}{'contents'}[0]{'contents'}[1];
+$result_trees{'titlepage_no_author'}{'contents'}[0]{'contents'}[1]{'contents'}[2]{'args'}[0]{'contents'}[0]{'parent'}
 = 
$result_trees{'titlepage_no_author'}{'contents'}[0]{'contents'}[1]{'contents'}[2]{'args'}[0];
+$result_trees{'titlepage_no_author'}{'contents'}[0]{'contents'}[1]{'contents'}[2]{'args'}[0]{'parent'}
 = 
$result_trees{'titlepage_no_author'}{'contents'}[0]{'contents'}[1]{'contents'}[2];
+$result_trees{'titlepage_no_author'}{'contents'}[0]{'contents'}[1]{'contents'}[2]{'parent'}
 = $result_trees{'titlepage_no_author'}{'contents'}[0]{'contents'}[1];
+$result_trees{'titlepage_no_author'}{'contents'}[0]{'contents'}[1]{'extra'}{'end_command'}
 = 
$result_trees{'titlepage_no_author'}{'contents'}[0]{'contents'}[1]{'contents'}[2];
+$result_trees{'titlepage_no_author'}{'contents'}[0]{'contents'}[1]{'parent'} = 
$result_trees{'titlepage_no_author'}{'contents'}[0];
+$result_trees{'titlepage_no_author'}{'contents'}[0]{'contents'}[2]{'parent'} = 
$result_trees{'titlepage_no_author'}{'contents'}[0];
+$result_trees{'titlepage_no_author'}{'contents'}[0]{'parent'} = 
$result_trees{'titlepage_no_author'};
+$result_trees{'titlepage_no_author'}{'contents'}[1]{'args'}[0]{'contents'}[0]{'parent'}
 = $result_trees{'titlepage_no_author'}{'contents'}[1]{'args'}[0];
+$result_trees{'titlepage_no_author'}{'contents'}[1]{'args'}[0]{'parent'} = 
$result_trees{'titlepage_no_author'}{'contents'}[1];
+$result_trees{'titlepage_no_author'}{'contents'}[1]{'extra'}{'node_content'}[0]
 = 
$result_trees{'titlepage_no_author'}{'contents'}[1]{'args'}[0]{'contents'}[0];
+$result_trees{'titlepage_no_author'}{'contents'}[1]{'extra'}{'nodes_manuals'}[0]{'node_content'}[0]
 = 
$result_trees{'titlepage_no_author'}{'contents'}[1]{'args'}[0]{'contents'}[0];
+$result_trees{'titlepage_no_author'}{'contents'}[1]{'parent'} = 
$result_trees{'titlepage_no_author'};
+$result_trees{'titlepage_no_author'}{'contents'}[2]{'args'}[0]{'contents'}[0]{'parent'}
 = $result_trees{'titlepage_no_author'}{'contents'}[2]{'args'}[0];
+$result_trees{'titlepage_no_author'}{'contents'}[2]{'args'}[0]{'parent'} = 
$result_trees{'titlepage_no_author'}{'contents'}[2];
+$result_trees{'titlepage_no_author'}{'contents'}[2]{'contents'}[0]{'parent'} = 
$result_trees{'titlepage_no_author'}{'contents'}[2];
+$result_trees{'titlepage_no_author'}{'contents'}[2]{'parent'} = 
$result_trees{'titlepage_no_author'};
+$result_trees{'titlepage_no_author'}{'contents'}[3]{'args'}[0]{'contents'}[0]{'parent'}
 = $result_trees{'titlepage_no_author'}{'contents'}[3]{'args'}[0];
+$result_trees{'titlepage_no_author'}{'contents'}[3]{'args'}[0]{'parent'} = 
$result_trees{'titlepage_no_author'}{'contents'}[3];
+$result_trees{'titlepage_no_author'}{'contents'}[3]{'extra'}{'node_content'}[0]
 = 
$result_trees{'titlepage_no_author'}{'contents'}[3]{'args'}[0]{'contents'}[0];
+$result_trees{'titlepage_no_author'}{'contents'}[3]{'extra'}{'nodes_manuals'}[0]{'node_content'}[0]
 = 
$result_trees{'titlepage_no_author'}{'contents'}[3]{'args'}[0]{'contents'}[0];
+$result_trees{'titlepage_no_author'}{'contents'}[3]{'parent'} = 
$result_trees{'titlepage_no_author'};
+$result_trees{'titlepage_no_author'}{'contents'}[4]{'args'}[0]{'contents'}[0]{'parent'}
 = $result_trees{'titlepage_no_author'}{'contents'}[4]{'args'}[0];
+$result_trees{'titlepage_no_author'}{'contents'}[4]{'args'}[0]{'parent'} = 
$result_trees{'titlepage_no_author'}{'contents'}[4];
+$result_trees{'titlepage_no_author'}{'contents'}[4]{'contents'}[0]{'parent'} = 
$result_trees{'titlepage_no_author'}{'contents'}[4];
+$result_trees{'titlepage_no_author'}{'contents'}[4]{'contents'}[1]{'contents'}[0]{'parent'}
 = $result_trees{'titlepage_no_author'}{'contents'}[4]{'contents'}[1];
+$result_trees{'titlepage_no_author'}{'contents'}[4]{'contents'}[1]{'parent'} = 
$result_trees{'titlepage_no_author'}{'contents'}[4];
+$result_trees{'titlepage_no_author'}{'contents'}[4]{'parent'} = 
$result_trees{'titlepage_no_author'};
+
+$result_texis{'titlepage_no_author'} = '@setfilename titlepage_no_author.info
+@titlepage
+@title Some manual tested
+@end titlepage
+
+@node Top
+@top section top
+
+@node chapter
+@chapter Chapter
+
+In chapter
+';
+
+
+$result_texts{'titlepage_no_author'} = '
+section top
+***********
+
+1 Chapter
+*********
+
+In chapter
+';
+
+$result_sectioning{'titlepage_no_author'} = {
+  'level' => -1,
+  'section_childs' => [
+    {
+      'cmdname' => 'top',
+      'extra' => {
+        'associated_node' => {
+          'cmdname' => 'node',
+          'extra' => {
+            'normalized' => 'Top',
+            'spaces_before_argument' => ' '
+          }
+        },
+        'spaces_before_argument' => ' '
+      },
+      'level' => 0,
+      'section_childs' => [
+        {
+          'cmdname' => 'chapter',
+          'extra' => {
+            'associated_node' => {
+              'cmdname' => 'node',
+              'extra' => {
+                'normalized' => 'chapter',
+                'spaces_before_argument' => ' '
+              }
+            },
+            'spaces_before_argument' => ' '
+          },
+          'level' => 1,
+          'number' => 1,
+          'section_up' => {},
+          'toplevel_prev' => {},
+          'toplevel_up' => {}
+        }
+      ],
+      'section_up' => {}
+    }
+  ]
+};
+$result_sectioning{'titlepage_no_author'}{'section_childs'}[0]{'section_childs'}[0]{'section_up'}
 = $result_sectioning{'titlepage_no_author'}{'section_childs'}[0];
+$result_sectioning{'titlepage_no_author'}{'section_childs'}[0]{'section_childs'}[0]{'toplevel_prev'}
 = $result_sectioning{'titlepage_no_author'}{'section_childs'}[0];
+$result_sectioning{'titlepage_no_author'}{'section_childs'}[0]{'section_childs'}[0]{'toplevel_up'}
 = $result_sectioning{'titlepage_no_author'}{'section_childs'}[0];
+$result_sectioning{'titlepage_no_author'}{'section_childs'}[0]{'section_up'} = 
$result_sectioning{'titlepage_no_author'};
+
+$result_nodes{'titlepage_no_author'} = {
+  'cmdname' => 'node',
+  'extra' => {
+    'associated_section' => {
+      'cmdname' => 'top',
+      'extra' => {
+        'spaces_before_argument' => ' '
+      },
+      'level' => 0
+    },
+    'normalized' => 'Top',
+    'spaces_before_argument' => ' '
+  },
+  'node_next' => {
+    'cmdname' => 'node',
+    'extra' => {
+      'associated_section' => {
+        'cmdname' => 'chapter',
+        'extra' => {
+          'spaces_before_argument' => ' '
+        },
+        'level' => 1,
+        'number' => 1
+      },
+      'normalized' => 'chapter',
+      'spaces_before_argument' => ' '
+    },
+    'node_prev' => {},
+    'node_up' => {}
+  }
+};
+$result_nodes{'titlepage_no_author'}{'node_next'}{'node_prev'} = 
$result_nodes{'titlepage_no_author'};
+$result_nodes{'titlepage_no_author'}{'node_next'}{'node_up'} = 
$result_nodes{'titlepage_no_author'};
+
+$result_menus{'titlepage_no_author'} = {
+  'cmdname' => 'node',
+  'extra' => {
+    'normalized' => 'Top',
+    'spaces_before_argument' => ' '
+  }
+};
+
+$result_errors{'titlepage_no_author'} = [];
+
+
+$result_floats{'titlepage_no_author'} = {};
+
+
+
+$result_converted{'latex'}->{'titlepage_no_author'} = '\\begin{titlepage}
+\\begingroup
+\\newskip\\titlepagetopglue \\titlepagetopglue = 1.5in
+\\newskip\\titlepagebottomglue \\titlepagebottomglue = 2pc
+\\setlength{\\parindent}{0pt}
+% Leave some space at the very top of the page.
+    \\vglue\\titlepagetopglue
+{\\raggedright {\\huge \\bfseries Some manual tested}}
+\\vskip 4pt \\hrule height 4pt width \\hsize \\vskip 4pt
+\\vskip4pt \\hrule height 2pt width \\hsize
+  \\vskip\\titlepagebottomglue
+\\endgroup
+\\end{titlepage}
+\\GNUTexinfosetsingleheader{}%
+\\mainmatter
+
+\\chapter{Chapter}
+\\label{anchor:chapter}%
+
+In chapter
+';
+
+1;
diff --git 
a/tp/t/results/latex_tests/titlepage_and_setchapternewpage_on/res_latex/titlepage_and_setchapternewpage_on.tex
 
b/tp/t/results/latex_tests/titlepage_no_author/res_latex/titlepage_no_author.tex
similarity index 73%
copy from 
tp/t/results/latex_tests/titlepage_and_setchapternewpage_on/res_latex/titlepage_and_setchapternewpage_on.tex
copy to 
tp/t/results/latex_tests/titlepage_no_author/res_latex/titlepage_no_author.tex
index 2aeb767..dd798d4 100644
--- 
a/tp/t/results/latex_tests/titlepage_and_setchapternewpage_on/res_latex/titlepage_and_setchapternewpage_on.tex
+++ 
b/tp/t/results/latex_tests/titlepage_no_author/res_latex/titlepage_no_author.tex
@@ -13,6 +13,11 @@
 \usepackage[hidelinks]{hyperref}
 \usepackage[utf8]{inputenc}
 
+% redefine the \mainmatter command such that it does not clear the page
+\makeatletter
+\renewcommand\mainmatter{\clearpage\@mainmattertrue\pagenumbering{arabic}}
+\makeatother
+
 % command that does nothing used to help with substitutions in commands
 \newcommand{\GNUTexinfoplaceholder}[1]{}
 
@@ -58,11 +63,24 @@
 \begin{document}
 
 \frontmatter
-
 \begin{titlepage}
-in titlepage
+\begingroup
+\newskip\titlepagetopglue \titlepagetopglue = 1.5in
+\newskip\titlepagebottomglue \titlepagebottomglue = 2pc
+\setlength{\parindent}{0pt}
+% Leave some space at the very top of the page.
+    \vglue\titlepagetopglue
+{\raggedright {\huge \bfseries Some manual tested}}
+\vskip 4pt \hrule height 4pt width \hsize \vskip 4pt
+\vskip4pt \hrule height 2pt width \hsize
+  \vskip\titlepagebottomglue
+\endgroup
 \end{titlepage}
 \GNUTexinfosetsingleheader{}%
 \mainmatter
 
+\chapter{Chapter}
+\label{anchor:chapter}%
+
+In chapter
 \end{document}
diff --git a/tp/t/results/latex_tests/titlepage_no_title.pl 
b/tp/t/results/latex_tests/titlepage_no_title.pl
new file mode 100644
index 0000000..6576add
--- /dev/null
+++ b/tp/t/results/latex_tests/titlepage_no_title.pl
@@ -0,0 +1,522 @@
+use vars qw(%result_texis %result_texts %result_trees %result_errors 
+   %result_indices %result_sectioning %result_nodes %result_menus
+   %result_floats %result_converted %result_converted_errors 
+   %result_elements %result_directions_text);
+
+use utf8;
+
+$result_trees{'titlepage_no_title'} = {
+  'contents' => [
+    {
+      'contents' => [
+        {
+          'args' => [
+            {
+              'contents' => [
+                {
+                  'parent' => {},
+                  'text' => 'titlepage_no_title.info'
+                }
+              ],
+              'extra' => {
+                'spaces_after_argument' => '
+'
+              },
+              'parent' => {},
+              'type' => 'line_arg'
+            }
+          ],
+          'cmdname' => 'setfilename',
+          'extra' => {
+            'spaces_before_argument' => ' ',
+            'text_arg' => 'titlepage_no_title.info'
+          },
+          'line_nr' => {
+            'file_name' => '',
+            'line_nr' => 1,
+            'macro' => ''
+          },
+          'parent' => {}
+        },
+        {
+          'cmdname' => 'titlepage',
+          'contents' => [
+            {
+              'extra' => {
+                'command' => {}
+              },
+              'parent' => {},
+              'text' => '
+',
+              'type' => 'empty_line_after_command'
+            },
+            {
+              'args' => [
+                {
+                  'contents' => [
+                    {
+                      'parent' => {},
+                      'text' => 'Some manual tested'
+                    }
+                  ],
+                  'parent' => {},
+                  'type' => 'brace_command_arg'
+                }
+              ],
+              'cmdname' => 'titlefont',
+              'contents' => [],
+              'line_nr' => {
+                'file_name' => '',
+                'line_nr' => 3,
+                'macro' => ''
+              },
+              'parent' => {}
+            },
+            {
+              'parent' => {},
+              'text' => '
+'
+            },
+            {
+              'parent' => {},
+              'text' => '
+',
+              'type' => 'empty_line'
+            },
+            {
+              'args' => [
+                {
+                  'contents' => [
+                    {
+                      'parent' => {},
+                      'text' => 'Some Author'
+                    }
+                  ],
+                  'extra' => {
+                    'spaces_after_argument' => '
+'
+                  },
+                  'parent' => {},
+                  'type' => 'line_arg'
+                }
+              ],
+              'cmdname' => 'author',
+              'extra' => {
+                'spaces_before_argument' => ' ',
+                'titlepage' => {}
+              },
+              'line_nr' => {
+                'file_name' => '',
+                'line_nr' => 5,
+                'macro' => ''
+              },
+              'parent' => {}
+            },
+            {
+              'args' => [
+                {
+                  'contents' => [
+                    {
+                      'parent' => {},
+                      'text' => 'titlepage'
+                    }
+                  ],
+                  'extra' => {
+                    'spaces_after_argument' => '
+'
+                  },
+                  'parent' => {},
+                  'type' => 'line_arg'
+                }
+              ],
+              'cmdname' => 'end',
+              'extra' => {
+                'command_argument' => 'titlepage',
+                'spaces_before_argument' => ' ',
+                'text_arg' => 'titlepage'
+              },
+              'line_nr' => {
+                'file_name' => '',
+                'line_nr' => 6,
+                'macro' => ''
+              },
+              'parent' => {}
+            }
+          ],
+          'extra' => {
+            'end_command' => {}
+          },
+          'line_nr' => {
+            'file_name' => '',
+            'line_nr' => 2,
+            'macro' => ''
+          },
+          'parent' => {}
+        },
+        {
+          'parent' => {},
+          'text' => '
+',
+          'type' => 'empty_line'
+        }
+      ],
+      'parent' => {},
+      'type' => 'text_root'
+    },
+    {
+      'args' => [
+        {
+          'contents' => [
+            {
+              'parent' => {},
+              'text' => 'Top'
+            }
+          ],
+          'extra' => {
+            'spaces_after_argument' => '
+'
+          },
+          'parent' => {},
+          'type' => 'line_arg'
+        }
+      ],
+      'cmdname' => 'node',
+      'contents' => [],
+      'extra' => {
+        'node_content' => [
+          {}
+        ],
+        'nodes_manuals' => [
+          {
+            'node_content' => [
+              {}
+            ],
+            'normalized' => 'Top'
+          }
+        ],
+        'normalized' => 'Top',
+        'spaces_before_argument' => ' '
+      },
+      'line_nr' => {
+        'file_name' => '',
+        'line_nr' => 8,
+        'macro' => ''
+      },
+      'parent' => {}
+    },
+    {
+      'args' => [
+        {
+          'contents' => [
+            {
+              'parent' => {},
+              'text' => 'section top'
+            }
+          ],
+          'extra' => {
+            'spaces_after_argument' => '
+'
+          },
+          'parent' => {},
+          'type' => 'line_arg'
+        }
+      ],
+      'cmdname' => 'top',
+      'contents' => [
+        {
+          'parent' => {},
+          'text' => '
+',
+          'type' => 'empty_line'
+        }
+      ],
+      'extra' => {
+        'spaces_before_argument' => ' '
+      },
+      'level' => 0,
+      'line_nr' => {
+        'file_name' => '',
+        'line_nr' => 9,
+        'macro' => ''
+      },
+      'parent' => {}
+    },
+    {
+      'args' => [
+        {
+          'contents' => [
+            {
+              'parent' => {},
+              'text' => 'chapter'
+            }
+          ],
+          'extra' => {
+            'spaces_after_argument' => '
+'
+          },
+          'parent' => {},
+          'type' => 'line_arg'
+        }
+      ],
+      'cmdname' => 'node',
+      'contents' => [],
+      'extra' => {
+        'node_content' => [
+          {}
+        ],
+        'nodes_manuals' => [
+          {
+            'node_content' => [
+              {}
+            ],
+            'normalized' => 'chapter'
+          }
+        ],
+        'normalized' => 'chapter',
+        'spaces_before_argument' => ' '
+      },
+      'line_nr' => {
+        'file_name' => '',
+        'line_nr' => 11,
+        'macro' => ''
+      },
+      'parent' => {}
+    },
+    {
+      'args' => [
+        {
+          'contents' => [
+            {
+              'parent' => {},
+              'text' => 'Chapter'
+            }
+          ],
+          'extra' => {
+            'spaces_after_argument' => '
+'
+          },
+          'parent' => {},
+          'type' => 'line_arg'
+        }
+      ],
+      'cmdname' => 'chapter',
+      'contents' => [
+        {
+          'parent' => {},
+          'text' => '
+',
+          'type' => 'empty_line'
+        },
+        {
+          'contents' => [
+            {
+              'parent' => {},
+              'text' => 'In chapter
+'
+            }
+          ],
+          'parent' => {},
+          'type' => 'paragraph'
+        }
+      ],
+      'extra' => {
+        'spaces_before_argument' => ' '
+      },
+      'level' => 1,
+      'line_nr' => {
+        'file_name' => '',
+        'line_nr' => 12,
+        'macro' => ''
+      },
+      'number' => 1,
+      'parent' => {}
+    }
+  ],
+  'type' => 'document_root'
+};
+$result_trees{'titlepage_no_title'}{'contents'}[0]{'contents'}[0]{'args'}[0]{'contents'}[0]{'parent'}
 = $result_trees{'titlepage_no_title'}{'contents'}[0]{'contents'}[0]{'args'}[0];
+$result_trees{'titlepage_no_title'}{'contents'}[0]{'contents'}[0]{'args'}[0]{'parent'}
 = $result_trees{'titlepage_no_title'}{'contents'}[0]{'contents'}[0];
+$result_trees{'titlepage_no_title'}{'contents'}[0]{'contents'}[0]{'parent'} = 
$result_trees{'titlepage_no_title'}{'contents'}[0];
+$result_trees{'titlepage_no_title'}{'contents'}[0]{'contents'}[1]{'contents'}[0]{'extra'}{'command'}
 = $result_trees{'titlepage_no_title'}{'contents'}[0]{'contents'}[1];
+$result_trees{'titlepage_no_title'}{'contents'}[0]{'contents'}[1]{'contents'}[0]{'parent'}
 = $result_trees{'titlepage_no_title'}{'contents'}[0]{'contents'}[1];
+$result_trees{'titlepage_no_title'}{'contents'}[0]{'contents'}[1]{'contents'}[1]{'args'}[0]{'contents'}[0]{'parent'}
 = 
$result_trees{'titlepage_no_title'}{'contents'}[0]{'contents'}[1]{'contents'}[1]{'args'}[0];
+$result_trees{'titlepage_no_title'}{'contents'}[0]{'contents'}[1]{'contents'}[1]{'args'}[0]{'parent'}
 = 
$result_trees{'titlepage_no_title'}{'contents'}[0]{'contents'}[1]{'contents'}[1];
+$result_trees{'titlepage_no_title'}{'contents'}[0]{'contents'}[1]{'contents'}[1]{'parent'}
 = $result_trees{'titlepage_no_title'}{'contents'}[0]{'contents'}[1];
+$result_trees{'titlepage_no_title'}{'contents'}[0]{'contents'}[1]{'contents'}[2]{'parent'}
 = $result_trees{'titlepage_no_title'}{'contents'}[0]{'contents'}[1];
+$result_trees{'titlepage_no_title'}{'contents'}[0]{'contents'}[1]{'contents'}[3]{'parent'}
 = $result_trees{'titlepage_no_title'}{'contents'}[0]{'contents'}[1];
+$result_trees{'titlepage_no_title'}{'contents'}[0]{'contents'}[1]{'contents'}[4]{'args'}[0]{'contents'}[0]{'parent'}
 = 
$result_trees{'titlepage_no_title'}{'contents'}[0]{'contents'}[1]{'contents'}[4]{'args'}[0];
+$result_trees{'titlepage_no_title'}{'contents'}[0]{'contents'}[1]{'contents'}[4]{'args'}[0]{'parent'}
 = 
$result_trees{'titlepage_no_title'}{'contents'}[0]{'contents'}[1]{'contents'}[4];
+$result_trees{'titlepage_no_title'}{'contents'}[0]{'contents'}[1]{'contents'}[4]{'extra'}{'titlepage'}
 = $result_trees{'titlepage_no_title'}{'contents'}[0]{'contents'}[1];
+$result_trees{'titlepage_no_title'}{'contents'}[0]{'contents'}[1]{'contents'}[4]{'parent'}
 = $result_trees{'titlepage_no_title'}{'contents'}[0]{'contents'}[1];
+$result_trees{'titlepage_no_title'}{'contents'}[0]{'contents'}[1]{'contents'}[5]{'args'}[0]{'contents'}[0]{'parent'}
 = 
$result_trees{'titlepage_no_title'}{'contents'}[0]{'contents'}[1]{'contents'}[5]{'args'}[0];
+$result_trees{'titlepage_no_title'}{'contents'}[0]{'contents'}[1]{'contents'}[5]{'args'}[0]{'parent'}
 = 
$result_trees{'titlepage_no_title'}{'contents'}[0]{'contents'}[1]{'contents'}[5];
+$result_trees{'titlepage_no_title'}{'contents'}[0]{'contents'}[1]{'contents'}[5]{'parent'}
 = $result_trees{'titlepage_no_title'}{'contents'}[0]{'contents'}[1];
+$result_trees{'titlepage_no_title'}{'contents'}[0]{'contents'}[1]{'extra'}{'end_command'}
 = 
$result_trees{'titlepage_no_title'}{'contents'}[0]{'contents'}[1]{'contents'}[5];
+$result_trees{'titlepage_no_title'}{'contents'}[0]{'contents'}[1]{'parent'} = 
$result_trees{'titlepage_no_title'}{'contents'}[0];
+$result_trees{'titlepage_no_title'}{'contents'}[0]{'contents'}[2]{'parent'} = 
$result_trees{'titlepage_no_title'}{'contents'}[0];
+$result_trees{'titlepage_no_title'}{'contents'}[0]{'parent'} = 
$result_trees{'titlepage_no_title'};
+$result_trees{'titlepage_no_title'}{'contents'}[1]{'args'}[0]{'contents'}[0]{'parent'}
 = $result_trees{'titlepage_no_title'}{'contents'}[1]{'args'}[0];
+$result_trees{'titlepage_no_title'}{'contents'}[1]{'args'}[0]{'parent'} = 
$result_trees{'titlepage_no_title'}{'contents'}[1];
+$result_trees{'titlepage_no_title'}{'contents'}[1]{'extra'}{'node_content'}[0] 
= $result_trees{'titlepage_no_title'}{'contents'}[1]{'args'}[0]{'contents'}[0];
+$result_trees{'titlepage_no_title'}{'contents'}[1]{'extra'}{'nodes_manuals'}[0]{'node_content'}[0]
 = $result_trees{'titlepage_no_title'}{'contents'}[1]{'args'}[0]{'contents'}[0];
+$result_trees{'titlepage_no_title'}{'contents'}[1]{'parent'} = 
$result_trees{'titlepage_no_title'};
+$result_trees{'titlepage_no_title'}{'contents'}[2]{'args'}[0]{'contents'}[0]{'parent'}
 = $result_trees{'titlepage_no_title'}{'contents'}[2]{'args'}[0];
+$result_trees{'titlepage_no_title'}{'contents'}[2]{'args'}[0]{'parent'} = 
$result_trees{'titlepage_no_title'}{'contents'}[2];
+$result_trees{'titlepage_no_title'}{'contents'}[2]{'contents'}[0]{'parent'} = 
$result_trees{'titlepage_no_title'}{'contents'}[2];
+$result_trees{'titlepage_no_title'}{'contents'}[2]{'parent'} = 
$result_trees{'titlepage_no_title'};
+$result_trees{'titlepage_no_title'}{'contents'}[3]{'args'}[0]{'contents'}[0]{'parent'}
 = $result_trees{'titlepage_no_title'}{'contents'}[3]{'args'}[0];
+$result_trees{'titlepage_no_title'}{'contents'}[3]{'args'}[0]{'parent'} = 
$result_trees{'titlepage_no_title'}{'contents'}[3];
+$result_trees{'titlepage_no_title'}{'contents'}[3]{'extra'}{'node_content'}[0] 
= $result_trees{'titlepage_no_title'}{'contents'}[3]{'args'}[0]{'contents'}[0];
+$result_trees{'titlepage_no_title'}{'contents'}[3]{'extra'}{'nodes_manuals'}[0]{'node_content'}[0]
 = $result_trees{'titlepage_no_title'}{'contents'}[3]{'args'}[0]{'contents'}[0];
+$result_trees{'titlepage_no_title'}{'contents'}[3]{'parent'} = 
$result_trees{'titlepage_no_title'};
+$result_trees{'titlepage_no_title'}{'contents'}[4]{'args'}[0]{'contents'}[0]{'parent'}
 = $result_trees{'titlepage_no_title'}{'contents'}[4]{'args'}[0];
+$result_trees{'titlepage_no_title'}{'contents'}[4]{'args'}[0]{'parent'} = 
$result_trees{'titlepage_no_title'}{'contents'}[4];
+$result_trees{'titlepage_no_title'}{'contents'}[4]{'contents'}[0]{'parent'} = 
$result_trees{'titlepage_no_title'}{'contents'}[4];
+$result_trees{'titlepage_no_title'}{'contents'}[4]{'contents'}[1]{'contents'}[0]{'parent'}
 = $result_trees{'titlepage_no_title'}{'contents'}[4]{'contents'}[1];
+$result_trees{'titlepage_no_title'}{'contents'}[4]{'contents'}[1]{'parent'} = 
$result_trees{'titlepage_no_title'}{'contents'}[4];
+$result_trees{'titlepage_no_title'}{'contents'}[4]{'parent'} = 
$result_trees{'titlepage_no_title'};
+
+$result_texis{'titlepage_no_title'} = '@setfilename titlepage_no_title.info
+@titlepage
+@titlefont{Some manual tested}
+
+@author Some Author
+@end titlepage
+
+@node Top
+@top section top
+
+@node chapter
+@chapter Chapter
+
+In chapter
+';
+
+
+$result_texts{'titlepage_no_title'} = '
+section top
+***********
+
+1 Chapter
+*********
+
+In chapter
+';
+
+$result_sectioning{'titlepage_no_title'} = {
+  'level' => -1,
+  'section_childs' => [
+    {
+      'cmdname' => 'top',
+      'extra' => {
+        'associated_node' => {
+          'cmdname' => 'node',
+          'extra' => {
+            'normalized' => 'Top',
+            'spaces_before_argument' => ' '
+          }
+        },
+        'spaces_before_argument' => ' '
+      },
+      'level' => 0,
+      'section_childs' => [
+        {
+          'cmdname' => 'chapter',
+          'extra' => {
+            'associated_node' => {
+              'cmdname' => 'node',
+              'extra' => {
+                'normalized' => 'chapter',
+                'spaces_before_argument' => ' '
+              }
+            },
+            'spaces_before_argument' => ' '
+          },
+          'level' => 1,
+          'number' => 1,
+          'section_up' => {},
+          'toplevel_prev' => {},
+          'toplevel_up' => {}
+        }
+      ],
+      'section_up' => {}
+    }
+  ]
+};
+$result_sectioning{'titlepage_no_title'}{'section_childs'}[0]{'section_childs'}[0]{'section_up'}
 = $result_sectioning{'titlepage_no_title'}{'section_childs'}[0];
+$result_sectioning{'titlepage_no_title'}{'section_childs'}[0]{'section_childs'}[0]{'toplevel_prev'}
 = $result_sectioning{'titlepage_no_title'}{'section_childs'}[0];
+$result_sectioning{'titlepage_no_title'}{'section_childs'}[0]{'section_childs'}[0]{'toplevel_up'}
 = $result_sectioning{'titlepage_no_title'}{'section_childs'}[0];
+$result_sectioning{'titlepage_no_title'}{'section_childs'}[0]{'section_up'} = 
$result_sectioning{'titlepage_no_title'};
+
+$result_nodes{'titlepage_no_title'} = {
+  'cmdname' => 'node',
+  'extra' => {
+    'associated_section' => {
+      'cmdname' => 'top',
+      'extra' => {
+        'spaces_before_argument' => ' '
+      },
+      'level' => 0
+    },
+    'normalized' => 'Top',
+    'spaces_before_argument' => ' '
+  },
+  'node_next' => {
+    'cmdname' => 'node',
+    'extra' => {
+      'associated_section' => {
+        'cmdname' => 'chapter',
+        'extra' => {
+          'spaces_before_argument' => ' '
+        },
+        'level' => 1,
+        'number' => 1
+      },
+      'normalized' => 'chapter',
+      'spaces_before_argument' => ' '
+    },
+    'node_prev' => {},
+    'node_up' => {}
+  }
+};
+$result_nodes{'titlepage_no_title'}{'node_next'}{'node_prev'} = 
$result_nodes{'titlepage_no_title'};
+$result_nodes{'titlepage_no_title'}{'node_next'}{'node_up'} = 
$result_nodes{'titlepage_no_title'};
+
+$result_menus{'titlepage_no_title'} = {
+  'cmdname' => 'node',
+  'extra' => {
+    'normalized' => 'Top',
+    'spaces_before_argument' => ' '
+  }
+};
+
+$result_errors{'titlepage_no_title'} = [];
+
+
+$result_floats{'titlepage_no_title'} = {};
+
+
+
+$result_converted{'latex'}->{'titlepage_no_title'} = '\\begin{titlepage}
+\\begingroup
+\\newskip\\titlepagetopglue \\titlepagetopglue = 1.5in
+\\newskip\\titlepagebottomglue \\titlepagebottomglue = 2pc
+\\setlength{\\parindent}{0pt}
+% Leave some space at the very top of the page.
+    \\vglue\\titlepagetopglue
+{\\huge \\bfseries Some manual tested}
+
+\\vskip 0pt plus 1filll
+\\leftline{\\Large \\bfseries Some Author}%
+\\endgroup
+\\end{titlepage}
+\\GNUTexinfosetsingleheader{}%
+\\mainmatter
+
+\\chapter{Chapter}
+\\label{anchor:chapter}%
+
+In chapter
+';
+
+1;
diff --git 
a/tp/t/results/latex_tests/titlepage_and_setchapternewpage_on/res_latex/titlepage_and_setchapternewpage_on.tex
 b/tp/t/results/latex_tests/titlepage_no_title/res_latex/titlepage_no_title.tex
similarity index 75%
copy from 
tp/t/results/latex_tests/titlepage_and_setchapternewpage_on/res_latex/titlepage_and_setchapternewpage_on.tex
copy to 
tp/t/results/latex_tests/titlepage_no_title/res_latex/titlepage_no_title.tex
index 2aeb767..855c40b 100644
--- 
a/tp/t/results/latex_tests/titlepage_and_setchapternewpage_on/res_latex/titlepage_and_setchapternewpage_on.tex
+++ 
b/tp/t/results/latex_tests/titlepage_no_title/res_latex/titlepage_no_title.tex
@@ -13,6 +13,11 @@
 \usepackage[hidelinks]{hyperref}
 \usepackage[utf8]{inputenc}
 
+% redefine the \mainmatter command such that it does not clear the page
+\makeatletter
+\renewcommand\mainmatter{\clearpage\@mainmattertrue\pagenumbering{arabic}}
+\makeatother
+
 % command that does nothing used to help with substitutions in commands
 \newcommand{\GNUTexinfoplaceholder}[1]{}
 
@@ -58,11 +63,24 @@
 \begin{document}
 
 \frontmatter
-
 \begin{titlepage}
-in titlepage
+\begingroup
+\newskip\titlepagetopglue \titlepagetopglue = 1.5in
+\newskip\titlepagebottomglue \titlepagebottomglue = 2pc
+\setlength{\parindent}{0pt}
+% Leave some space at the very top of the page.
+    \vglue\titlepagetopglue
+{\huge \bfseries Some manual tested}
+
+\vskip 0pt plus 1filll
+\leftline{\Large \bfseries Some Author}%
+\endgroup
 \end{titlepage}
 \GNUTexinfosetsingleheader{}%
 \mainmatter
 
+\chapter{Chapter}
+\label{anchor:chapter}%
+
+In chapter
 \end{document}
diff --git a/tp/t/results/latex_tests/titlepage_with_commands_classical.pl 
b/tp/t/results/latex_tests/titlepage_with_commands_classical.pl
new file mode 100644
index 0000000..1d3a9d0
--- /dev/null
+++ b/tp/t/results/latex_tests/titlepage_with_commands_classical.pl
@@ -0,0 +1,1057 @@
+use vars qw(%result_texis %result_texts %result_trees %result_errors 
+   %result_indices %result_sectioning %result_nodes %result_menus
+   %result_floats %result_converted %result_converted_errors 
+   %result_elements %result_directions_text);
+
+use utf8;
+
+$result_trees{'titlepage_with_commands_classical'} = {
+  'contents' => [
+    {
+      'contents' => [
+        {
+          'args' => [
+            {
+              'contents' => [
+                {
+                  'parent' => {},
+                  'text' => 'titlepage_with_commands_classical.info'
+                }
+              ],
+              'extra' => {
+                'spaces_after_argument' => '
+'
+              },
+              'parent' => {},
+              'type' => 'line_arg'
+            }
+          ],
+          'cmdname' => 'setfilename',
+          'extra' => {
+            'spaces_before_argument' => ' ',
+            'text_arg' => 'titlepage_with_commands_classical.info'
+          },
+          'line_nr' => {
+            'file_name' => '',
+            'line_nr' => 1,
+            'macro' => ''
+          },
+          'parent' => {}
+        },
+        {
+          'parent' => {},
+          'text' => '
+',
+          'type' => 'empty_line'
+        },
+        {
+          'cmdname' => 'copying',
+          'contents' => [
+            {
+              'extra' => {
+                'command' => {}
+              },
+              'parent' => {},
+              'text' => '
+',
+              'type' => 'empty_line_after_command'
+            },
+            {
+              'contents' => [
+                {
+                  'parent' => {},
+                  'text' => 'in Copying
+'
+                }
+              ],
+              'parent' => {},
+              'type' => 'paragraph'
+            },
+            {
+              'args' => [
+                {
+                  'contents' => [
+                    {
+                      'parent' => {},
+                      'text' => 'copying'
+                    }
+                  ],
+                  'extra' => {
+                    'spaces_after_argument' => '
+'
+                  },
+                  'parent' => {},
+                  'type' => 'line_arg'
+                }
+              ],
+              'cmdname' => 'end',
+              'extra' => {
+                'command_argument' => 'copying',
+                'spaces_before_argument' => ' ',
+                'text_arg' => 'copying'
+              },
+              'line_nr' => {
+                'file_name' => '',
+                'line_nr' => 5,
+                'macro' => ''
+              },
+              'parent' => {}
+            }
+          ],
+          'extra' => {
+            'end_command' => {}
+          },
+          'line_nr' => {
+            'file_name' => '',
+            'line_nr' => 3,
+            'macro' => ''
+          },
+          'parent' => {}
+        },
+        {
+          'parent' => {},
+          'text' => '
+',
+          'type' => 'empty_line'
+        },
+        {
+          'cmdname' => 'titlepage',
+          'contents' => [
+            {
+              'extra' => {
+                'command' => {}
+              },
+              'parent' => {},
+              'text' => '
+',
+              'type' => 'empty_line_after_command'
+            },
+            {
+              'args' => [
+                {
+                  'contents' => [
+                    {
+                      'parent' => {},
+                      'text' => 'Some manual '
+                    },
+                    {
+                      'cmdname' => '*',
+                      'parent' => {}
+                    },
+                    {
+                      'parent' => {},
+                      'text' => ' tested'
+                    }
+                  ],
+                  'extra' => {
+                    'spaces_after_argument' => '
+'
+                  },
+                  'parent' => {},
+                  'type' => 'line_arg'
+                }
+              ],
+              'cmdname' => 'title',
+              'extra' => {
+                'spaces_before_argument' => ' '
+              },
+              'line_nr' => {
+                'file_name' => '',
+                'line_nr' => 8,
+                'macro' => ''
+              },
+              'parent' => {}
+            },
+            {
+              'args' => [
+                {
+                  'contents' => [
+                    {
+                      'parent' => {},
+                      'text' => 'Subtitle manual '
+                    },
+                    {
+                      'cmdname' => '*',
+                      'parent' => {}
+                    },
+                    {
+                      'parent' => {},
+                      'text' => ' tested'
+                    }
+                  ],
+                  'extra' => {
+                    'spaces_after_argument' => '
+'
+                  },
+                  'parent' => {},
+                  'type' => 'line_arg'
+                }
+              ],
+              'cmdname' => 'subtitle',
+              'extra' => {
+                'spaces_before_argument' => ' '
+              },
+              'line_nr' => {
+                'file_name' => '',
+                'line_nr' => 9,
+                'macro' => ''
+              },
+              'parent' => {}
+            },
+            {
+              'args' => [
+                {
+                  'contents' => [
+                    {
+                      'parent' => {},
+                      'text' => 'Subtitle 2 manual '
+                    },
+                    {
+                      'cmdname' => '*',
+                      'parent' => {}
+                    },
+                    {
+                      'parent' => {},
+                      'text' => ' tested'
+                    }
+                  ],
+                  'extra' => {
+                    'spaces_after_argument' => '
+'
+                  },
+                  'parent' => {},
+                  'type' => 'line_arg'
+                }
+              ],
+              'cmdname' => 'subtitle',
+              'extra' => {
+                'spaces_before_argument' => ' '
+              },
+              'line_nr' => {
+                'file_name' => '',
+                'line_nr' => 10,
+                'macro' => ''
+              },
+              'parent' => {}
+            },
+            {
+              'args' => [
+                {
+                  'contents' => [
+                    {
+                      'parent' => {},
+                      'text' => 'First '
+                    },
+                    {
+                      'cmdname' => '*',
+                      'parent' => {}
+                    },
+                    {
+                      'parent' => {},
+                      'text' => ' author'
+                    }
+                  ],
+                  'extra' => {
+                    'spaces_after_argument' => '
+'
+                  },
+                  'parent' => {},
+                  'type' => 'line_arg'
+                }
+              ],
+              'cmdname' => 'author',
+              'extra' => {
+                'spaces_before_argument' => ' ',
+                'titlepage' => {}
+              },
+              'line_nr' => {
+                'file_name' => '',
+                'line_nr' => 11,
+                'macro' => ''
+              },
+              'parent' => {}
+            },
+            {
+              'args' => [
+                {
+                  'contents' => [
+                    {
+                      'parent' => {},
+                      'text' => 'Second '
+                    },
+                    {
+                      'cmdname' => '*',
+                      'parent' => {}
+                    },
+                    {
+                      'parent' => {},
+                      'text' => ' author'
+                    },
+                    {
+                      'args' => [
+                        {
+                          'contents' => [
+                            {
+                              'contents' => [
+                                {
+                                  'parent' => {},
+                                  'text' => 'Something
+'
+                                },
+                                {
+                                  'parent' => {},
+                                  'text' => 'about the address of author.
+'
+                                }
+                              ],
+                              'parent' => {},
+                              'type' => 'paragraph'
+                            },
+                            {
+                              'parent' => {},
+                              'text' => '
+',
+                              'type' => 'empty_line'
+                            },
+                            {
+                              'contents' => [
+                                {
+                                  'parent' => {},
+                                  'text' => 'Something about the life. 
+'
+                                }
+                              ],
+                              'parent' => {},
+                              'type' => 'paragraph'
+                            },
+                            {
+                              'cmdname' => 'displaymath',
+                              'contents' => [
+                                {
+                                  'extra' => {
+                                    'command' => {}
+                                  },
+                                  'parent' => {},
+                                  'text' => '
+',
+                                  'type' => 'empty_line_after_command'
+                                },
+                                {
+                                  'parent' => {},
+                                  'text' => '\\frac'
+                                },
+                                {
+                                  'contents' => [
+                                    {
+                                      'parent' => {},
+                                      'text' => 'a'
+                                    }
+                                  ],
+                                  'line_nr' => {
+                                    'file_name' => '',
+                                    'line_nr' => 17,
+                                    'macro' => ''
+                                  },
+                                  'parent' => {},
+                                  'type' => 'bracketed'
+                                },
+                                {
+                                  'contents' => [
+                                    {
+                                      'parent' => {},
+                                      'text' => 'b'
+                                    }
+                                  ],
+                                  'line_nr' => {
+                                    'file_name' => '',
+                                    'line_nr' => 17,
+                                    'macro' => ''
+                                  },
+                                  'parent' => {},
+                                  'type' => 'bracketed'
+                                },
+                                {
+                                  'parent' => {},
+                                  'text' => '
+'
+                                },
+                                {
+                                  'args' => [
+                                    {
+                                      'contents' => [
+                                        {
+                                          'parent' => {},
+                                          'text' => 'displaymath'
+                                        }
+                                      ],
+                                      'extra' => {
+                                        'spaces_after_argument' => '
+'
+                                      },
+                                      'parent' => {},
+                                      'type' => 'line_arg'
+                                    }
+                                  ],
+                                  'cmdname' => 'end',
+                                  'extra' => {
+                                    'command_argument' => 'displaymath',
+                                    'spaces_before_argument' => ' ',
+                                    'text_arg' => 'displaymath'
+                                  },
+                                  'line_nr' => {
+                                    'file_name' => '',
+                                    'line_nr' => 18,
+                                    'macro' => ''
+                                  },
+                                  'parent' => {}
+                                }
+                              ],
+                              'extra' => {
+                                'end_command' => {}
+                              },
+                              'line_nr' => {
+                                'file_name' => '',
+                                'line_nr' => 16,
+                                'macro' => ''
+                              },
+                              'parent' => {}
+                            }
+                          ],
+                          'parent' => {},
+                          'type' => 'brace_command_context'
+                        }
+                      ],
+                      'cmdname' => 'footnote',
+                      'contents' => [],
+                      'line_nr' => {
+                        'file_name' => '',
+                        'line_nr' => 12,
+                        'macro' => ''
+                      },
+                      'parent' => {}
+                    }
+                  ],
+                  'extra' => {
+                    'spaces_after_argument' => '
+'
+                  },
+                  'parent' => {},
+                  'type' => 'line_arg'
+                }
+              ],
+              'cmdname' => 'author',
+              'extra' => {
+                'spaces_before_argument' => ' ',
+                'titlepage' => {}
+              },
+              'line_nr' => {
+                'file_name' => '',
+                'line_nr' => 12,
+                'macro' => ''
+              },
+              'parent' => {}
+            },
+            {
+              'args' => [
+                {
+                  'parent' => {},
+                  'text' => '
+',
+                  'type' => 'misc_arg'
+                }
+              ],
+              'cmdname' => 'page',
+              'parent' => {}
+            },
+            {
+              'args' => [
+                {
+                  'parent' => {},
+                  'text' => ' The following two commands start the copyright 
page.
+',
+                  'type' => 'misc_arg'
+                }
+              ],
+              'cmdname' => 'c',
+              'extra' => {
+                'misc_args' => [
+                  ' The following two commands start the copyright page.
+'
+                ]
+              },
+              'parent' => {}
+            },
+            {
+              'args' => [
+                {
+                  'parent' => {},
+                  'text' => '
+',
+                  'type' => 'misc_arg'
+                }
+              ],
+              'cmdname' => 'page',
+              'parent' => {}
+            },
+            {
+              'args' => [
+                {
+                  'parent' => {},
+                  'text' => ' 0pt plus 1filll
+',
+                  'type' => 'misc_arg'
+                }
+              ],
+              'cmdname' => 'vskip',
+              'extra' => {
+                'misc_args' => [
+                  ' 0pt plus 1filll
+'
+                ]
+              },
+              'parent' => {}
+            },
+            {
+              'args' => [
+                {
+                  'parent' => {},
+                  'text' => '
+',
+                  'type' => 'misc_arg'
+                }
+              ],
+              'cmdname' => 'insertcopying',
+              'line_nr' => {
+                'file_name' => '',
+                'line_nr' => 24,
+                'macro' => ''
+              },
+              'parent' => {}
+            },
+            {
+              'args' => [
+                {
+                  'contents' => [
+                    {
+                      'parent' => {},
+                      'text' => 'titlepage'
+                    }
+                  ],
+                  'extra' => {
+                    'spaces_after_argument' => '
+'
+                  },
+                  'parent' => {},
+                  'type' => 'line_arg'
+                }
+              ],
+              'cmdname' => 'end',
+              'extra' => {
+                'command_argument' => 'titlepage',
+                'spaces_before_argument' => ' ',
+                'text_arg' => 'titlepage'
+              },
+              'line_nr' => {
+                'file_name' => '',
+                'line_nr' => 25,
+                'macro' => ''
+              },
+              'parent' => {}
+            }
+          ],
+          'extra' => {
+            'end_command' => {}
+          },
+          'line_nr' => {
+            'file_name' => '',
+            'line_nr' => 7,
+            'macro' => ''
+          },
+          'parent' => {}
+        },
+        {
+          'parent' => {},
+          'text' => '
+',
+          'type' => 'empty_line'
+        }
+      ],
+      'parent' => {},
+      'type' => 'text_root'
+    },
+    {
+      'args' => [
+        {
+          'contents' => [
+            {
+              'parent' => {},
+              'text' => 'Top'
+            }
+          ],
+          'extra' => {
+            'spaces_after_argument' => '
+'
+          },
+          'parent' => {},
+          'type' => 'line_arg'
+        }
+      ],
+      'cmdname' => 'node',
+      'contents' => [],
+      'extra' => {
+        'node_content' => [
+          {}
+        ],
+        'nodes_manuals' => [
+          {
+            'node_content' => [
+              {}
+            ],
+            'normalized' => 'Top'
+          }
+        ],
+        'normalized' => 'Top',
+        'spaces_before_argument' => ' '
+      },
+      'line_nr' => {
+        'file_name' => '',
+        'line_nr' => 27,
+        'macro' => ''
+      },
+      'parent' => {}
+    },
+    {
+      'args' => [
+        {
+          'contents' => [
+            {
+              'parent' => {},
+              'text' => 'section top'
+            }
+          ],
+          'extra' => {
+            'spaces_after_argument' => '
+'
+          },
+          'parent' => {},
+          'type' => 'line_arg'
+        }
+      ],
+      'cmdname' => 'top',
+      'contents' => [
+        {
+          'parent' => {},
+          'text' => '
+',
+          'type' => 'empty_line'
+        }
+      ],
+      'extra' => {
+        'spaces_before_argument' => ' '
+      },
+      'level' => 0,
+      'line_nr' => {
+        'file_name' => '',
+        'line_nr' => 28,
+        'macro' => ''
+      },
+      'parent' => {}
+    },
+    {
+      'args' => [
+        {
+          'contents' => [
+            {
+              'parent' => {},
+              'text' => 'chapter'
+            }
+          ],
+          'extra' => {
+            'spaces_after_argument' => '
+'
+          },
+          'parent' => {},
+          'type' => 'line_arg'
+        }
+      ],
+      'cmdname' => 'node',
+      'contents' => [],
+      'extra' => {
+        'node_content' => [
+          {}
+        ],
+        'nodes_manuals' => [
+          {
+            'node_content' => [
+              {}
+            ],
+            'normalized' => 'chapter'
+          }
+        ],
+        'normalized' => 'chapter',
+        'spaces_before_argument' => ' '
+      },
+      'line_nr' => {
+        'file_name' => '',
+        'line_nr' => 30,
+        'macro' => ''
+      },
+      'parent' => {}
+    },
+    {
+      'args' => [
+        {
+          'contents' => [
+            {
+              'parent' => {},
+              'text' => 'Chapter'
+            }
+          ],
+          'extra' => {
+            'spaces_after_argument' => '
+'
+          },
+          'parent' => {},
+          'type' => 'line_arg'
+        }
+      ],
+      'cmdname' => 'chapter',
+      'contents' => [
+        {
+          'parent' => {},
+          'text' => '
+',
+          'type' => 'empty_line'
+        },
+        {
+          'contents' => [
+            {
+              'parent' => {},
+              'text' => 'In chapter
+'
+            }
+          ],
+          'parent' => {},
+          'type' => 'paragraph'
+        },
+        {
+          'parent' => {},
+          'text' => '
+',
+          'type' => 'empty_line'
+        }
+      ],
+      'extra' => {
+        'spaces_before_argument' => ' '
+      },
+      'level' => 1,
+      'line_nr' => {
+        'file_name' => '',
+        'line_nr' => 31,
+        'macro' => ''
+      },
+      'number' => 1,
+      'parent' => {}
+    }
+  ],
+  'type' => 'document_root'
+};
+$result_trees{'titlepage_with_commands_classical'}{'contents'}[0]{'contents'}[0]{'args'}[0]{'contents'}[0]{'parent'}
 = 
$result_trees{'titlepage_with_commands_classical'}{'contents'}[0]{'contents'}[0]{'args'}[0];
+$result_trees{'titlepage_with_commands_classical'}{'contents'}[0]{'contents'}[0]{'args'}[0]{'parent'}
 = 
$result_trees{'titlepage_with_commands_classical'}{'contents'}[0]{'contents'}[0];
+$result_trees{'titlepage_with_commands_classical'}{'contents'}[0]{'contents'}[0]{'parent'}
 = $result_trees{'titlepage_with_commands_classical'}{'contents'}[0];
+$result_trees{'titlepage_with_commands_classical'}{'contents'}[0]{'contents'}[1]{'parent'}
 = $result_trees{'titlepage_with_commands_classical'}{'contents'}[0];
+$result_trees{'titlepage_with_commands_classical'}{'contents'}[0]{'contents'}[2]{'contents'}[0]{'extra'}{'command'}
 = 
$result_trees{'titlepage_with_commands_classical'}{'contents'}[0]{'contents'}[2];
+$result_trees{'titlepage_with_commands_classical'}{'contents'}[0]{'contents'}[2]{'contents'}[0]{'parent'}
 = 
$result_trees{'titlepage_with_commands_classical'}{'contents'}[0]{'contents'}[2];
+$result_trees{'titlepage_with_commands_classical'}{'contents'}[0]{'contents'}[2]{'contents'}[1]{'contents'}[0]{'parent'}
 = 
$result_trees{'titlepage_with_commands_classical'}{'contents'}[0]{'contents'}[2]{'contents'}[1];
+$result_trees{'titlepage_with_commands_classical'}{'contents'}[0]{'contents'}[2]{'contents'}[1]{'parent'}
 = 
$result_trees{'titlepage_with_commands_classical'}{'contents'}[0]{'contents'}[2];
+$result_trees{'titlepage_with_commands_classical'}{'contents'}[0]{'contents'}[2]{'contents'}[2]{'args'}[0]{'contents'}[0]{'parent'}
 = 
$result_trees{'titlepage_with_commands_classical'}{'contents'}[0]{'contents'}[2]{'contents'}[2]{'args'}[0];
+$result_trees{'titlepage_with_commands_classical'}{'contents'}[0]{'contents'}[2]{'contents'}[2]{'args'}[0]{'parent'}
 = 
$result_trees{'titlepage_with_commands_classical'}{'contents'}[0]{'contents'}[2]{'contents'}[2];
+$result_trees{'titlepage_with_commands_classical'}{'contents'}[0]{'contents'}[2]{'contents'}[2]{'parent'}
 = 
$result_trees{'titlepage_with_commands_classical'}{'contents'}[0]{'contents'}[2];
+$result_trees{'titlepage_with_commands_classical'}{'contents'}[0]{'contents'}[2]{'extra'}{'end_command'}
 = 
$result_trees{'titlepage_with_commands_classical'}{'contents'}[0]{'contents'}[2]{'contents'}[2];
+$result_trees{'titlepage_with_commands_classical'}{'contents'}[0]{'contents'}[2]{'parent'}
 = $result_trees{'titlepage_with_commands_classical'}{'contents'}[0];
+$result_trees{'titlepage_with_commands_classical'}{'contents'}[0]{'contents'}[3]{'parent'}
 = $result_trees{'titlepage_with_commands_classical'}{'contents'}[0];
+$result_trees{'titlepage_with_commands_classical'}{'contents'}[0]{'contents'}[4]{'contents'}[0]{'extra'}{'command'}
 = 
$result_trees{'titlepage_with_commands_classical'}{'contents'}[0]{'contents'}[4];
+$result_trees{'titlepage_with_commands_classical'}{'contents'}[0]{'contents'}[4]{'contents'}[0]{'parent'}
 = 
$result_trees{'titlepage_with_commands_classical'}{'contents'}[0]{'contents'}[4];
+$result_trees{'titlepage_with_commands_classical'}{'contents'}[0]{'contents'}[4]{'contents'}[1]{'args'}[0]{'contents'}[0]{'parent'}
 = 
$result_trees{'titlepage_with_commands_classical'}{'contents'}[0]{'contents'}[4]{'contents'}[1]{'args'}[0];
+$result_trees{'titlepage_with_commands_classical'}{'contents'}[0]{'contents'}[4]{'contents'}[1]{'args'}[0]{'contents'}[1]{'parent'}
 = 
$result_trees{'titlepage_with_commands_classical'}{'contents'}[0]{'contents'}[4]{'contents'}[1]{'args'}[0];
+$result_trees{'titlepage_with_commands_classical'}{'contents'}[0]{'contents'}[4]{'contents'}[1]{'args'}[0]{'contents'}[2]{'parent'}
 = 
$result_trees{'titlepage_with_commands_classical'}{'contents'}[0]{'contents'}[4]{'contents'}[1]{'args'}[0];
+$result_trees{'titlepage_with_commands_classical'}{'contents'}[0]{'contents'}[4]{'contents'}[1]{'args'}[0]{'parent'}
 = 
$result_trees{'titlepage_with_commands_classical'}{'contents'}[0]{'contents'}[4]{'contents'}[1];
+$result_trees{'titlepage_with_commands_classical'}{'contents'}[0]{'contents'}[4]{'contents'}[1]{'parent'}
 = 
$result_trees{'titlepage_with_commands_classical'}{'contents'}[0]{'contents'}[4];
+$result_trees{'titlepage_with_commands_classical'}{'contents'}[0]{'contents'}[4]{'contents'}[2]{'args'}[0]{'contents'}[0]{'parent'}
 = 
$result_trees{'titlepage_with_commands_classical'}{'contents'}[0]{'contents'}[4]{'contents'}[2]{'args'}[0];
+$result_trees{'titlepage_with_commands_classical'}{'contents'}[0]{'contents'}[4]{'contents'}[2]{'args'}[0]{'contents'}[1]{'parent'}
 = 
$result_trees{'titlepage_with_commands_classical'}{'contents'}[0]{'contents'}[4]{'contents'}[2]{'args'}[0];
+$result_trees{'titlepage_with_commands_classical'}{'contents'}[0]{'contents'}[4]{'contents'}[2]{'args'}[0]{'contents'}[2]{'parent'}
 = 
$result_trees{'titlepage_with_commands_classical'}{'contents'}[0]{'contents'}[4]{'contents'}[2]{'args'}[0];
+$result_trees{'titlepage_with_commands_classical'}{'contents'}[0]{'contents'}[4]{'contents'}[2]{'args'}[0]{'parent'}
 = 
$result_trees{'titlepage_with_commands_classical'}{'contents'}[0]{'contents'}[4]{'contents'}[2];
+$result_trees{'titlepage_with_commands_classical'}{'contents'}[0]{'contents'}[4]{'contents'}[2]{'parent'}
 = 
$result_trees{'titlepage_with_commands_classical'}{'contents'}[0]{'contents'}[4];
+$result_trees{'titlepage_with_commands_classical'}{'contents'}[0]{'contents'}[4]{'contents'}[3]{'args'}[0]{'contents'}[0]{'parent'}
 = 
$result_trees{'titlepage_with_commands_classical'}{'contents'}[0]{'contents'}[4]{'contents'}[3]{'args'}[0];
+$result_trees{'titlepage_with_commands_classical'}{'contents'}[0]{'contents'}[4]{'contents'}[3]{'args'}[0]{'contents'}[1]{'parent'}
 = 
$result_trees{'titlepage_with_commands_classical'}{'contents'}[0]{'contents'}[4]{'contents'}[3]{'args'}[0];
+$result_trees{'titlepage_with_commands_classical'}{'contents'}[0]{'contents'}[4]{'contents'}[3]{'args'}[0]{'contents'}[2]{'parent'}
 = 
$result_trees{'titlepage_with_commands_classical'}{'contents'}[0]{'contents'}[4]{'contents'}[3]{'args'}[0];
+$result_trees{'titlepage_with_commands_classical'}{'contents'}[0]{'contents'}[4]{'contents'}[3]{'args'}[0]{'parent'}
 = 
$result_trees{'titlepage_with_commands_classical'}{'contents'}[0]{'contents'}[4]{'contents'}[3];
+$result_trees{'titlepage_with_commands_classical'}{'contents'}[0]{'contents'}[4]{'contents'}[3]{'parent'}
 = 
$result_trees{'titlepage_with_commands_classical'}{'contents'}[0]{'contents'}[4];
+$result_trees{'titlepage_with_commands_classical'}{'contents'}[0]{'contents'}[4]{'contents'}[4]{'args'}[0]{'contents'}[0]{'parent'}
 = 
$result_trees{'titlepage_with_commands_classical'}{'contents'}[0]{'contents'}[4]{'contents'}[4]{'args'}[0];
+$result_trees{'titlepage_with_commands_classical'}{'contents'}[0]{'contents'}[4]{'contents'}[4]{'args'}[0]{'contents'}[1]{'parent'}
 = 
$result_trees{'titlepage_with_commands_classical'}{'contents'}[0]{'contents'}[4]{'contents'}[4]{'args'}[0];
+$result_trees{'titlepage_with_commands_classical'}{'contents'}[0]{'contents'}[4]{'contents'}[4]{'args'}[0]{'contents'}[2]{'parent'}
 = 
$result_trees{'titlepage_with_commands_classical'}{'contents'}[0]{'contents'}[4]{'contents'}[4]{'args'}[0];
+$result_trees{'titlepage_with_commands_classical'}{'contents'}[0]{'contents'}[4]{'contents'}[4]{'args'}[0]{'parent'}
 = 
$result_trees{'titlepage_with_commands_classical'}{'contents'}[0]{'contents'}[4]{'contents'}[4];
+$result_trees{'titlepage_with_commands_classical'}{'contents'}[0]{'contents'}[4]{'contents'}[4]{'extra'}{'titlepage'}
 = 
$result_trees{'titlepage_with_commands_classical'}{'contents'}[0]{'contents'}[4];
+$result_trees{'titlepage_with_commands_classical'}{'contents'}[0]{'contents'}[4]{'contents'}[4]{'parent'}
 = 
$result_trees{'titlepage_with_commands_classical'}{'contents'}[0]{'contents'}[4];
+$result_trees{'titlepage_with_commands_classical'}{'contents'}[0]{'contents'}[4]{'contents'}[5]{'args'}[0]{'contents'}[0]{'parent'}
 = 
$result_trees{'titlepage_with_commands_classical'}{'contents'}[0]{'contents'}[4]{'contents'}[5]{'args'}[0];
+$result_trees{'titlepage_with_commands_classical'}{'contents'}[0]{'contents'}[4]{'contents'}[5]{'args'}[0]{'contents'}[1]{'parent'}
 = 
$result_trees{'titlepage_with_commands_classical'}{'contents'}[0]{'contents'}[4]{'contents'}[5]{'args'}[0];
+$result_trees{'titlepage_with_commands_classical'}{'contents'}[0]{'contents'}[4]{'contents'}[5]{'args'}[0]{'contents'}[2]{'parent'}
 = 
$result_trees{'titlepage_with_commands_classical'}{'contents'}[0]{'contents'}[4]{'contents'}[5]{'args'}[0];
+$result_trees{'titlepage_with_commands_classical'}{'contents'}[0]{'contents'}[4]{'contents'}[5]{'args'}[0]{'contents'}[3]{'args'}[0]{'contents'}[0]{'contents'}[0]{'parent'}
 = 
$result_trees{'titlepage_with_commands_classical'}{'contents'}[0]{'contents'}[4]{'contents'}[5]{'args'}[0]{'contents'}[3]{'args'}[0]{'contents'}[0];
+$result_trees{'titlepage_with_commands_classical'}{'contents'}[0]{'contents'}[4]{'contents'}[5]{'args'}[0]{'contents'}[3]{'args'}[0]{'contents'}[0]{'contents'}[1]{'parent'}
 = 
$result_trees{'titlepage_with_commands_classical'}{'contents'}[0]{'contents'}[4]{'contents'}[5]{'args'}[0]{'contents'}[3]{'args'}[0]{'contents'}[0];
+$result_trees{'titlepage_with_commands_classical'}{'contents'}[0]{'contents'}[4]{'contents'}[5]{'args'}[0]{'contents'}[3]{'args'}[0]{'contents'}[0]{'parent'}
 = 
$result_trees{'titlepage_with_commands_classical'}{'contents'}[0]{'contents'}[4]{'contents'}[5]{'args'}[0]{'contents'}[3]{'args'}[0];
+$result_trees{'titlepage_with_commands_classical'}{'contents'}[0]{'contents'}[4]{'contents'}[5]{'args'}[0]{'contents'}[3]{'args'}[0]{'contents'}[1]{'parent'}
 = 
$result_trees{'titlepage_with_commands_classical'}{'contents'}[0]{'contents'}[4]{'contents'}[5]{'args'}[0]{'contents'}[3]{'args'}[0];
+$result_trees{'titlepage_with_commands_classical'}{'contents'}[0]{'contents'}[4]{'contents'}[5]{'args'}[0]{'contents'}[3]{'args'}[0]{'contents'}[2]{'contents'}[0]{'parent'}
 = 
$result_trees{'titlepage_with_commands_classical'}{'contents'}[0]{'contents'}[4]{'contents'}[5]{'args'}[0]{'contents'}[3]{'args'}[0]{'contents'}[2];
+$result_trees{'titlepage_with_commands_classical'}{'contents'}[0]{'contents'}[4]{'contents'}[5]{'args'}[0]{'contents'}[3]{'args'}[0]{'contents'}[2]{'parent'}
 = 
$result_trees{'titlepage_with_commands_classical'}{'contents'}[0]{'contents'}[4]{'contents'}[5]{'args'}[0]{'contents'}[3]{'args'}[0];
+$result_trees{'titlepage_with_commands_classical'}{'contents'}[0]{'contents'}[4]{'contents'}[5]{'args'}[0]{'contents'}[3]{'args'}[0]{'contents'}[3]{'contents'}[0]{'extra'}{'command'}
 = 
$result_trees{'titlepage_with_commands_classical'}{'contents'}[0]{'contents'}[4]{'contents'}[5]{'args'}[0]{'contents'}[3]{'args'}[0]{'contents'}[3];
+$result_trees{'titlepage_with_commands_classical'}{'contents'}[0]{'contents'}[4]{'contents'}[5]{'args'}[0]{'contents'}[3]{'args'}[0]{'contents'}[3]{'contents'}[0]{'parent'}
 = 
$result_trees{'titlepage_with_commands_classical'}{'contents'}[0]{'contents'}[4]{'contents'}[5]{'args'}[0]{'contents'}[3]{'args'}[0]{'contents'}[3];
+$result_trees{'titlepage_with_commands_classical'}{'contents'}[0]{'contents'}[4]{'contents'}[5]{'args'}[0]{'contents'}[3]{'args'}[0]{'contents'}[3]{'contents'}[1]{'parent'}
 = 
$result_trees{'titlepage_with_commands_classical'}{'contents'}[0]{'contents'}[4]{'contents'}[5]{'args'}[0]{'contents'}[3]{'args'}[0]{'contents'}[3];
+$result_trees{'titlepage_with_commands_classical'}{'contents'}[0]{'contents'}[4]{'contents'}[5]{'args'}[0]{'contents'}[3]{'args'}[0]{'contents'}[3]{'contents'}[2]{'contents'}[0]{'parent'}
 = 
$result_trees{'titlepage_with_commands_classical'}{'contents'}[0]{'contents'}[4]{'contents'}[5]{'args'}[0]{'contents'}[3]{'args'}[0]{'contents'}[3]{'contents'}[2];
+$result_trees{'titlepage_with_commands_classical'}{'contents'}[0]{'contents'}[4]{'contents'}[5]{'args'}[0]{'contents'}[3]{'args'}[0]{'contents'}[3]{'contents'}[2]{'parent'}
 = 
$result_trees{'titlepage_with_commands_classical'}{'contents'}[0]{'contents'}[4]{'contents'}[5]{'args'}[0]{'contents'}[3]{'args'}[0]{'contents'}[3];
+$result_trees{'titlepage_with_commands_classical'}{'contents'}[0]{'contents'}[4]{'contents'}[5]{'args'}[0]{'contents'}[3]{'args'}[0]{'contents'}[3]{'contents'}[3]{'contents'}[0]{'parent'}
 = 
$result_trees{'titlepage_with_commands_classical'}{'contents'}[0]{'contents'}[4]{'contents'}[5]{'args'}[0]{'contents'}[3]{'args'}[0]{'contents'}[3]{'contents'}[3];
+$result_trees{'titlepage_with_commands_classical'}{'contents'}[0]{'contents'}[4]{'contents'}[5]{'args'}[0]{'contents'}[3]{'args'}[0]{'contents'}[3]{'contents'}[3]{'parent'}
 = 
$result_trees{'titlepage_with_commands_classical'}{'contents'}[0]{'contents'}[4]{'contents'}[5]{'args'}[0]{'contents'}[3]{'args'}[0]{'contents'}[3];
+$result_trees{'titlepage_with_commands_classical'}{'contents'}[0]{'contents'}[4]{'contents'}[5]{'args'}[0]{'contents'}[3]{'args'}[0]{'contents'}[3]{'contents'}[4]{'parent'}
 = 
$result_trees{'titlepage_with_commands_classical'}{'contents'}[0]{'contents'}[4]{'contents'}[5]{'args'}[0]{'contents'}[3]{'args'}[0]{'contents'}[3];
+$result_trees{'titlepage_with_commands_classical'}{'contents'}[0]{'contents'}[4]{'contents'}[5]{'args'}[0]{'contents'}[3]{'args'}[0]{'contents'}[3]{'contents'}[5]{'args'}[0]{'contents'}[0]{'parent'}
 = 
$result_trees{'titlepage_with_commands_classical'}{'contents'}[0]{'contents'}[4]{'contents'}[5]{'args'}[0]{'contents'}[3]{'args'}[0]{'contents'}[3]{'contents'}[5]{'args'}[0];
+$result_trees{'titlepage_with_commands_classical'}{'contents'}[0]{'contents'}[4]{'contents'}[5]{'args'}[0]{'contents'}[3]{'args'}[0]{'contents'}[3]{'contents'}[5]{'args'}[0]{'parent'}
 = 
$result_trees{'titlepage_with_commands_classical'}{'contents'}[0]{'contents'}[4]{'contents'}[5]{'args'}[0]{'contents'}[3]{'args'}[0]{'contents'}[3]{'contents'}[5];
+$result_trees{'titlepage_with_commands_classical'}{'contents'}[0]{'contents'}[4]{'contents'}[5]{'args'}[0]{'contents'}[3]{'args'}[0]{'contents'}[3]{'contents'}[5]{'parent'}
 = 
$result_trees{'titlepage_with_commands_classical'}{'contents'}[0]{'contents'}[4]{'contents'}[5]{'args'}[0]{'contents'}[3]{'args'}[0]{'contents'}[3];
+$result_trees{'titlepage_with_commands_classical'}{'contents'}[0]{'contents'}[4]{'contents'}[5]{'args'}[0]{'contents'}[3]{'args'}[0]{'contents'}[3]{'extra'}{'end_command'}
 = 
$result_trees{'titlepage_with_commands_classical'}{'contents'}[0]{'contents'}[4]{'contents'}[5]{'args'}[0]{'contents'}[3]{'args'}[0]{'contents'}[3]{'contents'}[5];
+$result_trees{'titlepage_with_commands_classical'}{'contents'}[0]{'contents'}[4]{'contents'}[5]{'args'}[0]{'contents'}[3]{'args'}[0]{'contents'}[3]{'parent'}
 = 
$result_trees{'titlepage_with_commands_classical'}{'contents'}[0]{'contents'}[4]{'contents'}[5]{'args'}[0]{'contents'}[3]{'args'}[0];
+$result_trees{'titlepage_with_commands_classical'}{'contents'}[0]{'contents'}[4]{'contents'}[5]{'args'}[0]{'contents'}[3]{'args'}[0]{'parent'}
 = 
$result_trees{'titlepage_with_commands_classical'}{'contents'}[0]{'contents'}[4]{'contents'}[5]{'args'}[0]{'contents'}[3];
+$result_trees{'titlepage_with_commands_classical'}{'contents'}[0]{'contents'}[4]{'contents'}[5]{'args'}[0]{'contents'}[3]{'parent'}
 = 
$result_trees{'titlepage_with_commands_classical'}{'contents'}[0]{'contents'}[4]{'contents'}[5]{'args'}[0];
+$result_trees{'titlepage_with_commands_classical'}{'contents'}[0]{'contents'}[4]{'contents'}[5]{'args'}[0]{'parent'}
 = 
$result_trees{'titlepage_with_commands_classical'}{'contents'}[0]{'contents'}[4]{'contents'}[5];
+$result_trees{'titlepage_with_commands_classical'}{'contents'}[0]{'contents'}[4]{'contents'}[5]{'extra'}{'titlepage'}
 = 
$result_trees{'titlepage_with_commands_classical'}{'contents'}[0]{'contents'}[4];
+$result_trees{'titlepage_with_commands_classical'}{'contents'}[0]{'contents'}[4]{'contents'}[5]{'parent'}
 = 
$result_trees{'titlepage_with_commands_classical'}{'contents'}[0]{'contents'}[4];
+$result_trees{'titlepage_with_commands_classical'}{'contents'}[0]{'contents'}[4]{'contents'}[6]{'args'}[0]{'parent'}
 = 
$result_trees{'titlepage_with_commands_classical'}{'contents'}[0]{'contents'}[4]{'contents'}[6];
+$result_trees{'titlepage_with_commands_classical'}{'contents'}[0]{'contents'}[4]{'contents'}[6]{'parent'}
 = 
$result_trees{'titlepage_with_commands_classical'}{'contents'}[0]{'contents'}[4];
+$result_trees{'titlepage_with_commands_classical'}{'contents'}[0]{'contents'}[4]{'contents'}[7]{'args'}[0]{'parent'}
 = 
$result_trees{'titlepage_with_commands_classical'}{'contents'}[0]{'contents'}[4]{'contents'}[7];
+$result_trees{'titlepage_with_commands_classical'}{'contents'}[0]{'contents'}[4]{'contents'}[7]{'parent'}
 = 
$result_trees{'titlepage_with_commands_classical'}{'contents'}[0]{'contents'}[4];
+$result_trees{'titlepage_with_commands_classical'}{'contents'}[0]{'contents'}[4]{'contents'}[8]{'args'}[0]{'parent'}
 = 
$result_trees{'titlepage_with_commands_classical'}{'contents'}[0]{'contents'}[4]{'contents'}[8];
+$result_trees{'titlepage_with_commands_classical'}{'contents'}[0]{'contents'}[4]{'contents'}[8]{'parent'}
 = 
$result_trees{'titlepage_with_commands_classical'}{'contents'}[0]{'contents'}[4];
+$result_trees{'titlepage_with_commands_classical'}{'contents'}[0]{'contents'}[4]{'contents'}[9]{'args'}[0]{'parent'}
 = 
$result_trees{'titlepage_with_commands_classical'}{'contents'}[0]{'contents'}[4]{'contents'}[9];
+$result_trees{'titlepage_with_commands_classical'}{'contents'}[0]{'contents'}[4]{'contents'}[9]{'parent'}
 = 
$result_trees{'titlepage_with_commands_classical'}{'contents'}[0]{'contents'}[4];
+$result_trees{'titlepage_with_commands_classical'}{'contents'}[0]{'contents'}[4]{'contents'}[10]{'args'}[0]{'parent'}
 = 
$result_trees{'titlepage_with_commands_classical'}{'contents'}[0]{'contents'}[4]{'contents'}[10];
+$result_trees{'titlepage_with_commands_classical'}{'contents'}[0]{'contents'}[4]{'contents'}[10]{'parent'}
 = 
$result_trees{'titlepage_with_commands_classical'}{'contents'}[0]{'contents'}[4];
+$result_trees{'titlepage_with_commands_classical'}{'contents'}[0]{'contents'}[4]{'contents'}[11]{'args'}[0]{'contents'}[0]{'parent'}
 = 
$result_trees{'titlepage_with_commands_classical'}{'contents'}[0]{'contents'}[4]{'contents'}[11]{'args'}[0];
+$result_trees{'titlepage_with_commands_classical'}{'contents'}[0]{'contents'}[4]{'contents'}[11]{'args'}[0]{'parent'}
 = 
$result_trees{'titlepage_with_commands_classical'}{'contents'}[0]{'contents'}[4]{'contents'}[11];
+$result_trees{'titlepage_with_commands_classical'}{'contents'}[0]{'contents'}[4]{'contents'}[11]{'parent'}
 = 
$result_trees{'titlepage_with_commands_classical'}{'contents'}[0]{'contents'}[4];
+$result_trees{'titlepage_with_commands_classical'}{'contents'}[0]{'contents'}[4]{'extra'}{'end_command'}
 = 
$result_trees{'titlepage_with_commands_classical'}{'contents'}[0]{'contents'}[4]{'contents'}[11];
+$result_trees{'titlepage_with_commands_classical'}{'contents'}[0]{'contents'}[4]{'parent'}
 = $result_trees{'titlepage_with_commands_classical'}{'contents'}[0];
+$result_trees{'titlepage_with_commands_classical'}{'contents'}[0]{'contents'}[5]{'parent'}
 = $result_trees{'titlepage_with_commands_classical'}{'contents'}[0];
+$result_trees{'titlepage_with_commands_classical'}{'contents'}[0]{'parent'} = 
$result_trees{'titlepage_with_commands_classical'};
+$result_trees{'titlepage_with_commands_classical'}{'contents'}[1]{'args'}[0]{'contents'}[0]{'parent'}
 = $result_trees{'titlepage_with_commands_classical'}{'contents'}[1]{'args'}[0];
+$result_trees{'titlepage_with_commands_classical'}{'contents'}[1]{'args'}[0]{'parent'}
 = $result_trees{'titlepage_with_commands_classical'}{'contents'}[1];
+$result_trees{'titlepage_with_commands_classical'}{'contents'}[1]{'extra'}{'node_content'}[0]
 = 
$result_trees{'titlepage_with_commands_classical'}{'contents'}[1]{'args'}[0]{'contents'}[0];
+$result_trees{'titlepage_with_commands_classical'}{'contents'}[1]{'extra'}{'nodes_manuals'}[0]{'node_content'}[0]
 = 
$result_trees{'titlepage_with_commands_classical'}{'contents'}[1]{'args'}[0]{'contents'}[0];
+$result_trees{'titlepage_with_commands_classical'}{'contents'}[1]{'parent'} = 
$result_trees{'titlepage_with_commands_classical'};
+$result_trees{'titlepage_with_commands_classical'}{'contents'}[2]{'args'}[0]{'contents'}[0]{'parent'}
 = $result_trees{'titlepage_with_commands_classical'}{'contents'}[2]{'args'}[0];
+$result_trees{'titlepage_with_commands_classical'}{'contents'}[2]{'args'}[0]{'parent'}
 = $result_trees{'titlepage_with_commands_classical'}{'contents'}[2];
+$result_trees{'titlepage_with_commands_classical'}{'contents'}[2]{'contents'}[0]{'parent'}
 = $result_trees{'titlepage_with_commands_classical'}{'contents'}[2];
+$result_trees{'titlepage_with_commands_classical'}{'contents'}[2]{'parent'} = 
$result_trees{'titlepage_with_commands_classical'};
+$result_trees{'titlepage_with_commands_classical'}{'contents'}[3]{'args'}[0]{'contents'}[0]{'parent'}
 = $result_trees{'titlepage_with_commands_classical'}{'contents'}[3]{'args'}[0];
+$result_trees{'titlepage_with_commands_classical'}{'contents'}[3]{'args'}[0]{'parent'}
 = $result_trees{'titlepage_with_commands_classical'}{'contents'}[3];
+$result_trees{'titlepage_with_commands_classical'}{'contents'}[3]{'extra'}{'node_content'}[0]
 = 
$result_trees{'titlepage_with_commands_classical'}{'contents'}[3]{'args'}[0]{'contents'}[0];
+$result_trees{'titlepage_with_commands_classical'}{'contents'}[3]{'extra'}{'nodes_manuals'}[0]{'node_content'}[0]
 = 
$result_trees{'titlepage_with_commands_classical'}{'contents'}[3]{'args'}[0]{'contents'}[0];
+$result_trees{'titlepage_with_commands_classical'}{'contents'}[3]{'parent'} = 
$result_trees{'titlepage_with_commands_classical'};
+$result_trees{'titlepage_with_commands_classical'}{'contents'}[4]{'args'}[0]{'contents'}[0]{'parent'}
 = $result_trees{'titlepage_with_commands_classical'}{'contents'}[4]{'args'}[0];
+$result_trees{'titlepage_with_commands_classical'}{'contents'}[4]{'args'}[0]{'parent'}
 = $result_trees{'titlepage_with_commands_classical'}{'contents'}[4];
+$result_trees{'titlepage_with_commands_classical'}{'contents'}[4]{'contents'}[0]{'parent'}
 = $result_trees{'titlepage_with_commands_classical'}{'contents'}[4];
+$result_trees{'titlepage_with_commands_classical'}{'contents'}[4]{'contents'}[1]{'contents'}[0]{'parent'}
 = 
$result_trees{'titlepage_with_commands_classical'}{'contents'}[4]{'contents'}[1];
+$result_trees{'titlepage_with_commands_classical'}{'contents'}[4]{'contents'}[1]{'parent'}
 = $result_trees{'titlepage_with_commands_classical'}{'contents'}[4];
+$result_trees{'titlepage_with_commands_classical'}{'contents'}[4]{'contents'}[2]{'parent'}
 = $result_trees{'titlepage_with_commands_classical'}{'contents'}[4];
+$result_trees{'titlepage_with_commands_classical'}{'contents'}[4]{'parent'} = 
$result_trees{'titlepage_with_commands_classical'};
+
+$result_texis{'titlepage_with_commands_classical'} = '@setfilename 
titlepage_with_commands_classical.info
+
+@copying
+in Copying
+@end copying
+
+@titlepage
+@title Some manual @* tested
+@subtitle Subtitle manual @* tested
+@subtitle Subtitle 2 manual @* tested
+@author First @* author
+@author Second @* author@footnote{Something
+about the address of author.
+
+Something about the life. 
+@displaymath
+\\frac{a}{b}
+@end displaymath
+}
+@page
+@c The following two commands start the copyright page.
+@page
+@vskip 0pt plus 1filll
+@insertcopying
+@end titlepage
+
+@node Top
+@top section top
+
+@node chapter
+@chapter Chapter
+
+In chapter
+
+';
+
+
+$result_texts{'titlepage_with_commands_classical'} = '
+
+
+section top
+***********
+
+1 Chapter
+*********
+
+In chapter
+
+';
+
+$result_sectioning{'titlepage_with_commands_classical'} = {
+  'level' => -1,
+  'section_childs' => [
+    {
+      'cmdname' => 'top',
+      'extra' => {
+        'associated_node' => {
+          'cmdname' => 'node',
+          'extra' => {
+            'normalized' => 'Top',
+            'spaces_before_argument' => ' '
+          }
+        },
+        'spaces_before_argument' => ' '
+      },
+      'level' => 0,
+      'section_childs' => [
+        {
+          'cmdname' => 'chapter',
+          'extra' => {
+            'associated_node' => {
+              'cmdname' => 'node',
+              'extra' => {
+                'normalized' => 'chapter',
+                'spaces_before_argument' => ' '
+              }
+            },
+            'spaces_before_argument' => ' '
+          },
+          'level' => 1,
+          'number' => 1,
+          'section_up' => {},
+          'toplevel_prev' => {},
+          'toplevel_up' => {}
+        }
+      ],
+      'section_up' => {}
+    }
+  ]
+};
+$result_sectioning{'titlepage_with_commands_classical'}{'section_childs'}[0]{'section_childs'}[0]{'section_up'}
 = $result_sectioning{'titlepage_with_commands_classical'}{'section_childs'}[0];
+$result_sectioning{'titlepage_with_commands_classical'}{'section_childs'}[0]{'section_childs'}[0]{'toplevel_prev'}
 = $result_sectioning{'titlepage_with_commands_classical'}{'section_childs'}[0];
+$result_sectioning{'titlepage_with_commands_classical'}{'section_childs'}[0]{'section_childs'}[0]{'toplevel_up'}
 = $result_sectioning{'titlepage_with_commands_classical'}{'section_childs'}[0];
+$result_sectioning{'titlepage_with_commands_classical'}{'section_childs'}[0]{'section_up'}
 = $result_sectioning{'titlepage_with_commands_classical'};
+
+$result_nodes{'titlepage_with_commands_classical'} = {
+  'cmdname' => 'node',
+  'extra' => {
+    'associated_section' => {
+      'cmdname' => 'top',
+      'extra' => {
+        'spaces_before_argument' => ' '
+      },
+      'level' => 0
+    },
+    'normalized' => 'Top',
+    'spaces_before_argument' => ' '
+  },
+  'node_next' => {
+    'cmdname' => 'node',
+    'extra' => {
+      'associated_section' => {
+        'cmdname' => 'chapter',
+        'extra' => {
+          'spaces_before_argument' => ' '
+        },
+        'level' => 1,
+        'number' => 1
+      },
+      'normalized' => 'chapter',
+      'spaces_before_argument' => ' '
+    },
+    'node_prev' => {},
+    'node_up' => {}
+  }
+};
+$result_nodes{'titlepage_with_commands_classical'}{'node_next'}{'node_prev'} = 
$result_nodes{'titlepage_with_commands_classical'};
+$result_nodes{'titlepage_with_commands_classical'}{'node_next'}{'node_up'} = 
$result_nodes{'titlepage_with_commands_classical'};
+
+$result_menus{'titlepage_with_commands_classical'} = {
+  'cmdname' => 'node',
+  'extra' => {
+    'normalized' => 'Top',
+    'spaces_before_argument' => ' '
+  }
+};
+
+$result_errors{'titlepage_with_commands_classical'} = [
+  {
+    'error_line' => ':12: warning: @footnote should not appear in @author
+',
+    'file_name' => '',
+    'line_nr' => 12,
+    'macro' => '',
+    'text' => '@footnote should not appear in @author',
+    'type' => 'warning'
+  }
+];
+
+
+$result_floats{'titlepage_with_commands_classical'} = {};
+
+
+
+$result_converted{'latex'}->{'titlepage_with_commands_classical'} = '
+
+\\begin{titlepage}
+\\begingroup
+\\newskip\\titlepagetopglue \\titlepagetopglue = 1.5in
+\\newskip\\titlepagebottomglue \\titlepagebottomglue = 2pc
+\\setlength{\\parindent}{0pt}
+% Leave some space at the very top of the page.
+    \\vglue\\titlepagetopglue
+{\\raggedright {\\huge \\bfseries Some manual \\leavevmode{}\\\\ tested}}
+\\vskip 4pt \\hrule height 4pt width \\hsize \\vskip 4pt
+\\rightline{Subtitle manual \\leavevmode{}\\\\ tested}
+\\rightline{Subtitle 2 manual \\leavevmode{}\\\\ tested}
+\\vskip 0pt plus 1filll
+\\leftline{\\Large \\bfseries First \\leavevmode{}\\\\ author}%
+\\leftline{\\Large \\bfseries Second \\leavevmode{}\\\\ 
author\\footnote{Something
+about the address of author.
+
+Something about the life. 
+$$
+\\frac{a}{b}
+$$
+}}%
+\\vskip4pt \\hrule height 2pt width \\hsize
+  \\vskip\\titlepagebottomglue
+\\newpage{}%
+\\newpage{}%
+\\vskip 0pt plus 1filll
+in Copying
+\\endgroup
+\\end{titlepage}
+\\GNUTexinfosetsingleheader{}%
+\\mainmatter
+
+\\chapter{Chapter}
+\\label{anchor:chapter}%
+
+In chapter
+
+';
+
+1;
diff --git 
a/tp/t/results/latex_tests/titlepage_and_setchapternewpage_on/res_latex/titlepage_and_setchapternewpage_on.tex
 
b/tp/t/results/latex_tests/titlepage_with_commands_classical/res_latex/titlepage_with_commands_classical.tex
similarity index 62%
copy from 
tp/t/results/latex_tests/titlepage_and_setchapternewpage_on/res_latex/titlepage_and_setchapternewpage_on.tex
copy to 
tp/t/results/latex_tests/titlepage_with_commands_classical/res_latex/titlepage_with_commands_classical.tex
index 2aeb767..e6d1d81 100644
--- 
a/tp/t/results/latex_tests/titlepage_and_setchapternewpage_on/res_latex/titlepage_and_setchapternewpage_on.tex
+++ 
b/tp/t/results/latex_tests/titlepage_with_commands_classical/res_latex/titlepage_with_commands_classical.tex
@@ -13,6 +13,11 @@
 \usepackage[hidelinks]{hyperref}
 \usepackage[utf8]{inputenc}
 
+% redefine the \mainmatter command such that it does not clear the page
+\makeatletter
+\renewcommand\mainmatter{\clearpage\@mainmattertrue\pagenumbering{arabic}}
+\makeatother
+
 % command that does nothing used to help with substitutions in commands
 \newcommand{\GNUTexinfoplaceholder}[1]{}
 
@@ -59,10 +64,42 @@
 
 \frontmatter
 
+
 \begin{titlepage}
-in titlepage
+\begingroup
+\newskip\titlepagetopglue \titlepagetopglue = 1.5in
+\newskip\titlepagebottomglue \titlepagebottomglue = 2pc
+\setlength{\parindent}{0pt}
+% Leave some space at the very top of the page.
+    \vglue\titlepagetopglue
+{\raggedright {\huge \bfseries Some manual \leavevmode{}\\ tested}}
+\vskip 4pt \hrule height 4pt width \hsize \vskip 4pt
+\rightline{Subtitle manual \leavevmode{}\\ tested}
+\rightline{Subtitle 2 manual \leavevmode{}\\ tested}
+\vskip 0pt plus 1filll
+\leftline{\Large \bfseries First \leavevmode{}\\ author}%
+\leftline{\Large \bfseries Second \leavevmode{}\\ author\footnote{Something
+about the address of author.
+
+Something about the life. 
+$$
+\frac{a}{b}
+$$
+}}%
+\vskip4pt \hrule height 2pt width \hsize
+  \vskip\titlepagebottomglue
+\newpage{}%
+\newpage{}%
+\vskip 0pt plus 1filll
+in Copying
+\endgroup
 \end{titlepage}
 \GNUTexinfosetsingleheader{}%
 \mainmatter
 
+\chapter{Chapter}
+\label{anchor:chapter}%
+
+In chapter
+
 \end{document}
diff --git 
a/tp/t/results/latex_tests/two_setchapternewpage_odd_on/res_latex/two_setchapternewpage_odd_on.tex
 
b/tp/t/results/latex_tests/two_setchapternewpage_odd_on/res_latex/two_setchapternewpage_odd_on.tex
index b356971..69e0ccb 100644
--- 
a/tp/t/results/latex_tests/two_setchapternewpage_odd_on/res_latex/two_setchapternewpage_odd_on.tex
+++ 
b/tp/t/results/latex_tests/two_setchapternewpage_odd_on/res_latex/two_setchapternewpage_odd_on.tex
@@ -13,6 +13,11 @@
 \usepackage[hidelinks]{hyperref}
 \usepackage[utf8]{inputenc}
 
+% redefine the \mainmatter command such that it does not clear the page
+\makeatletter
+\renewcommand\mainmatter{\clearpage\@mainmattertrue\pagenumbering{arabic}}
+\makeatother
+
 % command that does nothing used to help with substitutions in commands
 \newcommand{\GNUTexinfoplaceholder}[1]{}
 
diff --git 
a/tp/t/results/latex_tests/two_setchapternewpage_on_odd/res_latex/two_setchapternewpage_on_odd.tex
 
b/tp/t/results/latex_tests/two_setchapternewpage_on_odd/res_latex/two_setchapternewpage_on_odd.tex
index 1b9dbe3..1285298 100644
--- 
a/tp/t/results/latex_tests/two_setchapternewpage_on_odd/res_latex/two_setchapternewpage_on_odd.tex
+++ 
b/tp/t/results/latex_tests/two_setchapternewpage_on_odd/res_latex/two_setchapternewpage_on_odd.tex
@@ -13,6 +13,11 @@
 \usepackage[hidelinks]{hyperref}
 \usepackage[utf8]{inputenc}
 
+% redefine the \mainmatter command such that it does not clear the page
+\makeatletter
+\renewcommand\mainmatter{\clearpage\@mainmattertrue\pagenumbering{arabic}}
+\makeatother
+
 % command that does nothing used to help with substitutions in commands
 \newcommand{\GNUTexinfoplaceholder}[1]{}
 
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 567d544..e05c16d 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
@@ -13,6 +13,11 @@
 \usepackage[hidelinks]{hyperref}
 \usepackage[utf8]{inputenc}
 
+% redefine the \mainmatter command such that it does not clear the page
+\makeatletter
+\renewcommand\mainmatter{\clearpage\@mainmattertrue\pagenumbering{arabic}}
+\makeatother
+
 % command that does nothing used to help with substitutions in commands
 \newcommand{\GNUTexinfoplaceholder}[1]{}
 
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 19a43aa..ae8a267 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
@@ -13,6 +13,11 @@
 \usepackage[hidelinks]{hyperref}
 \usepackage[utf8]{inputenc}
 
+% redefine the \mainmatter command such that it does not clear the page
+\makeatletter
+\renewcommand\mainmatter{\clearpage\@mainmattertrue\pagenumbering{arabic}}
+\makeatother
+
 % command that does nothing used to help with substitutions in commands
 \newcommand{\GNUTexinfoplaceholder}[1]{}
 
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 5acf76e..5dc1ee6 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
@@ -13,6 +13,11 @@
 \usepackage[hidelinks]{hyperref}
 \usepackage[utf8]{inputenc}
 
+% redefine the \mainmatter command such that it does not clear the page
+\makeatletter
+\renewcommand\mainmatter{\clearpage\@mainmattertrue\pagenumbering{arabic}}
+\makeatother
+
 % command that does nothing used to help with substitutions in commands
 \newcommand{\GNUTexinfoplaceholder}[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 6ca2bff..2576e07 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
@@ -13,6 +13,11 @@
 \usepackage[hidelinks]{hyperref}
 \usepackage[utf8]{inputenc}
 
+% redefine the \mainmatter command such that it does not clear the page
+\makeatletter
+\renewcommand\mainmatter{\clearpage\@mainmattertrue\pagenumbering{arabic}}
+\makeatother
+
 % command that does nothing used to help with substitutions in commands
 \newcommand{\GNUTexinfoplaceholder}[1]{}
 
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 4ab2429..37f22e6 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
@@ -13,6 +13,11 @@
 \usepackage[hidelinks]{hyperref}
 \usepackage[utf8]{inputenc}
 
+% redefine the \mainmatter command such that it does not clear the page
+\makeatletter
+\renewcommand\mainmatter{\clearpage\@mainmattertrue\pagenumbering{arabic}}
+\makeatother
+
 % command that does nothing used to help with substitutions in commands
 \newcommand{\GNUTexinfoplaceholder}[1]{}
 
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 8b9da64..3d27df6 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
@@ -13,6 +13,11 @@
 \usepackage[hidelinks]{hyperref}
 \usepackage[utf8]{inputenc}
 
+% redefine the \mainmatter command such that it does not clear the page
+\makeatletter
+\renewcommand\mainmatter{\clearpage\@mainmattertrue\pagenumbering{arabic}}
+\makeatother
+
 % command that does nothing used to help with substitutions in commands
 \newcommand{\GNUTexinfoplaceholder}[1]{}
 
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 564ec89..a1d8570 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
@@ -13,6 +13,11 @@
 \usepackage[hidelinks]{hyperref}
 \usepackage[utf8]{inputenc}
 
+% redefine the \mainmatter command such that it does not clear the page
+\makeatletter
+\renewcommand\mainmatter{\clearpage\@mainmattertrue\pagenumbering{arabic}}
+\makeatother
+
 % command that does nothing used to help with substitutions in commands
 \newcommand{\GNUTexinfoplaceholder}[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 641f29b..b6f7f96 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
@@ -13,6 +13,11 @@
 \usepackage[hidelinks]{hyperref}
 \usepackage[utf8]{inputenc}
 
+% redefine the \mainmatter command such that it does not clear the page
+\makeatletter
+\renewcommand\mainmatter{\clearpage\@mainmattertrue\pagenumbering{arabic}}
+\makeatother
+
 % command that does nothing used to help with substitutions in commands
 \newcommand{\GNUTexinfoplaceholder}[1]{}
 
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 dc26e1c..7e9615f 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
@@ -13,6 +13,11 @@
 \usepackage[hidelinks]{hyperref}
 \usepackage[utf8]{inputenc}
 
+% redefine the \mainmatter command such that it does not clear the page
+\makeatletter
+\renewcommand\mainmatter{\clearpage\@mainmattertrue\pagenumbering{arabic}}
+\makeatother
+
 % command that does nothing used to help with substitutions in commands
 \newcommand{\GNUTexinfoplaceholder}[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 d6dd48a..8a356a5 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
@@ -13,6 +13,11 @@
 \usepackage[hidelinks]{hyperref}
 \usepackage[utf8]{inputenc}
 
+% redefine the \mainmatter command such that it does not clear the page
+\makeatletter
+\renewcommand\mainmatter{\clearpage\@mainmattertrue\pagenumbering{arabic}}
+\makeatother
+
 % command that does nothing used to help with substitutions in commands
 \newcommand{\GNUTexinfoplaceholder}[1]{}
 
diff --git a/tp/tests/layout/res_parser/formatting_latex/formatting.tex 
b/tp/tests/layout/res_parser/formatting_latex/formatting.tex
index e759f0e..a82bf7a 100644
--- a/tp/tests/layout/res_parser/formatting_latex/formatting.tex
+++ b/tp/tests/layout/res_parser/formatting_latex/formatting.tex
@@ -13,6 +13,11 @@
 \usepackage[hidelinks]{hyperref}
 \usepackage[utf8]{inputenc}
 
+% redefine the \mainmatter command such that it does not clear the page
+\makeatletter
+\renewcommand\mainmatter{\clearpage\@mainmattertrue\pagenumbering{arabic}}
+\makeatother
+
 % command that does nothing used to help with substitutions in commands
 \newcommand{\GNUTexinfoplaceholder}[1]{}
 
@@ -63,6 +68,19 @@
 
 
 \begin{titlepage}
+\begingroup
+\newskip\titlepagetopglue \titlepagetopglue = 1.5in
+\newskip\titlepagebottomglue \titlepagebottomglue = 2pc
+\setlength{\parindent}{0pt}
+% Leave some space at the very top of the page.
+    \vglue\titlepagetopglue
+{\raggedright {\huge \bfseries title --a}}
+\vskip 4pt \hrule height 4pt width \hsize \vskip 4pt
+\rightline{formatting subtitle --a}
+\rightline{subtitle 2 --a}
+\vskip 0pt plus 1filll
+\leftline{\Large \bfseries author1 --a with accents in name T\'{e}\c{c}a}%
+\leftline{\Large \bfseries author2 --a}%
 In titlepage
 
 <
@@ -209,7 +227,7 @@ but , ,\@
 \texttt{@t\{{-}{-}a\}} \texttt{{-}{-}a}
 \texttt{@sansserif\{{-}{-}a\}} \textsf{--a}
 \texttt{@slanted\{{-}{-}a\}} \textsl{--a}
-\texttt{@titlefont\{{-}{-}a\}} {\Huge \bfseries --a}
+\texttt{@titlefont\{{-}{-}a\}} {\huge \bfseries --a}
 \texttt{@indicateurl\{{-}{-}a\}} `\texttt{{-}{-}a}'
 \texttt{@uref\{{-}{-}a,{-}{-}b\}} \href{--a}{--b (\nolinkurl{--a})}
 \texttt{@uref\{{-}{-}a\}} \url{--a}
@@ -261,7 +279,10 @@ but , ,\@
 \texttt{@sp 2}\leavevmode{}\\
 \vskip 2\baselineskip %
 \texttt{@page}\leavevmode{}\\
+\vskip4pt \hrule height 2pt width \hsize
+  \vskip\titlepagebottomglue
 \newpage{}%
+\leftline{\Large \bfseries author}%
 
 \texttt{need 1002}
 \needspace{1.002pt}%
@@ -1015,7 +1036,7 @@ but , ,\@
 \texttt{@t\{{-}{-}a\}} \texttt{{-}{-}a}
 \texttt{@sansserif\{{-}{-}a\}} \textsf{--a}
 \texttt{@slanted\{{-}{-}a\}} \textsl{--a}
-\texttt{@titlefont\{{-}{-}a\}} {\Huge \bfseries --a}
+\texttt{@titlefont\{{-}{-}a\}} {\huge \bfseries --a}
 \texttt{@indicateurl\{{-}{-}a\}} `\texttt{{-}{-}a}'
 \texttt{@uref\{{-}{-}a,{-}{-}b\}} \href{--a}{--b (\nolinkurl{--a})}
 \texttt{@uref\{{-}{-}a\}} \url{--a}
@@ -1068,6 +1089,7 @@ but , ,\@
 \vskip 2\baselineskip %
 \texttt{@page}\leavevmode{}\\
 \newpage{}%
+\leftline{\Large \bfseries author}%
 
 \texttt{need 1002}
 \needspace{1.002pt}%
@@ -1673,6 +1695,7 @@ Various deff lines
 \texttt{@inforef\{\}} 
 
 
+\endgroup
 \end{titlepage}
 \GNUTexinfosetsingleheader{}%
 \mainmatter
@@ -1836,7 +1859,7 @@ but , ,\@
 \texttt{@t\{{-}{-}a\}} \texttt{{-}{-}a}
 \texttt{@sansserif\{{-}{-}a\}} \textsf{--a}
 \texttt{@slanted\{{-}{-}a\}} \textsl{--a}
-\texttt{@titlefont\{{-}{-}a\}} {\Huge \bfseries --a}
+\texttt{@titlefont\{{-}{-}a\}} {\huge \bfseries --a}
 \texttt{@indicateurl\{{-}{-}a\}} `\texttt{{-}{-}a}'
 \texttt{@uref\{{-}{-}a,{-}{-}b\}} \href{--a}{--b (\nolinkurl{--a})}
 \texttt{@uref\{{-}{-}a\}} \url{--a}
@@ -2641,7 +2664,7 @@ but , ,\@
 \texttt{@t\{{-}{-}a\}} \texttt{{-}{-}a}
 \texttt{@sansserif\{{-}{-}a\}} \textsf{--a}
 \texttt{@slanted\{{-}{-}a\}} \textsl{--a}
-\texttt{@titlefont\{{-}{-}a\}} {\Huge \bfseries --a}
+\texttt{@titlefont\{{-}{-}a\}} {\huge \bfseries --a}
 \texttt{@indicateurl\{{-}{-}a\}} `\texttt{{-}{-}a}'
 \texttt{@uref\{{-}{-}a,{-}{-}b\}} \href{--a}{--b (\nolinkurl{--a})}
 \texttt{@uref\{{-}{-}a\}} \url{--a}
@@ -3446,7 +3469,7 @@ but , ,\@
 \texttt{@t\{{-}{-}a\}} \texttt{{-}{-}a}
 \texttt{@sansserif\{{-}{-}a\}} \textsf{--a}
 \texttt{@slanted\{{-}{-}a\}} \textsl{--a}
-\texttt{@titlefont\{{-}{-}a\}} {\Huge \bfseries --a}
+\texttt{@titlefont\{{-}{-}a\}} {\huge \bfseries --a}
 \texttt{@indicateurl\{{-}{-}a\}} `\texttt{{-}{-}a}'
 \texttt{@uref\{{-}{-}a,{-}{-}b\}} \href{--a}{--b (\nolinkurl{--a})}
 \texttt{@uref\{{-}{-}a\}} \url{--a}



reply via email to

[Prev in Thread] Current Thread [Next in Thread]