texinfo-commits
[Top][All Lists]
Advanced

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

branch master updated: * tp/Texinfo/Convert/LaTeX.pm (%LaTeX_environment


From: Patrice Dumas
Subject: branch master updated: * tp/Texinfo/Convert/LaTeX.pm (%LaTeX_environment_packages) (_latex_header, _convert): only import packages and output LaTeX code if needed for the document formatting.
Date: Fri, 07 Jan 2022 19:00:23 -0500

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 27b1b47b7d * tp/Texinfo/Convert/LaTeX.pm (%LaTeX_environment_packages) 
(_latex_header, _convert): only import packages and output LaTeX code if needed 
for the document formatting.
27b1b47b7d is described below

commit 27b1b47b7df1bcb87855218a31c7601288aa8bea
Author: Patrice Dumas <pertusus@free.fr>
AuthorDate: Sat Jan 8 01:00:02 2022 +0100

    * tp/Texinfo/Convert/LaTeX.pm (%LaTeX_environment_packages)
    (_latex_header, _convert): only import packages and
    output LaTeX code if needed for the document formatting.
    
    * tp/Texinfo/Convert/LaTeX.pm (output, _latex_header)
    (_latex_begin_output): output packages import last.
    
    * tp/Texinfo/Convert/LaTeX.pm: re-enable babel and fontsize
    package use, if needed.
---
 ChangeLog                                          |  12 ++
 tp/Texinfo/Convert/LaTeX.pm                        | 229 +++++++++++++--------
 .../res_latex/simplest_no_node_section.tex         |  48 -----
 .../res_latex/char_latin1_latin1_in_refs.tex       |  47 -----
 .../def_syn_indices/res_latex/def_syn_indices.tex  |  47 -----
 .../res_latex/double_seeentry_seealso.tex          |  48 -----
 .../indices/seeentry/res_latex/seeentry.tex        |  48 -----
 .../indices/subentries/res_latex/subentries.tex    |  47 -----
 .../res_latex/subentry_and_sortas.tex              |  47 -----
 .../res_latex/syncode_index_print_both.tex         |  47 -----
 .../res_latex/inter_item_commands_in_enumerate.tex |  47 -----
 .../res_latex/inter_item_commands_in_itemize.tex   |  47 -----
 .../res_latex/multiple_lang_chapters.tex           |  49 +----
 ...anchor_links_xref_xrefautomaticsectiontitle.tex |  48 -----
 .../custom_headings/res_latex/custom_headings.tex  |  48 -----
 .../res_latex/enumerate_arguments.tex              |  48 -----
 .../res_latex/example_in_cartouche.tex             |  42 ----
 .../float_and_refs/res_latex/float_and_refs.tex    |  48 -----
 tp/t/results/latex_tests/fonttextsize.pl           |   2 +
 .../fonttextsize/res_latex/fonttextsize.tex        |  51 +----
 .../latex_tests/indices/res_latex/indices.tex      |  47 -----
 .../res_latex/informative_commands_in_top_node.tex |  48 -----
 .../res_latex/nested_enumerate.tex                 |  48 -----
 .../nested_itemize/res_latex/nested_itemize.tex    |  48 -----
 .../no_titlepage_and_setchapternewpage_odd.tex     |  48 -----
 .../no_titlepage_and_setchapternewpage_on.tex      |  48 -----
 .../latex_tests/pagesizes/res_latex/pagesizes.tex  |  48 -----
 .../latex_tests/pagetype/res_latex/pagetype.tex    |  48 -----
 .../setchapternewpage_on_odd_titlepage.tex         |  48 -----
 .../res_latex/settitle_and_headings.tex            |  48 -----
 .../shorttitlepage/res_latex/shorttitlepage.tex    |  48 -----
 .../three_setchapternewpage_on_odd_off.tex         |  48 -----
 .../res_latex/titlepage_and_headings.tex           |  48 -----
 .../titlepage_and_setchapternewpage_odd.tex        |  48 -----
 .../titlepage_and_setchapternewpage_on.tex         |  48 -----
 .../res_latex/titlepage_classical.tex              |  48 -----
 .../res_latex/titlepage_in_top_node.tex            |  48 -----
 .../res_latex/titlepage_long_title.tex             |  48 -----
 .../res_latex/titlepage_no_author.tex              |  48 -----
 .../res_latex/titlepage_no_title.tex               |  48 -----
 .../titlepage_with_commands_classical.tex          |  48 -----
 .../res_latex/two_setchapternewpage_odd_on.tex     |  48 -----
 .../res_latex/two_setchapternewpage_on_odd.tex     |  48 -----
 .../res_latex/verbatim_in_smallformat.tex          |  48 -----
 .../empty_quotation/res_latex/empty_quotation.tex  |  48 -----
 .../res_latex/quotation_and_author.tex             |  48 -----
 .../res_latex/quotation_author_in_example.tex      |  48 -----
 .../space_at_commands_end_quotation_line.tex       |  48 -----
 .../res_latex/chapter_between_nodes.tex            |  48 -----
 .../lone_Top_node/res_latex/lone_Top_node.tex      |  48 -----
 .../sectioning/loop_nodes/res_latex/loop_nodes.tex |  48 -----
 .../node_sectop_before_chapter_no_node.tex         |  48 -----
 .../res_latex/node_sectop_before_lone_node_Top.tex |  48 -----
 .../res_latex/nodes_before_after_top.tex           |  48 -----
 .../res_latex/nodes_before_after_top_xref.tex      |  48 -----
 .../res_latex/nodes_before_top.tex                 |  48 -----
 .../res_latex/section_before_after_top_node.tex    |  48 -----
 .../section_before_after_top_node_last_node.tex    |  48 -----
 .../res_latex/section_chapter_before_top_nodes.tex |  48 -----
 .../res_latex/inter_item_commands_in_table.tex     |  41 ----
 .../inter_item_commands_in_table_in_example.tex    |  44 ----
 .../indices_in_begin_tables_lists.tex              |  41 ----
 .../indices_in_begin_tables_lists.tex              |  41 ----
 .../res_parser/formatting_latex/formatting.tex     |  31 ---
 64 files changed, 165 insertions(+), 2954 deletions(-)

diff --git a/ChangeLog b/ChangeLog
index 7f2f0da772..ba6515aaf4 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,15 @@
+2022-01-08  Patrice Dumas  <pertusus@free.fr>
+
+       * tp/Texinfo/Convert/LaTeX.pm (%LaTeX_environment_packages)
+       (_latex_header, _convert): only import packages and
+       output LaTeX code if needed for the document formatting.
+
+       * tp/Texinfo/Convert/LaTeX.pm (output, _latex_header)
+       (_latex_begin_output): output packages import last.
+
+       * tp/Texinfo/Convert/LaTeX.pm: re-enable babel and fontsize
+       package use, if needed.
+
 2022-01-06  Patrice Dumas  <pertusus@free.fr>
 
        * tp/Texinfo/Config.pm (texinfo_register_no_arg_command_formatting),
diff --git a/tp/Texinfo/Convert/LaTeX.pm b/tp/Texinfo/Convert/LaTeX.pm
index 0dcd845441..e07bcb0daa 100644
--- a/tp/Texinfo/Convert/LaTeX.pm
+++ b/tp/Texinfo/Convert/LaTeX.pm
@@ -124,11 +124,7 @@
 #
 # @fonttextsize with \changefontsize does not seems to change fonts much.  It
 # seems to change in the text, but only 10pt, and does not seems to change
-# sections font sizes.  fontsize package may not be installed anyway.
-#
-# use of babel package commented out because it gave an error:
-#   ! Package babel Error: You haven't specified a language option.
-# it may depend on the LaTeX installation
+# sections font sizes.
 #
 # The @afourpaper, @afourlatex and @afourwide commands all map to
 # papername=a4paper.  It is most likely ok for @afourlatex, but the other two
@@ -232,6 +228,7 @@ my %letter_no_arg_commands = 
%Texinfo::Common::letter_no_arg_commands;
 my %item_line_commands = %Texinfo::Common::item_line_commands;
 my %headings_specification_commands = 
%Texinfo::Common::headings_specification_commands;
 my %in_heading_commands = %Texinfo::Common::in_heading_commands;
+my %unformatted_brace_command = %Texinfo::Common::unformatted_brace_command;
 
 my %preamble_commands = %Texinfo::Common::preamble_commands;
 
@@ -525,6 +522,10 @@ my %LaTeX_environment_options = (
   'cartouche' => {'mdframed' => 'style=GNUTexinfocartouche'},
 );
 
+my %LaTeX_environment_packages = (
+  'cartouche' => ['mdframed'],
+);
+
 foreach my $environment_command (@LaTeX_same_block_commands) {
   $LaTeX_environment_commands{$environment_command} = [$environment_command];
 }
@@ -641,6 +642,8 @@ my $description_command_new_commands_prefix = 
'GNUTexinfotablestyle';
 my %description_command_new_commands = ();
 
 foreach my $command (keys(%{$LaTeX_style_brace_commands{'text'}}), 'kbd') {
+  # avoids hyphenation @-command
+  next if ($unformatted_brace_command{$command});
   my $description_format = $LaTeX_style_brace_commands{'text'}->{$command};
   if ($command eq 'kbd' or
       ($description_format ne '' and $description_format !~ 
/\\text[a-z]{2}$/)) {
@@ -714,6 +717,11 @@ sub converter_defaults($$)
   return %defaults;
 }
 
+# other keys:
+#  description_format_commands
+#  packages
+#  normalized_float_latex
+
 sub converter_initialize($)
 {
   my $self = shift;
@@ -822,7 +830,7 @@ sub _prepare_indices($)
     foreach my $index_name (keys(%{$merged_index_entries})) {
       # print STDERR "PI $index_name\n";
       # print STDERR "".$merged_index_entries->{$index_name}."\n";
-      #print STDERR "".join("|", @{$merged_index_entries->{$index_name}})."\n";
+      #print STDERR " -> ".join("|", 
@{$merged_index_entries->{$index_name}})."\n";
       if (scalar(@{$merged_index_entries->{$index_name}})) {
         $self->{'index_entries'}->{$index_name} = 
$merged_index_entries->{$index_name};
       }
@@ -991,15 +999,17 @@ sub output($$)
     $modified_root = $root;
   }
 
-  my $result = '';
 
   $self->_prepare_conversion($modified_root);
 
-  $result .= $self->write_or_return($self->_latex_header(), $fh);
-  _push_new_context($self, 'main');
-  $result .= $self->write_or_return($self->convert_tree($modified_root), $fh);
-  _pop_context($self);
-  $result .= $self->write_or_return($self->_latex_footer(), $fh);
+  my $result = '';
+  $result .= $self->_latex_begin_output();
+  $result .= $self->convert_tree($modified_root);
+  $result .= $self->_latex_footer();
+
+  my $output = '';
+  $output .= $self->write_or_return($self->_latex_header(), $fh);
+  $output .= $self->write_or_return($result, $fh);
 
   #print STDERR "OUTPUT fh:$fh|F:$output_file|$result";
   if ($fh and $output_file ne '-') {
@@ -1011,7 +1021,7 @@ sub output($$)
                                     $output_file, $!));
     }
   }
-  return $result;
+  return $output;
 }
 
 # we allow the converter to already be in a context, but if
@@ -1138,58 +1148,11 @@ my $titleps_preamble = '% plain page style, for part 
and chapter, which call \th
 # TODO translation
 my $default_title = 'No Title';
 
-sub _latex_header {
+sub _latex_header() {
   my $self = shift;
-  # amsfonts for \circledR
-  # amsmath for \text in math
-  # T1 fontenc for \DH, \guillemotleft, ...
-  # eurosym for \euro
-  # textcomp for \textdegree in older LaTeX
-  # graphicx for \includegraphics
-  # needspace for \needspace. In texlive-latex-extra in debian
-  # etoolbox for \patchcmd and \ifstrempty. In texlive-latex-recommended in 
debian
-  # fontsize for \changefontsize. In texlive-latex-extra in debian
-  # mdframed is used for the formatting of @cartouche.
-  # framemethod=TikZ is needed for roundcorner, but there
-  # is an issue with \fbox in sectioning commands when hyperref and imakeidx
-  # are present too.  No round corners for now for @cartouche.
-  # \usepackage[linkbordercolor={0 0 0}]{hyperref}
-  # titleps is used and not fancyhdr as with fancyhdr it is hard to get
-  # the section or chapter title
-  my $header = "\\documentclass{$documentclass}\n"
-.'\usepackage{imakeidx}
-\usepackage{amsfonts}
-\usepackage{amsmath}
-\usepackage[gen]{eurosym}
-\usepackage[T1]{fontenc}
-\usepackage{textcomp}
-\usepackage{graphicx}
-\usepackage{needspace}
-\usepackage{etoolbox}
-\usepackage{mdframed}
-%\usepackage{fontsize}
-\usepackage{enumitem}
-\usepackage{geometry}
-\usepackage{titleps}
-\usepackage{float}
-%\usepackage{babel}
-% use hidelinks to remove boxes around links to be similar with Texinfo TeX
-\usepackage[hidelinks]{hyperref}
-';
-  if ($self->{'output_encoding_name'}) {
-    my $encoding = $self->{'output_encoding_name'};
-    if (defined($LaTeX_encoding_names_map{$encoding})) {
-      $encoding = $LaTeX_encoding_names_map{$encoding};
-    }# else {
-      # FIXME Warn?
-    #}
-    $header .= "\\usepackage[$encoding]{inputenc}\n";
-  }
-  $header .= "\n";
-  #if ($self->{'global_commands'}->{'shortcontents'}) {
-  #  # in texlive-latex-extra in debian
-  #  $header .= "\\usepackage{shorttoc}\n";
-  #}
+  # LaTeX code appearing after packages.  Do it first to be able to
+  # select packages based on the code output here.
+  my $header_code = '';
   my $settitle;
   if ($self->{'settitle_tree'}) {
     $settitle = $self->convert_tree($self->{'settitle_tree'});
@@ -1198,8 +1161,8 @@ sub _latex_header {
   }
 
   # for @thistitle and headers
-  $header .= "\\newcommand{\\GNUTexinfosettitle}{$settitle}%\n";
-  $header .= "\n";
+  $header_code .= "\\newcommand{\\GNUTexinfosettitle}{$settitle}%\n";
+  $header_code .= "\n";
 
   if ($self->{'floats'}) {
     foreach my $normalized_float_type 
(sort(keys(%{$self->{'normalized_float_latex'}}))) {
@@ -1215,8 +1178,8 @@ sub _latex_header {
           _pop_context($self);
         }
         my $floats_extension = $self->{'floats_extension'};
-        $header .= "% new float for type `$normalized_float_type'\n";
-        $header .= 
"\\newfloat{$latex_float_name}{htb}{$floats_extension}[chapter]
+        $header_code .= "% new float for type `$normalized_float_type'\n";
+        $header_code .= 
"\\newfloat{$latex_float_name}{htb}{$floats_extension}[chapter]
 \\floatname{$latex_float_name}{$float_type}
 ";
       }
@@ -1224,27 +1187,31 @@ sub _latex_header {
   }
   if ($self->{'index_entries'}) {
     foreach my $index_name (sort(keys(%{$self->{'index_entries'}}))) {
-      $header .= "\\makeindex[name=$index_name]%\n";
+      $header_code .= "\\makeindex[name=$index_name]%\n";
     }
-    $header .= "\n";
+    $header_code .= "\n";
   }
   # define additional commands used in @*table description format
   foreach my $command (sort(keys(%description_command_new_commands))) {
-    $header .= '% command used in \description format for '.$command."\n";
-    $header .= 
"\\newcommand".$description_command_new_commands{$command}."%\n";
-    $header .= "\n";
+    if ($self->{'description_format_commands'}->{$command}) {
+      $header_code .= '% command used in \description format for 
'.$command."\n";
+      $header_code .= 
"\\newcommand".$description_command_new_commands{$command}."%\n";
+      $header_code .= "\n";
+    }
   }
 
-  $header .= $front_main_matter_definitions{$documentclass};
-  $header .= '
+  $header_code .= $front_main_matter_definitions{$documentclass};
+  if ($self->{'packages'}->{'babel'}) {
+    $header_code .= '
 % this allows to select languages based on bcp47 codes.  bcp47 is a superset
 % of the LL_CC ISO 639-2 LL ISO 3166 CC information of @documentlanguage
-% \babeladjust{
-%   autoload.bcp47 = on,
-%   autoload.bcp47.options = import
-% }
-
-% set defaults for lists that match Texinfo TeX formatting
+\babeladjust{
+  autoload.bcp47 = on,
+  autoload.bcp47.options = import
+}
+';
+  }
+  $header_code .= '% set defaults for lists that match Texinfo TeX formatting
 \setlist[description]{style=nextline, font=\normalfont}
 \setlist[itemize]{label=\textbullet}
 \setlist[enumerate]{label=\arabic*.}
@@ -1257,21 +1224,98 @@ sub _latex_header {
 % avoid pagebreak and headings setting for a sectionning command
 \newcommand{\GNUTexinfonopagebreakheading}[2]{\let\clearpage\relax 
\let\cleardoublepage\relax \let\thispagestyle\GNUTexinfoplaceholder #1{#2}}
 
-% the mdframed style for @cartouche
+';
+  if ($self->{'packages'}->{'mdframed'}) {
+   $header_code .= '% the mdframed style for @cartouche
 \mdfdefinestyle{GNUTexinfocartouche}{
 innertopmargin=10pt, innerbottommargin=10pt,%
 roundcorner=10pt}
 
 ';
+  }
   # this is in order to be able to run pdflatex even
   # if files do not exist, or filenames cannot be
   # processed by LaTeX
   if ($self->get_conf('TEST')) {
-    $header .=
+    $header_code .=
 '\renewcommand{\includegraphics}[1]{\fbox{FIG #1}}
 
 ';
   }
+
+  # amsfonts for \circledR
+  # amsmath for \text in math
+  # T1 fontenc for \DH, \guillemotleft, ...
+  # eurosym for \euro
+  # textcomp for \textdegree in older LaTeX
+  # graphicx for \includegraphics
+  # needspace for \needspace. In texlive-latex-extra in debian
+  # etoolbox for \patchcmd and \ifstrempty. In texlive-latex-recommended in 
debian
+  # fontsize for \changefontsize. In texlive-latex-extra in debian
+  # mdframed is used for the formatting of @cartouche.
+  # framemethod=TikZ is needed for roundcorner, but there
+  # is an issue with \fbox in sectioning commands when hyperref and imakeidx
+  # are present too.  No round corners for now for @cartouche.
+  # \usepackage[linkbordercolor={0 0 0}]{hyperref}
+  # titleps is used and not fancyhdr as with fancyhdr it is hard to get
+  # the section or chapter title
+  my $header = "\\documentclass{$documentclass}\n";
+  if ($self->{'index_entries'}) {
+    $header .= "\\usepackage{imakeidx}\n";
+  }
+  $header .= '\usepackage{amsfonts}
+\usepackage{amsmath}
+\usepackage[gen]{eurosym}
+\usepackage[T1]{fontenc}
+\usepackage{textcomp}
+\usepackage{graphicx}
+';
+  if ($self->{'packages'}->{'needspace'}) {
+    $header .= "\\usepackage{needspace}\n";
+  }
+  $header .= '\usepackage{etoolbox}
+';
+  if ($self->{'packages'}->{'mdframed'}) {
+    $header .= "\\usepackage{mdframed}\n";
+  }
+  if ($self->{'packages'}->{'fontsize'}) {
+    $header .= "\\usepackage{fontsize}\n";
+  }
+  $header .= '\usepackage{enumitem}
+\usepackage{geometry}
+\usepackage{titleps}
+';
+  if ($self->{'floats'}) {
+    $header .= "\\usepackage{float}\n";
+  }
+  if ($self->{'packages'}->{'babel'}) {
+    $header .= "\\usepackage{babel}\n";
+  }
+  $header .= '% use hidelinks to remove boxes around links to be similar with 
Texinfo TeX
+\usepackage[hidelinks]{hyperref}
+';
+  if ($self->{'output_encoding_name'}) {
+    my $encoding = $self->{'output_encoding_name'};
+    if (defined($LaTeX_encoding_names_map{$encoding})) {
+      $encoding = $LaTeX_encoding_names_map{$encoding};
+    }# else {
+      # FIXME Warn?
+    #}
+    $header .= "\\usepackage[$encoding]{inputenc}\n";
+  }
+  #if ($self->{'global_commands'}->{'shortcontents'}) {
+  #  # in texlive-latex-extra in debian
+  #  $header .= "\\usepackage{shorttoc}\n";
+  #}
+  $header .= "\n";
+
+  return $header . $header_code;
+}
+
+sub _latex_begin_output($)
+{
+  my $self = shift;
+  my $header = '';
   # setup defaults
   $header .= "% set default for \@setchapternewpage\n";
   $header .= _set_chapter_new_page($self, 'on');
@@ -1769,6 +1813,10 @@ sub _xtable_description_command_format($$)
     }
     if (exists($description_command_format{$command_as_argument})
         and $description_command_format{$command_as_argument} ne '') {
+      # only gather if associated to a new command
+      if (exists($description_command_new_commands{$command_as_argument})) {
+        $self->{'description_format_commands'}->{$command_as_argument} = 1;
+      }
       return $description_command_format{$command_as_argument}
     }
   }
@@ -2696,6 +2744,11 @@ sub _convert($$)
           }
           $result .= "\n";
         }
+        if ($LaTeX_environment_packages{$cmdname}) {
+          foreach my $package (@{$LaTeX_environment_packages{$cmdname}}) {
+            $self->{'packages'}->{$package} = 1;
+          }
+        }
       }
       if ($preformatted_commands{$cmdname}) {
         $result .= _open_preformatted($self, $cmdname);
@@ -2863,7 +2916,8 @@ sub _convert($$)
       if ($element->{'extra'} and $element->{'extra'}->{'misc_args'}
           and defined($element->{'extra'}->{'misc_args'}->[0])) {
         $index_name = $element->{'extra'}->{'misc_args'}->[0];
-        if (exists($self->{'index_entries'}->{$index_name})) {
+        if (exists($self->{'index_entries'})
+            and exists($self->{'index_entries'}->{$index_name})) {
           $result .= "\\printindex[$index_name]\n";
         }
       }
@@ -2920,6 +2974,7 @@ sub _convert($$)
       $result .= "\\vskip $sp_nr\\baselineskip %\n";
       return $result;
     } elsif ($cmdname eq 'need') {
+      $self->{'packages'}->{'needspace'} = 1;
       if ($element->{'extra'}->{'misc_args'}->[0]) {
         my $need_value = 0.001 * $element->{'extra'}->{'misc_args'}->[0];
         $result .= "\\needspace{${need_value}pt}%\n";
@@ -3009,6 +3064,7 @@ sub _convert($$)
         my $language = $self->get_conf('documentlanguage');
         $language =~ s/_/-/;
         $result .= "\\selectlanguage{$language}%\n";
+        $self->{'packages'}->{'babel'} = 1;
       } elsif ($cmdname eq 'pagesizes') {
         my $pagesize_spec = _convert($self, $element->{'args'}->[0]);
         my @pagesize_args = split(/\s*,\s*/, $pagesize_spec);
@@ -3055,9 +3111,10 @@ sub _convert($$)
         $result .= _set_headings($self, $headings_spec);
       } elsif ($cmdname eq 'fonttextsize'
                and $element->{'extra'}->{'misc_args'}->[0]) {
-        # my $fontsize = $element->{'extra'}->{'misc_args'}->[0];
+        my $fontsize = $element->{'extra'}->{'misc_args'}->[0];
         # default dimension for changefontsize is pt
-        # $result .= "\\changefontsize{$fontsize}\n";
+        $result .= "\\changefontsize{$fontsize}\n";
+        $self->{'packages'}->{'fontsize'} = 1;
       } elsif ($paper_geometry_commands{$cmdname}) {
         $result .= "\\geometry{$paper_geometry_commands{$cmdname}}%\n";
       }
diff --git 
a/tp/t/results/converters_tests/simplest_no_node_section/res_latex/simplest_no_node_section.tex
 
b/tp/t/results/converters_tests/simplest_no_node_section/res_latex/simplest_no_node_section.tex
index 6b3f8ac778..0357483ba1 100644
--- 
a/tp/t/results/converters_tests/simplest_no_node_section/res_latex/simplest_no_node_section.tex
+++ 
b/tp/t/results/converters_tests/simplest_no_node_section/res_latex/simplest_no_node_section.tex
@@ -1,56 +1,21 @@
 \documentclass{book}
-\usepackage{imakeidx}
 \usepackage{amsfonts}
 \usepackage{amsmath}
 \usepackage[gen]{eurosym}
 \usepackage[T1]{fontenc}
 \usepackage{textcomp}
 \usepackage{graphicx}
-\usepackage{needspace}
 \usepackage{etoolbox}
-\usepackage{mdframed}
-%\usepackage{fontsize}
 \usepackage{enumitem}
 \usepackage{geometry}
 \usepackage{titleps}
 \usepackage{float}
-%\usepackage{babel}
 % use hidelinks to remove boxes around links to be similar with Texinfo TeX
 \usepackage[hidelinks]{hyperref}
 \usepackage[utf8]{inputenc}
 
 \newcommand{\GNUTexinfosettitle}{No Title}%
 
-% command used in \description format for dfn
-\newcommand\GNUTexinfotablestyledfn[1]{{\normalfont\emph{#1}}}%
-
-% command used in \description format for emph
-\newcommand\GNUTexinfotablestyleemph[1]{{\normalfont\emph{#1}}}%
-
-% command used in \description format for hyphenation
-\newcommand\GNUTexinfotablestylehyphenation[1]{{\normalfont\hyphenation{#1}}}%
-
-% command used in \description format for indicateurl
-\newcommand\GNUTexinfotablestyleindicateurl[1]{\ifstrempty{#1}{}{{`\texttt{#1}'}}}%
-
-% command used in \description format for kbd
-\newcommand\GNUTexinfotablestylekbd[1]{{\ttfamily\textsl{#1}}}%
-
-% command used in \description format for samp
-\newcommand\GNUTexinfotablestylesamp[1]{\ifstrempty{#1}{}{{`\texttt{#1}'}}}%
-
-% command used in \description format for sub
-\newcommand\GNUTexinfotablestylesub[1]{{\normalfont\textsubscript{#1}}}%
-
-% command used in \description format for sup
-\newcommand\GNUTexinfotablestylesup[1]{{\normalfont\textsuperscript{#1}}}%
-
-% command used in \description format for var
-\newcommand\GNUTexinfotablestylevar[1]{{\normalfont\emph{#1}}}%
-
-% command used in \description format for w
-\newcommand\GNUTexinfotablestylew[1]{{\normalfont\hbox{#1}}}%
-
 % redefine the \mainmatter command such that it does not clear page
 % as if in double page
 \makeatletter
@@ -59,14 +24,6 @@
 % add command aliases to use the same command in book and report
 \newcommand\GNUTexinfomainmatter{\mainmatter}
 \newcommand\GNUTexinfofrontmatter{\frontmatter}
-
-% this allows to select languages based on bcp47 codes.  bcp47 is a superset
-% of the LL_CC ISO 639-2 LL ISO 3166 CC information of @documentlanguage
-% \babeladjust{
-%   autoload.bcp47 = on,
-%   autoload.bcp47.options = import
-% }
-
 % set defaults for lists that match Texinfo TeX formatting
 \setlist[description]{style=nextline, font=\normalfont}
 \setlist[itemize]{label=\textbullet}
@@ -97,11 +54,6 @@
 % avoid pagebreak and headings setting for a sectionning command
 \newcommand{\GNUTexinfonopagebreakheading}[2]{\let\clearpage\relax 
\let\cleardoublepage\relax \let\thispagestyle\GNUTexinfoplaceholder #1{#2}}
 
-% the mdframed style for @cartouche
-\mdfdefinestyle{GNUTexinfocartouche}{
-innertopmargin=10pt, innerbottommargin=10pt,%
-roundcorner=10pt}
-
 \renewcommand{\includegraphics}[1]{\fbox{FIG #1}}
 
 % set default for @setchapternewpage
diff --git 
a/tp/t/results/formats_encodings/char_latin1_latin1_in_refs/res_latex/char_latin1_latin1_in_refs.tex
 
b/tp/t/results/formats_encodings/char_latin1_latin1_in_refs/res_latex/char_latin1_latin1_in_refs.tex
index de47413c56..f928f13b4d 100644
--- 
a/tp/t/results/formats_encodings/char_latin1_latin1_in_refs/res_latex/char_latin1_latin1_in_refs.tex
+++ 
b/tp/t/results/formats_encodings/char_latin1_latin1_in_refs/res_latex/char_latin1_latin1_in_refs.tex
@@ -6,15 +6,11 @@
 \usepackage[T1]{fontenc}
 \usepackage{textcomp}
 \usepackage{graphicx}
-\usepackage{needspace}
 \usepackage{etoolbox}
-\usepackage{mdframed}
-%\usepackage{fontsize}
 \usepackage{enumitem}
 \usepackage{geometry}
 \usepackage{titleps}
 \usepackage{float}
-%\usepackage{babel}
 % use hidelinks to remove boxes around links to be similar with Texinfo TeX
 \usepackage[hidelinks]{hyperref}
 \usepackage[latin1]{inputenc}
@@ -23,36 +19,6 @@
 
 \makeindex[name=cp]%
 
-% command used in \description format for dfn
-\newcommand\GNUTexinfotablestyledfn[1]{{\normalfont\emph{#1}}}%
-
-% command used in \description format for emph
-\newcommand\GNUTexinfotablestyleemph[1]{{\normalfont\emph{#1}}}%
-
-% command used in \description format for hyphenation
-\newcommand\GNUTexinfotablestylehyphenation[1]{{\normalfont\hyphenation{#1}}}%
-
-% command used in \description format for indicateurl
-\newcommand\GNUTexinfotablestyleindicateurl[1]{\ifstrempty{#1}{}{{`\texttt{#1}'}}}%
-
-% command used in \description format for kbd
-\newcommand\GNUTexinfotablestylekbd[1]{{\ttfamily\textsl{#1}}}%
-
-% command used in \description format for samp
-\newcommand\GNUTexinfotablestylesamp[1]{\ifstrempty{#1}{}{{`\texttt{#1}'}}}%
-
-% command used in \description format for sub
-\newcommand\GNUTexinfotablestylesub[1]{{\normalfont\textsubscript{#1}}}%
-
-% command used in \description format for sup
-\newcommand\GNUTexinfotablestylesup[1]{{\normalfont\textsuperscript{#1}}}%
-
-% command used in \description format for var
-\newcommand\GNUTexinfotablestylevar[1]{{\normalfont\emph{#1}}}%
-
-% command used in \description format for w
-\newcommand\GNUTexinfotablestylew[1]{{\normalfont\hbox{#1}}}%
-
 % redefine the \mainmatter command such that it does not clear page
 % as if in double page
 \makeatletter
@@ -61,14 +27,6 @@
 % add command aliases to use the same command in book and report
 \newcommand\GNUTexinfomainmatter{\mainmatter}
 \newcommand\GNUTexinfofrontmatter{\frontmatter}
-
-% this allows to select languages based on bcp47 codes.  bcp47 is a superset
-% of the LL_CC ISO 639-2 LL ISO 3166 CC information of @documentlanguage
-% \babeladjust{
-%   autoload.bcp47 = on,
-%   autoload.bcp47.options = import
-% }
-
 % set defaults for lists that match Texinfo TeX formatting
 \setlist[description]{style=nextline, font=\normalfont}
 \setlist[itemize]{label=\textbullet}
@@ -99,11 +57,6 @@
 % avoid pagebreak and headings setting for a sectionning command
 \newcommand{\GNUTexinfonopagebreakheading}[2]{\let\clearpage\relax 
\let\cleardoublepage\relax \let\thispagestyle\GNUTexinfoplaceholder #1{#2}}
 
-% the mdframed style for @cartouche
-\mdfdefinestyle{GNUTexinfocartouche}{
-innertopmargin=10pt, innerbottommargin=10pt,%
-roundcorner=10pt}
-
 \renewcommand{\includegraphics}[1]{\fbox{FIG #1}}
 
 % set default for @setchapternewpage
diff --git a/tp/t/results/indices/def_syn_indices/res_latex/def_syn_indices.tex 
b/tp/t/results/indices/def_syn_indices/res_latex/def_syn_indices.tex
index 45d22f4e59..c3a1ad8ba0 100644
--- a/tp/t/results/indices/def_syn_indices/res_latex/def_syn_indices.tex
+++ b/tp/t/results/indices/def_syn_indices/res_latex/def_syn_indices.tex
@@ -6,15 +6,11 @@
 \usepackage[T1]{fontenc}
 \usepackage{textcomp}
 \usepackage{graphicx}
-\usepackage{needspace}
 \usepackage{etoolbox}
-\usepackage{mdframed}
-%\usepackage{fontsize}
 \usepackage{enumitem}
 \usepackage{geometry}
 \usepackage{titleps}
 \usepackage{float}
-%\usepackage{babel}
 % use hidelinks to remove boxes around links to be similar with Texinfo TeX
 \usepackage[hidelinks]{hyperref}
 \usepackage[utf8]{inputenc}
@@ -25,36 +21,6 @@
 \makeindex[name=fn]%
 \makeindex[name=pg]%
 
-% command used in \description format for dfn
-\newcommand\GNUTexinfotablestyledfn[1]{{\normalfont\emph{#1}}}%
-
-% command used in \description format for emph
-\newcommand\GNUTexinfotablestyleemph[1]{{\normalfont\emph{#1}}}%
-
-% command used in \description format for hyphenation
-\newcommand\GNUTexinfotablestylehyphenation[1]{{\normalfont\hyphenation{#1}}}%
-
-% command used in \description format for indicateurl
-\newcommand\GNUTexinfotablestyleindicateurl[1]{\ifstrempty{#1}{}{{`\texttt{#1}'}}}%
-
-% command used in \description format for kbd
-\newcommand\GNUTexinfotablestylekbd[1]{{\ttfamily\textsl{#1}}}%
-
-% command used in \description format for samp
-\newcommand\GNUTexinfotablestylesamp[1]{\ifstrempty{#1}{}{{`\texttt{#1}'}}}%
-
-% command used in \description format for sub
-\newcommand\GNUTexinfotablestylesub[1]{{\normalfont\textsubscript{#1}}}%
-
-% command used in \description format for sup
-\newcommand\GNUTexinfotablestylesup[1]{{\normalfont\textsuperscript{#1}}}%
-
-% command used in \description format for var
-\newcommand\GNUTexinfotablestylevar[1]{{\normalfont\emph{#1}}}%
-
-% command used in \description format for w
-\newcommand\GNUTexinfotablestylew[1]{{\normalfont\hbox{#1}}}%
-
 % redefine the \mainmatter command such that it does not clear page
 % as if in double page
 \makeatletter
@@ -63,14 +29,6 @@
 % add command aliases to use the same command in book and report
 \newcommand\GNUTexinfomainmatter{\mainmatter}
 \newcommand\GNUTexinfofrontmatter{\frontmatter}
-
-% this allows to select languages based on bcp47 codes.  bcp47 is a superset
-% of the LL_CC ISO 639-2 LL ISO 3166 CC information of @documentlanguage
-% \babeladjust{
-%   autoload.bcp47 = on,
-%   autoload.bcp47.options = import
-% }
-
 % set defaults for lists that match Texinfo TeX formatting
 \setlist[description]{style=nextline, font=\normalfont}
 \setlist[itemize]{label=\textbullet}
@@ -101,11 +59,6 @@
 % avoid pagebreak and headings setting for a sectionning command
 \newcommand{\GNUTexinfonopagebreakheading}[2]{\let\clearpage\relax 
\let\cleardoublepage\relax \let\thispagestyle\GNUTexinfoplaceholder #1{#2}}
 
-% the mdframed style for @cartouche
-\mdfdefinestyle{GNUTexinfocartouche}{
-innertopmargin=10pt, innerbottommargin=10pt,%
-roundcorner=10pt}
-
 \renewcommand{\includegraphics}[1]{\fbox{FIG #1}}
 
 % set default for @setchapternewpage
diff --git 
a/tp/t/results/indices/double_seeentry_seealso/res_latex/double_seeentry_seealso.tex
 
b/tp/t/results/indices/double_seeentry_seealso/res_latex/double_seeentry_seealso.tex
index af55589282..d5875a7d55 100644
--- 
a/tp/t/results/indices/double_seeentry_seealso/res_latex/double_seeentry_seealso.tex
+++ 
b/tp/t/results/indices/double_seeentry_seealso/res_latex/double_seeentry_seealso.tex
@@ -1,56 +1,21 @@
 \documentclass{book}
-\usepackage{imakeidx}
 \usepackage{amsfonts}
 \usepackage{amsmath}
 \usepackage[gen]{eurosym}
 \usepackage[T1]{fontenc}
 \usepackage{textcomp}
 \usepackage{graphicx}
-\usepackage{needspace}
 \usepackage{etoolbox}
-\usepackage{mdframed}
-%\usepackage{fontsize}
 \usepackage{enumitem}
 \usepackage{geometry}
 \usepackage{titleps}
 \usepackage{float}
-%\usepackage{babel}
 % use hidelinks to remove boxes around links to be similar with Texinfo TeX
 \usepackage[hidelinks]{hyperref}
 \usepackage[utf8]{inputenc}
 
 \newcommand{\GNUTexinfosettitle}{No Title}%
 
-% command used in \description format for dfn
-\newcommand\GNUTexinfotablestyledfn[1]{{\normalfont\emph{#1}}}%
-
-% command used in \description format for emph
-\newcommand\GNUTexinfotablestyleemph[1]{{\normalfont\emph{#1}}}%
-
-% command used in \description format for hyphenation
-\newcommand\GNUTexinfotablestylehyphenation[1]{{\normalfont\hyphenation{#1}}}%
-
-% command used in \description format for indicateurl
-\newcommand\GNUTexinfotablestyleindicateurl[1]{\ifstrempty{#1}{}{{`\texttt{#1}'}}}%
-
-% command used in \description format for kbd
-\newcommand\GNUTexinfotablestylekbd[1]{{\ttfamily\textsl{#1}}}%
-
-% command used in \description format for samp
-\newcommand\GNUTexinfotablestylesamp[1]{\ifstrempty{#1}{}{{`\texttt{#1}'}}}%
-
-% command used in \description format for sub
-\newcommand\GNUTexinfotablestylesub[1]{{\normalfont\textsubscript{#1}}}%
-
-% command used in \description format for sup
-\newcommand\GNUTexinfotablestylesup[1]{{\normalfont\textsuperscript{#1}}}%
-
-% command used in \description format for var
-\newcommand\GNUTexinfotablestylevar[1]{{\normalfont\emph{#1}}}%
-
-% command used in \description format for w
-\newcommand\GNUTexinfotablestylew[1]{{\normalfont\hbox{#1}}}%
-
 % redefine the \mainmatter command such that it does not clear page
 % as if in double page
 \makeatletter
@@ -59,14 +24,6 @@
 % add command aliases to use the same command in book and report
 \newcommand\GNUTexinfomainmatter{\mainmatter}
 \newcommand\GNUTexinfofrontmatter{\frontmatter}
-
-% this allows to select languages based on bcp47 codes.  bcp47 is a superset
-% of the LL_CC ISO 639-2 LL ISO 3166 CC information of @documentlanguage
-% \babeladjust{
-%   autoload.bcp47 = on,
-%   autoload.bcp47.options = import
-% }
-
 % set defaults for lists that match Texinfo TeX formatting
 \setlist[description]{style=nextline, font=\normalfont}
 \setlist[itemize]{label=\textbullet}
@@ -97,11 +54,6 @@
 % avoid pagebreak and headings setting for a sectionning command
 \newcommand{\GNUTexinfonopagebreakheading}[2]{\let\clearpage\relax 
\let\cleardoublepage\relax \let\thispagestyle\GNUTexinfoplaceholder #1{#2}}
 
-% the mdframed style for @cartouche
-\mdfdefinestyle{GNUTexinfocartouche}{
-innertopmargin=10pt, innerbottommargin=10pt,%
-roundcorner=10pt}
-
 \renewcommand{\includegraphics}[1]{\fbox{FIG #1}}
 
 % set default for @setchapternewpage
diff --git a/tp/t/results/indices/seeentry/res_latex/seeentry.tex 
b/tp/t/results/indices/seeentry/res_latex/seeentry.tex
index c0fd410e2c..93d1dc3a7d 100644
--- a/tp/t/results/indices/seeentry/res_latex/seeentry.tex
+++ b/tp/t/results/indices/seeentry/res_latex/seeentry.tex
@@ -1,56 +1,21 @@
 \documentclass{book}
-\usepackage{imakeidx}
 \usepackage{amsfonts}
 \usepackage{amsmath}
 \usepackage[gen]{eurosym}
 \usepackage[T1]{fontenc}
 \usepackage{textcomp}
 \usepackage{graphicx}
-\usepackage{needspace}
 \usepackage{etoolbox}
-\usepackage{mdframed}
-%\usepackage{fontsize}
 \usepackage{enumitem}
 \usepackage{geometry}
 \usepackage{titleps}
 \usepackage{float}
-%\usepackage{babel}
 % use hidelinks to remove boxes around links to be similar with Texinfo TeX
 \usepackage[hidelinks]{hyperref}
 \usepackage[utf8]{inputenc}
 
 \newcommand{\GNUTexinfosettitle}{No Title}%
 
-% command used in \description format for dfn
-\newcommand\GNUTexinfotablestyledfn[1]{{\normalfont\emph{#1}}}%
-
-% command used in \description format for emph
-\newcommand\GNUTexinfotablestyleemph[1]{{\normalfont\emph{#1}}}%
-
-% command used in \description format for hyphenation
-\newcommand\GNUTexinfotablestylehyphenation[1]{{\normalfont\hyphenation{#1}}}%
-
-% command used in \description format for indicateurl
-\newcommand\GNUTexinfotablestyleindicateurl[1]{\ifstrempty{#1}{}{{`\texttt{#1}'}}}%
-
-% command used in \description format for kbd
-\newcommand\GNUTexinfotablestylekbd[1]{{\ttfamily\textsl{#1}}}%
-
-% command used in \description format for samp
-\newcommand\GNUTexinfotablestylesamp[1]{\ifstrempty{#1}{}{{`\texttt{#1}'}}}%
-
-% command used in \description format for sub
-\newcommand\GNUTexinfotablestylesub[1]{{\normalfont\textsubscript{#1}}}%
-
-% command used in \description format for sup
-\newcommand\GNUTexinfotablestylesup[1]{{\normalfont\textsuperscript{#1}}}%
-
-% command used in \description format for var
-\newcommand\GNUTexinfotablestylevar[1]{{\normalfont\emph{#1}}}%
-
-% command used in \description format for w
-\newcommand\GNUTexinfotablestylew[1]{{\normalfont\hbox{#1}}}%
-
 % redefine the \mainmatter command such that it does not clear page
 % as if in double page
 \makeatletter
@@ -59,14 +24,6 @@
 % add command aliases to use the same command in book and report
 \newcommand\GNUTexinfomainmatter{\mainmatter}
 \newcommand\GNUTexinfofrontmatter{\frontmatter}
-
-% this allows to select languages based on bcp47 codes.  bcp47 is a superset
-% of the LL_CC ISO 639-2 LL ISO 3166 CC information of @documentlanguage
-% \babeladjust{
-%   autoload.bcp47 = on,
-%   autoload.bcp47.options = import
-% }
-
 % set defaults for lists that match Texinfo TeX formatting
 \setlist[description]{style=nextline, font=\normalfont}
 \setlist[itemize]{label=\textbullet}
@@ -97,11 +54,6 @@
 % avoid pagebreak and headings setting for a sectionning command
 \newcommand{\GNUTexinfonopagebreakheading}[2]{\let\clearpage\relax 
\let\cleardoublepage\relax \let\thispagestyle\GNUTexinfoplaceholder #1{#2}}
 
-% the mdframed style for @cartouche
-\mdfdefinestyle{GNUTexinfocartouche}{
-innertopmargin=10pt, innerbottommargin=10pt,%
-roundcorner=10pt}
-
 \renewcommand{\includegraphics}[1]{\fbox{FIG #1}}
 
 % set default for @setchapternewpage
diff --git a/tp/t/results/indices/subentries/res_latex/subentries.tex 
b/tp/t/results/indices/subentries/res_latex/subentries.tex
index 5e796fbe30..b31eb27a48 100644
--- a/tp/t/results/indices/subentries/res_latex/subentries.tex
+++ b/tp/t/results/indices/subentries/res_latex/subentries.tex
@@ -6,15 +6,11 @@
 \usepackage[T1]{fontenc}
 \usepackage{textcomp}
 \usepackage{graphicx}
-\usepackage{needspace}
 \usepackage{etoolbox}
-\usepackage{mdframed}
-%\usepackage{fontsize}
 \usepackage{enumitem}
 \usepackage{geometry}
 \usepackage{titleps}
 \usepackage{float}
-%\usepackage{babel}
 % use hidelinks to remove boxes around links to be similar with Texinfo TeX
 \usepackage[hidelinks]{hyperref}
 \usepackage[utf8]{inputenc}
@@ -24,36 +20,6 @@
 \makeindex[name=cp]%
 \makeindex[name=fn]%
 
-% command used in \description format for dfn
-\newcommand\GNUTexinfotablestyledfn[1]{{\normalfont\emph{#1}}}%
-
-% command used in \description format for emph
-\newcommand\GNUTexinfotablestyleemph[1]{{\normalfont\emph{#1}}}%
-
-% command used in \description format for hyphenation
-\newcommand\GNUTexinfotablestylehyphenation[1]{{\normalfont\hyphenation{#1}}}%
-
-% command used in \description format for indicateurl
-\newcommand\GNUTexinfotablestyleindicateurl[1]{\ifstrempty{#1}{}{{`\texttt{#1}'}}}%
-
-% command used in \description format for kbd
-\newcommand\GNUTexinfotablestylekbd[1]{{\ttfamily\textsl{#1}}}%
-
-% command used in \description format for samp
-\newcommand\GNUTexinfotablestylesamp[1]{\ifstrempty{#1}{}{{`\texttt{#1}'}}}%
-
-% command used in \description format for sub
-\newcommand\GNUTexinfotablestylesub[1]{{\normalfont\textsubscript{#1}}}%
-
-% command used in \description format for sup
-\newcommand\GNUTexinfotablestylesup[1]{{\normalfont\textsuperscript{#1}}}%
-
-% command used in \description format for var
-\newcommand\GNUTexinfotablestylevar[1]{{\normalfont\emph{#1}}}%
-
-% command used in \description format for w
-\newcommand\GNUTexinfotablestylew[1]{{\normalfont\hbox{#1}}}%
-
 % redefine the \mainmatter command such that it does not clear page
 % as if in double page
 \makeatletter
@@ -62,14 +28,6 @@
 % add command aliases to use the same command in book and report
 \newcommand\GNUTexinfomainmatter{\mainmatter}
 \newcommand\GNUTexinfofrontmatter{\frontmatter}
-
-% this allows to select languages based on bcp47 codes.  bcp47 is a superset
-% of the LL_CC ISO 639-2 LL ISO 3166 CC information of @documentlanguage
-% \babeladjust{
-%   autoload.bcp47 = on,
-%   autoload.bcp47.options = import
-% }
-
 % set defaults for lists that match Texinfo TeX formatting
 \setlist[description]{style=nextline, font=\normalfont}
 \setlist[itemize]{label=\textbullet}
@@ -100,11 +58,6 @@
 % avoid pagebreak and headings setting for a sectionning command
 \newcommand{\GNUTexinfonopagebreakheading}[2]{\let\clearpage\relax 
\let\cleardoublepage\relax \let\thispagestyle\GNUTexinfoplaceholder #1{#2}}
 
-% the mdframed style for @cartouche
-\mdfdefinestyle{GNUTexinfocartouche}{
-innertopmargin=10pt, innerbottommargin=10pt,%
-roundcorner=10pt}
-
 \renewcommand{\includegraphics}[1]{\fbox{FIG #1}}
 
 % set default for @setchapternewpage
diff --git 
a/tp/t/results/indices/subentry_and_sortas/res_latex/subentry_and_sortas.tex 
b/tp/t/results/indices/subentry_and_sortas/res_latex/subentry_and_sortas.tex
index 715d17e32a..b711016019 100644
--- a/tp/t/results/indices/subentry_and_sortas/res_latex/subentry_and_sortas.tex
+++ b/tp/t/results/indices/subentry_and_sortas/res_latex/subentry_and_sortas.tex
@@ -6,15 +6,11 @@
 \usepackage[T1]{fontenc}
 \usepackage{textcomp}
 \usepackage{graphicx}
-\usepackage{needspace}
 \usepackage{etoolbox}
-\usepackage{mdframed}
-%\usepackage{fontsize}
 \usepackage{enumitem}
 \usepackage{geometry}
 \usepackage{titleps}
 \usepackage{float}
-%\usepackage{babel}
 % use hidelinks to remove boxes around links to be similar with Texinfo TeX
 \usepackage[hidelinks]{hyperref}
 \usepackage[utf8]{inputenc}
@@ -24,36 +20,6 @@
 \makeindex[name=cp]%
 \makeindex[name=fn]%
 
-% command used in \description format for dfn
-\newcommand\GNUTexinfotablestyledfn[1]{{\normalfont\emph{#1}}}%
-
-% command used in \description format for emph
-\newcommand\GNUTexinfotablestyleemph[1]{{\normalfont\emph{#1}}}%
-
-% command used in \description format for hyphenation
-\newcommand\GNUTexinfotablestylehyphenation[1]{{\normalfont\hyphenation{#1}}}%
-
-% command used in \description format for indicateurl
-\newcommand\GNUTexinfotablestyleindicateurl[1]{\ifstrempty{#1}{}{{`\texttt{#1}'}}}%
-
-% command used in \description format for kbd
-\newcommand\GNUTexinfotablestylekbd[1]{{\ttfamily\textsl{#1}}}%
-
-% command used in \description format for samp
-\newcommand\GNUTexinfotablestylesamp[1]{\ifstrempty{#1}{}{{`\texttt{#1}'}}}%
-
-% command used in \description format for sub
-\newcommand\GNUTexinfotablestylesub[1]{{\normalfont\textsubscript{#1}}}%
-
-% command used in \description format for sup
-\newcommand\GNUTexinfotablestylesup[1]{{\normalfont\textsuperscript{#1}}}%
-
-% command used in \description format for var
-\newcommand\GNUTexinfotablestylevar[1]{{\normalfont\emph{#1}}}%
-
-% command used in \description format for w
-\newcommand\GNUTexinfotablestylew[1]{{\normalfont\hbox{#1}}}%
-
 % redefine the \mainmatter command such that it does not clear page
 % as if in double page
 \makeatletter
@@ -62,14 +28,6 @@
 % add command aliases to use the same command in book and report
 \newcommand\GNUTexinfomainmatter{\mainmatter}
 \newcommand\GNUTexinfofrontmatter{\frontmatter}
-
-% this allows to select languages based on bcp47 codes.  bcp47 is a superset
-% of the LL_CC ISO 639-2 LL ISO 3166 CC information of @documentlanguage
-% \babeladjust{
-%   autoload.bcp47 = on,
-%   autoload.bcp47.options = import
-% }
-
 % set defaults for lists that match Texinfo TeX formatting
 \setlist[description]{style=nextline, font=\normalfont}
 \setlist[itemize]{label=\textbullet}
@@ -100,11 +58,6 @@
 % avoid pagebreak and headings setting for a sectionning command
 \newcommand{\GNUTexinfonopagebreakheading}[2]{\let\clearpage\relax 
\let\cleardoublepage\relax \let\thispagestyle\GNUTexinfoplaceholder #1{#2}}
 
-% the mdframed style for @cartouche
-\mdfdefinestyle{GNUTexinfocartouche}{
-innertopmargin=10pt, innerbottommargin=10pt,%
-roundcorner=10pt}
-
 \renewcommand{\includegraphics}[1]{\fbox{FIG #1}}
 
 % set default for @setchapternewpage
diff --git 
a/tp/t/results/indices/syncode_index_print_both/res_latex/syncode_index_print_both.tex
 
b/tp/t/results/indices/syncode_index_print_both/res_latex/syncode_index_print_both.tex
index 90d6499f91..62fdf5f10a 100644
--- 
a/tp/t/results/indices/syncode_index_print_both/res_latex/syncode_index_print_both.tex
+++ 
b/tp/t/results/indices/syncode_index_print_both/res_latex/syncode_index_print_both.tex
@@ -6,15 +6,11 @@
 \usepackage[T1]{fontenc}
 \usepackage{textcomp}
 \usepackage{graphicx}
-\usepackage{needspace}
 \usepackage{etoolbox}
-\usepackage{mdframed}
-%\usepackage{fontsize}
 \usepackage{enumitem}
 \usepackage{geometry}
 \usepackage{titleps}
 \usepackage{float}
-%\usepackage{babel}
 % use hidelinks to remove boxes around links to be similar with Texinfo TeX
 \usepackage[hidelinks]{hyperref}
 \usepackage[utf8]{inputenc}
@@ -23,36 +19,6 @@
 
 \makeindex[name=cp]%
 
-% command used in \description format for dfn
-\newcommand\GNUTexinfotablestyledfn[1]{{\normalfont\emph{#1}}}%
-
-% command used in \description format for emph
-\newcommand\GNUTexinfotablestyleemph[1]{{\normalfont\emph{#1}}}%
-
-% command used in \description format for hyphenation
-\newcommand\GNUTexinfotablestylehyphenation[1]{{\normalfont\hyphenation{#1}}}%
-
-% command used in \description format for indicateurl
-\newcommand\GNUTexinfotablestyleindicateurl[1]{\ifstrempty{#1}{}{{`\texttt{#1}'}}}%
-
-% command used in \description format for kbd
-\newcommand\GNUTexinfotablestylekbd[1]{{\ttfamily\textsl{#1}}}%
-
-% command used in \description format for samp
-\newcommand\GNUTexinfotablestylesamp[1]{\ifstrempty{#1}{}{{`\texttt{#1}'}}}%
-
-% command used in \description format for sub
-\newcommand\GNUTexinfotablestylesub[1]{{\normalfont\textsubscript{#1}}}%
-
-% command used in \description format for sup
-\newcommand\GNUTexinfotablestylesup[1]{{\normalfont\textsuperscript{#1}}}%
-
-% command used in \description format for var
-\newcommand\GNUTexinfotablestylevar[1]{{\normalfont\emph{#1}}}%
-
-% command used in \description format for w
-\newcommand\GNUTexinfotablestylew[1]{{\normalfont\hbox{#1}}}%
-
 % redefine the \mainmatter command such that it does not clear page
 % as if in double page
 \makeatletter
@@ -61,14 +27,6 @@
 % add command aliases to use the same command in book and report
 \newcommand\GNUTexinfomainmatter{\mainmatter}
 \newcommand\GNUTexinfofrontmatter{\frontmatter}
-
-% this allows to select languages based on bcp47 codes.  bcp47 is a superset
-% of the LL_CC ISO 639-2 LL ISO 3166 CC information of @documentlanguage
-% \babeladjust{
-%   autoload.bcp47 = on,
-%   autoload.bcp47.options = import
-% }
-
 % set defaults for lists that match Texinfo TeX formatting
 \setlist[description]{style=nextline, font=\normalfont}
 \setlist[itemize]{label=\textbullet}
@@ -99,11 +57,6 @@
 % avoid pagebreak and headings setting for a sectionning command
 \newcommand{\GNUTexinfonopagebreakheading}[2]{\let\clearpage\relax 
\let\cleardoublepage\relax \let\thispagestyle\GNUTexinfoplaceholder #1{#2}}
 
-% the mdframed style for @cartouche
-\mdfdefinestyle{GNUTexinfocartouche}{
-innertopmargin=10pt, innerbottommargin=10pt,%
-roundcorner=10pt}
-
 \renewcommand{\includegraphics}[1]{\fbox{FIG #1}}
 
 % set default for @setchapternewpage
diff --git 
a/tp/t/results/itemize/inter_item_commands_in_enumerate/res_latex/inter_item_commands_in_enumerate.tex
 
b/tp/t/results/itemize/inter_item_commands_in_enumerate/res_latex/inter_item_commands_in_enumerate.tex
index 1eb081b50a..1f2b1ec5dc 100644
--- 
a/tp/t/results/itemize/inter_item_commands_in_enumerate/res_latex/inter_item_commands_in_enumerate.tex
+++ 
b/tp/t/results/itemize/inter_item_commands_in_enumerate/res_latex/inter_item_commands_in_enumerate.tex
@@ -6,15 +6,11 @@
 \usepackage[T1]{fontenc}
 \usepackage{textcomp}
 \usepackage{graphicx}
-\usepackage{needspace}
 \usepackage{etoolbox}
-\usepackage{mdframed}
-%\usepackage{fontsize}
 \usepackage{enumitem}
 \usepackage{geometry}
 \usepackage{titleps}
 \usepackage{float}
-%\usepackage{babel}
 % use hidelinks to remove boxes around links to be similar with Texinfo TeX
 \usepackage[hidelinks]{hyperref}
 \usepackage[utf8]{inputenc}
@@ -23,36 +19,6 @@
 
 \makeindex[name=cp]%
 
-% command used in \description format for dfn
-\newcommand\GNUTexinfotablestyledfn[1]{{\normalfont\emph{#1}}}%
-
-% command used in \description format for emph
-\newcommand\GNUTexinfotablestyleemph[1]{{\normalfont\emph{#1}}}%
-
-% command used in \description format for hyphenation
-\newcommand\GNUTexinfotablestylehyphenation[1]{{\normalfont\hyphenation{#1}}}%
-
-% command used in \description format for indicateurl
-\newcommand\GNUTexinfotablestyleindicateurl[1]{\ifstrempty{#1}{}{{`\texttt{#1}'}}}%
-
-% command used in \description format for kbd
-\newcommand\GNUTexinfotablestylekbd[1]{{\ttfamily\textsl{#1}}}%
-
-% command used in \description format for samp
-\newcommand\GNUTexinfotablestylesamp[1]{\ifstrempty{#1}{}{{`\texttt{#1}'}}}%
-
-% command used in \description format for sub
-\newcommand\GNUTexinfotablestylesub[1]{{\normalfont\textsubscript{#1}}}%
-
-% command used in \description format for sup
-\newcommand\GNUTexinfotablestylesup[1]{{\normalfont\textsuperscript{#1}}}%
-
-% command used in \description format for var
-\newcommand\GNUTexinfotablestylevar[1]{{\normalfont\emph{#1}}}%
-
-% command used in \description format for w
-\newcommand\GNUTexinfotablestylew[1]{{\normalfont\hbox{#1}}}%
-
 % redefine the \mainmatter command such that it does not clear page
 % as if in double page
 \makeatletter
@@ -61,14 +27,6 @@
 % add command aliases to use the same command in book and report
 \newcommand\GNUTexinfomainmatter{\mainmatter}
 \newcommand\GNUTexinfofrontmatter{\frontmatter}
-
-% this allows to select languages based on bcp47 codes.  bcp47 is a superset
-% of the LL_CC ISO 639-2 LL ISO 3166 CC information of @documentlanguage
-% \babeladjust{
-%   autoload.bcp47 = on,
-%   autoload.bcp47.options = import
-% }
-
 % set defaults for lists that match Texinfo TeX formatting
 \setlist[description]{style=nextline, font=\normalfont}
 \setlist[itemize]{label=\textbullet}
@@ -99,11 +57,6 @@
 % avoid pagebreak and headings setting for a sectionning command
 \newcommand{\GNUTexinfonopagebreakheading}[2]{\let\clearpage\relax 
\let\cleardoublepage\relax \let\thispagestyle\GNUTexinfoplaceholder #1{#2}}
 
-% the mdframed style for @cartouche
-\mdfdefinestyle{GNUTexinfocartouche}{
-innertopmargin=10pt, innerbottommargin=10pt,%
-roundcorner=10pt}
-
 \renewcommand{\includegraphics}[1]{\fbox{FIG #1}}
 
 % set default for @setchapternewpage
diff --git 
a/tp/t/results/itemize/inter_item_commands_in_itemize/res_latex/inter_item_commands_in_itemize.tex
 
b/tp/t/results/itemize/inter_item_commands_in_itemize/res_latex/inter_item_commands_in_itemize.tex
index d110f09733..6710cb9571 100644
--- 
a/tp/t/results/itemize/inter_item_commands_in_itemize/res_latex/inter_item_commands_in_itemize.tex
+++ 
b/tp/t/results/itemize/inter_item_commands_in_itemize/res_latex/inter_item_commands_in_itemize.tex
@@ -6,15 +6,11 @@
 \usepackage[T1]{fontenc}
 \usepackage{textcomp}
 \usepackage{graphicx}
-\usepackage{needspace}
 \usepackage{etoolbox}
-\usepackage{mdframed}
-%\usepackage{fontsize}
 \usepackage{enumitem}
 \usepackage{geometry}
 \usepackage{titleps}
 \usepackage{float}
-%\usepackage{babel}
 % use hidelinks to remove boxes around links to be similar with Texinfo TeX
 \usepackage[hidelinks]{hyperref}
 \usepackage[utf8]{inputenc}
@@ -23,36 +19,6 @@
 
 \makeindex[name=cp]%
 
-% command used in \description format for dfn
-\newcommand\GNUTexinfotablestyledfn[1]{{\normalfont\emph{#1}}}%
-
-% command used in \description format for emph
-\newcommand\GNUTexinfotablestyleemph[1]{{\normalfont\emph{#1}}}%
-
-% command used in \description format for hyphenation
-\newcommand\GNUTexinfotablestylehyphenation[1]{{\normalfont\hyphenation{#1}}}%
-
-% command used in \description format for indicateurl
-\newcommand\GNUTexinfotablestyleindicateurl[1]{\ifstrempty{#1}{}{{`\texttt{#1}'}}}%
-
-% command used in \description format for kbd
-\newcommand\GNUTexinfotablestylekbd[1]{{\ttfamily\textsl{#1}}}%
-
-% command used in \description format for samp
-\newcommand\GNUTexinfotablestylesamp[1]{\ifstrempty{#1}{}{{`\texttt{#1}'}}}%
-
-% command used in \description format for sub
-\newcommand\GNUTexinfotablestylesub[1]{{\normalfont\textsubscript{#1}}}%
-
-% command used in \description format for sup
-\newcommand\GNUTexinfotablestylesup[1]{{\normalfont\textsuperscript{#1}}}%
-
-% command used in \description format for var
-\newcommand\GNUTexinfotablestylevar[1]{{\normalfont\emph{#1}}}%
-
-% command used in \description format for w
-\newcommand\GNUTexinfotablestylew[1]{{\normalfont\hbox{#1}}}%
-
 % redefine the \mainmatter command such that it does not clear page
 % as if in double page
 \makeatletter
@@ -61,14 +27,6 @@
 % add command aliases to use the same command in book and report
 \newcommand\GNUTexinfomainmatter{\mainmatter}
 \newcommand\GNUTexinfofrontmatter{\frontmatter}
-
-% this allows to select languages based on bcp47 codes.  bcp47 is a superset
-% of the LL_CC ISO 639-2 LL ISO 3166 CC information of @documentlanguage
-% \babeladjust{
-%   autoload.bcp47 = on,
-%   autoload.bcp47.options = import
-% }
-
 % set defaults for lists that match Texinfo TeX formatting
 \setlist[description]{style=nextline, font=\normalfont}
 \setlist[itemize]{label=\textbullet}
@@ -99,11 +57,6 @@
 % avoid pagebreak and headings setting for a sectionning command
 \newcommand{\GNUTexinfonopagebreakheading}[2]{\let\clearpage\relax 
\let\cleardoublepage\relax \let\thispagestyle\GNUTexinfoplaceholder #1{#2}}
 
-% the mdframed style for @cartouche
-\mdfdefinestyle{GNUTexinfocartouche}{
-innertopmargin=10pt, innerbottommargin=10pt,%
-roundcorner=10pt}
-
 \renewcommand{\includegraphics}[1]{\fbox{FIG #1}}
 
 % set default for @setchapternewpage
diff --git 
a/tp/t/results/languages/multiple_lang_chapters_latex/res_latex/multiple_lang_chapters.tex
 
b/tp/t/results/languages/multiple_lang_chapters_latex/res_latex/multiple_lang_chapters.tex
index 7c58f83f4c..e2a22b2d5f 100644
--- 
a/tp/t/results/languages/multiple_lang_chapters_latex/res_latex/multiple_lang_chapters.tex
+++ 
b/tp/t/results/languages/multiple_lang_chapters_latex/res_latex/multiple_lang_chapters.tex
@@ -6,15 +6,12 @@
 \usepackage[T1]{fontenc}
 \usepackage{textcomp}
 \usepackage{graphicx}
-\usepackage{needspace}
 \usepackage{etoolbox}
-\usepackage{mdframed}
-%\usepackage{fontsize}
 \usepackage{enumitem}
 \usepackage{geometry}
 \usepackage{titleps}
 \usepackage{float}
-%\usepackage{babel}
+\usepackage{babel}
 % use hidelinks to remove boxes around links to be similar with Texinfo TeX
 \usepackage[hidelinks]{hyperref}
 \usepackage[utf8]{inputenc}
@@ -23,36 +20,6 @@
 
 \makeindex[name=vr]%
 
-% command used in \description format for dfn
-\newcommand\GNUTexinfotablestyledfn[1]{{\normalfont\emph{#1}}}%
-
-% command used in \description format for emph
-\newcommand\GNUTexinfotablestyleemph[1]{{\normalfont\emph{#1}}}%
-
-% command used in \description format for hyphenation
-\newcommand\GNUTexinfotablestylehyphenation[1]{{\normalfont\hyphenation{#1}}}%
-
-% command used in \description format for indicateurl
-\newcommand\GNUTexinfotablestyleindicateurl[1]{\ifstrempty{#1}{}{{`\texttt{#1}'}}}%
-
-% command used in \description format for kbd
-\newcommand\GNUTexinfotablestylekbd[1]{{\ttfamily\textsl{#1}}}%
-
-% command used in \description format for samp
-\newcommand\GNUTexinfotablestylesamp[1]{\ifstrempty{#1}{}{{`\texttt{#1}'}}}%
-
-% command used in \description format for sub
-\newcommand\GNUTexinfotablestylesub[1]{{\normalfont\textsubscript{#1}}}%
-
-% command used in \description format for sup
-\newcommand\GNUTexinfotablestylesup[1]{{\normalfont\textsuperscript{#1}}}%
-
-% command used in \description format for var
-\newcommand\GNUTexinfotablestylevar[1]{{\normalfont\emph{#1}}}%
-
-% command used in \description format for w
-\newcommand\GNUTexinfotablestylew[1]{{\normalfont\hbox{#1}}}%
-
 % redefine the \mainmatter command such that it does not clear page
 % as if in double page
 \makeatletter
@@ -64,11 +31,10 @@
 
 % this allows to select languages based on bcp47 codes.  bcp47 is a superset
 % of the LL_CC ISO 639-2 LL ISO 3166 CC information of @documentlanguage
-% \babeladjust{
-%   autoload.bcp47 = on,
-%   autoload.bcp47.options = import
-% }
-
+\babeladjust{
+  autoload.bcp47 = on,
+  autoload.bcp47.options = import
+}
 % set defaults for lists that match Texinfo TeX formatting
 \setlist[description]{style=nextline, font=\normalfont}
 \setlist[itemize]{label=\textbullet}
@@ -99,11 +65,6 @@
 % avoid pagebreak and headings setting for a sectionning command
 \newcommand{\GNUTexinfonopagebreakheading}[2]{\let\clearpage\relax 
\let\cleardoublepage\relax \let\thispagestyle\GNUTexinfoplaceholder #1{#2}}
 
-% the mdframed style for @cartouche
-\mdfdefinestyle{GNUTexinfocartouche}{
-innertopmargin=10pt, innerbottommargin=10pt,%
-roundcorner=10pt}
-
 \renewcommand{\includegraphics}[1]{\fbox{FIG #1}}
 
 % set default for @setchapternewpage
diff --git 
a/tp/t/results/latex_tests/anchor_links_xref_xrefautomaticsectiontitle/res_latex/anchor_links_xref_xrefautomaticsectiontitle.tex
 
b/tp/t/results/latex_tests/anchor_links_xref_xrefautomaticsectiontitle/res_latex/anchor_links_xref_xrefautomaticsectiontitle.tex
index a6024c98ad..bf738ed8c5 100644
--- 
a/tp/t/results/latex_tests/anchor_links_xref_xrefautomaticsectiontitle/res_latex/anchor_links_xref_xrefautomaticsectiontitle.tex
+++ 
b/tp/t/results/latex_tests/anchor_links_xref_xrefautomaticsectiontitle/res_latex/anchor_links_xref_xrefautomaticsectiontitle.tex
@@ -1,56 +1,21 @@
 \documentclass{book}
-\usepackage{imakeidx}
 \usepackage{amsfonts}
 \usepackage{amsmath}
 \usepackage[gen]{eurosym}
 \usepackage[T1]{fontenc}
 \usepackage{textcomp}
 \usepackage{graphicx}
-\usepackage{needspace}
 \usepackage{etoolbox}
-\usepackage{mdframed}
-%\usepackage{fontsize}
 \usepackage{enumitem}
 \usepackage{geometry}
 \usepackage{titleps}
 \usepackage{float}
-%\usepackage{babel}
 % use hidelinks to remove boxes around links to be similar with Texinfo TeX
 \usepackage[hidelinks]{hyperref}
 \usepackage[utf8]{inputenc}
 
 \newcommand{\GNUTexinfosettitle}{No Title}%
 
-% command used in \description format for dfn
-\newcommand\GNUTexinfotablestyledfn[1]{{\normalfont\emph{#1}}}%
-
-% command used in \description format for emph
-\newcommand\GNUTexinfotablestyleemph[1]{{\normalfont\emph{#1}}}%
-
-% command used in \description format for hyphenation
-\newcommand\GNUTexinfotablestylehyphenation[1]{{\normalfont\hyphenation{#1}}}%
-
-% command used in \description format for indicateurl
-\newcommand\GNUTexinfotablestyleindicateurl[1]{\ifstrempty{#1}{}{{`\texttt{#1}'}}}%
-
-% command used in \description format for kbd
-\newcommand\GNUTexinfotablestylekbd[1]{{\ttfamily\textsl{#1}}}%
-
-% command used in \description format for samp
-\newcommand\GNUTexinfotablestylesamp[1]{\ifstrempty{#1}{}{{`\texttt{#1}'}}}%
-
-% command used in \description format for sub
-\newcommand\GNUTexinfotablestylesub[1]{{\normalfont\textsubscript{#1}}}%
-
-% command used in \description format for sup
-\newcommand\GNUTexinfotablestylesup[1]{{\normalfont\textsuperscript{#1}}}%
-
-% command used in \description format for var
-\newcommand\GNUTexinfotablestylevar[1]{{\normalfont\emph{#1}}}%
-
-% command used in \description format for w
-\newcommand\GNUTexinfotablestylew[1]{{\normalfont\hbox{#1}}}%
-
 % redefine the \mainmatter command such that it does not clear page
 % as if in double page
 \makeatletter
@@ -59,14 +24,6 @@
 % add command aliases to use the same command in book and report
 \newcommand\GNUTexinfomainmatter{\mainmatter}
 \newcommand\GNUTexinfofrontmatter{\frontmatter}
-
-% this allows to select languages based on bcp47 codes.  bcp47 is a superset
-% of the LL_CC ISO 639-2 LL ISO 3166 CC information of @documentlanguage
-% \babeladjust{
-%   autoload.bcp47 = on,
-%   autoload.bcp47.options = import
-% }
-
 % set defaults for lists that match Texinfo TeX formatting
 \setlist[description]{style=nextline, font=\normalfont}
 \setlist[itemize]{label=\textbullet}
@@ -97,11 +54,6 @@
 % avoid pagebreak and headings setting for a sectionning command
 \newcommand{\GNUTexinfonopagebreakheading}[2]{\let\clearpage\relax 
\let\cleardoublepage\relax \let\thispagestyle\GNUTexinfoplaceholder #1{#2}}
 
-% the mdframed style for @cartouche
-\mdfdefinestyle{GNUTexinfocartouche}{
-innertopmargin=10pt, innerbottommargin=10pt,%
-roundcorner=10pt}
-
 \renewcommand{\includegraphics}[1]{\fbox{FIG #1}}
 
 % set default for @setchapternewpage
diff --git 
a/tp/t/results/latex_tests/custom_headings/res_latex/custom_headings.tex 
b/tp/t/results/latex_tests/custom_headings/res_latex/custom_headings.tex
index 7a03735e39..6779e84a79 100644
--- a/tp/t/results/latex_tests/custom_headings/res_latex/custom_headings.tex
+++ b/tp/t/results/latex_tests/custom_headings/res_latex/custom_headings.tex
@@ -1,56 +1,21 @@
 \documentclass{book}
-\usepackage{imakeidx}
 \usepackage{amsfonts}
 \usepackage{amsmath}
 \usepackage[gen]{eurosym}
 \usepackage[T1]{fontenc}
 \usepackage{textcomp}
 \usepackage{graphicx}
-\usepackage{needspace}
 \usepackage{etoolbox}
-\usepackage{mdframed}
-%\usepackage{fontsize}
 \usepackage{enumitem}
 \usepackage{geometry}
 \usepackage{titleps}
 \usepackage{float}
-%\usepackage{babel}
 % use hidelinks to remove boxes around links to be similar with Texinfo TeX
 \usepackage[hidelinks]{hyperref}
 \usepackage[utf8]{inputenc}
 
 \newcommand{\GNUTexinfosettitle}{No Title}%
 
-% command used in \description format for dfn
-\newcommand\GNUTexinfotablestyledfn[1]{{\normalfont\emph{#1}}}%
-
-% command used in \description format for emph
-\newcommand\GNUTexinfotablestyleemph[1]{{\normalfont\emph{#1}}}%
-
-% command used in \description format for hyphenation
-\newcommand\GNUTexinfotablestylehyphenation[1]{{\normalfont\hyphenation{#1}}}%
-
-% command used in \description format for indicateurl
-\newcommand\GNUTexinfotablestyleindicateurl[1]{\ifstrempty{#1}{}{{`\texttt{#1}'}}}%
-
-% command used in \description format for kbd
-\newcommand\GNUTexinfotablestylekbd[1]{{\ttfamily\textsl{#1}}}%
-
-% command used in \description format for samp
-\newcommand\GNUTexinfotablestylesamp[1]{\ifstrempty{#1}{}{{`\texttt{#1}'}}}%
-
-% command used in \description format for sub
-\newcommand\GNUTexinfotablestylesub[1]{{\normalfont\textsubscript{#1}}}%
-
-% command used in \description format for sup
-\newcommand\GNUTexinfotablestylesup[1]{{\normalfont\textsuperscript{#1}}}%
-
-% command used in \description format for var
-\newcommand\GNUTexinfotablestylevar[1]{{\normalfont\emph{#1}}}%
-
-% command used in \description format for w
-\newcommand\GNUTexinfotablestylew[1]{{\normalfont\hbox{#1}}}%
-
 % redefine the \mainmatter command such that it does not clear page
 % as if in double page
 \makeatletter
@@ -59,14 +24,6 @@
 % add command aliases to use the same command in book and report
 \newcommand\GNUTexinfomainmatter{\mainmatter}
 \newcommand\GNUTexinfofrontmatter{\frontmatter}
-
-% this allows to select languages based on bcp47 codes.  bcp47 is a superset
-% of the LL_CC ISO 639-2 LL ISO 3166 CC information of @documentlanguage
-% \babeladjust{
-%   autoload.bcp47 = on,
-%   autoload.bcp47.options = import
-% }
-
 % set defaults for lists that match Texinfo TeX formatting
 \setlist[description]{style=nextline, font=\normalfont}
 \setlist[itemize]{label=\textbullet}
@@ -97,11 +54,6 @@
 % avoid pagebreak and headings setting for a sectionning command
 \newcommand{\GNUTexinfonopagebreakheading}[2]{\let\clearpage\relax 
\let\cleardoublepage\relax \let\thispagestyle\GNUTexinfoplaceholder #1{#2}}
 
-% the mdframed style for @cartouche
-\mdfdefinestyle{GNUTexinfocartouche}{
-innertopmargin=10pt, innerbottommargin=10pt,%
-roundcorner=10pt}
-
 \renewcommand{\includegraphics}[1]{\fbox{FIG #1}}
 
 % set default for @setchapternewpage
diff --git 
a/tp/t/results/latex_tests/enumerate_arguments/res_latex/enumerate_arguments.tex
 
b/tp/t/results/latex_tests/enumerate_arguments/res_latex/enumerate_arguments.tex
index e69835075a..b2e1fb61d5 100644
--- 
a/tp/t/results/latex_tests/enumerate_arguments/res_latex/enumerate_arguments.tex
+++ 
b/tp/t/results/latex_tests/enumerate_arguments/res_latex/enumerate_arguments.tex
@@ -1,56 +1,21 @@
 \documentclass{book}
-\usepackage{imakeidx}
 \usepackage{amsfonts}
 \usepackage{amsmath}
 \usepackage[gen]{eurosym}
 \usepackage[T1]{fontenc}
 \usepackage{textcomp}
 \usepackage{graphicx}
-\usepackage{needspace}
 \usepackage{etoolbox}
-\usepackage{mdframed}
-%\usepackage{fontsize}
 \usepackage{enumitem}
 \usepackage{geometry}
 \usepackage{titleps}
 \usepackage{float}
-%\usepackage{babel}
 % use hidelinks to remove boxes around links to be similar with Texinfo TeX
 \usepackage[hidelinks]{hyperref}
 \usepackage[utf8]{inputenc}
 
 \newcommand{\GNUTexinfosettitle}{No Title}%
 
-% command used in \description format for dfn
-\newcommand\GNUTexinfotablestyledfn[1]{{\normalfont\emph{#1}}}%
-
-% command used in \description format for emph
-\newcommand\GNUTexinfotablestyleemph[1]{{\normalfont\emph{#1}}}%
-
-% command used in \description format for hyphenation
-\newcommand\GNUTexinfotablestylehyphenation[1]{{\normalfont\hyphenation{#1}}}%
-
-% command used in \description format for indicateurl
-\newcommand\GNUTexinfotablestyleindicateurl[1]{\ifstrempty{#1}{}{{`\texttt{#1}'}}}%
-
-% command used in \description format for kbd
-\newcommand\GNUTexinfotablestylekbd[1]{{\ttfamily\textsl{#1}}}%
-
-% command used in \description format for samp
-\newcommand\GNUTexinfotablestylesamp[1]{\ifstrempty{#1}{}{{`\texttt{#1}'}}}%
-
-% command used in \description format for sub
-\newcommand\GNUTexinfotablestylesub[1]{{\normalfont\textsubscript{#1}}}%
-
-% command used in \description format for sup
-\newcommand\GNUTexinfotablestylesup[1]{{\normalfont\textsuperscript{#1}}}%
-
-% command used in \description format for var
-\newcommand\GNUTexinfotablestylevar[1]{{\normalfont\emph{#1}}}%
-
-% command used in \description format for w
-\newcommand\GNUTexinfotablestylew[1]{{\normalfont\hbox{#1}}}%
-
 % redefine the \mainmatter command such that it does not clear page
 % as if in double page
 \makeatletter
@@ -59,14 +24,6 @@
 % add command aliases to use the same command in book and report
 \newcommand\GNUTexinfomainmatter{\mainmatter}
 \newcommand\GNUTexinfofrontmatter{\frontmatter}
-
-% this allows to select languages based on bcp47 codes.  bcp47 is a superset
-% of the LL_CC ISO 639-2 LL ISO 3166 CC information of @documentlanguage
-% \babeladjust{
-%   autoload.bcp47 = on,
-%   autoload.bcp47.options = import
-% }
-
 % set defaults for lists that match Texinfo TeX formatting
 \setlist[description]{style=nextline, font=\normalfont}
 \setlist[itemize]{label=\textbullet}
@@ -97,11 +54,6 @@
 % avoid pagebreak and headings setting for a sectionning command
 \newcommand{\GNUTexinfonopagebreakheading}[2]{\let\clearpage\relax 
\let\cleardoublepage\relax \let\thispagestyle\GNUTexinfoplaceholder #1{#2}}
 
-% the mdframed style for @cartouche
-\mdfdefinestyle{GNUTexinfocartouche}{
-innertopmargin=10pt, innerbottommargin=10pt,%
-roundcorner=10pt}
-
 \renewcommand{\includegraphics}[1]{\fbox{FIG #1}}
 
 % set default for @setchapternewpage
diff --git 
a/tp/t/results/latex_tests/example_in_cartouche/res_latex/example_in_cartouche.tex
 
b/tp/t/results/latex_tests/example_in_cartouche/res_latex/example_in_cartouche.tex
index 11ac36cd7e..cb51866524 100644
--- 
a/tp/t/results/latex_tests/example_in_cartouche/res_latex/example_in_cartouche.tex
+++ 
b/tp/t/results/latex_tests/example_in_cartouche/res_latex/example_in_cartouche.tex
@@ -1,56 +1,22 @@
 \documentclass{book}
-\usepackage{imakeidx}
 \usepackage{amsfonts}
 \usepackage{amsmath}
 \usepackage[gen]{eurosym}
 \usepackage[T1]{fontenc}
 \usepackage{textcomp}
 \usepackage{graphicx}
-\usepackage{needspace}
 \usepackage{etoolbox}
 \usepackage{mdframed}
-%\usepackage{fontsize}
 \usepackage{enumitem}
 \usepackage{geometry}
 \usepackage{titleps}
 \usepackage{float}
-%\usepackage{babel}
 % use hidelinks to remove boxes around links to be similar with Texinfo TeX
 \usepackage[hidelinks]{hyperref}
 \usepackage[utf8]{inputenc}
 
 \newcommand{\GNUTexinfosettitle}{No Title}%
 
-% command used in \description format for dfn
-\newcommand\GNUTexinfotablestyledfn[1]{{\normalfont\emph{#1}}}%
-
-% command used in \description format for emph
-\newcommand\GNUTexinfotablestyleemph[1]{{\normalfont\emph{#1}}}%
-
-% command used in \description format for hyphenation
-\newcommand\GNUTexinfotablestylehyphenation[1]{{\normalfont\hyphenation{#1}}}%
-
-% command used in \description format for indicateurl
-\newcommand\GNUTexinfotablestyleindicateurl[1]{\ifstrempty{#1}{}{{`\texttt{#1}'}}}%
-
-% command used in \description format for kbd
-\newcommand\GNUTexinfotablestylekbd[1]{{\ttfamily\textsl{#1}}}%
-
-% command used in \description format for samp
-\newcommand\GNUTexinfotablestylesamp[1]{\ifstrempty{#1}{}{{`\texttt{#1}'}}}%
-
-% command used in \description format for sub
-\newcommand\GNUTexinfotablestylesub[1]{{\normalfont\textsubscript{#1}}}%
-
-% command used in \description format for sup
-\newcommand\GNUTexinfotablestylesup[1]{{\normalfont\textsuperscript{#1}}}%
-
-% command used in \description format for var
-\newcommand\GNUTexinfotablestylevar[1]{{\normalfont\emph{#1}}}%
-
-% command used in \description format for w
-\newcommand\GNUTexinfotablestylew[1]{{\normalfont\hbox{#1}}}%
-
 % redefine the \mainmatter command such that it does not clear page
 % as if in double page
 \makeatletter
@@ -59,14 +25,6 @@
 % add command aliases to use the same command in book and report
 \newcommand\GNUTexinfomainmatter{\mainmatter}
 \newcommand\GNUTexinfofrontmatter{\frontmatter}
-
-% this allows to select languages based on bcp47 codes.  bcp47 is a superset
-% of the LL_CC ISO 639-2 LL ISO 3166 CC information of @documentlanguage
-% \babeladjust{
-%   autoload.bcp47 = on,
-%   autoload.bcp47.options = import
-% }
-
 % set defaults for lists that match Texinfo TeX formatting
 \setlist[description]{style=nextline, font=\normalfont}
 \setlist[itemize]{label=\textbullet}
diff --git 
a/tp/t/results/latex_tests/float_and_refs/res_latex/float_and_refs.tex 
b/tp/t/results/latex_tests/float_and_refs/res_latex/float_and_refs.tex
index 4d71d337f3..868556688e 100644
--- a/tp/t/results/latex_tests/float_and_refs/res_latex/float_and_refs.tex
+++ b/tp/t/results/latex_tests/float_and_refs/res_latex/float_and_refs.tex
@@ -1,20 +1,15 @@
 \documentclass{book}
-\usepackage{imakeidx}
 \usepackage{amsfonts}
 \usepackage{amsmath}
 \usepackage[gen]{eurosym}
 \usepackage[T1]{fontenc}
 \usepackage{textcomp}
 \usepackage{graphicx}
-\usepackage{needspace}
 \usepackage{etoolbox}
-\usepackage{mdframed}
-%\usepackage{fontsize}
 \usepackage{enumitem}
 \usepackage{geometry}
 \usepackage{titleps}
 \usepackage{float}
-%\usepackage{babel}
 % use hidelinks to remove boxes around links to be similar with Texinfo TeX
 \usepackage[hidelinks]{hyperref}
 \usepackage[utf8]{inputenc}
@@ -27,36 +22,6 @@
 % new float for type `Thing'
 \newfloat{TexinfoFloatThing}{htb}{tfl}[chapter]
 \floatname{TexinfoFloatThing}{}
-% command used in \description format for dfn
-\newcommand\GNUTexinfotablestyledfn[1]{{\normalfont\emph{#1}}}%
-
-% command used in \description format for emph
-\newcommand\GNUTexinfotablestyleemph[1]{{\normalfont\emph{#1}}}%
-
-% command used in \description format for hyphenation
-\newcommand\GNUTexinfotablestylehyphenation[1]{{\normalfont\hyphenation{#1}}}%
-
-% command used in \description format for indicateurl
-\newcommand\GNUTexinfotablestyleindicateurl[1]{\ifstrempty{#1}{}{{`\texttt{#1}'}}}%
-
-% command used in \description format for kbd
-\newcommand\GNUTexinfotablestylekbd[1]{{\ttfamily\textsl{#1}}}%
-
-% command used in \description format for samp
-\newcommand\GNUTexinfotablestylesamp[1]{\ifstrempty{#1}{}{{`\texttt{#1}'}}}%
-
-% command used in \description format for sub
-\newcommand\GNUTexinfotablestylesub[1]{{\normalfont\textsubscript{#1}}}%
-
-% command used in \description format for sup
-\newcommand\GNUTexinfotablestylesup[1]{{\normalfont\textsuperscript{#1}}}%
-
-% command used in \description format for var
-\newcommand\GNUTexinfotablestylevar[1]{{\normalfont\emph{#1}}}%
-
-% command used in \description format for w
-\newcommand\GNUTexinfotablestylew[1]{{\normalfont\hbox{#1}}}%
-
 % redefine the \mainmatter command such that it does not clear page
 % as if in double page
 \makeatletter
@@ -65,14 +30,6 @@
 % add command aliases to use the same command in book and report
 \newcommand\GNUTexinfomainmatter{\mainmatter}
 \newcommand\GNUTexinfofrontmatter{\frontmatter}
-
-% this allows to select languages based on bcp47 codes.  bcp47 is a superset
-% of the LL_CC ISO 639-2 LL ISO 3166 CC information of @documentlanguage
-% \babeladjust{
-%   autoload.bcp47 = on,
-%   autoload.bcp47.options = import
-% }
-
 % set defaults for lists that match Texinfo TeX formatting
 \setlist[description]{style=nextline, font=\normalfont}
 \setlist[itemize]{label=\textbullet}
@@ -103,11 +60,6 @@
 % avoid pagebreak and headings setting for a sectionning command
 \newcommand{\GNUTexinfonopagebreakheading}[2]{\let\clearpage\relax 
\let\cleardoublepage\relax \let\thispagestyle\GNUTexinfoplaceholder #1{#2}}
 
-% the mdframed style for @cartouche
-\mdfdefinestyle{GNUTexinfocartouche}{
-innertopmargin=10pt, innerbottommargin=10pt,%
-roundcorner=10pt}
-
 \renewcommand{\includegraphics}[1]{\fbox{FIG #1}}
 
 % set default for @setchapternewpage
diff --git a/tp/t/results/latex_tests/fonttextsize.pl 
b/tp/t/results/latex_tests/fonttextsize.pl
index a19bcf6bf9..98bc51ab32 100644
--- a/tp/t/results/latex_tests/fonttextsize.pl
+++ b/tp/t/results/latex_tests/fonttextsize.pl
@@ -901,6 +901,7 @@ $result_floats{'fonttextsize'} = {};
 
 
 $result_converted{'latex'}->{'fonttextsize'} = '
+\\changefontsize{10}
 
 \\chapter{Chapter}
 \\label{anchor:chapter}%
@@ -910,6 +911,7 @@ $result_converted{'latex'}->{'fonttextsize'} = '
 \\subsection{Subsection 10pts}
 In 10pts
 
+\\changefontsize{11}
 \\subsection{Subsection 11pts}
 
 In 11pts
diff --git a/tp/t/results/latex_tests/fonttextsize/res_latex/fonttextsize.tex 
b/tp/t/results/latex_tests/fonttextsize/res_latex/fonttextsize.tex
index f801bb0b27..8330ee70bf 100644
--- a/tp/t/results/latex_tests/fonttextsize/res_latex/fonttextsize.tex
+++ b/tp/t/results/latex_tests/fonttextsize/res_latex/fonttextsize.tex
@@ -1,56 +1,22 @@
 \documentclass{book}
-\usepackage{imakeidx}
 \usepackage{amsfonts}
 \usepackage{amsmath}
 \usepackage[gen]{eurosym}
 \usepackage[T1]{fontenc}
 \usepackage{textcomp}
 \usepackage{graphicx}
-\usepackage{needspace}
 \usepackage{etoolbox}
-\usepackage{mdframed}
-%\usepackage{fontsize}
+\usepackage{fontsize}
 \usepackage{enumitem}
 \usepackage{geometry}
 \usepackage{titleps}
 \usepackage{float}
-%\usepackage{babel}
 % use hidelinks to remove boxes around links to be similar with Texinfo TeX
 \usepackage[hidelinks]{hyperref}
 \usepackage[utf8]{inputenc}
 
 \newcommand{\GNUTexinfosettitle}{No Title}%
 
-% command used in \description format for dfn
-\newcommand\GNUTexinfotablestyledfn[1]{{\normalfont\emph{#1}}}%
-
-% command used in \description format for emph
-\newcommand\GNUTexinfotablestyleemph[1]{{\normalfont\emph{#1}}}%
-
-% command used in \description format for hyphenation
-\newcommand\GNUTexinfotablestylehyphenation[1]{{\normalfont\hyphenation{#1}}}%
-
-% command used in \description format for indicateurl
-\newcommand\GNUTexinfotablestyleindicateurl[1]{\ifstrempty{#1}{}{{`\texttt{#1}'}}}%
-
-% command used in \description format for kbd
-\newcommand\GNUTexinfotablestylekbd[1]{{\ttfamily\textsl{#1}}}%
-
-% command used in \description format for samp
-\newcommand\GNUTexinfotablestylesamp[1]{\ifstrempty{#1}{}{{`\texttt{#1}'}}}%
-
-% command used in \description format for sub
-\newcommand\GNUTexinfotablestylesub[1]{{\normalfont\textsubscript{#1}}}%
-
-% command used in \description format for sup
-\newcommand\GNUTexinfotablestylesup[1]{{\normalfont\textsuperscript{#1}}}%
-
-% command used in \description format for var
-\newcommand\GNUTexinfotablestylevar[1]{{\normalfont\emph{#1}}}%
-
-% command used in \description format for w
-\newcommand\GNUTexinfotablestylew[1]{{\normalfont\hbox{#1}}}%
-
 % redefine the \mainmatter command such that it does not clear page
 % as if in double page
 \makeatletter
@@ -59,14 +25,6 @@
 % add command aliases to use the same command in book and report
 \newcommand\GNUTexinfomainmatter{\mainmatter}
 \newcommand\GNUTexinfofrontmatter{\frontmatter}
-
-% this allows to select languages based on bcp47 codes.  bcp47 is a superset
-% of the LL_CC ISO 639-2 LL ISO 3166 CC information of @documentlanguage
-% \babeladjust{
-%   autoload.bcp47 = on,
-%   autoload.bcp47.options = import
-% }
-
 % set defaults for lists that match Texinfo TeX formatting
 \setlist[description]{style=nextline, font=\normalfont}
 \setlist[itemize]{label=\textbullet}
@@ -97,11 +55,6 @@
 % avoid pagebreak and headings setting for a sectionning command
 \newcommand{\GNUTexinfonopagebreakheading}[2]{\let\clearpage\relax 
\let\cleardoublepage\relax \let\thispagestyle\GNUTexinfoplaceholder #1{#2}}
 
-% the mdframed style for @cartouche
-\mdfdefinestyle{GNUTexinfocartouche}{
-innertopmargin=10pt, innerbottommargin=10pt,%
-roundcorner=10pt}
-
 \renewcommand{\includegraphics}[1]{\fbox{FIG #1}}
 
 % set default for @setchapternewpage
@@ -111,6 +64,7 @@ roundcorner=10pt}
 \GNUTexinfosetsingleheader{}%
 
 
+\changefontsize{10}
 
 \begin{document}
 \chapter{Chapter}
@@ -121,6 +75,7 @@ roundcorner=10pt}
 \subsection{Subsection 10pts}
 In 10pts
 
+\changefontsize{11}
 \subsection{Subsection 11pts}
 
 In 11pts
diff --git a/tp/t/results/latex_tests/indices/res_latex/indices.tex 
b/tp/t/results/latex_tests/indices/res_latex/indices.tex
index f4addf41ff..4f62123e66 100644
--- a/tp/t/results/latex_tests/indices/res_latex/indices.tex
+++ b/tp/t/results/latex_tests/indices/res_latex/indices.tex
@@ -6,15 +6,11 @@
 \usepackage[T1]{fontenc}
 \usepackage{textcomp}
 \usepackage{graphicx}
-\usepackage{needspace}
 \usepackage{etoolbox}
-\usepackage{mdframed}
-%\usepackage{fontsize}
 \usepackage{enumitem}
 \usepackage{geometry}
 \usepackage{titleps}
 \usepackage{float}
-%\usepackage{babel}
 % use hidelinks to remove boxes around links to be similar with Texinfo TeX
 \usepackage[hidelinks]{hyperref}
 \usepackage[utf8]{inputenc}
@@ -24,36 +20,6 @@
 \makeindex[name=cp]%
 \makeindex[name=fn]%
 
-% command used in \description format for dfn
-\newcommand\GNUTexinfotablestyledfn[1]{{\normalfont\emph{#1}}}%
-
-% command used in \description format for emph
-\newcommand\GNUTexinfotablestyleemph[1]{{\normalfont\emph{#1}}}%
-
-% command used in \description format for hyphenation
-\newcommand\GNUTexinfotablestylehyphenation[1]{{\normalfont\hyphenation{#1}}}%
-
-% command used in \description format for indicateurl
-\newcommand\GNUTexinfotablestyleindicateurl[1]{\ifstrempty{#1}{}{{`\texttt{#1}'}}}%
-
-% command used in \description format for kbd
-\newcommand\GNUTexinfotablestylekbd[1]{{\ttfamily\textsl{#1}}}%
-
-% command used in \description format for samp
-\newcommand\GNUTexinfotablestylesamp[1]{\ifstrempty{#1}{}{{`\texttt{#1}'}}}%
-
-% command used in \description format for sub
-\newcommand\GNUTexinfotablestylesub[1]{{\normalfont\textsubscript{#1}}}%
-
-% command used in \description format for sup
-\newcommand\GNUTexinfotablestylesup[1]{{\normalfont\textsuperscript{#1}}}%
-
-% command used in \description format for var
-\newcommand\GNUTexinfotablestylevar[1]{{\normalfont\emph{#1}}}%
-
-% command used in \description format for w
-\newcommand\GNUTexinfotablestylew[1]{{\normalfont\hbox{#1}}}%
-
 % redefine the \mainmatter command such that it does not clear page
 % as if in double page
 \makeatletter
@@ -62,14 +28,6 @@
 % add command aliases to use the same command in book and report
 \newcommand\GNUTexinfomainmatter{\mainmatter}
 \newcommand\GNUTexinfofrontmatter{\frontmatter}
-
-% this allows to select languages based on bcp47 codes.  bcp47 is a superset
-% of the LL_CC ISO 639-2 LL ISO 3166 CC information of @documentlanguage
-% \babeladjust{
-%   autoload.bcp47 = on,
-%   autoload.bcp47.options = import
-% }
-
 % set defaults for lists that match Texinfo TeX formatting
 \setlist[description]{style=nextline, font=\normalfont}
 \setlist[itemize]{label=\textbullet}
@@ -100,11 +58,6 @@
 % avoid pagebreak and headings setting for a sectionning command
 \newcommand{\GNUTexinfonopagebreakheading}[2]{\let\clearpage\relax 
\let\cleardoublepage\relax \let\thispagestyle\GNUTexinfoplaceholder #1{#2}}
 
-% the mdframed style for @cartouche
-\mdfdefinestyle{GNUTexinfocartouche}{
-innertopmargin=10pt, innerbottommargin=10pt,%
-roundcorner=10pt}
-
 \renewcommand{\includegraphics}[1]{\fbox{FIG #1}}
 
 % set default for @setchapternewpage
diff --git 
a/tp/t/results/latex_tests/informative_commands_in_top_node/res_latex/informative_commands_in_top_node.tex
 
b/tp/t/results/latex_tests/informative_commands_in_top_node/res_latex/informative_commands_in_top_node.tex
index bc426e9675..143208f37f 100644
--- 
a/tp/t/results/latex_tests/informative_commands_in_top_node/res_latex/informative_commands_in_top_node.tex
+++ 
b/tp/t/results/latex_tests/informative_commands_in_top_node/res_latex/informative_commands_in_top_node.tex
@@ -1,56 +1,21 @@
 \documentclass{book}
-\usepackage{imakeidx}
 \usepackage{amsfonts}
 \usepackage{amsmath}
 \usepackage[gen]{eurosym}
 \usepackage[T1]{fontenc}
 \usepackage{textcomp}
 \usepackage{graphicx}
-\usepackage{needspace}
 \usepackage{etoolbox}
-\usepackage{mdframed}
-%\usepackage{fontsize}
 \usepackage{enumitem}
 \usepackage{geometry}
 \usepackage{titleps}
 \usepackage{float}
-%\usepackage{babel}
 % use hidelinks to remove boxes around links to be similar with Texinfo TeX
 \usepackage[hidelinks]{hyperref}
 \usepackage[utf8]{inputenc}
 
 \newcommand{\GNUTexinfosettitle}{No Title}%
 
-% command used in \description format for dfn
-\newcommand\GNUTexinfotablestyledfn[1]{{\normalfont\emph{#1}}}%
-
-% command used in \description format for emph
-\newcommand\GNUTexinfotablestyleemph[1]{{\normalfont\emph{#1}}}%
-
-% command used in \description format for hyphenation
-\newcommand\GNUTexinfotablestylehyphenation[1]{{\normalfont\hyphenation{#1}}}%
-
-% command used in \description format for indicateurl
-\newcommand\GNUTexinfotablestyleindicateurl[1]{\ifstrempty{#1}{}{{`\texttt{#1}'}}}%
-
-% command used in \description format for kbd
-\newcommand\GNUTexinfotablestylekbd[1]{{\ttfamily\textsl{#1}}}%
-
-% command used in \description format for samp
-\newcommand\GNUTexinfotablestylesamp[1]{\ifstrempty{#1}{}{{`\texttt{#1}'}}}%
-
-% command used in \description format for sub
-\newcommand\GNUTexinfotablestylesub[1]{{\normalfont\textsubscript{#1}}}%
-
-% command used in \description format for sup
-\newcommand\GNUTexinfotablestylesup[1]{{\normalfont\textsuperscript{#1}}}%
-
-% command used in \description format for var
-\newcommand\GNUTexinfotablestylevar[1]{{\normalfont\emph{#1}}}%
-
-% command used in \description format for w
-\newcommand\GNUTexinfotablestylew[1]{{\normalfont\hbox{#1}}}%
-
 % redefine the \mainmatter command such that it does not clear page
 % as if in double page
 \makeatletter
@@ -59,14 +24,6 @@
 % add command aliases to use the same command in book and report
 \newcommand\GNUTexinfomainmatter{\mainmatter}
 \newcommand\GNUTexinfofrontmatter{\frontmatter}
-
-% this allows to select languages based on bcp47 codes.  bcp47 is a superset
-% of the LL_CC ISO 639-2 LL ISO 3166 CC information of @documentlanguage
-% \babeladjust{
-%   autoload.bcp47 = on,
-%   autoload.bcp47.options = import
-% }
-
 % set defaults for lists that match Texinfo TeX formatting
 \setlist[description]{style=nextline, font=\normalfont}
 \setlist[itemize]{label=\textbullet}
@@ -97,11 +54,6 @@
 % avoid pagebreak and headings setting for a sectionning command
 \newcommand{\GNUTexinfonopagebreakheading}[2]{\let\clearpage\relax 
\let\cleardoublepage\relax \let\thispagestyle\GNUTexinfoplaceholder #1{#2}}
 
-% the mdframed style for @cartouche
-\mdfdefinestyle{GNUTexinfocartouche}{
-innertopmargin=10pt, innerbottommargin=10pt,%
-roundcorner=10pt}
-
 \renewcommand{\includegraphics}[1]{\fbox{FIG #1}}
 
 % set default for @setchapternewpage
diff --git 
a/tp/t/results/latex_tests/nested_enumerate/res_latex/nested_enumerate.tex 
b/tp/t/results/latex_tests/nested_enumerate/res_latex/nested_enumerate.tex
index 0fe4dfe89a..3639e1d2d6 100644
--- a/tp/t/results/latex_tests/nested_enumerate/res_latex/nested_enumerate.tex
+++ b/tp/t/results/latex_tests/nested_enumerate/res_latex/nested_enumerate.tex
@@ -1,56 +1,21 @@
 \documentclass{book}
-\usepackage{imakeidx}
 \usepackage{amsfonts}
 \usepackage{amsmath}
 \usepackage[gen]{eurosym}
 \usepackage[T1]{fontenc}
 \usepackage{textcomp}
 \usepackage{graphicx}
-\usepackage{needspace}
 \usepackage{etoolbox}
-\usepackage{mdframed}
-%\usepackage{fontsize}
 \usepackage{enumitem}
 \usepackage{geometry}
 \usepackage{titleps}
 \usepackage{float}
-%\usepackage{babel}
 % use hidelinks to remove boxes around links to be similar with Texinfo TeX
 \usepackage[hidelinks]{hyperref}
 \usepackage[utf8]{inputenc}
 
 \newcommand{\GNUTexinfosettitle}{No Title}%
 
-% command used in \description format for dfn
-\newcommand\GNUTexinfotablestyledfn[1]{{\normalfont\emph{#1}}}%
-
-% command used in \description format for emph
-\newcommand\GNUTexinfotablestyleemph[1]{{\normalfont\emph{#1}}}%
-
-% command used in \description format for hyphenation
-\newcommand\GNUTexinfotablestylehyphenation[1]{{\normalfont\hyphenation{#1}}}%
-
-% command used in \description format for indicateurl
-\newcommand\GNUTexinfotablestyleindicateurl[1]{\ifstrempty{#1}{}{{`\texttt{#1}'}}}%
-
-% command used in \description format for kbd
-\newcommand\GNUTexinfotablestylekbd[1]{{\ttfamily\textsl{#1}}}%
-
-% command used in \description format for samp
-\newcommand\GNUTexinfotablestylesamp[1]{\ifstrempty{#1}{}{{`\texttt{#1}'}}}%
-
-% command used in \description format for sub
-\newcommand\GNUTexinfotablestylesub[1]{{\normalfont\textsubscript{#1}}}%
-
-% command used in \description format for sup
-\newcommand\GNUTexinfotablestylesup[1]{{\normalfont\textsuperscript{#1}}}%
-
-% command used in \description format for var
-\newcommand\GNUTexinfotablestylevar[1]{{\normalfont\emph{#1}}}%
-
-% command used in \description format for w
-\newcommand\GNUTexinfotablestylew[1]{{\normalfont\hbox{#1}}}%
-
 % redefine the \mainmatter command such that it does not clear page
 % as if in double page
 \makeatletter
@@ -59,14 +24,6 @@
 % add command aliases to use the same command in book and report
 \newcommand\GNUTexinfomainmatter{\mainmatter}
 \newcommand\GNUTexinfofrontmatter{\frontmatter}
-
-% this allows to select languages based on bcp47 codes.  bcp47 is a superset
-% of the LL_CC ISO 639-2 LL ISO 3166 CC information of @documentlanguage
-% \babeladjust{
-%   autoload.bcp47 = on,
-%   autoload.bcp47.options = import
-% }
-
 % set defaults for lists that match Texinfo TeX formatting
 \setlist[description]{style=nextline, font=\normalfont}
 \setlist[itemize]{label=\textbullet}
@@ -97,11 +54,6 @@
 % avoid pagebreak and headings setting for a sectionning command
 \newcommand{\GNUTexinfonopagebreakheading}[2]{\let\clearpage\relax 
\let\cleardoublepage\relax \let\thispagestyle\GNUTexinfoplaceholder #1{#2}}
 
-% the mdframed style for @cartouche
-\mdfdefinestyle{GNUTexinfocartouche}{
-innertopmargin=10pt, innerbottommargin=10pt,%
-roundcorner=10pt}
-
 \renewcommand{\includegraphics}[1]{\fbox{FIG #1}}
 
 % set default for @setchapternewpage
diff --git 
a/tp/t/results/latex_tests/nested_itemize/res_latex/nested_itemize.tex 
b/tp/t/results/latex_tests/nested_itemize/res_latex/nested_itemize.tex
index 107ab5a520..98f93bd6e6 100644
--- a/tp/t/results/latex_tests/nested_itemize/res_latex/nested_itemize.tex
+++ b/tp/t/results/latex_tests/nested_itemize/res_latex/nested_itemize.tex
@@ -1,56 +1,21 @@
 \documentclass{book}
-\usepackage{imakeidx}
 \usepackage{amsfonts}
 \usepackage{amsmath}
 \usepackage[gen]{eurosym}
 \usepackage[T1]{fontenc}
 \usepackage{textcomp}
 \usepackage{graphicx}
-\usepackage{needspace}
 \usepackage{etoolbox}
-\usepackage{mdframed}
-%\usepackage{fontsize}
 \usepackage{enumitem}
 \usepackage{geometry}
 \usepackage{titleps}
 \usepackage{float}
-%\usepackage{babel}
 % use hidelinks to remove boxes around links to be similar with Texinfo TeX
 \usepackage[hidelinks]{hyperref}
 \usepackage[utf8]{inputenc}
 
 \newcommand{\GNUTexinfosettitle}{No Title}%
 
-% command used in \description format for dfn
-\newcommand\GNUTexinfotablestyledfn[1]{{\normalfont\emph{#1}}}%
-
-% command used in \description format for emph
-\newcommand\GNUTexinfotablestyleemph[1]{{\normalfont\emph{#1}}}%
-
-% command used in \description format for hyphenation
-\newcommand\GNUTexinfotablestylehyphenation[1]{{\normalfont\hyphenation{#1}}}%
-
-% command used in \description format for indicateurl
-\newcommand\GNUTexinfotablestyleindicateurl[1]{\ifstrempty{#1}{}{{`\texttt{#1}'}}}%
-
-% command used in \description format for kbd
-\newcommand\GNUTexinfotablestylekbd[1]{{\ttfamily\textsl{#1}}}%
-
-% command used in \description format for samp
-\newcommand\GNUTexinfotablestylesamp[1]{\ifstrempty{#1}{}{{`\texttt{#1}'}}}%
-
-% command used in \description format for sub
-\newcommand\GNUTexinfotablestylesub[1]{{\normalfont\textsubscript{#1}}}%
-
-% command used in \description format for sup
-\newcommand\GNUTexinfotablestylesup[1]{{\normalfont\textsuperscript{#1}}}%
-
-% command used in \description format for var
-\newcommand\GNUTexinfotablestylevar[1]{{\normalfont\emph{#1}}}%
-
-% command used in \description format for w
-\newcommand\GNUTexinfotablestylew[1]{{\normalfont\hbox{#1}}}%
-
 % redefine the \mainmatter command such that it does not clear page
 % as if in double page
 \makeatletter
@@ -59,14 +24,6 @@
 % add command aliases to use the same command in book and report
 \newcommand\GNUTexinfomainmatter{\mainmatter}
 \newcommand\GNUTexinfofrontmatter{\frontmatter}
-
-% this allows to select languages based on bcp47 codes.  bcp47 is a superset
-% of the LL_CC ISO 639-2 LL ISO 3166 CC information of @documentlanguage
-% \babeladjust{
-%   autoload.bcp47 = on,
-%   autoload.bcp47.options = import
-% }
-
 % set defaults for lists that match Texinfo TeX formatting
 \setlist[description]{style=nextline, font=\normalfont}
 \setlist[itemize]{label=\textbullet}
@@ -97,11 +54,6 @@
 % avoid pagebreak and headings setting for a sectionning command
 \newcommand{\GNUTexinfonopagebreakheading}[2]{\let\clearpage\relax 
\let\cleardoublepage\relax \let\thispagestyle\GNUTexinfoplaceholder #1{#2}}
 
-% the mdframed style for @cartouche
-\mdfdefinestyle{GNUTexinfocartouche}{
-innertopmargin=10pt, innerbottommargin=10pt,%
-roundcorner=10pt}
-
 \renewcommand{\includegraphics}[1]{\fbox{FIG #1}}
 
 % set default for @setchapternewpage
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 76f4bb2a94..bf88196b9b 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
@@ -1,56 +1,21 @@
 \documentclass{book}
-\usepackage{imakeidx}
 \usepackage{amsfonts}
 \usepackage{amsmath}
 \usepackage[gen]{eurosym}
 \usepackage[T1]{fontenc}
 \usepackage{textcomp}
 \usepackage{graphicx}
-\usepackage{needspace}
 \usepackage{etoolbox}
-\usepackage{mdframed}
-%\usepackage{fontsize}
 \usepackage{enumitem}
 \usepackage{geometry}
 \usepackage{titleps}
 \usepackage{float}
-%\usepackage{babel}
 % use hidelinks to remove boxes around links to be similar with Texinfo TeX
 \usepackage[hidelinks]{hyperref}
 \usepackage[utf8]{inputenc}
 
 \newcommand{\GNUTexinfosettitle}{No Title}%
 
-% command used in \description format for dfn
-\newcommand\GNUTexinfotablestyledfn[1]{{\normalfont\emph{#1}}}%
-
-% command used in \description format for emph
-\newcommand\GNUTexinfotablestyleemph[1]{{\normalfont\emph{#1}}}%
-
-% command used in \description format for hyphenation
-\newcommand\GNUTexinfotablestylehyphenation[1]{{\normalfont\hyphenation{#1}}}%
-
-% command used in \description format for indicateurl
-\newcommand\GNUTexinfotablestyleindicateurl[1]{\ifstrempty{#1}{}{{`\texttt{#1}'}}}%
-
-% command used in \description format for kbd
-\newcommand\GNUTexinfotablestylekbd[1]{{\ttfamily\textsl{#1}}}%
-
-% command used in \description format for samp
-\newcommand\GNUTexinfotablestylesamp[1]{\ifstrempty{#1}{}{{`\texttt{#1}'}}}%
-
-% command used in \description format for sub
-\newcommand\GNUTexinfotablestylesub[1]{{\normalfont\textsubscript{#1}}}%
-
-% command used in \description format for sup
-\newcommand\GNUTexinfotablestylesup[1]{{\normalfont\textsuperscript{#1}}}%
-
-% command used in \description format for var
-\newcommand\GNUTexinfotablestylevar[1]{{\normalfont\emph{#1}}}%
-
-% command used in \description format for w
-\newcommand\GNUTexinfotablestylew[1]{{\normalfont\hbox{#1}}}%
-
 % redefine the \mainmatter command such that it does not clear page
 % as if in double page
 \makeatletter
@@ -59,14 +24,6 @@
 % add command aliases to use the same command in book and report
 \newcommand\GNUTexinfomainmatter{\mainmatter}
 \newcommand\GNUTexinfofrontmatter{\frontmatter}
-
-% this allows to select languages based on bcp47 codes.  bcp47 is a superset
-% of the LL_CC ISO 639-2 LL ISO 3166 CC information of @documentlanguage
-% \babeladjust{
-%   autoload.bcp47 = on,
-%   autoload.bcp47.options = import
-% }
-
 % set defaults for lists that match Texinfo TeX formatting
 \setlist[description]{style=nextline, font=\normalfont}
 \setlist[itemize]{label=\textbullet}
@@ -97,11 +54,6 @@
 % avoid pagebreak and headings setting for a sectionning command
 \newcommand{\GNUTexinfonopagebreakheading}[2]{\let\clearpage\relax 
\let\cleardoublepage\relax \let\thispagestyle\GNUTexinfoplaceholder #1{#2}}
 
-% the mdframed style for @cartouche
-\mdfdefinestyle{GNUTexinfocartouche}{
-innertopmargin=10pt, innerbottommargin=10pt,%
-roundcorner=10pt}
-
 \renewcommand{\includegraphics}[1]{\fbox{FIG #1}}
 
 % set default for @setchapternewpage
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 b872b33779..cb9e99aa22 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
@@ -1,56 +1,21 @@
 \documentclass{book}
-\usepackage{imakeidx}
 \usepackage{amsfonts}
 \usepackage{amsmath}
 \usepackage[gen]{eurosym}
 \usepackage[T1]{fontenc}
 \usepackage{textcomp}
 \usepackage{graphicx}
-\usepackage{needspace}
 \usepackage{etoolbox}
-\usepackage{mdframed}
-%\usepackage{fontsize}
 \usepackage{enumitem}
 \usepackage{geometry}
 \usepackage{titleps}
 \usepackage{float}
-%\usepackage{babel}
 % use hidelinks to remove boxes around links to be similar with Texinfo TeX
 \usepackage[hidelinks]{hyperref}
 \usepackage[utf8]{inputenc}
 
 \newcommand{\GNUTexinfosettitle}{No Title}%
 
-% command used in \description format for dfn
-\newcommand\GNUTexinfotablestyledfn[1]{{\normalfont\emph{#1}}}%
-
-% command used in \description format for emph
-\newcommand\GNUTexinfotablestyleemph[1]{{\normalfont\emph{#1}}}%
-
-% command used in \description format for hyphenation
-\newcommand\GNUTexinfotablestylehyphenation[1]{{\normalfont\hyphenation{#1}}}%
-
-% command used in \description format for indicateurl
-\newcommand\GNUTexinfotablestyleindicateurl[1]{\ifstrempty{#1}{}{{`\texttt{#1}'}}}%
-
-% command used in \description format for kbd
-\newcommand\GNUTexinfotablestylekbd[1]{{\ttfamily\textsl{#1}}}%
-
-% command used in \description format for samp
-\newcommand\GNUTexinfotablestylesamp[1]{\ifstrempty{#1}{}{{`\texttt{#1}'}}}%
-
-% command used in \description format for sub
-\newcommand\GNUTexinfotablestylesub[1]{{\normalfont\textsubscript{#1}}}%
-
-% command used in \description format for sup
-\newcommand\GNUTexinfotablestylesup[1]{{\normalfont\textsuperscript{#1}}}%
-
-% command used in \description format for var
-\newcommand\GNUTexinfotablestylevar[1]{{\normalfont\emph{#1}}}%
-
-% command used in \description format for w
-\newcommand\GNUTexinfotablestylew[1]{{\normalfont\hbox{#1}}}%
-
 % redefine the \mainmatter command such that it does not clear page
 % as if in double page
 \makeatletter
@@ -59,14 +24,6 @@
 % add command aliases to use the same command in book and report
 \newcommand\GNUTexinfomainmatter{\mainmatter}
 \newcommand\GNUTexinfofrontmatter{\frontmatter}
-
-% this allows to select languages based on bcp47 codes.  bcp47 is a superset
-% of the LL_CC ISO 639-2 LL ISO 3166 CC information of @documentlanguage
-% \babeladjust{
-%   autoload.bcp47 = on,
-%   autoload.bcp47.options = import
-% }
-
 % set defaults for lists that match Texinfo TeX formatting
 \setlist[description]{style=nextline, font=\normalfont}
 \setlist[itemize]{label=\textbullet}
@@ -97,11 +54,6 @@
 % avoid pagebreak and headings setting for a sectionning command
 \newcommand{\GNUTexinfonopagebreakheading}[2]{\let\clearpage\relax 
\let\cleardoublepage\relax \let\thispagestyle\GNUTexinfoplaceholder #1{#2}}
 
-% the mdframed style for @cartouche
-\mdfdefinestyle{GNUTexinfocartouche}{
-innertopmargin=10pt, innerbottommargin=10pt,%
-roundcorner=10pt}
-
 \renewcommand{\includegraphics}[1]{\fbox{FIG #1}}
 
 % set default for @setchapternewpage
diff --git a/tp/t/results/latex_tests/pagesizes/res_latex/pagesizes.tex 
b/tp/t/results/latex_tests/pagesizes/res_latex/pagesizes.tex
index c644c0dc69..dfe3469b53 100644
--- a/tp/t/results/latex_tests/pagesizes/res_latex/pagesizes.tex
+++ b/tp/t/results/latex_tests/pagesizes/res_latex/pagesizes.tex
@@ -1,56 +1,21 @@
 \documentclass{book}
-\usepackage{imakeidx}
 \usepackage{amsfonts}
 \usepackage{amsmath}
 \usepackage[gen]{eurosym}
 \usepackage[T1]{fontenc}
 \usepackage{textcomp}
 \usepackage{graphicx}
-\usepackage{needspace}
 \usepackage{etoolbox}
-\usepackage{mdframed}
-%\usepackage{fontsize}
 \usepackage{enumitem}
 \usepackage{geometry}
 \usepackage{titleps}
 \usepackage{float}
-%\usepackage{babel}
 % use hidelinks to remove boxes around links to be similar with Texinfo TeX
 \usepackage[hidelinks]{hyperref}
 \usepackage[utf8]{inputenc}
 
 \newcommand{\GNUTexinfosettitle}{No Title}%
 
-% command used in \description format for dfn
-\newcommand\GNUTexinfotablestyledfn[1]{{\normalfont\emph{#1}}}%
-
-% command used in \description format for emph
-\newcommand\GNUTexinfotablestyleemph[1]{{\normalfont\emph{#1}}}%
-
-% command used in \description format for hyphenation
-\newcommand\GNUTexinfotablestylehyphenation[1]{{\normalfont\hyphenation{#1}}}%
-
-% command used in \description format for indicateurl
-\newcommand\GNUTexinfotablestyleindicateurl[1]{\ifstrempty{#1}{}{{`\texttt{#1}'}}}%
-
-% command used in \description format for kbd
-\newcommand\GNUTexinfotablestylekbd[1]{{\ttfamily\textsl{#1}}}%
-
-% command used in \description format for samp
-\newcommand\GNUTexinfotablestylesamp[1]{\ifstrempty{#1}{}{{`\texttt{#1}'}}}%
-
-% command used in \description format for sub
-\newcommand\GNUTexinfotablestylesub[1]{{\normalfont\textsubscript{#1}}}%
-
-% command used in \description format for sup
-\newcommand\GNUTexinfotablestylesup[1]{{\normalfont\textsuperscript{#1}}}%
-
-% command used in \description format for var
-\newcommand\GNUTexinfotablestylevar[1]{{\normalfont\emph{#1}}}%
-
-% command used in \description format for w
-\newcommand\GNUTexinfotablestylew[1]{{\normalfont\hbox{#1}}}%
-
 % redefine the \mainmatter command such that it does not clear page
 % as if in double page
 \makeatletter
@@ -59,14 +24,6 @@
 % add command aliases to use the same command in book and report
 \newcommand\GNUTexinfomainmatter{\mainmatter}
 \newcommand\GNUTexinfofrontmatter{\frontmatter}
-
-% this allows to select languages based on bcp47 codes.  bcp47 is a superset
-% of the LL_CC ISO 639-2 LL ISO 3166 CC information of @documentlanguage
-% \babeladjust{
-%   autoload.bcp47 = on,
-%   autoload.bcp47.options = import
-% }
-
 % set defaults for lists that match Texinfo TeX formatting
 \setlist[description]{style=nextline, font=\normalfont}
 \setlist[itemize]{label=\textbullet}
@@ -97,11 +54,6 @@
 % avoid pagebreak and headings setting for a sectionning command
 \newcommand{\GNUTexinfonopagebreakheading}[2]{\let\clearpage\relax 
\let\cleardoublepage\relax \let\thispagestyle\GNUTexinfoplaceholder #1{#2}}
 
-% the mdframed style for @cartouche
-\mdfdefinestyle{GNUTexinfocartouche}{
-innertopmargin=10pt, innerbottommargin=10pt,%
-roundcorner=10pt}
-
 \renewcommand{\includegraphics}[1]{\fbox{FIG #1}}
 
 % set default for @setchapternewpage
diff --git a/tp/t/results/latex_tests/pagetype/res_latex/pagetype.tex 
b/tp/t/results/latex_tests/pagetype/res_latex/pagetype.tex
index 889b8cc35e..cf6a17f6ca 100644
--- a/tp/t/results/latex_tests/pagetype/res_latex/pagetype.tex
+++ b/tp/t/results/latex_tests/pagetype/res_latex/pagetype.tex
@@ -1,56 +1,21 @@
 \documentclass{book}
-\usepackage{imakeidx}
 \usepackage{amsfonts}
 \usepackage{amsmath}
 \usepackage[gen]{eurosym}
 \usepackage[T1]{fontenc}
 \usepackage{textcomp}
 \usepackage{graphicx}
-\usepackage{needspace}
 \usepackage{etoolbox}
-\usepackage{mdframed}
-%\usepackage{fontsize}
 \usepackage{enumitem}
 \usepackage{geometry}
 \usepackage{titleps}
 \usepackage{float}
-%\usepackage{babel}
 % use hidelinks to remove boxes around links to be similar with Texinfo TeX
 \usepackage[hidelinks]{hyperref}
 \usepackage[utf8]{inputenc}
 
 \newcommand{\GNUTexinfosettitle}{No Title}%
 
-% command used in \description format for dfn
-\newcommand\GNUTexinfotablestyledfn[1]{{\normalfont\emph{#1}}}%
-
-% command used in \description format for emph
-\newcommand\GNUTexinfotablestyleemph[1]{{\normalfont\emph{#1}}}%
-
-% command used in \description format for hyphenation
-\newcommand\GNUTexinfotablestylehyphenation[1]{{\normalfont\hyphenation{#1}}}%
-
-% command used in \description format for indicateurl
-\newcommand\GNUTexinfotablestyleindicateurl[1]{\ifstrempty{#1}{}{{`\texttt{#1}'}}}%
-
-% command used in \description format for kbd
-\newcommand\GNUTexinfotablestylekbd[1]{{\ttfamily\textsl{#1}}}%
-
-% command used in \description format for samp
-\newcommand\GNUTexinfotablestylesamp[1]{\ifstrempty{#1}{}{{`\texttt{#1}'}}}%
-
-% command used in \description format for sub
-\newcommand\GNUTexinfotablestylesub[1]{{\normalfont\textsubscript{#1}}}%
-
-% command used in \description format for sup
-\newcommand\GNUTexinfotablestylesup[1]{{\normalfont\textsuperscript{#1}}}%
-
-% command used in \description format for var
-\newcommand\GNUTexinfotablestylevar[1]{{\normalfont\emph{#1}}}%
-
-% command used in \description format for w
-\newcommand\GNUTexinfotablestylew[1]{{\normalfont\hbox{#1}}}%
-
 % redefine the \mainmatter command such that it does not clear page
 % as if in double page
 \makeatletter
@@ -59,14 +24,6 @@
 % add command aliases to use the same command in book and report
 \newcommand\GNUTexinfomainmatter{\mainmatter}
 \newcommand\GNUTexinfofrontmatter{\frontmatter}
-
-% this allows to select languages based on bcp47 codes.  bcp47 is a superset
-% of the LL_CC ISO 639-2 LL ISO 3166 CC information of @documentlanguage
-% \babeladjust{
-%   autoload.bcp47 = on,
-%   autoload.bcp47.options = import
-% }
-
 % set defaults for lists that match Texinfo TeX formatting
 \setlist[description]{style=nextline, font=\normalfont}
 \setlist[itemize]{label=\textbullet}
@@ -97,11 +54,6 @@
 % avoid pagebreak and headings setting for a sectionning command
 \newcommand{\GNUTexinfonopagebreakheading}[2]{\let\clearpage\relax 
\let\cleardoublepage\relax \let\thispagestyle\GNUTexinfoplaceholder #1{#2}}
 
-% the mdframed style for @cartouche
-\mdfdefinestyle{GNUTexinfocartouche}{
-innertopmargin=10pt, innerbottommargin=10pt,%
-roundcorner=10pt}
-
 \renewcommand{\includegraphics}[1]{\fbox{FIG #1}}
 
 % set default for @setchapternewpage
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 d86a60ff57..cabe6dfa1b 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
@@ -1,56 +1,21 @@
 \documentclass{book}
-\usepackage{imakeidx}
 \usepackage{amsfonts}
 \usepackage{amsmath}
 \usepackage[gen]{eurosym}
 \usepackage[T1]{fontenc}
 \usepackage{textcomp}
 \usepackage{graphicx}
-\usepackage{needspace}
 \usepackage{etoolbox}
-\usepackage{mdframed}
-%\usepackage{fontsize}
 \usepackage{enumitem}
 \usepackage{geometry}
 \usepackage{titleps}
 \usepackage{float}
-%\usepackage{babel}
 % use hidelinks to remove boxes around links to be similar with Texinfo TeX
 \usepackage[hidelinks]{hyperref}
 \usepackage[utf8]{inputenc}
 
 \newcommand{\GNUTexinfosettitle}{No Title}%
 
-% command used in \description format for dfn
-\newcommand\GNUTexinfotablestyledfn[1]{{\normalfont\emph{#1}}}%
-
-% command used in \description format for emph
-\newcommand\GNUTexinfotablestyleemph[1]{{\normalfont\emph{#1}}}%
-
-% command used in \description format for hyphenation
-\newcommand\GNUTexinfotablestylehyphenation[1]{{\normalfont\hyphenation{#1}}}%
-
-% command used in \description format for indicateurl
-\newcommand\GNUTexinfotablestyleindicateurl[1]{\ifstrempty{#1}{}{{`\texttt{#1}'}}}%
-
-% command used in \description format for kbd
-\newcommand\GNUTexinfotablestylekbd[1]{{\ttfamily\textsl{#1}}}%
-
-% command used in \description format for samp
-\newcommand\GNUTexinfotablestylesamp[1]{\ifstrempty{#1}{}{{`\texttt{#1}'}}}%
-
-% command used in \description format for sub
-\newcommand\GNUTexinfotablestylesub[1]{{\normalfont\textsubscript{#1}}}%
-
-% command used in \description format for sup
-\newcommand\GNUTexinfotablestylesup[1]{{\normalfont\textsuperscript{#1}}}%
-
-% command used in \description format for var
-\newcommand\GNUTexinfotablestylevar[1]{{\normalfont\emph{#1}}}%
-
-% command used in \description format for w
-\newcommand\GNUTexinfotablestylew[1]{{\normalfont\hbox{#1}}}%
-
 % redefine the \mainmatter command such that it does not clear page
 % as if in double page
 \makeatletter
@@ -59,14 +24,6 @@
 % add command aliases to use the same command in book and report
 \newcommand\GNUTexinfomainmatter{\mainmatter}
 \newcommand\GNUTexinfofrontmatter{\frontmatter}
-
-% this allows to select languages based on bcp47 codes.  bcp47 is a superset
-% of the LL_CC ISO 639-2 LL ISO 3166 CC information of @documentlanguage
-% \babeladjust{
-%   autoload.bcp47 = on,
-%   autoload.bcp47.options = import
-% }
-
 % set defaults for lists that match Texinfo TeX formatting
 \setlist[description]{style=nextline, font=\normalfont}
 \setlist[itemize]{label=\textbullet}
@@ -97,11 +54,6 @@
 % avoid pagebreak and headings setting for a sectionning command
 \newcommand{\GNUTexinfonopagebreakheading}[2]{\let\clearpage\relax 
\let\cleardoublepage\relax \let\thispagestyle\GNUTexinfoplaceholder #1{#2}}
 
-% the mdframed style for @cartouche
-\mdfdefinestyle{GNUTexinfocartouche}{
-innertopmargin=10pt, innerbottommargin=10pt,%
-roundcorner=10pt}
-
 \renewcommand{\includegraphics}[1]{\fbox{FIG #1}}
 
 % set default for @setchapternewpage
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 bce4cb7dd4..0468a77445 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
@@ -1,56 +1,21 @@
 \documentclass{book}
-\usepackage{imakeidx}
 \usepackage{amsfonts}
 \usepackage{amsmath}
 \usepackage[gen]{eurosym}
 \usepackage[T1]{fontenc}
 \usepackage{textcomp}
 \usepackage{graphicx}
-\usepackage{needspace}
 \usepackage{etoolbox}
-\usepackage{mdframed}
-%\usepackage{fontsize}
 \usepackage{enumitem}
 \usepackage{geometry}
 \usepackage{titleps}
 \usepackage{float}
-%\usepackage{babel}
 % use hidelinks to remove boxes around links to be similar with Texinfo TeX
 \usepackage[hidelinks]{hyperref}
 \usepackage[utf8]{inputenc}
 
 \newcommand{\GNUTexinfosettitle}{Title \leavevmode{}\\ for a manual}%
 
-% command used in \description format for dfn
-\newcommand\GNUTexinfotablestyledfn[1]{{\normalfont\emph{#1}}}%
-
-% command used in \description format for emph
-\newcommand\GNUTexinfotablestyleemph[1]{{\normalfont\emph{#1}}}%
-
-% command used in \description format for hyphenation
-\newcommand\GNUTexinfotablestylehyphenation[1]{{\normalfont\hyphenation{#1}}}%
-
-% command used in \description format for indicateurl
-\newcommand\GNUTexinfotablestyleindicateurl[1]{\ifstrempty{#1}{}{{`\texttt{#1}'}}}%
-
-% command used in \description format for kbd
-\newcommand\GNUTexinfotablestylekbd[1]{{\ttfamily\textsl{#1}}}%
-
-% command used in \description format for samp
-\newcommand\GNUTexinfotablestylesamp[1]{\ifstrempty{#1}{}{{`\texttt{#1}'}}}%
-
-% command used in \description format for sub
-\newcommand\GNUTexinfotablestylesub[1]{{\normalfont\textsubscript{#1}}}%
-
-% command used in \description format for sup
-\newcommand\GNUTexinfotablestylesup[1]{{\normalfont\textsuperscript{#1}}}%
-
-% command used in \description format for var
-\newcommand\GNUTexinfotablestylevar[1]{{\normalfont\emph{#1}}}%
-
-% command used in \description format for w
-\newcommand\GNUTexinfotablestylew[1]{{\normalfont\hbox{#1}}}%
-
 % redefine the \mainmatter command such that it does not clear page
 % as if in double page
 \makeatletter
@@ -59,14 +24,6 @@
 % add command aliases to use the same command in book and report
 \newcommand\GNUTexinfomainmatter{\mainmatter}
 \newcommand\GNUTexinfofrontmatter{\frontmatter}
-
-% this allows to select languages based on bcp47 codes.  bcp47 is a superset
-% of the LL_CC ISO 639-2 LL ISO 3166 CC information of @documentlanguage
-% \babeladjust{
-%   autoload.bcp47 = on,
-%   autoload.bcp47.options = import
-% }
-
 % set defaults for lists that match Texinfo TeX formatting
 \setlist[description]{style=nextline, font=\normalfont}
 \setlist[itemize]{label=\textbullet}
@@ -97,11 +54,6 @@
 % avoid pagebreak and headings setting for a sectionning command
 \newcommand{\GNUTexinfonopagebreakheading}[2]{\let\clearpage\relax 
\let\cleardoublepage\relax \let\thispagestyle\GNUTexinfoplaceholder #1{#2}}
 
-% the mdframed style for @cartouche
-\mdfdefinestyle{GNUTexinfocartouche}{
-innertopmargin=10pt, innerbottommargin=10pt,%
-roundcorner=10pt}
-
 \renewcommand{\includegraphics}[1]{\fbox{FIG #1}}
 
 % set default for @setchapternewpage
diff --git 
a/tp/t/results/latex_tests/shorttitlepage/res_latex/shorttitlepage.tex 
b/tp/t/results/latex_tests/shorttitlepage/res_latex/shorttitlepage.tex
index 0d01655b87..ce8c61e4e5 100644
--- a/tp/t/results/latex_tests/shorttitlepage/res_latex/shorttitlepage.tex
+++ b/tp/t/results/latex_tests/shorttitlepage/res_latex/shorttitlepage.tex
@@ -1,56 +1,21 @@
 \documentclass{book}
-\usepackage{imakeidx}
 \usepackage{amsfonts}
 \usepackage{amsmath}
 \usepackage[gen]{eurosym}
 \usepackage[T1]{fontenc}
 \usepackage{textcomp}
 \usepackage{graphicx}
-\usepackage{needspace}
 \usepackage{etoolbox}
-\usepackage{mdframed}
-%\usepackage{fontsize}
 \usepackage{enumitem}
 \usepackage{geometry}
 \usepackage{titleps}
 \usepackage{float}
-%\usepackage{babel}
 % use hidelinks to remove boxes around links to be similar with Texinfo TeX
 \usepackage[hidelinks]{hyperref}
 \usepackage[utf8]{inputenc}
 
 \newcommand{\GNUTexinfosettitle}{No Title}%
 
-% command used in \description format for dfn
-\newcommand\GNUTexinfotablestyledfn[1]{{\normalfont\emph{#1}}}%
-
-% command used in \description format for emph
-\newcommand\GNUTexinfotablestyleemph[1]{{\normalfont\emph{#1}}}%
-
-% command used in \description format for hyphenation
-\newcommand\GNUTexinfotablestylehyphenation[1]{{\normalfont\hyphenation{#1}}}%
-
-% command used in \description format for indicateurl
-\newcommand\GNUTexinfotablestyleindicateurl[1]{\ifstrempty{#1}{}{{`\texttt{#1}'}}}%
-
-% command used in \description format for kbd
-\newcommand\GNUTexinfotablestylekbd[1]{{\ttfamily\textsl{#1}}}%
-
-% command used in \description format for samp
-\newcommand\GNUTexinfotablestylesamp[1]{\ifstrempty{#1}{}{{`\texttt{#1}'}}}%
-
-% command used in \description format for sub
-\newcommand\GNUTexinfotablestylesub[1]{{\normalfont\textsubscript{#1}}}%
-
-% command used in \description format for sup
-\newcommand\GNUTexinfotablestylesup[1]{{\normalfont\textsuperscript{#1}}}%
-
-% command used in \description format for var
-\newcommand\GNUTexinfotablestylevar[1]{{\normalfont\emph{#1}}}%
-
-% command used in \description format for w
-\newcommand\GNUTexinfotablestylew[1]{{\normalfont\hbox{#1}}}%
-
 % redefine the \mainmatter command such that it does not clear page
 % as if in double page
 \makeatletter
@@ -59,14 +24,6 @@
 % add command aliases to use the same command in book and report
 \newcommand\GNUTexinfomainmatter{\mainmatter}
 \newcommand\GNUTexinfofrontmatter{\frontmatter}
-
-% this allows to select languages based on bcp47 codes.  bcp47 is a superset
-% of the LL_CC ISO 639-2 LL ISO 3166 CC information of @documentlanguage
-% \babeladjust{
-%   autoload.bcp47 = on,
-%   autoload.bcp47.options = import
-% }
-
 % set defaults for lists that match Texinfo TeX formatting
 \setlist[description]{style=nextline, font=\normalfont}
 \setlist[itemize]{label=\textbullet}
@@ -97,11 +54,6 @@
 % avoid pagebreak and headings setting for a sectionning command
 \newcommand{\GNUTexinfonopagebreakheading}[2]{\let\clearpage\relax 
\let\cleardoublepage\relax \let\thispagestyle\GNUTexinfoplaceholder #1{#2}}
 
-% the mdframed style for @cartouche
-\mdfdefinestyle{GNUTexinfocartouche}{
-innertopmargin=10pt, innerbottommargin=10pt,%
-roundcorner=10pt}
-
 \renewcommand{\includegraphics}[1]{\fbox{FIG #1}}
 
 % set default for @setchapternewpage
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 f3636611c8..01f622dd1c 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
@@ -1,56 +1,21 @@
 \documentclass{book}
-\usepackage{imakeidx}
 \usepackage{amsfonts}
 \usepackage{amsmath}
 \usepackage[gen]{eurosym}
 \usepackage[T1]{fontenc}
 \usepackage{textcomp}
 \usepackage{graphicx}
-\usepackage{needspace}
 \usepackage{etoolbox}
-\usepackage{mdframed}
-%\usepackage{fontsize}
 \usepackage{enumitem}
 \usepackage{geometry}
 \usepackage{titleps}
 \usepackage{float}
-%\usepackage{babel}
 % use hidelinks to remove boxes around links to be similar with Texinfo TeX
 \usepackage[hidelinks]{hyperref}
 \usepackage[utf8]{inputenc}
 
 \newcommand{\GNUTexinfosettitle}{No Title}%
 
-% command used in \description format for dfn
-\newcommand\GNUTexinfotablestyledfn[1]{{\normalfont\emph{#1}}}%
-
-% command used in \description format for emph
-\newcommand\GNUTexinfotablestyleemph[1]{{\normalfont\emph{#1}}}%
-
-% command used in \description format for hyphenation
-\newcommand\GNUTexinfotablestylehyphenation[1]{{\normalfont\hyphenation{#1}}}%
-
-% command used in \description format for indicateurl
-\newcommand\GNUTexinfotablestyleindicateurl[1]{\ifstrempty{#1}{}{{`\texttt{#1}'}}}%
-
-% command used in \description format for kbd
-\newcommand\GNUTexinfotablestylekbd[1]{{\ttfamily\textsl{#1}}}%
-
-% command used in \description format for samp
-\newcommand\GNUTexinfotablestylesamp[1]{\ifstrempty{#1}{}{{`\texttt{#1}'}}}%
-
-% command used in \description format for sub
-\newcommand\GNUTexinfotablestylesub[1]{{\normalfont\textsubscript{#1}}}%
-
-% command used in \description format for sup
-\newcommand\GNUTexinfotablestylesup[1]{{\normalfont\textsuperscript{#1}}}%
-
-% command used in \description format for var
-\newcommand\GNUTexinfotablestylevar[1]{{\normalfont\emph{#1}}}%
-
-% command used in \description format for w
-\newcommand\GNUTexinfotablestylew[1]{{\normalfont\hbox{#1}}}%
-
 % redefine the \mainmatter command such that it does not clear page
 % as if in double page
 \makeatletter
@@ -59,14 +24,6 @@
 % add command aliases to use the same command in book and report
 \newcommand\GNUTexinfomainmatter{\mainmatter}
 \newcommand\GNUTexinfofrontmatter{\frontmatter}
-
-% this allows to select languages based on bcp47 codes.  bcp47 is a superset
-% of the LL_CC ISO 639-2 LL ISO 3166 CC information of @documentlanguage
-% \babeladjust{
-%   autoload.bcp47 = on,
-%   autoload.bcp47.options = import
-% }
-
 % set defaults for lists that match Texinfo TeX formatting
 \setlist[description]{style=nextline, font=\normalfont}
 \setlist[itemize]{label=\textbullet}
@@ -97,11 +54,6 @@
 % avoid pagebreak and headings setting for a sectionning command
 \newcommand{\GNUTexinfonopagebreakheading}[2]{\let\clearpage\relax 
\let\cleardoublepage\relax \let\thispagestyle\GNUTexinfoplaceholder #1{#2}}
 
-% the mdframed style for @cartouche
-\mdfdefinestyle{GNUTexinfocartouche}{
-innertopmargin=10pt, innerbottommargin=10pt,%
-roundcorner=10pt}
-
 \renewcommand{\includegraphics}[1]{\fbox{FIG #1}}
 
 % set default for @setchapternewpage
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 612f4df7b6..1f139e9770 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
@@ -1,56 +1,21 @@
 \documentclass{book}
-\usepackage{imakeidx}
 \usepackage{amsfonts}
 \usepackage{amsmath}
 \usepackage[gen]{eurosym}
 \usepackage[T1]{fontenc}
 \usepackage{textcomp}
 \usepackage{graphicx}
-\usepackage{needspace}
 \usepackage{etoolbox}
-\usepackage{mdframed}
-%\usepackage{fontsize}
 \usepackage{enumitem}
 \usepackage{geometry}
 \usepackage{titleps}
 \usepackage{float}
-%\usepackage{babel}
 % use hidelinks to remove boxes around links to be similar with Texinfo TeX
 \usepackage[hidelinks]{hyperref}
 \usepackage[utf8]{inputenc}
 
 \newcommand{\GNUTexinfosettitle}{No Title}%
 
-% command used in \description format for dfn
-\newcommand\GNUTexinfotablestyledfn[1]{{\normalfont\emph{#1}}}%
-
-% command used in \description format for emph
-\newcommand\GNUTexinfotablestyleemph[1]{{\normalfont\emph{#1}}}%
-
-% command used in \description format for hyphenation
-\newcommand\GNUTexinfotablestylehyphenation[1]{{\normalfont\hyphenation{#1}}}%
-
-% command used in \description format for indicateurl
-\newcommand\GNUTexinfotablestyleindicateurl[1]{\ifstrempty{#1}{}{{`\texttt{#1}'}}}%
-
-% command used in \description format for kbd
-\newcommand\GNUTexinfotablestylekbd[1]{{\ttfamily\textsl{#1}}}%
-
-% command used in \description format for samp
-\newcommand\GNUTexinfotablestylesamp[1]{\ifstrempty{#1}{}{{`\texttt{#1}'}}}%
-
-% command used in \description format for sub
-\newcommand\GNUTexinfotablestylesub[1]{{\normalfont\textsubscript{#1}}}%
-
-% command used in \description format for sup
-\newcommand\GNUTexinfotablestylesup[1]{{\normalfont\textsuperscript{#1}}}%
-
-% command used in \description format for var
-\newcommand\GNUTexinfotablestylevar[1]{{\normalfont\emph{#1}}}%
-
-% command used in \description format for w
-\newcommand\GNUTexinfotablestylew[1]{{\normalfont\hbox{#1}}}%
-
 % redefine the \mainmatter command such that it does not clear page
 % as if in double page
 \makeatletter
@@ -59,14 +24,6 @@
 % add command aliases to use the same command in book and report
 \newcommand\GNUTexinfomainmatter{\mainmatter}
 \newcommand\GNUTexinfofrontmatter{\frontmatter}
-
-% this allows to select languages based on bcp47 codes.  bcp47 is a superset
-% of the LL_CC ISO 639-2 LL ISO 3166 CC information of @documentlanguage
-% \babeladjust{
-%   autoload.bcp47 = on,
-%   autoload.bcp47.options = import
-% }
-
 % set defaults for lists that match Texinfo TeX formatting
 \setlist[description]{style=nextline, font=\normalfont}
 \setlist[itemize]{label=\textbullet}
@@ -97,11 +54,6 @@
 % avoid pagebreak and headings setting for a sectionning command
 \newcommand{\GNUTexinfonopagebreakheading}[2]{\let\clearpage\relax 
\let\cleardoublepage\relax \let\thispagestyle\GNUTexinfoplaceholder #1{#2}}
 
-% the mdframed style for @cartouche
-\mdfdefinestyle{GNUTexinfocartouche}{
-innertopmargin=10pt, innerbottommargin=10pt,%
-roundcorner=10pt}
-
 \renewcommand{\includegraphics}[1]{\fbox{FIG #1}}
 
 % set default for @setchapternewpage
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 d59f7ea1c5..b812ac5194 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
@@ -1,56 +1,21 @@
 \documentclass{book}
-\usepackage{imakeidx}
 \usepackage{amsfonts}
 \usepackage{amsmath}
 \usepackage[gen]{eurosym}
 \usepackage[T1]{fontenc}
 \usepackage{textcomp}
 \usepackage{graphicx}
-\usepackage{needspace}
 \usepackage{etoolbox}
-\usepackage{mdframed}
-%\usepackage{fontsize}
 \usepackage{enumitem}
 \usepackage{geometry}
 \usepackage{titleps}
 \usepackage{float}
-%\usepackage{babel}
 % use hidelinks to remove boxes around links to be similar with Texinfo TeX
 \usepackage[hidelinks]{hyperref}
 \usepackage[utf8]{inputenc}
 
 \newcommand{\GNUTexinfosettitle}{No Title}%
 
-% command used in \description format for dfn
-\newcommand\GNUTexinfotablestyledfn[1]{{\normalfont\emph{#1}}}%
-
-% command used in \description format for emph
-\newcommand\GNUTexinfotablestyleemph[1]{{\normalfont\emph{#1}}}%
-
-% command used in \description format for hyphenation
-\newcommand\GNUTexinfotablestylehyphenation[1]{{\normalfont\hyphenation{#1}}}%
-
-% command used in \description format for indicateurl
-\newcommand\GNUTexinfotablestyleindicateurl[1]{\ifstrempty{#1}{}{{`\texttt{#1}'}}}%
-
-% command used in \description format for kbd
-\newcommand\GNUTexinfotablestylekbd[1]{{\ttfamily\textsl{#1}}}%
-
-% command used in \description format for samp
-\newcommand\GNUTexinfotablestylesamp[1]{\ifstrempty{#1}{}{{`\texttt{#1}'}}}%
-
-% command used in \description format for sub
-\newcommand\GNUTexinfotablestylesub[1]{{\normalfont\textsubscript{#1}}}%
-
-% command used in \description format for sup
-\newcommand\GNUTexinfotablestylesup[1]{{\normalfont\textsuperscript{#1}}}%
-
-% command used in \description format for var
-\newcommand\GNUTexinfotablestylevar[1]{{\normalfont\emph{#1}}}%
-
-% command used in \description format for w
-\newcommand\GNUTexinfotablestylew[1]{{\normalfont\hbox{#1}}}%
-
 % redefine the \mainmatter command such that it does not clear page
 % as if in double page
 \makeatletter
@@ -59,14 +24,6 @@
 % add command aliases to use the same command in book and report
 \newcommand\GNUTexinfomainmatter{\mainmatter}
 \newcommand\GNUTexinfofrontmatter{\frontmatter}
-
-% this allows to select languages based on bcp47 codes.  bcp47 is a superset
-% of the LL_CC ISO 639-2 LL ISO 3166 CC information of @documentlanguage
-% \babeladjust{
-%   autoload.bcp47 = on,
-%   autoload.bcp47.options = import
-% }
-
 % set defaults for lists that match Texinfo TeX formatting
 \setlist[description]{style=nextline, font=\normalfont}
 \setlist[itemize]{label=\textbullet}
@@ -97,11 +54,6 @@
 % avoid pagebreak and headings setting for a sectionning command
 \newcommand{\GNUTexinfonopagebreakheading}[2]{\let\clearpage\relax 
\let\cleardoublepage\relax \let\thispagestyle\GNUTexinfoplaceholder #1{#2}}
 
-% the mdframed style for @cartouche
-\mdfdefinestyle{GNUTexinfocartouche}{
-innertopmargin=10pt, innerbottommargin=10pt,%
-roundcorner=10pt}
-
 \renewcommand{\includegraphics}[1]{\fbox{FIG #1}}
 
 % set default for @setchapternewpage
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 612f4df7b6..1f139e9770 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
@@ -1,56 +1,21 @@
 \documentclass{book}
-\usepackage{imakeidx}
 \usepackage{amsfonts}
 \usepackage{amsmath}
 \usepackage[gen]{eurosym}
 \usepackage[T1]{fontenc}
 \usepackage{textcomp}
 \usepackage{graphicx}
-\usepackage{needspace}
 \usepackage{etoolbox}
-\usepackage{mdframed}
-%\usepackage{fontsize}
 \usepackage{enumitem}
 \usepackage{geometry}
 \usepackage{titleps}
 \usepackage{float}
-%\usepackage{babel}
 % use hidelinks to remove boxes around links to be similar with Texinfo TeX
 \usepackage[hidelinks]{hyperref}
 \usepackage[utf8]{inputenc}
 
 \newcommand{\GNUTexinfosettitle}{No Title}%
 
-% command used in \description format for dfn
-\newcommand\GNUTexinfotablestyledfn[1]{{\normalfont\emph{#1}}}%
-
-% command used in \description format for emph
-\newcommand\GNUTexinfotablestyleemph[1]{{\normalfont\emph{#1}}}%
-
-% command used in \description format for hyphenation
-\newcommand\GNUTexinfotablestylehyphenation[1]{{\normalfont\hyphenation{#1}}}%
-
-% command used in \description format for indicateurl
-\newcommand\GNUTexinfotablestyleindicateurl[1]{\ifstrempty{#1}{}{{`\texttt{#1}'}}}%
-
-% command used in \description format for kbd
-\newcommand\GNUTexinfotablestylekbd[1]{{\ttfamily\textsl{#1}}}%
-
-% command used in \description format for samp
-\newcommand\GNUTexinfotablestylesamp[1]{\ifstrempty{#1}{}{{`\texttt{#1}'}}}%
-
-% command used in \description format for sub
-\newcommand\GNUTexinfotablestylesub[1]{{\normalfont\textsubscript{#1}}}%
-
-% command used in \description format for sup
-\newcommand\GNUTexinfotablestylesup[1]{{\normalfont\textsuperscript{#1}}}%
-
-% command used in \description format for var
-\newcommand\GNUTexinfotablestylevar[1]{{\normalfont\emph{#1}}}%
-
-% command used in \description format for w
-\newcommand\GNUTexinfotablestylew[1]{{\normalfont\hbox{#1}}}%
-
 % redefine the \mainmatter command such that it does not clear page
 % as if in double page
 \makeatletter
@@ -59,14 +24,6 @@
 % add command aliases to use the same command in book and report
 \newcommand\GNUTexinfomainmatter{\mainmatter}
 \newcommand\GNUTexinfofrontmatter{\frontmatter}
-
-% this allows to select languages based on bcp47 codes.  bcp47 is a superset
-% of the LL_CC ISO 639-2 LL ISO 3166 CC information of @documentlanguage
-% \babeladjust{
-%   autoload.bcp47 = on,
-%   autoload.bcp47.options = import
-% }
-
 % set defaults for lists that match Texinfo TeX formatting
 \setlist[description]{style=nextline, font=\normalfont}
 \setlist[itemize]{label=\textbullet}
@@ -97,11 +54,6 @@
 % avoid pagebreak and headings setting for a sectionning command
 \newcommand{\GNUTexinfonopagebreakheading}[2]{\let\clearpage\relax 
\let\cleardoublepage\relax \let\thispagestyle\GNUTexinfoplaceholder #1{#2}}
 
-% the mdframed style for @cartouche
-\mdfdefinestyle{GNUTexinfocartouche}{
-innertopmargin=10pt, innerbottommargin=10pt,%
-roundcorner=10pt}
-
 \renewcommand{\includegraphics}[1]{\fbox{FIG #1}}
 
 % set default for @setchapternewpage
diff --git 
a/tp/t/results/latex_tests/titlepage_classical/res_latex/titlepage_classical.tex
 
b/tp/t/results/latex_tests/titlepage_classical/res_latex/titlepage_classical.tex
index 3c2b0519ac..732565f137 100644
--- 
a/tp/t/results/latex_tests/titlepage_classical/res_latex/titlepage_classical.tex
+++ 
b/tp/t/results/latex_tests/titlepage_classical/res_latex/titlepage_classical.tex
@@ -1,56 +1,21 @@
 \documentclass{book}
-\usepackage{imakeidx}
 \usepackage{amsfonts}
 \usepackage{amsmath}
 \usepackage[gen]{eurosym}
 \usepackage[T1]{fontenc}
 \usepackage{textcomp}
 \usepackage{graphicx}
-\usepackage{needspace}
 \usepackage{etoolbox}
-\usepackage{mdframed}
-%\usepackage{fontsize}
 \usepackage{enumitem}
 \usepackage{geometry}
 \usepackage{titleps}
 \usepackage{float}
-%\usepackage{babel}
 % use hidelinks to remove boxes around links to be similar with Texinfo TeX
 \usepackage[hidelinks]{hyperref}
 \usepackage[utf8]{inputenc}
 
 \newcommand{\GNUTexinfosettitle}{No Title}%
 
-% command used in \description format for dfn
-\newcommand\GNUTexinfotablestyledfn[1]{{\normalfont\emph{#1}}}%
-
-% command used in \description format for emph
-\newcommand\GNUTexinfotablestyleemph[1]{{\normalfont\emph{#1}}}%
-
-% command used in \description format for hyphenation
-\newcommand\GNUTexinfotablestylehyphenation[1]{{\normalfont\hyphenation{#1}}}%
-
-% command used in \description format for indicateurl
-\newcommand\GNUTexinfotablestyleindicateurl[1]{\ifstrempty{#1}{}{{`\texttt{#1}'}}}%
-
-% command used in \description format for kbd
-\newcommand\GNUTexinfotablestylekbd[1]{{\ttfamily\textsl{#1}}}%
-
-% command used in \description format for samp
-\newcommand\GNUTexinfotablestylesamp[1]{\ifstrempty{#1}{}{{`\texttt{#1}'}}}%
-
-% command used in \description format for sub
-\newcommand\GNUTexinfotablestylesub[1]{{\normalfont\textsubscript{#1}}}%
-
-% command used in \description format for sup
-\newcommand\GNUTexinfotablestylesup[1]{{\normalfont\textsuperscript{#1}}}%
-
-% command used in \description format for var
-\newcommand\GNUTexinfotablestylevar[1]{{\normalfont\emph{#1}}}%
-
-% command used in \description format for w
-\newcommand\GNUTexinfotablestylew[1]{{\normalfont\hbox{#1}}}%
-
 % redefine the \mainmatter command such that it does not clear page
 % as if in double page
 \makeatletter
@@ -59,14 +24,6 @@
 % add command aliases to use the same command in book and report
 \newcommand\GNUTexinfomainmatter{\mainmatter}
 \newcommand\GNUTexinfofrontmatter{\frontmatter}
-
-% this allows to select languages based on bcp47 codes.  bcp47 is a superset
-% of the LL_CC ISO 639-2 LL ISO 3166 CC information of @documentlanguage
-% \babeladjust{
-%   autoload.bcp47 = on,
-%   autoload.bcp47.options = import
-% }
-
 % set defaults for lists that match Texinfo TeX formatting
 \setlist[description]{style=nextline, font=\normalfont}
 \setlist[itemize]{label=\textbullet}
@@ -97,11 +54,6 @@
 % avoid pagebreak and headings setting for a sectionning command
 \newcommand{\GNUTexinfonopagebreakheading}[2]{\let\clearpage\relax 
\let\cleardoublepage\relax \let\thispagestyle\GNUTexinfoplaceholder #1{#2}}
 
-% the mdframed style for @cartouche
-\mdfdefinestyle{GNUTexinfocartouche}{
-innertopmargin=10pt, innerbottommargin=10pt,%
-roundcorner=10pt}
-
 \renewcommand{\includegraphics}[1]{\fbox{FIG #1}}
 
 % set default for @setchapternewpage
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 88658092ef..1e995fb48b 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
@@ -1,56 +1,21 @@
 \documentclass{book}
-\usepackage{imakeidx}
 \usepackage{amsfonts}
 \usepackage{amsmath}
 \usepackage[gen]{eurosym}
 \usepackage[T1]{fontenc}
 \usepackage{textcomp}
 \usepackage{graphicx}
-\usepackage{needspace}
 \usepackage{etoolbox}
-\usepackage{mdframed}
-%\usepackage{fontsize}
 \usepackage{enumitem}
 \usepackage{geometry}
 \usepackage{titleps}
 \usepackage{float}
-%\usepackage{babel}
 % use hidelinks to remove boxes around links to be similar with Texinfo TeX
 \usepackage[hidelinks]{hyperref}
 \usepackage[utf8]{inputenc}
 
 \newcommand{\GNUTexinfosettitle}{No Title}%
 
-% command used in \description format for dfn
-\newcommand\GNUTexinfotablestyledfn[1]{{\normalfont\emph{#1}}}%
-
-% command used in \description format for emph
-\newcommand\GNUTexinfotablestyleemph[1]{{\normalfont\emph{#1}}}%
-
-% command used in \description format for hyphenation
-\newcommand\GNUTexinfotablestylehyphenation[1]{{\normalfont\hyphenation{#1}}}%
-
-% command used in \description format for indicateurl
-\newcommand\GNUTexinfotablestyleindicateurl[1]{\ifstrempty{#1}{}{{`\texttt{#1}'}}}%
-
-% command used in \description format for kbd
-\newcommand\GNUTexinfotablestylekbd[1]{{\ttfamily\textsl{#1}}}%
-
-% command used in \description format for samp
-\newcommand\GNUTexinfotablestylesamp[1]{\ifstrempty{#1}{}{{`\texttt{#1}'}}}%
-
-% command used in \description format for sub
-\newcommand\GNUTexinfotablestylesub[1]{{\normalfont\textsubscript{#1}}}%
-
-% command used in \description format for sup
-\newcommand\GNUTexinfotablestylesup[1]{{\normalfont\textsuperscript{#1}}}%
-
-% command used in \description format for var
-\newcommand\GNUTexinfotablestylevar[1]{{\normalfont\emph{#1}}}%
-
-% command used in \description format for w
-\newcommand\GNUTexinfotablestylew[1]{{\normalfont\hbox{#1}}}%
-
 % redefine the \mainmatter command such that it does not clear page
 % as if in double page
 \makeatletter
@@ -59,14 +24,6 @@
 % add command aliases to use the same command in book and report
 \newcommand\GNUTexinfomainmatter{\mainmatter}
 \newcommand\GNUTexinfofrontmatter{\frontmatter}
-
-% this allows to select languages based on bcp47 codes.  bcp47 is a superset
-% of the LL_CC ISO 639-2 LL ISO 3166 CC information of @documentlanguage
-% \babeladjust{
-%   autoload.bcp47 = on,
-%   autoload.bcp47.options = import
-% }
-
 % set defaults for lists that match Texinfo TeX formatting
 \setlist[description]{style=nextline, font=\normalfont}
 \setlist[itemize]{label=\textbullet}
@@ -97,11 +54,6 @@
 % avoid pagebreak and headings setting for a sectionning command
 \newcommand{\GNUTexinfonopagebreakheading}[2]{\let\clearpage\relax 
\let\cleardoublepage\relax \let\thispagestyle\GNUTexinfoplaceholder #1{#2}}
 
-% the mdframed style for @cartouche
-\mdfdefinestyle{GNUTexinfocartouche}{
-innertopmargin=10pt, innerbottommargin=10pt,%
-roundcorner=10pt}
-
 \renewcommand{\includegraphics}[1]{\fbox{FIG #1}}
 
 % set default for @setchapternewpage
diff --git 
a/tp/t/results/latex_tests/titlepage_long_title/res_latex/titlepage_long_title.tex
 
b/tp/t/results/latex_tests/titlepage_long_title/res_latex/titlepage_long_title.tex
index 7ce6b9a581..f3c36b0336 100644
--- 
a/tp/t/results/latex_tests/titlepage_long_title/res_latex/titlepage_long_title.tex
+++ 
b/tp/t/results/latex_tests/titlepage_long_title/res_latex/titlepage_long_title.tex
@@ -1,56 +1,21 @@
 \documentclass{book}
-\usepackage{imakeidx}
 \usepackage{amsfonts}
 \usepackage{amsmath}
 \usepackage[gen]{eurosym}
 \usepackage[T1]{fontenc}
 \usepackage{textcomp}
 \usepackage{graphicx}
-\usepackage{needspace}
 \usepackage{etoolbox}
-\usepackage{mdframed}
-%\usepackage{fontsize}
 \usepackage{enumitem}
 \usepackage{geometry}
 \usepackage{titleps}
 \usepackage{float}
-%\usepackage{babel}
 % use hidelinks to remove boxes around links to be similar with Texinfo TeX
 \usepackage[hidelinks]{hyperref}
 \usepackage[utf8]{inputenc}
 
 \newcommand{\GNUTexinfosettitle}{No Title}%
 
-% command used in \description format for dfn
-\newcommand\GNUTexinfotablestyledfn[1]{{\normalfont\emph{#1}}}%
-
-% command used in \description format for emph
-\newcommand\GNUTexinfotablestyleemph[1]{{\normalfont\emph{#1}}}%
-
-% command used in \description format for hyphenation
-\newcommand\GNUTexinfotablestylehyphenation[1]{{\normalfont\hyphenation{#1}}}%
-
-% command used in \description format for indicateurl
-\newcommand\GNUTexinfotablestyleindicateurl[1]{\ifstrempty{#1}{}{{`\texttt{#1}'}}}%
-
-% command used in \description format for kbd
-\newcommand\GNUTexinfotablestylekbd[1]{{\ttfamily\textsl{#1}}}%
-
-% command used in \description format for samp
-\newcommand\GNUTexinfotablestylesamp[1]{\ifstrempty{#1}{}{{`\texttt{#1}'}}}%
-
-% command used in \description format for sub
-\newcommand\GNUTexinfotablestylesub[1]{{\normalfont\textsubscript{#1}}}%
-
-% command used in \description format for sup
-\newcommand\GNUTexinfotablestylesup[1]{{\normalfont\textsuperscript{#1}}}%
-
-% command used in \description format for var
-\newcommand\GNUTexinfotablestylevar[1]{{\normalfont\emph{#1}}}%
-
-% command used in \description format for w
-\newcommand\GNUTexinfotablestylew[1]{{\normalfont\hbox{#1}}}%
-
 % redefine the \mainmatter command such that it does not clear page
 % as if in double page
 \makeatletter
@@ -59,14 +24,6 @@
 % add command aliases to use the same command in book and report
 \newcommand\GNUTexinfomainmatter{\mainmatter}
 \newcommand\GNUTexinfofrontmatter{\frontmatter}
-
-% this allows to select languages based on bcp47 codes.  bcp47 is a superset
-% of the LL_CC ISO 639-2 LL ISO 3166 CC information of @documentlanguage
-% \babeladjust{
-%   autoload.bcp47 = on,
-%   autoload.bcp47.options = import
-% }
-
 % set defaults for lists that match Texinfo TeX formatting
 \setlist[description]{style=nextline, font=\normalfont}
 \setlist[itemize]{label=\textbullet}
@@ -97,11 +54,6 @@
 % avoid pagebreak and headings setting for a sectionning command
 \newcommand{\GNUTexinfonopagebreakheading}[2]{\let\clearpage\relax 
\let\cleardoublepage\relax \let\thispagestyle\GNUTexinfoplaceholder #1{#2}}
 
-% the mdframed style for @cartouche
-\mdfdefinestyle{GNUTexinfocartouche}{
-innertopmargin=10pt, innerbottommargin=10pt,%
-roundcorner=10pt}
-
 \renewcommand{\includegraphics}[1]{\fbox{FIG #1}}
 
 % set default for @setchapternewpage
diff --git 
a/tp/t/results/latex_tests/titlepage_no_author/res_latex/titlepage_no_author.tex
 
b/tp/t/results/latex_tests/titlepage_no_author/res_latex/titlepage_no_author.tex
index 3c2bc8701a..560cbaa4b3 100644
--- 
a/tp/t/results/latex_tests/titlepage_no_author/res_latex/titlepage_no_author.tex
+++ 
b/tp/t/results/latex_tests/titlepage_no_author/res_latex/titlepage_no_author.tex
@@ -1,56 +1,21 @@
 \documentclass{book}
-\usepackage{imakeidx}
 \usepackage{amsfonts}
 \usepackage{amsmath}
 \usepackage[gen]{eurosym}
 \usepackage[T1]{fontenc}
 \usepackage{textcomp}
 \usepackage{graphicx}
-\usepackage{needspace}
 \usepackage{etoolbox}
-\usepackage{mdframed}
-%\usepackage{fontsize}
 \usepackage{enumitem}
 \usepackage{geometry}
 \usepackage{titleps}
 \usepackage{float}
-%\usepackage{babel}
 % use hidelinks to remove boxes around links to be similar with Texinfo TeX
 \usepackage[hidelinks]{hyperref}
 \usepackage[utf8]{inputenc}
 
 \newcommand{\GNUTexinfosettitle}{No Title}%
 
-% command used in \description format for dfn
-\newcommand\GNUTexinfotablestyledfn[1]{{\normalfont\emph{#1}}}%
-
-% command used in \description format for emph
-\newcommand\GNUTexinfotablestyleemph[1]{{\normalfont\emph{#1}}}%
-
-% command used in \description format for hyphenation
-\newcommand\GNUTexinfotablestylehyphenation[1]{{\normalfont\hyphenation{#1}}}%
-
-% command used in \description format for indicateurl
-\newcommand\GNUTexinfotablestyleindicateurl[1]{\ifstrempty{#1}{}{{`\texttt{#1}'}}}%
-
-% command used in \description format for kbd
-\newcommand\GNUTexinfotablestylekbd[1]{{\ttfamily\textsl{#1}}}%
-
-% command used in \description format for samp
-\newcommand\GNUTexinfotablestylesamp[1]{\ifstrempty{#1}{}{{`\texttt{#1}'}}}%
-
-% command used in \description format for sub
-\newcommand\GNUTexinfotablestylesub[1]{{\normalfont\textsubscript{#1}}}%
-
-% command used in \description format for sup
-\newcommand\GNUTexinfotablestylesup[1]{{\normalfont\textsuperscript{#1}}}%
-
-% command used in \description format for var
-\newcommand\GNUTexinfotablestylevar[1]{{\normalfont\emph{#1}}}%
-
-% command used in \description format for w
-\newcommand\GNUTexinfotablestylew[1]{{\normalfont\hbox{#1}}}%
-
 % redefine the \mainmatter command such that it does not clear page
 % as if in double page
 \makeatletter
@@ -59,14 +24,6 @@
 % add command aliases to use the same command in book and report
 \newcommand\GNUTexinfomainmatter{\mainmatter}
 \newcommand\GNUTexinfofrontmatter{\frontmatter}
-
-% this allows to select languages based on bcp47 codes.  bcp47 is a superset
-% of the LL_CC ISO 639-2 LL ISO 3166 CC information of @documentlanguage
-% \babeladjust{
-%   autoload.bcp47 = on,
-%   autoload.bcp47.options = import
-% }
-
 % set defaults for lists that match Texinfo TeX formatting
 \setlist[description]{style=nextline, font=\normalfont}
 \setlist[itemize]{label=\textbullet}
@@ -97,11 +54,6 @@
 % avoid pagebreak and headings setting for a sectionning command
 \newcommand{\GNUTexinfonopagebreakheading}[2]{\let\clearpage\relax 
\let\cleardoublepage\relax \let\thispagestyle\GNUTexinfoplaceholder #1{#2}}
 
-% the mdframed style for @cartouche
-\mdfdefinestyle{GNUTexinfocartouche}{
-innertopmargin=10pt, innerbottommargin=10pt,%
-roundcorner=10pt}
-
 \renewcommand{\includegraphics}[1]{\fbox{FIG #1}}
 
 % set default for @setchapternewpage
diff --git 
a/tp/t/results/latex_tests/titlepage_no_title/res_latex/titlepage_no_title.tex 
b/tp/t/results/latex_tests/titlepage_no_title/res_latex/titlepage_no_title.tex
index b9bdcded13..dd4580ec6f 100644
--- 
a/tp/t/results/latex_tests/titlepage_no_title/res_latex/titlepage_no_title.tex
+++ 
b/tp/t/results/latex_tests/titlepage_no_title/res_latex/titlepage_no_title.tex
@@ -1,56 +1,21 @@
 \documentclass{book}
-\usepackage{imakeidx}
 \usepackage{amsfonts}
 \usepackage{amsmath}
 \usepackage[gen]{eurosym}
 \usepackage[T1]{fontenc}
 \usepackage{textcomp}
 \usepackage{graphicx}
-\usepackage{needspace}
 \usepackage{etoolbox}
-\usepackage{mdframed}
-%\usepackage{fontsize}
 \usepackage{enumitem}
 \usepackage{geometry}
 \usepackage{titleps}
 \usepackage{float}
-%\usepackage{babel}
 % use hidelinks to remove boxes around links to be similar with Texinfo TeX
 \usepackage[hidelinks]{hyperref}
 \usepackage[utf8]{inputenc}
 
 \newcommand{\GNUTexinfosettitle}{No Title}%
 
-% command used in \description format for dfn
-\newcommand\GNUTexinfotablestyledfn[1]{{\normalfont\emph{#1}}}%
-
-% command used in \description format for emph
-\newcommand\GNUTexinfotablestyleemph[1]{{\normalfont\emph{#1}}}%
-
-% command used in \description format for hyphenation
-\newcommand\GNUTexinfotablestylehyphenation[1]{{\normalfont\hyphenation{#1}}}%
-
-% command used in \description format for indicateurl
-\newcommand\GNUTexinfotablestyleindicateurl[1]{\ifstrempty{#1}{}{{`\texttt{#1}'}}}%
-
-% command used in \description format for kbd
-\newcommand\GNUTexinfotablestylekbd[1]{{\ttfamily\textsl{#1}}}%
-
-% command used in \description format for samp
-\newcommand\GNUTexinfotablestylesamp[1]{\ifstrempty{#1}{}{{`\texttt{#1}'}}}%
-
-% command used in \description format for sub
-\newcommand\GNUTexinfotablestylesub[1]{{\normalfont\textsubscript{#1}}}%
-
-% command used in \description format for sup
-\newcommand\GNUTexinfotablestylesup[1]{{\normalfont\textsuperscript{#1}}}%
-
-% command used in \description format for var
-\newcommand\GNUTexinfotablestylevar[1]{{\normalfont\emph{#1}}}%
-
-% command used in \description format for w
-\newcommand\GNUTexinfotablestylew[1]{{\normalfont\hbox{#1}}}%
-
 % redefine the \mainmatter command such that it does not clear page
 % as if in double page
 \makeatletter
@@ -59,14 +24,6 @@
 % add command aliases to use the same command in book and report
 \newcommand\GNUTexinfomainmatter{\mainmatter}
 \newcommand\GNUTexinfofrontmatter{\frontmatter}
-
-% this allows to select languages based on bcp47 codes.  bcp47 is a superset
-% of the LL_CC ISO 639-2 LL ISO 3166 CC information of @documentlanguage
-% \babeladjust{
-%   autoload.bcp47 = on,
-%   autoload.bcp47.options = import
-% }
-
 % set defaults for lists that match Texinfo TeX formatting
 \setlist[description]{style=nextline, font=\normalfont}
 \setlist[itemize]{label=\textbullet}
@@ -97,11 +54,6 @@
 % avoid pagebreak and headings setting for a sectionning command
 \newcommand{\GNUTexinfonopagebreakheading}[2]{\let\clearpage\relax 
\let\cleardoublepage\relax \let\thispagestyle\GNUTexinfoplaceholder #1{#2}}
 
-% the mdframed style for @cartouche
-\mdfdefinestyle{GNUTexinfocartouche}{
-innertopmargin=10pt, innerbottommargin=10pt,%
-roundcorner=10pt}
-
 \renewcommand{\includegraphics}[1]{\fbox{FIG #1}}
 
 % set default for @setchapternewpage
diff --git 
a/tp/t/results/latex_tests/titlepage_with_commands_classical/res_latex/titlepage_with_commands_classical.tex
 
b/tp/t/results/latex_tests/titlepage_with_commands_classical/res_latex/titlepage_with_commands_classical.tex
index aad702498b..eef6951f81 100644
--- 
a/tp/t/results/latex_tests/titlepage_with_commands_classical/res_latex/titlepage_with_commands_classical.tex
+++ 
b/tp/t/results/latex_tests/titlepage_with_commands_classical/res_latex/titlepage_with_commands_classical.tex
@@ -1,56 +1,21 @@
 \documentclass{book}
-\usepackage{imakeidx}
 \usepackage{amsfonts}
 \usepackage{amsmath}
 \usepackage[gen]{eurosym}
 \usepackage[T1]{fontenc}
 \usepackage{textcomp}
 \usepackage{graphicx}
-\usepackage{needspace}
 \usepackage{etoolbox}
-\usepackage{mdframed}
-%\usepackage{fontsize}
 \usepackage{enumitem}
 \usepackage{geometry}
 \usepackage{titleps}
 \usepackage{float}
-%\usepackage{babel}
 % use hidelinks to remove boxes around links to be similar with Texinfo TeX
 \usepackage[hidelinks]{hyperref}
 \usepackage[utf8]{inputenc}
 
 \newcommand{\GNUTexinfosettitle}{No Title}%
 
-% command used in \description format for dfn
-\newcommand\GNUTexinfotablestyledfn[1]{{\normalfont\emph{#1}}}%
-
-% command used in \description format for emph
-\newcommand\GNUTexinfotablestyleemph[1]{{\normalfont\emph{#1}}}%
-
-% command used in \description format for hyphenation
-\newcommand\GNUTexinfotablestylehyphenation[1]{{\normalfont\hyphenation{#1}}}%
-
-% command used in \description format for indicateurl
-\newcommand\GNUTexinfotablestyleindicateurl[1]{\ifstrempty{#1}{}{{`\texttt{#1}'}}}%
-
-% command used in \description format for kbd
-\newcommand\GNUTexinfotablestylekbd[1]{{\ttfamily\textsl{#1}}}%
-
-% command used in \description format for samp
-\newcommand\GNUTexinfotablestylesamp[1]{\ifstrempty{#1}{}{{`\texttt{#1}'}}}%
-
-% command used in \description format for sub
-\newcommand\GNUTexinfotablestylesub[1]{{\normalfont\textsubscript{#1}}}%
-
-% command used in \description format for sup
-\newcommand\GNUTexinfotablestylesup[1]{{\normalfont\textsuperscript{#1}}}%
-
-% command used in \description format for var
-\newcommand\GNUTexinfotablestylevar[1]{{\normalfont\emph{#1}}}%
-
-% command used in \description format for w
-\newcommand\GNUTexinfotablestylew[1]{{\normalfont\hbox{#1}}}%
-
 % redefine the \mainmatter command such that it does not clear page
 % as if in double page
 \makeatletter
@@ -59,14 +24,6 @@
 % add command aliases to use the same command in book and report
 \newcommand\GNUTexinfomainmatter{\mainmatter}
 \newcommand\GNUTexinfofrontmatter{\frontmatter}
-
-% this allows to select languages based on bcp47 codes.  bcp47 is a superset
-% of the LL_CC ISO 639-2 LL ISO 3166 CC information of @documentlanguage
-% \babeladjust{
-%   autoload.bcp47 = on,
-%   autoload.bcp47.options = import
-% }
-
 % set defaults for lists that match Texinfo TeX formatting
 \setlist[description]{style=nextline, font=\normalfont}
 \setlist[itemize]{label=\textbullet}
@@ -97,11 +54,6 @@
 % avoid pagebreak and headings setting for a sectionning command
 \newcommand{\GNUTexinfonopagebreakheading}[2]{\let\clearpage\relax 
\let\cleardoublepage\relax \let\thispagestyle\GNUTexinfoplaceholder #1{#2}}
 
-% the mdframed style for @cartouche
-\mdfdefinestyle{GNUTexinfocartouche}{
-innertopmargin=10pt, innerbottommargin=10pt,%
-roundcorner=10pt}
-
 \renewcommand{\includegraphics}[1]{\fbox{FIG #1}}
 
 % set default for @setchapternewpage
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 1410a72ad3..b62d8ef957 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
@@ -1,56 +1,21 @@
 \documentclass{book}
-\usepackage{imakeidx}
 \usepackage{amsfonts}
 \usepackage{amsmath}
 \usepackage[gen]{eurosym}
 \usepackage[T1]{fontenc}
 \usepackage{textcomp}
 \usepackage{graphicx}
-\usepackage{needspace}
 \usepackage{etoolbox}
-\usepackage{mdframed}
-%\usepackage{fontsize}
 \usepackage{enumitem}
 \usepackage{geometry}
 \usepackage{titleps}
 \usepackage{float}
-%\usepackage{babel}
 % use hidelinks to remove boxes around links to be similar with Texinfo TeX
 \usepackage[hidelinks]{hyperref}
 \usepackage[utf8]{inputenc}
 
 \newcommand{\GNUTexinfosettitle}{No Title}%
 
-% command used in \description format for dfn
-\newcommand\GNUTexinfotablestyledfn[1]{{\normalfont\emph{#1}}}%
-
-% command used in \description format for emph
-\newcommand\GNUTexinfotablestyleemph[1]{{\normalfont\emph{#1}}}%
-
-% command used in \description format for hyphenation
-\newcommand\GNUTexinfotablestylehyphenation[1]{{\normalfont\hyphenation{#1}}}%
-
-% command used in \description format for indicateurl
-\newcommand\GNUTexinfotablestyleindicateurl[1]{\ifstrempty{#1}{}{{`\texttt{#1}'}}}%
-
-% command used in \description format for kbd
-\newcommand\GNUTexinfotablestylekbd[1]{{\ttfamily\textsl{#1}}}%
-
-% command used in \description format for samp
-\newcommand\GNUTexinfotablestylesamp[1]{\ifstrempty{#1}{}{{`\texttt{#1}'}}}%
-
-% command used in \description format for sub
-\newcommand\GNUTexinfotablestylesub[1]{{\normalfont\textsubscript{#1}}}%
-
-% command used in \description format for sup
-\newcommand\GNUTexinfotablestylesup[1]{{\normalfont\textsuperscript{#1}}}%
-
-% command used in \description format for var
-\newcommand\GNUTexinfotablestylevar[1]{{\normalfont\emph{#1}}}%
-
-% command used in \description format for w
-\newcommand\GNUTexinfotablestylew[1]{{\normalfont\hbox{#1}}}%
-
 % redefine the \mainmatter command such that it does not clear page
 % as if in double page
 \makeatletter
@@ -59,14 +24,6 @@
 % add command aliases to use the same command in book and report
 \newcommand\GNUTexinfomainmatter{\mainmatter}
 \newcommand\GNUTexinfofrontmatter{\frontmatter}
-
-% this allows to select languages based on bcp47 codes.  bcp47 is a superset
-% of the LL_CC ISO 639-2 LL ISO 3166 CC information of @documentlanguage
-% \babeladjust{
-%   autoload.bcp47 = on,
-%   autoload.bcp47.options = import
-% }
-
 % set defaults for lists that match Texinfo TeX formatting
 \setlist[description]{style=nextline, font=\normalfont}
 \setlist[itemize]{label=\textbullet}
@@ -97,11 +54,6 @@
 % avoid pagebreak and headings setting for a sectionning command
 \newcommand{\GNUTexinfonopagebreakheading}[2]{\let\clearpage\relax 
\let\cleardoublepage\relax \let\thispagestyle\GNUTexinfoplaceholder #1{#2}}
 
-% the mdframed style for @cartouche
-\mdfdefinestyle{GNUTexinfocartouche}{
-innertopmargin=10pt, innerbottommargin=10pt,%
-roundcorner=10pt}
-
 \renewcommand{\includegraphics}[1]{\fbox{FIG #1}}
 
 % set default for @setchapternewpage
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 422ee257d8..e0345546bf 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
@@ -1,56 +1,21 @@
 \documentclass{book}
-\usepackage{imakeidx}
 \usepackage{amsfonts}
 \usepackage{amsmath}
 \usepackage[gen]{eurosym}
 \usepackage[T1]{fontenc}
 \usepackage{textcomp}
 \usepackage{graphicx}
-\usepackage{needspace}
 \usepackage{etoolbox}
-\usepackage{mdframed}
-%\usepackage{fontsize}
 \usepackage{enumitem}
 \usepackage{geometry}
 \usepackage{titleps}
 \usepackage{float}
-%\usepackage{babel}
 % use hidelinks to remove boxes around links to be similar with Texinfo TeX
 \usepackage[hidelinks]{hyperref}
 \usepackage[utf8]{inputenc}
 
 \newcommand{\GNUTexinfosettitle}{No Title}%
 
-% command used in \description format for dfn
-\newcommand\GNUTexinfotablestyledfn[1]{{\normalfont\emph{#1}}}%
-
-% command used in \description format for emph
-\newcommand\GNUTexinfotablestyleemph[1]{{\normalfont\emph{#1}}}%
-
-% command used in \description format for hyphenation
-\newcommand\GNUTexinfotablestylehyphenation[1]{{\normalfont\hyphenation{#1}}}%
-
-% command used in \description format for indicateurl
-\newcommand\GNUTexinfotablestyleindicateurl[1]{\ifstrempty{#1}{}{{`\texttt{#1}'}}}%
-
-% command used in \description format for kbd
-\newcommand\GNUTexinfotablestylekbd[1]{{\ttfamily\textsl{#1}}}%
-
-% command used in \description format for samp
-\newcommand\GNUTexinfotablestylesamp[1]{\ifstrempty{#1}{}{{`\texttt{#1}'}}}%
-
-% command used in \description format for sub
-\newcommand\GNUTexinfotablestylesub[1]{{\normalfont\textsubscript{#1}}}%
-
-% command used in \description format for sup
-\newcommand\GNUTexinfotablestylesup[1]{{\normalfont\textsuperscript{#1}}}%
-
-% command used in \description format for var
-\newcommand\GNUTexinfotablestylevar[1]{{\normalfont\emph{#1}}}%
-
-% command used in \description format for w
-\newcommand\GNUTexinfotablestylew[1]{{\normalfont\hbox{#1}}}%
-
 % redefine the \mainmatter command such that it does not clear page
 % as if in double page
 \makeatletter
@@ -59,14 +24,6 @@
 % add command aliases to use the same command in book and report
 \newcommand\GNUTexinfomainmatter{\mainmatter}
 \newcommand\GNUTexinfofrontmatter{\frontmatter}
-
-% this allows to select languages based on bcp47 codes.  bcp47 is a superset
-% of the LL_CC ISO 639-2 LL ISO 3166 CC information of @documentlanguage
-% \babeladjust{
-%   autoload.bcp47 = on,
-%   autoload.bcp47.options = import
-% }
-
 % set defaults for lists that match Texinfo TeX formatting
 \setlist[description]{style=nextline, font=\normalfont}
 \setlist[itemize]{label=\textbullet}
@@ -97,11 +54,6 @@
 % avoid pagebreak and headings setting for a sectionning command
 \newcommand{\GNUTexinfonopagebreakheading}[2]{\let\clearpage\relax 
\let\cleardoublepage\relax \let\thispagestyle\GNUTexinfoplaceholder #1{#2}}
 
-% the mdframed style for @cartouche
-\mdfdefinestyle{GNUTexinfocartouche}{
-innertopmargin=10pt, innerbottommargin=10pt,%
-roundcorner=10pt}
-
 \renewcommand{\includegraphics}[1]{\fbox{FIG #1}}
 
 % set default for @setchapternewpage
diff --git 
a/tp/t/results/latex_tests/verbatim_in_smallformat/res_latex/verbatim_in_smallformat.tex
 
b/tp/t/results/latex_tests/verbatim_in_smallformat/res_latex/verbatim_in_smallformat.tex
index b66563f737..d826db529d 100644
--- 
a/tp/t/results/latex_tests/verbatim_in_smallformat/res_latex/verbatim_in_smallformat.tex
+++ 
b/tp/t/results/latex_tests/verbatim_in_smallformat/res_latex/verbatim_in_smallformat.tex
@@ -1,56 +1,21 @@
 \documentclass{book}
-\usepackage{imakeidx}
 \usepackage{amsfonts}
 \usepackage{amsmath}
 \usepackage[gen]{eurosym}
 \usepackage[T1]{fontenc}
 \usepackage{textcomp}
 \usepackage{graphicx}
-\usepackage{needspace}
 \usepackage{etoolbox}
-\usepackage{mdframed}
-%\usepackage{fontsize}
 \usepackage{enumitem}
 \usepackage{geometry}
 \usepackage{titleps}
 \usepackage{float}
-%\usepackage{babel}
 % use hidelinks to remove boxes around links to be similar with Texinfo TeX
 \usepackage[hidelinks]{hyperref}
 \usepackage[utf8]{inputenc}
 
 \newcommand{\GNUTexinfosettitle}{No Title}%
 
-% command used in \description format for dfn
-\newcommand\GNUTexinfotablestyledfn[1]{{\normalfont\emph{#1}}}%
-
-% command used in \description format for emph
-\newcommand\GNUTexinfotablestyleemph[1]{{\normalfont\emph{#1}}}%
-
-% command used in \description format for hyphenation
-\newcommand\GNUTexinfotablestylehyphenation[1]{{\normalfont\hyphenation{#1}}}%
-
-% command used in \description format for indicateurl
-\newcommand\GNUTexinfotablestyleindicateurl[1]{\ifstrempty{#1}{}{{`\texttt{#1}'}}}%
-
-% command used in \description format for kbd
-\newcommand\GNUTexinfotablestylekbd[1]{{\ttfamily\textsl{#1}}}%
-
-% command used in \description format for samp
-\newcommand\GNUTexinfotablestylesamp[1]{\ifstrempty{#1}{}{{`\texttt{#1}'}}}%
-
-% command used in \description format for sub
-\newcommand\GNUTexinfotablestylesub[1]{{\normalfont\textsubscript{#1}}}%
-
-% command used in \description format for sup
-\newcommand\GNUTexinfotablestylesup[1]{{\normalfont\textsuperscript{#1}}}%
-
-% command used in \description format for var
-\newcommand\GNUTexinfotablestylevar[1]{{\normalfont\emph{#1}}}%
-
-% command used in \description format for w
-\newcommand\GNUTexinfotablestylew[1]{{\normalfont\hbox{#1}}}%
-
 % redefine the \mainmatter command such that it does not clear page
 % as if in double page
 \makeatletter
@@ -59,14 +24,6 @@
 % add command aliases to use the same command in book and report
 \newcommand\GNUTexinfomainmatter{\mainmatter}
 \newcommand\GNUTexinfofrontmatter{\frontmatter}
-
-% this allows to select languages based on bcp47 codes.  bcp47 is a superset
-% of the LL_CC ISO 639-2 LL ISO 3166 CC information of @documentlanguage
-% \babeladjust{
-%   autoload.bcp47 = on,
-%   autoload.bcp47.options = import
-% }
-
 % set defaults for lists that match Texinfo TeX formatting
 \setlist[description]{style=nextline, font=\normalfont}
 \setlist[itemize]{label=\textbullet}
@@ -97,11 +54,6 @@
 % avoid pagebreak and headings setting for a sectionning command
 \newcommand{\GNUTexinfonopagebreakheading}[2]{\let\clearpage\relax 
\let\cleardoublepage\relax \let\thispagestyle\GNUTexinfoplaceholder #1{#2}}
 
-% the mdframed style for @cartouche
-\mdfdefinestyle{GNUTexinfocartouche}{
-innertopmargin=10pt, innerbottommargin=10pt,%
-roundcorner=10pt}
-
 \renewcommand{\includegraphics}[1]{\fbox{FIG #1}}
 
 % set default for @setchapternewpage
diff --git 
a/tp/t/results/quotation/empty_quotation/res_latex/empty_quotation.tex 
b/tp/t/results/quotation/empty_quotation/res_latex/empty_quotation.tex
index 88dbc2c873..bd5103a73b 100644
--- a/tp/t/results/quotation/empty_quotation/res_latex/empty_quotation.tex
+++ b/tp/t/results/quotation/empty_quotation/res_latex/empty_quotation.tex
@@ -1,56 +1,21 @@
 \documentclass{book}
-\usepackage{imakeidx}
 \usepackage{amsfonts}
 \usepackage{amsmath}
 \usepackage[gen]{eurosym}
 \usepackage[T1]{fontenc}
 \usepackage{textcomp}
 \usepackage{graphicx}
-\usepackage{needspace}
 \usepackage{etoolbox}
-\usepackage{mdframed}
-%\usepackage{fontsize}
 \usepackage{enumitem}
 \usepackage{geometry}
 \usepackage{titleps}
 \usepackage{float}
-%\usepackage{babel}
 % use hidelinks to remove boxes around links to be similar with Texinfo TeX
 \usepackage[hidelinks]{hyperref}
 \usepackage[utf8]{inputenc}
 
 \newcommand{\GNUTexinfosettitle}{No Title}%
 
-% command used in \description format for dfn
-\newcommand\GNUTexinfotablestyledfn[1]{{\normalfont\emph{#1}}}%
-
-% command used in \description format for emph
-\newcommand\GNUTexinfotablestyleemph[1]{{\normalfont\emph{#1}}}%
-
-% command used in \description format for hyphenation
-\newcommand\GNUTexinfotablestylehyphenation[1]{{\normalfont\hyphenation{#1}}}%
-
-% command used in \description format for indicateurl
-\newcommand\GNUTexinfotablestyleindicateurl[1]{\ifstrempty{#1}{}{{`\texttt{#1}'}}}%
-
-% command used in \description format for kbd
-\newcommand\GNUTexinfotablestylekbd[1]{{\ttfamily\textsl{#1}}}%
-
-% command used in \description format for samp
-\newcommand\GNUTexinfotablestylesamp[1]{\ifstrempty{#1}{}{{`\texttt{#1}'}}}%
-
-% command used in \description format for sub
-\newcommand\GNUTexinfotablestylesub[1]{{\normalfont\textsubscript{#1}}}%
-
-% command used in \description format for sup
-\newcommand\GNUTexinfotablestylesup[1]{{\normalfont\textsuperscript{#1}}}%
-
-% command used in \description format for var
-\newcommand\GNUTexinfotablestylevar[1]{{\normalfont\emph{#1}}}%
-
-% command used in \description format for w
-\newcommand\GNUTexinfotablestylew[1]{{\normalfont\hbox{#1}}}%
-
 % redefine the \mainmatter command such that it does not clear page
 % as if in double page
 \makeatletter
@@ -59,14 +24,6 @@
 % add command aliases to use the same command in book and report
 \newcommand\GNUTexinfomainmatter{\mainmatter}
 \newcommand\GNUTexinfofrontmatter{\frontmatter}
-
-% this allows to select languages based on bcp47 codes.  bcp47 is a superset
-% of the LL_CC ISO 639-2 LL ISO 3166 CC information of @documentlanguage
-% \babeladjust{
-%   autoload.bcp47 = on,
-%   autoload.bcp47.options = import
-% }
-
 % set defaults for lists that match Texinfo TeX formatting
 \setlist[description]{style=nextline, font=\normalfont}
 \setlist[itemize]{label=\textbullet}
@@ -97,11 +54,6 @@
 % avoid pagebreak and headings setting for a sectionning command
 \newcommand{\GNUTexinfonopagebreakheading}[2]{\let\clearpage\relax 
\let\cleardoublepage\relax \let\thispagestyle\GNUTexinfoplaceholder #1{#2}}
 
-% the mdframed style for @cartouche
-\mdfdefinestyle{GNUTexinfocartouche}{
-innertopmargin=10pt, innerbottommargin=10pt,%
-roundcorner=10pt}
-
 \renewcommand{\includegraphics}[1]{\fbox{FIG #1}}
 
 % set default for @setchapternewpage
diff --git 
a/tp/t/results/quotation/quotation_and_author/res_latex/quotation_and_author.tex
 
b/tp/t/results/quotation/quotation_and_author/res_latex/quotation_and_author.tex
index 58a97a8c3b..ae8f81b6c2 100644
--- 
a/tp/t/results/quotation/quotation_and_author/res_latex/quotation_and_author.tex
+++ 
b/tp/t/results/quotation/quotation_and_author/res_latex/quotation_and_author.tex
@@ -1,56 +1,21 @@
 \documentclass{book}
-\usepackage{imakeidx}
 \usepackage{amsfonts}
 \usepackage{amsmath}
 \usepackage[gen]{eurosym}
 \usepackage[T1]{fontenc}
 \usepackage{textcomp}
 \usepackage{graphicx}
-\usepackage{needspace}
 \usepackage{etoolbox}
-\usepackage{mdframed}
-%\usepackage{fontsize}
 \usepackage{enumitem}
 \usepackage{geometry}
 \usepackage{titleps}
 \usepackage{float}
-%\usepackage{babel}
 % use hidelinks to remove boxes around links to be similar with Texinfo TeX
 \usepackage[hidelinks]{hyperref}
 \usepackage[utf8]{inputenc}
 
 \newcommand{\GNUTexinfosettitle}{No Title}%
 
-% command used in \description format for dfn
-\newcommand\GNUTexinfotablestyledfn[1]{{\normalfont\emph{#1}}}%
-
-% command used in \description format for emph
-\newcommand\GNUTexinfotablestyleemph[1]{{\normalfont\emph{#1}}}%
-
-% command used in \description format for hyphenation
-\newcommand\GNUTexinfotablestylehyphenation[1]{{\normalfont\hyphenation{#1}}}%
-
-% command used in \description format for indicateurl
-\newcommand\GNUTexinfotablestyleindicateurl[1]{\ifstrempty{#1}{}{{`\texttt{#1}'}}}%
-
-% command used in \description format for kbd
-\newcommand\GNUTexinfotablestylekbd[1]{{\ttfamily\textsl{#1}}}%
-
-% command used in \description format for samp
-\newcommand\GNUTexinfotablestylesamp[1]{\ifstrempty{#1}{}{{`\texttt{#1}'}}}%
-
-% command used in \description format for sub
-\newcommand\GNUTexinfotablestylesub[1]{{\normalfont\textsubscript{#1}}}%
-
-% command used in \description format for sup
-\newcommand\GNUTexinfotablestylesup[1]{{\normalfont\textsuperscript{#1}}}%
-
-% command used in \description format for var
-\newcommand\GNUTexinfotablestylevar[1]{{\normalfont\emph{#1}}}%
-
-% command used in \description format for w
-\newcommand\GNUTexinfotablestylew[1]{{\normalfont\hbox{#1}}}%
-
 % redefine the \mainmatter command such that it does not clear page
 % as if in double page
 \makeatletter
@@ -59,14 +24,6 @@
 % add command aliases to use the same command in book and report
 \newcommand\GNUTexinfomainmatter{\mainmatter}
 \newcommand\GNUTexinfofrontmatter{\frontmatter}
-
-% this allows to select languages based on bcp47 codes.  bcp47 is a superset
-% of the LL_CC ISO 639-2 LL ISO 3166 CC information of @documentlanguage
-% \babeladjust{
-%   autoload.bcp47 = on,
-%   autoload.bcp47.options = import
-% }
-
 % set defaults for lists that match Texinfo TeX formatting
 \setlist[description]{style=nextline, font=\normalfont}
 \setlist[itemize]{label=\textbullet}
@@ -97,11 +54,6 @@
 % avoid pagebreak and headings setting for a sectionning command
 \newcommand{\GNUTexinfonopagebreakheading}[2]{\let\clearpage\relax 
\let\cleardoublepage\relax \let\thispagestyle\GNUTexinfoplaceholder #1{#2}}
 
-% the mdframed style for @cartouche
-\mdfdefinestyle{GNUTexinfocartouche}{
-innertopmargin=10pt, innerbottommargin=10pt,%
-roundcorner=10pt}
-
 \renewcommand{\includegraphics}[1]{\fbox{FIG #1}}
 
 % set default for @setchapternewpage
diff --git 
a/tp/t/results/quotation/quotation_author_in_example/res_latex/quotation_author_in_example.tex
 
b/tp/t/results/quotation/quotation_author_in_example/res_latex/quotation_author_in_example.tex
index a7e97bd31a..ec9e778884 100644
--- 
a/tp/t/results/quotation/quotation_author_in_example/res_latex/quotation_author_in_example.tex
+++ 
b/tp/t/results/quotation/quotation_author_in_example/res_latex/quotation_author_in_example.tex
@@ -1,56 +1,21 @@
 \documentclass{book}
-\usepackage{imakeidx}
 \usepackage{amsfonts}
 \usepackage{amsmath}
 \usepackage[gen]{eurosym}
 \usepackage[T1]{fontenc}
 \usepackage{textcomp}
 \usepackage{graphicx}
-\usepackage{needspace}
 \usepackage{etoolbox}
-\usepackage{mdframed}
-%\usepackage{fontsize}
 \usepackage{enumitem}
 \usepackage{geometry}
 \usepackage{titleps}
 \usepackage{float}
-%\usepackage{babel}
 % use hidelinks to remove boxes around links to be similar with Texinfo TeX
 \usepackage[hidelinks]{hyperref}
 \usepackage[utf8]{inputenc}
 
 \newcommand{\GNUTexinfosettitle}{No Title}%
 
-% command used in \description format for dfn
-\newcommand\GNUTexinfotablestyledfn[1]{{\normalfont\emph{#1}}}%
-
-% command used in \description format for emph
-\newcommand\GNUTexinfotablestyleemph[1]{{\normalfont\emph{#1}}}%
-
-% command used in \description format for hyphenation
-\newcommand\GNUTexinfotablestylehyphenation[1]{{\normalfont\hyphenation{#1}}}%
-
-% command used in \description format for indicateurl
-\newcommand\GNUTexinfotablestyleindicateurl[1]{\ifstrempty{#1}{}{{`\texttt{#1}'}}}%
-
-% command used in \description format for kbd
-\newcommand\GNUTexinfotablestylekbd[1]{{\ttfamily\textsl{#1}}}%
-
-% command used in \description format for samp
-\newcommand\GNUTexinfotablestylesamp[1]{\ifstrempty{#1}{}{{`\texttt{#1}'}}}%
-
-% command used in \description format for sub
-\newcommand\GNUTexinfotablestylesub[1]{{\normalfont\textsubscript{#1}}}%
-
-% command used in \description format for sup
-\newcommand\GNUTexinfotablestylesup[1]{{\normalfont\textsuperscript{#1}}}%
-
-% command used in \description format for var
-\newcommand\GNUTexinfotablestylevar[1]{{\normalfont\emph{#1}}}%
-
-% command used in \description format for w
-\newcommand\GNUTexinfotablestylew[1]{{\normalfont\hbox{#1}}}%
-
 % redefine the \mainmatter command such that it does not clear page
 % as if in double page
 \makeatletter
@@ -59,14 +24,6 @@
 % add command aliases to use the same command in book and report
 \newcommand\GNUTexinfomainmatter{\mainmatter}
 \newcommand\GNUTexinfofrontmatter{\frontmatter}
-
-% this allows to select languages based on bcp47 codes.  bcp47 is a superset
-% of the LL_CC ISO 639-2 LL ISO 3166 CC information of @documentlanguage
-% \babeladjust{
-%   autoload.bcp47 = on,
-%   autoload.bcp47.options = import
-% }
-
 % set defaults for lists that match Texinfo TeX formatting
 \setlist[description]{style=nextline, font=\normalfont}
 \setlist[itemize]{label=\textbullet}
@@ -97,11 +54,6 @@
 % avoid pagebreak and headings setting for a sectionning command
 \newcommand{\GNUTexinfonopagebreakheading}[2]{\let\clearpage\relax 
\let\cleardoublepage\relax \let\thispagestyle\GNUTexinfoplaceholder #1{#2}}
 
-% the mdframed style for @cartouche
-\mdfdefinestyle{GNUTexinfocartouche}{
-innertopmargin=10pt, innerbottommargin=10pt,%
-roundcorner=10pt}
-
 \renewcommand{\includegraphics}[1]{\fbox{FIG #1}}
 
 % set default for @setchapternewpage
diff --git 
a/tp/t/results/quotation/space_at_commands_end_quotation_line/res_latex/space_at_commands_end_quotation_line.tex
 
b/tp/t/results/quotation/space_at_commands_end_quotation_line/res_latex/space_at_commands_end_quotation_line.tex
index 69c97b5773..63ff92fb6e 100644
--- 
a/tp/t/results/quotation/space_at_commands_end_quotation_line/res_latex/space_at_commands_end_quotation_line.tex
+++ 
b/tp/t/results/quotation/space_at_commands_end_quotation_line/res_latex/space_at_commands_end_quotation_line.tex
@@ -1,56 +1,21 @@
 \documentclass{book}
-\usepackage{imakeidx}
 \usepackage{amsfonts}
 \usepackage{amsmath}
 \usepackage[gen]{eurosym}
 \usepackage[T1]{fontenc}
 \usepackage{textcomp}
 \usepackage{graphicx}
-\usepackage{needspace}
 \usepackage{etoolbox}
-\usepackage{mdframed}
-%\usepackage{fontsize}
 \usepackage{enumitem}
 \usepackage{geometry}
 \usepackage{titleps}
 \usepackage{float}
-%\usepackage{babel}
 % use hidelinks to remove boxes around links to be similar with Texinfo TeX
 \usepackage[hidelinks]{hyperref}
 \usepackage[utf8]{inputenc}
 
 \newcommand{\GNUTexinfosettitle}{No Title}%
 
-% command used in \description format for dfn
-\newcommand\GNUTexinfotablestyledfn[1]{{\normalfont\emph{#1}}}%
-
-% command used in \description format for emph
-\newcommand\GNUTexinfotablestyleemph[1]{{\normalfont\emph{#1}}}%
-
-% command used in \description format for hyphenation
-\newcommand\GNUTexinfotablestylehyphenation[1]{{\normalfont\hyphenation{#1}}}%
-
-% command used in \description format for indicateurl
-\newcommand\GNUTexinfotablestyleindicateurl[1]{\ifstrempty{#1}{}{{`\texttt{#1}'}}}%
-
-% command used in \description format for kbd
-\newcommand\GNUTexinfotablestylekbd[1]{{\ttfamily\textsl{#1}}}%
-
-% command used in \description format for samp
-\newcommand\GNUTexinfotablestylesamp[1]{\ifstrempty{#1}{}{{`\texttt{#1}'}}}%
-
-% command used in \description format for sub
-\newcommand\GNUTexinfotablestylesub[1]{{\normalfont\textsubscript{#1}}}%
-
-% command used in \description format for sup
-\newcommand\GNUTexinfotablestylesup[1]{{\normalfont\textsuperscript{#1}}}%
-
-% command used in \description format for var
-\newcommand\GNUTexinfotablestylevar[1]{{\normalfont\emph{#1}}}%
-
-% command used in \description format for w
-\newcommand\GNUTexinfotablestylew[1]{{\normalfont\hbox{#1}}}%
-
 % redefine the \mainmatter command such that it does not clear page
 % as if in double page
 \makeatletter
@@ -59,14 +24,6 @@
 % add command aliases to use the same command in book and report
 \newcommand\GNUTexinfomainmatter{\mainmatter}
 \newcommand\GNUTexinfofrontmatter{\frontmatter}
-
-% this allows to select languages based on bcp47 codes.  bcp47 is a superset
-% of the LL_CC ISO 639-2 LL ISO 3166 CC information of @documentlanguage
-% \babeladjust{
-%   autoload.bcp47 = on,
-%   autoload.bcp47.options = import
-% }
-
 % set defaults for lists that match Texinfo TeX formatting
 \setlist[description]{style=nextline, font=\normalfont}
 \setlist[itemize]{label=\textbullet}
@@ -97,11 +54,6 @@
 % avoid pagebreak and headings setting for a sectionning command
 \newcommand{\GNUTexinfonopagebreakheading}[2]{\let\clearpage\relax 
\let\cleardoublepage\relax \let\thispagestyle\GNUTexinfoplaceholder #1{#2}}
 
-% the mdframed style for @cartouche
-\mdfdefinestyle{GNUTexinfocartouche}{
-innertopmargin=10pt, innerbottommargin=10pt,%
-roundcorner=10pt}
-
 \renewcommand{\includegraphics}[1]{\fbox{FIG #1}}
 
 % set default for @setchapternewpage
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 4dcf54e62e..78d9d6517a 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
@@ -1,56 +1,21 @@
 \documentclass{book}
-\usepackage{imakeidx}
 \usepackage{amsfonts}
 \usepackage{amsmath}
 \usepackage[gen]{eurosym}
 \usepackage[T1]{fontenc}
 \usepackage{textcomp}
 \usepackage{graphicx}
-\usepackage{needspace}
 \usepackage{etoolbox}
-\usepackage{mdframed}
-%\usepackage{fontsize}
 \usepackage{enumitem}
 \usepackage{geometry}
 \usepackage{titleps}
 \usepackage{float}
-%\usepackage{babel}
 % use hidelinks to remove boxes around links to be similar with Texinfo TeX
 \usepackage[hidelinks]{hyperref}
 \usepackage[utf8]{inputenc}
 
 \newcommand{\GNUTexinfosettitle}{No Title}%
 
-% command used in \description format for dfn
-\newcommand\GNUTexinfotablestyledfn[1]{{\normalfont\emph{#1}}}%
-
-% command used in \description format for emph
-\newcommand\GNUTexinfotablestyleemph[1]{{\normalfont\emph{#1}}}%
-
-% command used in \description format for hyphenation
-\newcommand\GNUTexinfotablestylehyphenation[1]{{\normalfont\hyphenation{#1}}}%
-
-% command used in \description format for indicateurl
-\newcommand\GNUTexinfotablestyleindicateurl[1]{\ifstrempty{#1}{}{{`\texttt{#1}'}}}%
-
-% command used in \description format for kbd
-\newcommand\GNUTexinfotablestylekbd[1]{{\ttfamily\textsl{#1}}}%
-
-% command used in \description format for samp
-\newcommand\GNUTexinfotablestylesamp[1]{\ifstrempty{#1}{}{{`\texttt{#1}'}}}%
-
-% command used in \description format for sub
-\newcommand\GNUTexinfotablestylesub[1]{{\normalfont\textsubscript{#1}}}%
-
-% command used in \description format for sup
-\newcommand\GNUTexinfotablestylesup[1]{{\normalfont\textsuperscript{#1}}}%
-
-% command used in \description format for var
-\newcommand\GNUTexinfotablestylevar[1]{{\normalfont\emph{#1}}}%
-
-% command used in \description format for w
-\newcommand\GNUTexinfotablestylew[1]{{\normalfont\hbox{#1}}}%
-
 % redefine the \mainmatter command such that it does not clear page
 % as if in double page
 \makeatletter
@@ -59,14 +24,6 @@
 % add command aliases to use the same command in book and report
 \newcommand\GNUTexinfomainmatter{\mainmatter}
 \newcommand\GNUTexinfofrontmatter{\frontmatter}
-
-% this allows to select languages based on bcp47 codes.  bcp47 is a superset
-% of the LL_CC ISO 639-2 LL ISO 3166 CC information of @documentlanguage
-% \babeladjust{
-%   autoload.bcp47 = on,
-%   autoload.bcp47.options = import
-% }
-
 % set defaults for lists that match Texinfo TeX formatting
 \setlist[description]{style=nextline, font=\normalfont}
 \setlist[itemize]{label=\textbullet}
@@ -97,11 +54,6 @@
 % avoid pagebreak and headings setting for a sectionning command
 \newcommand{\GNUTexinfonopagebreakheading}[2]{\let\clearpage\relax 
\let\cleardoublepage\relax \let\thispagestyle\GNUTexinfoplaceholder #1{#2}}
 
-% the mdframed style for @cartouche
-\mdfdefinestyle{GNUTexinfocartouche}{
-innertopmargin=10pt, innerbottommargin=10pt,%
-roundcorner=10pt}
-
 \renewcommand{\includegraphics}[1]{\fbox{FIG #1}}
 
 % set default for @setchapternewpage
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 331aba295f..a12c3c30e2 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
@@ -1,56 +1,21 @@
 \documentclass{book}
-\usepackage{imakeidx}
 \usepackage{amsfonts}
 \usepackage{amsmath}
 \usepackage[gen]{eurosym}
 \usepackage[T1]{fontenc}
 \usepackage{textcomp}
 \usepackage{graphicx}
-\usepackage{needspace}
 \usepackage{etoolbox}
-\usepackage{mdframed}
-%\usepackage{fontsize}
 \usepackage{enumitem}
 \usepackage{geometry}
 \usepackage{titleps}
 \usepackage{float}
-%\usepackage{babel}
 % use hidelinks to remove boxes around links to be similar with Texinfo TeX
 \usepackage[hidelinks]{hyperref}
 \usepackage[utf8]{inputenc}
 
 \newcommand{\GNUTexinfosettitle}{No Title}%
 
-% command used in \description format for dfn
-\newcommand\GNUTexinfotablestyledfn[1]{{\normalfont\emph{#1}}}%
-
-% command used in \description format for emph
-\newcommand\GNUTexinfotablestyleemph[1]{{\normalfont\emph{#1}}}%
-
-% command used in \description format for hyphenation
-\newcommand\GNUTexinfotablestylehyphenation[1]{{\normalfont\hyphenation{#1}}}%
-
-% command used in \description format for indicateurl
-\newcommand\GNUTexinfotablestyleindicateurl[1]{\ifstrempty{#1}{}{{`\texttt{#1}'}}}%
-
-% command used in \description format for kbd
-\newcommand\GNUTexinfotablestylekbd[1]{{\ttfamily\textsl{#1}}}%
-
-% command used in \description format for samp
-\newcommand\GNUTexinfotablestylesamp[1]{\ifstrempty{#1}{}{{`\texttt{#1}'}}}%
-
-% command used in \description format for sub
-\newcommand\GNUTexinfotablestylesub[1]{{\normalfont\textsubscript{#1}}}%
-
-% command used in \description format for sup
-\newcommand\GNUTexinfotablestylesup[1]{{\normalfont\textsuperscript{#1}}}%
-
-% command used in \description format for var
-\newcommand\GNUTexinfotablestylevar[1]{{\normalfont\emph{#1}}}%
-
-% command used in \description format for w
-\newcommand\GNUTexinfotablestylew[1]{{\normalfont\hbox{#1}}}%
-
 % redefine the \mainmatter command such that it does not clear page
 % as if in double page
 \makeatletter
@@ -59,14 +24,6 @@
 % add command aliases to use the same command in book and report
 \newcommand\GNUTexinfomainmatter{\mainmatter}
 \newcommand\GNUTexinfofrontmatter{\frontmatter}
-
-% this allows to select languages based on bcp47 codes.  bcp47 is a superset
-% of the LL_CC ISO 639-2 LL ISO 3166 CC information of @documentlanguage
-% \babeladjust{
-%   autoload.bcp47 = on,
-%   autoload.bcp47.options = import
-% }
-
 % set defaults for lists that match Texinfo TeX formatting
 \setlist[description]{style=nextline, font=\normalfont}
 \setlist[itemize]{label=\textbullet}
@@ -97,11 +54,6 @@
 % avoid pagebreak and headings setting for a sectionning command
 \newcommand{\GNUTexinfonopagebreakheading}[2]{\let\clearpage\relax 
\let\cleardoublepage\relax \let\thispagestyle\GNUTexinfoplaceholder #1{#2}}
 
-% the mdframed style for @cartouche
-\mdfdefinestyle{GNUTexinfocartouche}{
-innertopmargin=10pt, innerbottommargin=10pt,%
-roundcorner=10pt}
-
 \renewcommand{\includegraphics}[1]{\fbox{FIG #1}}
 
 % set default for @setchapternewpage
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 68ccd64f9d..154f8c0633 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
@@ -1,56 +1,21 @@
 \documentclass{book}
-\usepackage{imakeidx}
 \usepackage{amsfonts}
 \usepackage{amsmath}
 \usepackage[gen]{eurosym}
 \usepackage[T1]{fontenc}
 \usepackage{textcomp}
 \usepackage{graphicx}
-\usepackage{needspace}
 \usepackage{etoolbox}
-\usepackage{mdframed}
-%\usepackage{fontsize}
 \usepackage{enumitem}
 \usepackage{geometry}
 \usepackage{titleps}
 \usepackage{float}
-%\usepackage{babel}
 % use hidelinks to remove boxes around links to be similar with Texinfo TeX
 \usepackage[hidelinks]{hyperref}
 \usepackage[utf8]{inputenc}
 
 \newcommand{\GNUTexinfosettitle}{No Title}%
 
-% command used in \description format for dfn
-\newcommand\GNUTexinfotablestyledfn[1]{{\normalfont\emph{#1}}}%
-
-% command used in \description format for emph
-\newcommand\GNUTexinfotablestyleemph[1]{{\normalfont\emph{#1}}}%
-
-% command used in \description format for hyphenation
-\newcommand\GNUTexinfotablestylehyphenation[1]{{\normalfont\hyphenation{#1}}}%
-
-% command used in \description format for indicateurl
-\newcommand\GNUTexinfotablestyleindicateurl[1]{\ifstrempty{#1}{}{{`\texttt{#1}'}}}%
-
-% command used in \description format for kbd
-\newcommand\GNUTexinfotablestylekbd[1]{{\ttfamily\textsl{#1}}}%
-
-% command used in \description format for samp
-\newcommand\GNUTexinfotablestylesamp[1]{\ifstrempty{#1}{}{{`\texttt{#1}'}}}%
-
-% command used in \description format for sub
-\newcommand\GNUTexinfotablestylesub[1]{{\normalfont\textsubscript{#1}}}%
-
-% command used in \description format for sup
-\newcommand\GNUTexinfotablestylesup[1]{{\normalfont\textsuperscript{#1}}}%
-
-% command used in \description format for var
-\newcommand\GNUTexinfotablestylevar[1]{{\normalfont\emph{#1}}}%
-
-% command used in \description format for w
-\newcommand\GNUTexinfotablestylew[1]{{\normalfont\hbox{#1}}}%
-
 % redefine the \mainmatter command such that it does not clear page
 % as if in double page
 \makeatletter
@@ -59,14 +24,6 @@
 % add command aliases to use the same command in book and report
 \newcommand\GNUTexinfomainmatter{\mainmatter}
 \newcommand\GNUTexinfofrontmatter{\frontmatter}
-
-% this allows to select languages based on bcp47 codes.  bcp47 is a superset
-% of the LL_CC ISO 639-2 LL ISO 3166 CC information of @documentlanguage
-% \babeladjust{
-%   autoload.bcp47 = on,
-%   autoload.bcp47.options = import
-% }
-
 % set defaults for lists that match Texinfo TeX formatting
 \setlist[description]{style=nextline, font=\normalfont}
 \setlist[itemize]{label=\textbullet}
@@ -97,11 +54,6 @@
 % avoid pagebreak and headings setting for a sectionning command
 \newcommand{\GNUTexinfonopagebreakheading}[2]{\let\clearpage\relax 
\let\cleardoublepage\relax \let\thispagestyle\GNUTexinfoplaceholder #1{#2}}
 
-% the mdframed style for @cartouche
-\mdfdefinestyle{GNUTexinfocartouche}{
-innertopmargin=10pt, innerbottommargin=10pt,%
-roundcorner=10pt}
-
 \renewcommand{\includegraphics}[1]{\fbox{FIG #1}}
 
 % set default for @setchapternewpage
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 a7845ddc98..9be2a8c937 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
@@ -1,56 +1,21 @@
 \documentclass{book}
-\usepackage{imakeidx}
 \usepackage{amsfonts}
 \usepackage{amsmath}
 \usepackage[gen]{eurosym}
 \usepackage[T1]{fontenc}
 \usepackage{textcomp}
 \usepackage{graphicx}
-\usepackage{needspace}
 \usepackage{etoolbox}
-\usepackage{mdframed}
-%\usepackage{fontsize}
 \usepackage{enumitem}
 \usepackage{geometry}
 \usepackage{titleps}
 \usepackage{float}
-%\usepackage{babel}
 % use hidelinks to remove boxes around links to be similar with Texinfo TeX
 \usepackage[hidelinks]{hyperref}
 \usepackage[utf8]{inputenc}
 
 \newcommand{\GNUTexinfosettitle}{No Title}%
 
-% command used in \description format for dfn
-\newcommand\GNUTexinfotablestyledfn[1]{{\normalfont\emph{#1}}}%
-
-% command used in \description format for emph
-\newcommand\GNUTexinfotablestyleemph[1]{{\normalfont\emph{#1}}}%
-
-% command used in \description format for hyphenation
-\newcommand\GNUTexinfotablestylehyphenation[1]{{\normalfont\hyphenation{#1}}}%
-
-% command used in \description format for indicateurl
-\newcommand\GNUTexinfotablestyleindicateurl[1]{\ifstrempty{#1}{}{{`\texttt{#1}'}}}%
-
-% command used in \description format for kbd
-\newcommand\GNUTexinfotablestylekbd[1]{{\ttfamily\textsl{#1}}}%
-
-% command used in \description format for samp
-\newcommand\GNUTexinfotablestylesamp[1]{\ifstrempty{#1}{}{{`\texttt{#1}'}}}%
-
-% command used in \description format for sub
-\newcommand\GNUTexinfotablestylesub[1]{{\normalfont\textsubscript{#1}}}%
-
-% command used in \description format for sup
-\newcommand\GNUTexinfotablestylesup[1]{{\normalfont\textsuperscript{#1}}}%
-
-% command used in \description format for var
-\newcommand\GNUTexinfotablestylevar[1]{{\normalfont\emph{#1}}}%
-
-% command used in \description format for w
-\newcommand\GNUTexinfotablestylew[1]{{\normalfont\hbox{#1}}}%
-
 % redefine the \mainmatter command such that it does not clear page
 % as if in double page
 \makeatletter
@@ -59,14 +24,6 @@
 % add command aliases to use the same command in book and report
 \newcommand\GNUTexinfomainmatter{\mainmatter}
 \newcommand\GNUTexinfofrontmatter{\frontmatter}
-
-% this allows to select languages based on bcp47 codes.  bcp47 is a superset
-% of the LL_CC ISO 639-2 LL ISO 3166 CC information of @documentlanguage
-% \babeladjust{
-%   autoload.bcp47 = on,
-%   autoload.bcp47.options = import
-% }
-
 % set defaults for lists that match Texinfo TeX formatting
 \setlist[description]{style=nextline, font=\normalfont}
 \setlist[itemize]{label=\textbullet}
@@ -97,11 +54,6 @@
 % avoid pagebreak and headings setting for a sectionning command
 \newcommand{\GNUTexinfonopagebreakheading}[2]{\let\clearpage\relax 
\let\cleardoublepage\relax \let\thispagestyle\GNUTexinfoplaceholder #1{#2}}
 
-% the mdframed style for @cartouche
-\mdfdefinestyle{GNUTexinfocartouche}{
-innertopmargin=10pt, innerbottommargin=10pt,%
-roundcorner=10pt}
-
 \renewcommand{\includegraphics}[1]{\fbox{FIG #1}}
 
 % set default for @setchapternewpage
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 38ce8101de..ddb7ff45aa 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
@@ -1,56 +1,21 @@
 \documentclass{book}
-\usepackage{imakeidx}
 \usepackage{amsfonts}
 \usepackage{amsmath}
 \usepackage[gen]{eurosym}
 \usepackage[T1]{fontenc}
 \usepackage{textcomp}
 \usepackage{graphicx}
-\usepackage{needspace}
 \usepackage{etoolbox}
-\usepackage{mdframed}
-%\usepackage{fontsize}
 \usepackage{enumitem}
 \usepackage{geometry}
 \usepackage{titleps}
 \usepackage{float}
-%\usepackage{babel}
 % use hidelinks to remove boxes around links to be similar with Texinfo TeX
 \usepackage[hidelinks]{hyperref}
 \usepackage[utf8]{inputenc}
 
 \newcommand{\GNUTexinfosettitle}{No Title}%
 
-% command used in \description format for dfn
-\newcommand\GNUTexinfotablestyledfn[1]{{\normalfont\emph{#1}}}%
-
-% command used in \description format for emph
-\newcommand\GNUTexinfotablestyleemph[1]{{\normalfont\emph{#1}}}%
-
-% command used in \description format for hyphenation
-\newcommand\GNUTexinfotablestylehyphenation[1]{{\normalfont\hyphenation{#1}}}%
-
-% command used in \description format for indicateurl
-\newcommand\GNUTexinfotablestyleindicateurl[1]{\ifstrempty{#1}{}{{`\texttt{#1}'}}}%
-
-% command used in \description format for kbd
-\newcommand\GNUTexinfotablestylekbd[1]{{\ttfamily\textsl{#1}}}%
-
-% command used in \description format for samp
-\newcommand\GNUTexinfotablestylesamp[1]{\ifstrempty{#1}{}{{`\texttt{#1}'}}}%
-
-% command used in \description format for sub
-\newcommand\GNUTexinfotablestylesub[1]{{\normalfont\textsubscript{#1}}}%
-
-% command used in \description format for sup
-\newcommand\GNUTexinfotablestylesup[1]{{\normalfont\textsuperscript{#1}}}%
-
-% command used in \description format for var
-\newcommand\GNUTexinfotablestylevar[1]{{\normalfont\emph{#1}}}%
-
-% command used in \description format for w
-\newcommand\GNUTexinfotablestylew[1]{{\normalfont\hbox{#1}}}%
-
 % redefine the \mainmatter command such that it does not clear page
 % as if in double page
 \makeatletter
@@ -59,14 +24,6 @@
 % add command aliases to use the same command in book and report
 \newcommand\GNUTexinfomainmatter{\mainmatter}
 \newcommand\GNUTexinfofrontmatter{\frontmatter}
-
-% this allows to select languages based on bcp47 codes.  bcp47 is a superset
-% of the LL_CC ISO 639-2 LL ISO 3166 CC information of @documentlanguage
-% \babeladjust{
-%   autoload.bcp47 = on,
-%   autoload.bcp47.options = import
-% }
-
 % set defaults for lists that match Texinfo TeX formatting
 \setlist[description]{style=nextline, font=\normalfont}
 \setlist[itemize]{label=\textbullet}
@@ -97,11 +54,6 @@
 % avoid pagebreak and headings setting for a sectionning command
 \newcommand{\GNUTexinfonopagebreakheading}[2]{\let\clearpage\relax 
\let\cleardoublepage\relax \let\thispagestyle\GNUTexinfoplaceholder #1{#2}}
 
-% the mdframed style for @cartouche
-\mdfdefinestyle{GNUTexinfocartouche}{
-innertopmargin=10pt, innerbottommargin=10pt,%
-roundcorner=10pt}
-
 \renewcommand{\includegraphics}[1]{\fbox{FIG #1}}
 
 % set default for @setchapternewpage
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 d3a47bb28e..70b3ebb3f6 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
@@ -1,56 +1,21 @@
 \documentclass{book}
-\usepackage{imakeidx}
 \usepackage{amsfonts}
 \usepackage{amsmath}
 \usepackage[gen]{eurosym}
 \usepackage[T1]{fontenc}
 \usepackage{textcomp}
 \usepackage{graphicx}
-\usepackage{needspace}
 \usepackage{etoolbox}
-\usepackage{mdframed}
-%\usepackage{fontsize}
 \usepackage{enumitem}
 \usepackage{geometry}
 \usepackage{titleps}
 \usepackage{float}
-%\usepackage{babel}
 % use hidelinks to remove boxes around links to be similar with Texinfo TeX
 \usepackage[hidelinks]{hyperref}
 \usepackage[utf8]{inputenc}
 
 \newcommand{\GNUTexinfosettitle}{No Title}%
 
-% command used in \description format for dfn
-\newcommand\GNUTexinfotablestyledfn[1]{{\normalfont\emph{#1}}}%
-
-% command used in \description format for emph
-\newcommand\GNUTexinfotablestyleemph[1]{{\normalfont\emph{#1}}}%
-
-% command used in \description format for hyphenation
-\newcommand\GNUTexinfotablestylehyphenation[1]{{\normalfont\hyphenation{#1}}}%
-
-% command used in \description format for indicateurl
-\newcommand\GNUTexinfotablestyleindicateurl[1]{\ifstrempty{#1}{}{{`\texttt{#1}'}}}%
-
-% command used in \description format for kbd
-\newcommand\GNUTexinfotablestylekbd[1]{{\ttfamily\textsl{#1}}}%
-
-% command used in \description format for samp
-\newcommand\GNUTexinfotablestylesamp[1]{\ifstrempty{#1}{}{{`\texttt{#1}'}}}%
-
-% command used in \description format for sub
-\newcommand\GNUTexinfotablestylesub[1]{{\normalfont\textsubscript{#1}}}%
-
-% command used in \description format for sup
-\newcommand\GNUTexinfotablestylesup[1]{{\normalfont\textsuperscript{#1}}}%
-
-% command used in \description format for var
-\newcommand\GNUTexinfotablestylevar[1]{{\normalfont\emph{#1}}}%
-
-% command used in \description format for w
-\newcommand\GNUTexinfotablestylew[1]{{\normalfont\hbox{#1}}}%
-
 % redefine the \mainmatter command such that it does not clear page
 % as if in double page
 \makeatletter
@@ -59,14 +24,6 @@
 % add command aliases to use the same command in book and report
 \newcommand\GNUTexinfomainmatter{\mainmatter}
 \newcommand\GNUTexinfofrontmatter{\frontmatter}
-
-% this allows to select languages based on bcp47 codes.  bcp47 is a superset
-% of the LL_CC ISO 639-2 LL ISO 3166 CC information of @documentlanguage
-% \babeladjust{
-%   autoload.bcp47 = on,
-%   autoload.bcp47.options = import
-% }
-
 % set defaults for lists that match Texinfo TeX formatting
 \setlist[description]{style=nextline, font=\normalfont}
 \setlist[itemize]{label=\textbullet}
@@ -97,11 +54,6 @@
 % avoid pagebreak and headings setting for a sectionning command
 \newcommand{\GNUTexinfonopagebreakheading}[2]{\let\clearpage\relax 
\let\cleardoublepage\relax \let\thispagestyle\GNUTexinfoplaceholder #1{#2}}
 
-% the mdframed style for @cartouche
-\mdfdefinestyle{GNUTexinfocartouche}{
-innertopmargin=10pt, innerbottommargin=10pt,%
-roundcorner=10pt}
-
 \renewcommand{\includegraphics}[1]{\fbox{FIG #1}}
 
 % set default for @setchapternewpage
diff --git 
a/tp/t/results/sectioning/nodes_before_after_top_xref/res_latex/nodes_before_after_top_xref.tex
 
b/tp/t/results/sectioning/nodes_before_after_top_xref/res_latex/nodes_before_after_top_xref.tex
index 3da197163f..72eaa1c74a 100644
--- 
a/tp/t/results/sectioning/nodes_before_after_top_xref/res_latex/nodes_before_after_top_xref.tex
+++ 
b/tp/t/results/sectioning/nodes_before_after_top_xref/res_latex/nodes_before_after_top_xref.tex
@@ -1,56 +1,21 @@
 \documentclass{book}
-\usepackage{imakeidx}
 \usepackage{amsfonts}
 \usepackage{amsmath}
 \usepackage[gen]{eurosym}
 \usepackage[T1]{fontenc}
 \usepackage{textcomp}
 \usepackage{graphicx}
-\usepackage{needspace}
 \usepackage{etoolbox}
-\usepackage{mdframed}
-%\usepackage{fontsize}
 \usepackage{enumitem}
 \usepackage{geometry}
 \usepackage{titleps}
 \usepackage{float}
-%\usepackage{babel}
 % use hidelinks to remove boxes around links to be similar with Texinfo TeX
 \usepackage[hidelinks]{hyperref}
 \usepackage[utf8]{inputenc}
 
 \newcommand{\GNUTexinfosettitle}{No Title}%
 
-% command used in \description format for dfn
-\newcommand\GNUTexinfotablestyledfn[1]{{\normalfont\emph{#1}}}%
-
-% command used in \description format for emph
-\newcommand\GNUTexinfotablestyleemph[1]{{\normalfont\emph{#1}}}%
-
-% command used in \description format for hyphenation
-\newcommand\GNUTexinfotablestylehyphenation[1]{{\normalfont\hyphenation{#1}}}%
-
-% command used in \description format for indicateurl
-\newcommand\GNUTexinfotablestyleindicateurl[1]{\ifstrempty{#1}{}{{`\texttt{#1}'}}}%
-
-% command used in \description format for kbd
-\newcommand\GNUTexinfotablestylekbd[1]{{\ttfamily\textsl{#1}}}%
-
-% command used in \description format for samp
-\newcommand\GNUTexinfotablestylesamp[1]{\ifstrempty{#1}{}{{`\texttt{#1}'}}}%
-
-% command used in \description format for sub
-\newcommand\GNUTexinfotablestylesub[1]{{\normalfont\textsubscript{#1}}}%
-
-% command used in \description format for sup
-\newcommand\GNUTexinfotablestylesup[1]{{\normalfont\textsuperscript{#1}}}%
-
-% command used in \description format for var
-\newcommand\GNUTexinfotablestylevar[1]{{\normalfont\emph{#1}}}%
-
-% command used in \description format for w
-\newcommand\GNUTexinfotablestylew[1]{{\normalfont\hbox{#1}}}%
-
 % redefine the \mainmatter command such that it does not clear page
 % as if in double page
 \makeatletter
@@ -59,14 +24,6 @@
 % add command aliases to use the same command in book and report
 \newcommand\GNUTexinfomainmatter{\mainmatter}
 \newcommand\GNUTexinfofrontmatter{\frontmatter}
-
-% this allows to select languages based on bcp47 codes.  bcp47 is a superset
-% of the LL_CC ISO 639-2 LL ISO 3166 CC information of @documentlanguage
-% \babeladjust{
-%   autoload.bcp47 = on,
-%   autoload.bcp47.options = import
-% }
-
 % set defaults for lists that match Texinfo TeX formatting
 \setlist[description]{style=nextline, font=\normalfont}
 \setlist[itemize]{label=\textbullet}
@@ -97,11 +54,6 @@
 % avoid pagebreak and headings setting for a sectionning command
 \newcommand{\GNUTexinfonopagebreakheading}[2]{\let\clearpage\relax 
\let\cleardoublepage\relax \let\thispagestyle\GNUTexinfoplaceholder #1{#2}}
 
-% the mdframed style for @cartouche
-\mdfdefinestyle{GNUTexinfocartouche}{
-innertopmargin=10pt, innerbottommargin=10pt,%
-roundcorner=10pt}
-
 \renewcommand{\includegraphics}[1]{\fbox{FIG #1}}
 
 % set default for @setchapternewpage
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 bf8bbc51ae..62f84a4621 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
@@ -1,56 +1,21 @@
 \documentclass{book}
-\usepackage{imakeidx}
 \usepackage{amsfonts}
 \usepackage{amsmath}
 \usepackage[gen]{eurosym}
 \usepackage[T1]{fontenc}
 \usepackage{textcomp}
 \usepackage{graphicx}
-\usepackage{needspace}
 \usepackage{etoolbox}
-\usepackage{mdframed}
-%\usepackage{fontsize}
 \usepackage{enumitem}
 \usepackage{geometry}
 \usepackage{titleps}
 \usepackage{float}
-%\usepackage{babel}
 % use hidelinks to remove boxes around links to be similar with Texinfo TeX
 \usepackage[hidelinks]{hyperref}
 \usepackage[utf8]{inputenc}
 
 \newcommand{\GNUTexinfosettitle}{No Title}%
 
-% command used in \description format for dfn
-\newcommand\GNUTexinfotablestyledfn[1]{{\normalfont\emph{#1}}}%
-
-% command used in \description format for emph
-\newcommand\GNUTexinfotablestyleemph[1]{{\normalfont\emph{#1}}}%
-
-% command used in \description format for hyphenation
-\newcommand\GNUTexinfotablestylehyphenation[1]{{\normalfont\hyphenation{#1}}}%
-
-% command used in \description format for indicateurl
-\newcommand\GNUTexinfotablestyleindicateurl[1]{\ifstrempty{#1}{}{{`\texttt{#1}'}}}%
-
-% command used in \description format for kbd
-\newcommand\GNUTexinfotablestylekbd[1]{{\ttfamily\textsl{#1}}}%
-
-% command used in \description format for samp
-\newcommand\GNUTexinfotablestylesamp[1]{\ifstrempty{#1}{}{{`\texttt{#1}'}}}%
-
-% command used in \description format for sub
-\newcommand\GNUTexinfotablestylesub[1]{{\normalfont\textsubscript{#1}}}%
-
-% command used in \description format for sup
-\newcommand\GNUTexinfotablestylesup[1]{{\normalfont\textsuperscript{#1}}}%
-
-% command used in \description format for var
-\newcommand\GNUTexinfotablestylevar[1]{{\normalfont\emph{#1}}}%
-
-% command used in \description format for w
-\newcommand\GNUTexinfotablestylew[1]{{\normalfont\hbox{#1}}}%
-
 % redefine the \mainmatter command such that it does not clear page
 % as if in double page
 \makeatletter
@@ -59,14 +24,6 @@
 % add command aliases to use the same command in book and report
 \newcommand\GNUTexinfomainmatter{\mainmatter}
 \newcommand\GNUTexinfofrontmatter{\frontmatter}
-
-% this allows to select languages based on bcp47 codes.  bcp47 is a superset
-% of the LL_CC ISO 639-2 LL ISO 3166 CC information of @documentlanguage
-% \babeladjust{
-%   autoload.bcp47 = on,
-%   autoload.bcp47.options = import
-% }
-
 % set defaults for lists that match Texinfo TeX formatting
 \setlist[description]{style=nextline, font=\normalfont}
 \setlist[itemize]{label=\textbullet}
@@ -97,11 +54,6 @@
 % avoid pagebreak and headings setting for a sectionning command
 \newcommand{\GNUTexinfonopagebreakheading}[2]{\let\clearpage\relax 
\let\cleardoublepage\relax \let\thispagestyle\GNUTexinfoplaceholder #1{#2}}
 
-% the mdframed style for @cartouche
-\mdfdefinestyle{GNUTexinfocartouche}{
-innertopmargin=10pt, innerbottommargin=10pt,%
-roundcorner=10pt}
-
 \renewcommand{\includegraphics}[1]{\fbox{FIG #1}}
 
 % set default for @setchapternewpage
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 95cf0a6407..9d37dcb7f3 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
@@ -1,56 +1,21 @@
 \documentclass{book}
-\usepackage{imakeidx}
 \usepackage{amsfonts}
 \usepackage{amsmath}
 \usepackage[gen]{eurosym}
 \usepackage[T1]{fontenc}
 \usepackage{textcomp}
 \usepackage{graphicx}
-\usepackage{needspace}
 \usepackage{etoolbox}
-\usepackage{mdframed}
-%\usepackage{fontsize}
 \usepackage{enumitem}
 \usepackage{geometry}
 \usepackage{titleps}
 \usepackage{float}
-%\usepackage{babel}
 % use hidelinks to remove boxes around links to be similar with Texinfo TeX
 \usepackage[hidelinks]{hyperref}
 \usepackage[utf8]{inputenc}
 
 \newcommand{\GNUTexinfosettitle}{No Title}%
 
-% command used in \description format for dfn
-\newcommand\GNUTexinfotablestyledfn[1]{{\normalfont\emph{#1}}}%
-
-% command used in \description format for emph
-\newcommand\GNUTexinfotablestyleemph[1]{{\normalfont\emph{#1}}}%
-
-% command used in \description format for hyphenation
-\newcommand\GNUTexinfotablestylehyphenation[1]{{\normalfont\hyphenation{#1}}}%
-
-% command used in \description format for indicateurl
-\newcommand\GNUTexinfotablestyleindicateurl[1]{\ifstrempty{#1}{}{{`\texttt{#1}'}}}%
-
-% command used in \description format for kbd
-\newcommand\GNUTexinfotablestylekbd[1]{{\ttfamily\textsl{#1}}}%
-
-% command used in \description format for samp
-\newcommand\GNUTexinfotablestylesamp[1]{\ifstrempty{#1}{}{{`\texttt{#1}'}}}%
-
-% command used in \description format for sub
-\newcommand\GNUTexinfotablestylesub[1]{{\normalfont\textsubscript{#1}}}%
-
-% command used in \description format for sup
-\newcommand\GNUTexinfotablestylesup[1]{{\normalfont\textsuperscript{#1}}}%
-
-% command used in \description format for var
-\newcommand\GNUTexinfotablestylevar[1]{{\normalfont\emph{#1}}}%
-
-% command used in \description format for w
-\newcommand\GNUTexinfotablestylew[1]{{\normalfont\hbox{#1}}}%
-
 % redefine the \mainmatter command such that it does not clear page
 % as if in double page
 \makeatletter
@@ -59,14 +24,6 @@
 % add command aliases to use the same command in book and report
 \newcommand\GNUTexinfomainmatter{\mainmatter}
 \newcommand\GNUTexinfofrontmatter{\frontmatter}
-
-% this allows to select languages based on bcp47 codes.  bcp47 is a superset
-% of the LL_CC ISO 639-2 LL ISO 3166 CC information of @documentlanguage
-% \babeladjust{
-%   autoload.bcp47 = on,
-%   autoload.bcp47.options = import
-% }
-
 % set defaults for lists that match Texinfo TeX formatting
 \setlist[description]{style=nextline, font=\normalfont}
 \setlist[itemize]{label=\textbullet}
@@ -97,11 +54,6 @@
 % avoid pagebreak and headings setting for a sectionning command
 \newcommand{\GNUTexinfonopagebreakheading}[2]{\let\clearpage\relax 
\let\cleardoublepage\relax \let\thispagestyle\GNUTexinfoplaceholder #1{#2}}
 
-% the mdframed style for @cartouche
-\mdfdefinestyle{GNUTexinfocartouche}{
-innertopmargin=10pt, innerbottommargin=10pt,%
-roundcorner=10pt}
-
 \renewcommand{\includegraphics}[1]{\fbox{FIG #1}}
 
 % set default for @setchapternewpage
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 f0da3c7b61..ae2dc45a1f 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
@@ -1,56 +1,21 @@
 \documentclass{book}
-\usepackage{imakeidx}
 \usepackage{amsfonts}
 \usepackage{amsmath}
 \usepackage[gen]{eurosym}
 \usepackage[T1]{fontenc}
 \usepackage{textcomp}
 \usepackage{graphicx}
-\usepackage{needspace}
 \usepackage{etoolbox}
-\usepackage{mdframed}
-%\usepackage{fontsize}
 \usepackage{enumitem}
 \usepackage{geometry}
 \usepackage{titleps}
 \usepackage{float}
-%\usepackage{babel}
 % use hidelinks to remove boxes around links to be similar with Texinfo TeX
 \usepackage[hidelinks]{hyperref}
 \usepackage[utf8]{inputenc}
 
 \newcommand{\GNUTexinfosettitle}{No Title}%
 
-% command used in \description format for dfn
-\newcommand\GNUTexinfotablestyledfn[1]{{\normalfont\emph{#1}}}%
-
-% command used in \description format for emph
-\newcommand\GNUTexinfotablestyleemph[1]{{\normalfont\emph{#1}}}%
-
-% command used in \description format for hyphenation
-\newcommand\GNUTexinfotablestylehyphenation[1]{{\normalfont\hyphenation{#1}}}%
-
-% command used in \description format for indicateurl
-\newcommand\GNUTexinfotablestyleindicateurl[1]{\ifstrempty{#1}{}{{`\texttt{#1}'}}}%
-
-% command used in \description format for kbd
-\newcommand\GNUTexinfotablestylekbd[1]{{\ttfamily\textsl{#1}}}%
-
-% command used in \description format for samp
-\newcommand\GNUTexinfotablestylesamp[1]{\ifstrempty{#1}{}{{`\texttt{#1}'}}}%
-
-% command used in \description format for sub
-\newcommand\GNUTexinfotablestylesub[1]{{\normalfont\textsubscript{#1}}}%
-
-% command used in \description format for sup
-\newcommand\GNUTexinfotablestylesup[1]{{\normalfont\textsuperscript{#1}}}%
-
-% command used in \description format for var
-\newcommand\GNUTexinfotablestylevar[1]{{\normalfont\emph{#1}}}%
-
-% command used in \description format for w
-\newcommand\GNUTexinfotablestylew[1]{{\normalfont\hbox{#1}}}%
-
 % redefine the \mainmatter command such that it does not clear page
 % as if in double page
 \makeatletter
@@ -59,14 +24,6 @@
 % add command aliases to use the same command in book and report
 \newcommand\GNUTexinfomainmatter{\mainmatter}
 \newcommand\GNUTexinfofrontmatter{\frontmatter}
-
-% this allows to select languages based on bcp47 codes.  bcp47 is a superset
-% of the LL_CC ISO 639-2 LL ISO 3166 CC information of @documentlanguage
-% \babeladjust{
-%   autoload.bcp47 = on,
-%   autoload.bcp47.options = import
-% }
-
 % set defaults for lists that match Texinfo TeX formatting
 \setlist[description]{style=nextline, font=\normalfont}
 \setlist[itemize]{label=\textbullet}
@@ -97,11 +54,6 @@
 % avoid pagebreak and headings setting for a sectionning command
 \newcommand{\GNUTexinfonopagebreakheading}[2]{\let\clearpage\relax 
\let\cleardoublepage\relax \let\thispagestyle\GNUTexinfoplaceholder #1{#2}}
 
-% the mdframed style for @cartouche
-\mdfdefinestyle{GNUTexinfocartouche}{
-innertopmargin=10pt, innerbottommargin=10pt,%
-roundcorner=10pt}
-
 \renewcommand{\includegraphics}[1]{\fbox{FIG #1}}
 
 % set default for @setchapternewpage
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 dadae1b8db..c7a9c3d459 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
@@ -1,56 +1,21 @@
 \documentclass{book}
-\usepackage{imakeidx}
 \usepackage{amsfonts}
 \usepackage{amsmath}
 \usepackage[gen]{eurosym}
 \usepackage[T1]{fontenc}
 \usepackage{textcomp}
 \usepackage{graphicx}
-\usepackage{needspace}
 \usepackage{etoolbox}
-\usepackage{mdframed}
-%\usepackage{fontsize}
 \usepackage{enumitem}
 \usepackage{geometry}
 \usepackage{titleps}
 \usepackage{float}
-%\usepackage{babel}
 % use hidelinks to remove boxes around links to be similar with Texinfo TeX
 \usepackage[hidelinks]{hyperref}
 \usepackage[utf8]{inputenc}
 
 \newcommand{\GNUTexinfosettitle}{No Title}%
 
-% command used in \description format for dfn
-\newcommand\GNUTexinfotablestyledfn[1]{{\normalfont\emph{#1}}}%
-
-% command used in \description format for emph
-\newcommand\GNUTexinfotablestyleemph[1]{{\normalfont\emph{#1}}}%
-
-% command used in \description format for hyphenation
-\newcommand\GNUTexinfotablestylehyphenation[1]{{\normalfont\hyphenation{#1}}}%
-
-% command used in \description format for indicateurl
-\newcommand\GNUTexinfotablestyleindicateurl[1]{\ifstrempty{#1}{}{{`\texttt{#1}'}}}%
-
-% command used in \description format for kbd
-\newcommand\GNUTexinfotablestylekbd[1]{{\ttfamily\textsl{#1}}}%
-
-% command used in \description format for samp
-\newcommand\GNUTexinfotablestylesamp[1]{\ifstrempty{#1}{}{{`\texttt{#1}'}}}%
-
-% command used in \description format for sub
-\newcommand\GNUTexinfotablestylesub[1]{{\normalfont\textsubscript{#1}}}%
-
-% command used in \description format for sup
-\newcommand\GNUTexinfotablestylesup[1]{{\normalfont\textsuperscript{#1}}}%
-
-% command used in \description format for var
-\newcommand\GNUTexinfotablestylevar[1]{{\normalfont\emph{#1}}}%
-
-% command used in \description format for w
-\newcommand\GNUTexinfotablestylew[1]{{\normalfont\hbox{#1}}}%
-
 % redefine the \mainmatter command such that it does not clear page
 % as if in double page
 \makeatletter
@@ -59,14 +24,6 @@
 % add command aliases to use the same command in book and report
 \newcommand\GNUTexinfomainmatter{\mainmatter}
 \newcommand\GNUTexinfofrontmatter{\frontmatter}
-
-% this allows to select languages based on bcp47 codes.  bcp47 is a superset
-% of the LL_CC ISO 639-2 LL ISO 3166 CC information of @documentlanguage
-% \babeladjust{
-%   autoload.bcp47 = on,
-%   autoload.bcp47.options = import
-% }
-
 % set defaults for lists that match Texinfo TeX formatting
 \setlist[description]{style=nextline, font=\normalfont}
 \setlist[itemize]{label=\textbullet}
@@ -97,11 +54,6 @@
 % avoid pagebreak and headings setting for a sectionning command
 \newcommand{\GNUTexinfonopagebreakheading}[2]{\let\clearpage\relax 
\let\cleardoublepage\relax \let\thispagestyle\GNUTexinfoplaceholder #1{#2}}
 
-% the mdframed style for @cartouche
-\mdfdefinestyle{GNUTexinfocartouche}{
-innertopmargin=10pt, innerbottommargin=10pt,%
-roundcorner=10pt}
-
 \renewcommand{\includegraphics}[1]{\fbox{FIG #1}}
 
 % set default for @setchapternewpage
diff --git 
a/tp/t/results/xtable/inter_item_commands_in_table/res_latex/inter_item_commands_in_table.tex
 
b/tp/t/results/xtable/inter_item_commands_in_table/res_latex/inter_item_commands_in_table.tex
index cd447968c8..50e3c4402a 100644
--- 
a/tp/t/results/xtable/inter_item_commands_in_table/res_latex/inter_item_commands_in_table.tex
+++ 
b/tp/t/results/xtable/inter_item_commands_in_table/res_latex/inter_item_commands_in_table.tex
@@ -6,15 +6,11 @@
 \usepackage[T1]{fontenc}
 \usepackage{textcomp}
 \usepackage{graphicx}
-\usepackage{needspace}
 \usepackage{etoolbox}
-\usepackage{mdframed}
-%\usepackage{fontsize}
 \usepackage{enumitem}
 \usepackage{geometry}
 \usepackage{titleps}
 \usepackage{float}
-%\usepackage{babel}
 % use hidelinks to remove boxes around links to be similar with Texinfo TeX
 \usepackage[hidelinks]{hyperref}
 \usepackage[utf8]{inputenc}
@@ -25,36 +21,12 @@
 \makeindex[name=fn]%
 \makeindex[name=vr]%
 
-% command used in \description format for dfn
-\newcommand\GNUTexinfotablestyledfn[1]{{\normalfont\emph{#1}}}%
-
-% command used in \description format for emph
-\newcommand\GNUTexinfotablestyleemph[1]{{\normalfont\emph{#1}}}%
-
-% command used in \description format for hyphenation
-\newcommand\GNUTexinfotablestylehyphenation[1]{{\normalfont\hyphenation{#1}}}%
-
-% command used in \description format for indicateurl
-\newcommand\GNUTexinfotablestyleindicateurl[1]{\ifstrempty{#1}{}{{`\texttt{#1}'}}}%
-
-% command used in \description format for kbd
-\newcommand\GNUTexinfotablestylekbd[1]{{\ttfamily\textsl{#1}}}%
-
 % command used in \description format for samp
 \newcommand\GNUTexinfotablestylesamp[1]{\ifstrempty{#1}{}{{`\texttt{#1}'}}}%
 
-% command used in \description format for sub
-\newcommand\GNUTexinfotablestylesub[1]{{\normalfont\textsubscript{#1}}}%
-
-% command used in \description format for sup
-\newcommand\GNUTexinfotablestylesup[1]{{\normalfont\textsuperscript{#1}}}%
-
 % command used in \description format for var
 \newcommand\GNUTexinfotablestylevar[1]{{\normalfont\emph{#1}}}%
 
-% command used in \description format for w
-\newcommand\GNUTexinfotablestylew[1]{{\normalfont\hbox{#1}}}%
-
 % redefine the \mainmatter command such that it does not clear page
 % as if in double page
 \makeatletter
@@ -63,14 +35,6 @@
 % add command aliases to use the same command in book and report
 \newcommand\GNUTexinfomainmatter{\mainmatter}
 \newcommand\GNUTexinfofrontmatter{\frontmatter}
-
-% this allows to select languages based on bcp47 codes.  bcp47 is a superset
-% of the LL_CC ISO 639-2 LL ISO 3166 CC information of @documentlanguage
-% \babeladjust{
-%   autoload.bcp47 = on,
-%   autoload.bcp47.options = import
-% }
-
 % set defaults for lists that match Texinfo TeX formatting
 \setlist[description]{style=nextline, font=\normalfont}
 \setlist[itemize]{label=\textbullet}
@@ -101,11 +65,6 @@
 % avoid pagebreak and headings setting for a sectionning command
 \newcommand{\GNUTexinfonopagebreakheading}[2]{\let\clearpage\relax 
\let\cleardoublepage\relax \let\thispagestyle\GNUTexinfoplaceholder #1{#2}}
 
-% the mdframed style for @cartouche
-\mdfdefinestyle{GNUTexinfocartouche}{
-innertopmargin=10pt, innerbottommargin=10pt,%
-roundcorner=10pt}
-
 \renewcommand{\includegraphics}[1]{\fbox{FIG #1}}
 
 % set default for @setchapternewpage
diff --git 
a/tp/t/results/xtable/inter_item_commands_in_table_in_example/res_latex/inter_item_commands_in_table_in_example.tex
 
b/tp/t/results/xtable/inter_item_commands_in_table_in_example/res_latex/inter_item_commands_in_table_in_example.tex
index 9d56543d21..84e33d336f 100644
--- 
a/tp/t/results/xtable/inter_item_commands_in_table_in_example/res_latex/inter_item_commands_in_table_in_example.tex
+++ 
b/tp/t/results/xtable/inter_item_commands_in_table_in_example/res_latex/inter_item_commands_in_table_in_example.tex
@@ -6,15 +6,11 @@
 \usepackage[T1]{fontenc}
 \usepackage{textcomp}
 \usepackage{graphicx}
-\usepackage{needspace}
 \usepackage{etoolbox}
-\usepackage{mdframed}
-%\usepackage{fontsize}
 \usepackage{enumitem}
 \usepackage{geometry}
 \usepackage{titleps}
 \usepackage{float}
-%\usepackage{babel}
 % use hidelinks to remove boxes around links to be similar with Texinfo TeX
 \usepackage[hidelinks]{hyperref}
 \usepackage[utf8]{inputenc}
@@ -23,36 +19,9 @@
 
 \makeindex[name=cp]%
 
-% command used in \description format for dfn
-\newcommand\GNUTexinfotablestyledfn[1]{{\normalfont\emph{#1}}}%
-
-% command used in \description format for emph
-\newcommand\GNUTexinfotablestyleemph[1]{{\normalfont\emph{#1}}}%
-
-% command used in \description format for hyphenation
-\newcommand\GNUTexinfotablestylehyphenation[1]{{\normalfont\hyphenation{#1}}}%
-
-% command used in \description format for indicateurl
-\newcommand\GNUTexinfotablestyleindicateurl[1]{\ifstrempty{#1}{}{{`\texttt{#1}'}}}%
-
-% command used in \description format for kbd
-\newcommand\GNUTexinfotablestylekbd[1]{{\ttfamily\textsl{#1}}}%
-
-% command used in \description format for samp
-\newcommand\GNUTexinfotablestylesamp[1]{\ifstrempty{#1}{}{{`\texttt{#1}'}}}%
-
-% command used in \description format for sub
-\newcommand\GNUTexinfotablestylesub[1]{{\normalfont\textsubscript{#1}}}%
-
-% command used in \description format for sup
-\newcommand\GNUTexinfotablestylesup[1]{{\normalfont\textsuperscript{#1}}}%
-
 % command used in \description format for var
 \newcommand\GNUTexinfotablestylevar[1]{{\normalfont\emph{#1}}}%
 
-% command used in \description format for w
-\newcommand\GNUTexinfotablestylew[1]{{\normalfont\hbox{#1}}}%
-
 % redefine the \mainmatter command such that it does not clear page
 % as if in double page
 \makeatletter
@@ -61,14 +30,6 @@
 % add command aliases to use the same command in book and report
 \newcommand\GNUTexinfomainmatter{\mainmatter}
 \newcommand\GNUTexinfofrontmatter{\frontmatter}
-
-% this allows to select languages based on bcp47 codes.  bcp47 is a superset
-% of the LL_CC ISO 639-2 LL ISO 3166 CC information of @documentlanguage
-% \babeladjust{
-%   autoload.bcp47 = on,
-%   autoload.bcp47.options = import
-% }
-
 % set defaults for lists that match Texinfo TeX formatting
 \setlist[description]{style=nextline, font=\normalfont}
 \setlist[itemize]{label=\textbullet}
@@ -99,11 +60,6 @@
 % avoid pagebreak and headings setting for a sectionning command
 \newcommand{\GNUTexinfonopagebreakheading}[2]{\let\clearpage\relax 
\let\cleardoublepage\relax \let\thispagestyle\GNUTexinfoplaceholder #1{#2}}
 
-% the mdframed style for @cartouche
-\mdfdefinestyle{GNUTexinfocartouche}{
-innertopmargin=10pt, innerbottommargin=10pt,%
-roundcorner=10pt}
-
 \renewcommand{\includegraphics}[1]{\fbox{FIG #1}}
 
 % set default for @setchapternewpage
diff --git 
a/tp/tests/indices/res_parser/indices_in_begin_tables_lists_latex/indices_in_begin_tables_lists.tex
 
b/tp/tests/indices/res_parser/indices_in_begin_tables_lists_latex/indices_in_begin_tables_lists.tex
index 7426fd9830..70b2c87ecb 100644
--- 
a/tp/tests/indices/res_parser/indices_in_begin_tables_lists_latex/indices_in_begin_tables_lists.tex
+++ 
b/tp/tests/indices/res_parser/indices_in_begin_tables_lists_latex/indices_in_begin_tables_lists.tex
@@ -6,15 +6,11 @@
 \usepackage[T1]{fontenc}
 \usepackage{textcomp}
 \usepackage{graphicx}
-\usepackage{needspace}
 \usepackage{etoolbox}
-\usepackage{mdframed}
-%\usepackage{fontsize}
 \usepackage{enumitem}
 \usepackage{geometry}
 \usepackage{titleps}
 \usepackage{float}
-%\usepackage{babel}
 % use hidelinks to remove boxes around links to be similar with Texinfo TeX
 \usepackage[hidelinks]{hyperref}
 \usepackage[utf8]{inputenc}
@@ -25,36 +21,12 @@
 \makeindex[name=fn]%
 \makeindex[name=vr]%
 
-% command used in \description format for dfn
-\newcommand\GNUTexinfotablestyledfn[1]{{\normalfont\emph{#1}}}%
-
-% command used in \description format for emph
-\newcommand\GNUTexinfotablestyleemph[1]{{\normalfont\emph{#1}}}%
-
-% command used in \description format for hyphenation
-\newcommand\GNUTexinfotablestylehyphenation[1]{{\normalfont\hyphenation{#1}}}%
-
-% command used in \description format for indicateurl
-\newcommand\GNUTexinfotablestyleindicateurl[1]{\ifstrempty{#1}{}{{`\texttt{#1}'}}}%
-
-% command used in \description format for kbd
-\newcommand\GNUTexinfotablestylekbd[1]{{\ttfamily\textsl{#1}}}%
-
 % command used in \description format for samp
 \newcommand\GNUTexinfotablestylesamp[1]{\ifstrempty{#1}{}{{`\texttt{#1}'}}}%
 
-% command used in \description format for sub
-\newcommand\GNUTexinfotablestylesub[1]{{\normalfont\textsubscript{#1}}}%
-
-% command used in \description format for sup
-\newcommand\GNUTexinfotablestylesup[1]{{\normalfont\textsuperscript{#1}}}%
-
 % command used in \description format for var
 \newcommand\GNUTexinfotablestylevar[1]{{\normalfont\emph{#1}}}%
 
-% command used in \description format for w
-\newcommand\GNUTexinfotablestylew[1]{{\normalfont\hbox{#1}}}%
-
 % redefine the \mainmatter command such that it does not clear page
 % as if in double page
 \makeatletter
@@ -63,14 +35,6 @@
 % add command aliases to use the same command in book and report
 \newcommand\GNUTexinfomainmatter{\mainmatter}
 \newcommand\GNUTexinfofrontmatter{\frontmatter}
-
-% this allows to select languages based on bcp47 codes.  bcp47 is a superset
-% of the LL_CC ISO 639-2 LL ISO 3166 CC information of @documentlanguage
-% \babeladjust{
-%   autoload.bcp47 = on,
-%   autoload.bcp47.options = import
-% }
-
 % set defaults for lists that match Texinfo TeX formatting
 \setlist[description]{style=nextline, font=\normalfont}
 \setlist[itemize]{label=\textbullet}
@@ -101,11 +65,6 @@
 % avoid pagebreak and headings setting for a sectionning command
 \newcommand{\GNUTexinfonopagebreakheading}[2]{\let\clearpage\relax 
\let\cleardoublepage\relax \let\thispagestyle\GNUTexinfoplaceholder #1{#2}}
 
-% the mdframed style for @cartouche
-\mdfdefinestyle{GNUTexinfocartouche}{
-innertopmargin=10pt, innerbottommargin=10pt,%
-roundcorner=10pt}
-
 \renewcommand{\includegraphics}[1]{\fbox{FIG #1}}
 
 % set default for @setchapternewpage
diff --git 
a/tp/tests/indices/res_parser_info/indices_in_begin_tables_lists_latex/indices_in_begin_tables_lists.tex
 
b/tp/tests/indices/res_parser_info/indices_in_begin_tables_lists_latex/indices_in_begin_tables_lists.tex
index 7426fd9830..70b2c87ecb 100644
--- 
a/tp/tests/indices/res_parser_info/indices_in_begin_tables_lists_latex/indices_in_begin_tables_lists.tex
+++ 
b/tp/tests/indices/res_parser_info/indices_in_begin_tables_lists_latex/indices_in_begin_tables_lists.tex
@@ -6,15 +6,11 @@
 \usepackage[T1]{fontenc}
 \usepackage{textcomp}
 \usepackage{graphicx}
-\usepackage{needspace}
 \usepackage{etoolbox}
-\usepackage{mdframed}
-%\usepackage{fontsize}
 \usepackage{enumitem}
 \usepackage{geometry}
 \usepackage{titleps}
 \usepackage{float}
-%\usepackage{babel}
 % use hidelinks to remove boxes around links to be similar with Texinfo TeX
 \usepackage[hidelinks]{hyperref}
 \usepackage[utf8]{inputenc}
@@ -25,36 +21,12 @@
 \makeindex[name=fn]%
 \makeindex[name=vr]%
 
-% command used in \description format for dfn
-\newcommand\GNUTexinfotablestyledfn[1]{{\normalfont\emph{#1}}}%
-
-% command used in \description format for emph
-\newcommand\GNUTexinfotablestyleemph[1]{{\normalfont\emph{#1}}}%
-
-% command used in \description format for hyphenation
-\newcommand\GNUTexinfotablestylehyphenation[1]{{\normalfont\hyphenation{#1}}}%
-
-% command used in \description format for indicateurl
-\newcommand\GNUTexinfotablestyleindicateurl[1]{\ifstrempty{#1}{}{{`\texttt{#1}'}}}%
-
-% command used in \description format for kbd
-\newcommand\GNUTexinfotablestylekbd[1]{{\ttfamily\textsl{#1}}}%
-
 % command used in \description format for samp
 \newcommand\GNUTexinfotablestylesamp[1]{\ifstrempty{#1}{}{{`\texttt{#1}'}}}%
 
-% command used in \description format for sub
-\newcommand\GNUTexinfotablestylesub[1]{{\normalfont\textsubscript{#1}}}%
-
-% command used in \description format for sup
-\newcommand\GNUTexinfotablestylesup[1]{{\normalfont\textsuperscript{#1}}}%
-
 % command used in \description format for var
 \newcommand\GNUTexinfotablestylevar[1]{{\normalfont\emph{#1}}}%
 
-% command used in \description format for w
-\newcommand\GNUTexinfotablestylew[1]{{\normalfont\hbox{#1}}}%
-
 % redefine the \mainmatter command such that it does not clear page
 % as if in double page
 \makeatletter
@@ -63,14 +35,6 @@
 % add command aliases to use the same command in book and report
 \newcommand\GNUTexinfomainmatter{\mainmatter}
 \newcommand\GNUTexinfofrontmatter{\frontmatter}
-
-% this allows to select languages based on bcp47 codes.  bcp47 is a superset
-% of the LL_CC ISO 639-2 LL ISO 3166 CC information of @documentlanguage
-% \babeladjust{
-%   autoload.bcp47 = on,
-%   autoload.bcp47.options = import
-% }
-
 % set defaults for lists that match Texinfo TeX formatting
 \setlist[description]{style=nextline, font=\normalfont}
 \setlist[itemize]{label=\textbullet}
@@ -101,11 +65,6 @@
 % avoid pagebreak and headings setting for a sectionning command
 \newcommand{\GNUTexinfonopagebreakheading}[2]{\let\clearpage\relax 
\let\cleardoublepage\relax \let\thispagestyle\GNUTexinfoplaceholder #1{#2}}
 
-% the mdframed style for @cartouche
-\mdfdefinestyle{GNUTexinfocartouche}{
-innertopmargin=10pt, innerbottommargin=10pt,%
-roundcorner=10pt}
-
 \renewcommand{\includegraphics}[1]{\fbox{FIG #1}}
 
 % set default for @setchapternewpage
diff --git a/tp/tests/layout/res_parser/formatting_latex/formatting.tex 
b/tp/tests/layout/res_parser/formatting_latex/formatting.tex
index b7eff5a7b7..b951652eb4 100644
--- a/tp/tests/layout/res_parser/formatting_latex/formatting.tex
+++ b/tp/tests/layout/res_parser/formatting_latex/formatting.tex
@@ -9,12 +9,10 @@
 \usepackage{needspace}
 \usepackage{etoolbox}
 \usepackage{mdframed}
-%\usepackage{fontsize}
 \usepackage{enumitem}
 \usepackage{geometry}
 \usepackage{titleps}
 \usepackage{float}
-%\usepackage{babel}
 % use hidelinks to remove boxes around links to be similar with Texinfo TeX
 \usepackage[hidelinks]{hyperref}
 \usepackage[utf8]{inputenc}
@@ -27,36 +25,15 @@
 \makeindex[name=tp]%
 \makeindex[name=truc]%
 
-% command used in \description format for dfn
-\newcommand\GNUTexinfotablestyledfn[1]{{\normalfont\emph{#1}}}%
-
 % command used in \description format for emph
 \newcommand\GNUTexinfotablestyleemph[1]{{\normalfont\emph{#1}}}%
 
-% command used in \description format for hyphenation
-\newcommand\GNUTexinfotablestylehyphenation[1]{{\normalfont\hyphenation{#1}}}%
-
-% command used in \description format for indicateurl
-\newcommand\GNUTexinfotablestyleindicateurl[1]{\ifstrempty{#1}{}{{`\texttt{#1}'}}}%
-
 % command used in \description format for kbd
 \newcommand\GNUTexinfotablestylekbd[1]{{\ttfamily\textsl{#1}}}%
 
 % command used in \description format for samp
 \newcommand\GNUTexinfotablestylesamp[1]{\ifstrempty{#1}{}{{`\texttt{#1}'}}}%
 
-% command used in \description format for sub
-\newcommand\GNUTexinfotablestylesub[1]{{\normalfont\textsubscript{#1}}}%
-
-% command used in \description format for sup
-\newcommand\GNUTexinfotablestylesup[1]{{\normalfont\textsuperscript{#1}}}%
-
-% command used in \description format for var
-\newcommand\GNUTexinfotablestylevar[1]{{\normalfont\emph{#1}}}%
-
-% command used in \description format for w
-\newcommand\GNUTexinfotablestylew[1]{{\normalfont\hbox{#1}}}%
-
 % redefine the \mainmatter command such that it does not clear page
 % as if in double page
 \makeatletter
@@ -65,14 +42,6 @@
 % add command aliases to use the same command in book and report
 \newcommand\GNUTexinfomainmatter{\mainmatter}
 \newcommand\GNUTexinfofrontmatter{\frontmatter}
-
-% this allows to select languages based on bcp47 codes.  bcp47 is a superset
-% of the LL_CC ISO 639-2 LL ISO 3166 CC information of @documentlanguage
-% \babeladjust{
-%   autoload.bcp47 = on,
-%   autoload.bcp47.options = import
-% }
-
 % set defaults for lists that match Texinfo TeX formatting
 \setlist[description]{style=nextline, font=\normalfont}
 \setlist[itemize]{label=\textbullet}



reply via email to

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