texinfo-commits
[Top][All Lists]
Advanced

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

branch master updated: Convert Texinfo in @*math to LaTeX for HTML_MATH


From: Patrice Dumas
Subject: branch master updated: Convert Texinfo in @*math to LaTeX for HTML_MATH
Date: Thu, 20 Jan 2022 17:24:32 -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 beb8291c55 Convert Texinfo in @*math to LaTeX for HTML_MATH
beb8291c55 is described below

commit beb8291c558a93001d0d6c069d78d714af08fd8d
Author: Patrice Dumas <pertusus@free.fr>
AuthorDate: Thu Jan 20 23:24:06 2022 +0100

    Convert Texinfo in @*math to LaTeX for HTML_MATH
    
    * tp/Texinfo/Common.pm (@variable_string_settables),
    tp/Texinfo/Convert/HTML.pm (%defaults, _convert_math_command)
    (output, _convert), doc/texinfo.texi (HTML Customization Variables),
    tp/Texinfo/Convert/LaTeX.pm (copy_options_for_convert_to_latex_math)
    (convert_to_latex_math): set CONVERT_TEXINFO_MATH_TO_LATEX based
    on HTML_MATH being defined.  When set, convert math commands to LaTeX.
    Add convert_to_latex_math and copy_options_for_convert_to_latex_math
    in Texinfo::Convert::LaTeX to convert Texinfo to LaTeX math.
    
    * tp/Texinfo/Convert/HTML.pm (%defaults, output): do not set
    jslicenses, jslicenses_math nor jslicenses_infojs in %defaults
    such that they cannot be shared among converters and are
    defined when needed.
    
    * tp/Texinfo/Convert/HTML.pm _convert_contents): change variable
    names.
    
    * tp/Texinfo/Convert/LaTeX.pm (converter_initialize): do not check
    documentencoding to encode quotes.
---
 ChangeLog                                          |  24 ++
 doc/texinfo.texi                                   |   4 +
 tp/Texinfo/Common.pm                               |   1 +
 tp/Texinfo/Convert/HTML.pm                         |  73 ++--
 tp/Texinfo/Convert/LaTeX.pm                        |  57 ++-
 tp/Texinfo/Convert/Text.pm                         |   4 +-
 tp/t/html_tests.t                                  |  14 +
 tp/t/results/html_tests/mathjax_with_texinfo.pl    | 419 +++++++++++++++++++++
 .../mathjax_with_texinfo_enable_encoding.pl        | 419 +++++++++++++++++++++
 .../mathjax_with_texinfo_no_convert_to_latex.pl    | 419 +++++++++++++++++++++
 .../res_parser/formatting_mathjax/formatting.html  | 210 +++++------
 11 files changed, 1499 insertions(+), 145 deletions(-)

diff --git a/ChangeLog b/ChangeLog
index 739415d27d..ab31cb1cc5 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,27 @@
+2022-01-20  Patrice Dumas  <pertusus@free.fr>
+
+       Convert Texinfo in @*math to LaTeX for HTML_MATH
+
+       * tp/Texinfo/Common.pm (@variable_string_settables),
+       tp/Texinfo/Convert/HTML.pm (%defaults, _convert_math_command)
+       (output, _convert), doc/texinfo.texi (HTML Customization Variables),
+       tp/Texinfo/Convert/LaTeX.pm (copy_options_for_convert_to_latex_math)
+       (convert_to_latex_math): set CONVERT_TEXINFO_MATH_TO_LATEX based
+       on HTML_MATH being defined.  When set, convert math commands to LaTeX.
+       Add convert_to_latex_math and copy_options_for_convert_to_latex_math
+       in Texinfo::Convert::LaTeX to convert Texinfo to LaTeX math.
+
+       * tp/Texinfo/Convert/HTML.pm (%defaults, output): do not set
+       jslicenses, jslicenses_math nor jslicenses_infojs in %defaults
+       such that they cannot be shared among converters and are
+       defined when needed.
+
+       * tp/Texinfo/Convert/HTML.pm _convert_contents): change variable
+       names.
+
+       * tp/Texinfo/Convert/LaTeX.pm (converter_initialize): do not check
+       documentencoding to encode quotes.
+
 2022-01-19  Patrice Dumas  <pertusus@free.fr>
 
        * tp/Texinfo/Convert/LaTeX.pm (_open_preformatted)
diff --git a/doc/texinfo.texi b/doc/texinfo.texi
index 4bdd2154d3..69f49a01fc 100644
--- a/doc/texinfo.texi
+++ b/doc/texinfo.texi
@@ -16364,6 +16364,10 @@ end of the document if not split, or in a separate 
file.  If set to
 @samp{after_title} the tables of contents are output after the title; default
 @samp{after_top}.
 
+@item CONVERT_TEXINFO_MATH_TO_LATEX
+If set, convert @code{@@math} and @code{@@displaymath} to @LaTeX{}.  Default
+@code{undef}.  If undefined, set if @code{HTML_MATH} is set.
+
 @item COPIABLE_LINKS
 If set, output copiable links for the definition commands
 (@pxref{Definition Commands}) and table commands (@pxref{Two-column
diff --git a/tp/Texinfo/Common.pm b/tp/Texinfo/Common.pm
index b5ae4cc879..49e609a36a 100644
--- a/tp/Texinfo/Common.pm
+++ b/tp/Texinfo/Common.pm
@@ -276,6 +276,7 @@ my @variable_string_settables = (
 'CLOSE_QUOTE_SYMBOL',
 'COMPLEX_FORMAT_IN_TABLE',
 'CONTENTS_OUTPUT_LOCATION',
+'CONVERT_TEXINFO_MATH_TO_LATEX',
 'DATE_IN_HEADER',
 'DEFAULT_RULE',
 'DEF_TABLE',
diff --git a/tp/Texinfo/Convert/HTML.pm b/tp/Texinfo/Convert/HTML.pm
index fad5ee5ac0..6da799db27 100644
--- a/tp/Texinfo/Convert/HTML.pm
+++ b/tp/Texinfo/Convert/HTML.pm
@@ -77,6 +77,10 @@ use Texinfo::Convert::NodeNameNormalization;
 use Texinfo::Structuring;
 use Texinfo::Convert::Converter;
 
+# used to convert Texinfo to LaTeX math in @math and @displaymath
+# for further conversion by softwares that only convert LaTeX
+use Texinfo::Convert::LaTeX;
+
 
 require Exporter;
 use vars qw($VERSION @ISA);
@@ -1424,17 +1428,18 @@ my %PASSIVE_ICONS = (
 my (%BUTTONS_TEXT, %BUTTONS_GOTO, %BUTTONS_NAME, %SPECIAL_ELEMENTS_HEADING);
 
 my %defaults = (
+  'CONTENTS_OUTPUT_LOCATION' => 'after_top',
+  'CONVERT_TEXINFO_MATH_TO_LATEX' => undef,
   'ENABLE_ENCODING'      => 0,
   'FORMAT_MENU'           => 'sectiontoc',
+# if set style is added in attribute.
+  'INLINE_CSS_STYLE'     => 0,
   'OUTPUT_ENCODING_NAME'  => 'utf-8',
   'OUTFILE'              => undef,
+  'SPLIT'                => 'node',
   'SUBDIR'               => undef,
   'USE_NODES'            => 1,
   'USE_NODE_DIRECTIONS'  => undef,
-  'CONTENTS_OUTPUT_LOCATION' => 'after_top',
-  'SPLIT'                => 'node',
-# if set style is added in attribute.
-  'INLINE_CSS_STYLE'     => 0,
 # if set, no css is used.
   'NO_CSS'               => 0,
   'JS_WEBLABELS'         => 'generate',
@@ -1534,9 +1539,6 @@ my %defaults = (
      'shortcontents'    => 'Overview',
      'footnotes'   => 'Footnotes',
   },
-  'jslicenses' => {},         # for outputting licences file
-  'jslicenses_math' => {},    # MathJax scripts
-  'jslicenses_infojs' => {},  # info.js scripts
   'COPIABLE_LINKS' => 1,
  
   'output_format'        => 'html',
@@ -2583,14 +2585,9 @@ sub _convert_math_command($$$$)
 
   my $math_type = $self->get_conf('HTML_MATH');
   if ($math_type and $math_type eq 'mathjax') {
-    # MathJax won't handle tags in code
-    # TODO: instead convert inside $command to LaTeX, when such a conversion
-    # becomes possible
-    if ($arg !~ /</) {
-      $self->register_file_information('mathjax', 1);
-      return $self->html_attribute_class('em', $cmdname, ['tex2jax_process'])
-                                           .">\\($arg\\)</em>";
-    }
+    $self->register_file_information('mathjax', 1);
+    return $self->html_attribute_class('em', $cmdname, ['tex2jax_process'])
+                                          .">\\($arg\\)</em>";
   }
   return $self->html_attribute_class('em', $cmdname).">$arg</em>";
 }
@@ -6228,6 +6225,7 @@ sub _load_htmlxref_files {
 #  file_counters
 #  paragraph_symbol
 #  line_break_element
+#  options_latex_math
 #
 #  simpletitle_tree
 #  simpletitle_command_name
@@ -8623,6 +8621,16 @@ sub output($$)
     }
   }
 
+  if ($self->get_conf('HTML_MATH')
+      and not defined($self->get_conf('CONVERT_TEXINFO_MATH_TO_LATEX'))) {
+    $self->set_conf('CONVERT_TEXINFO_MATH_TO_LATEX', 1);
+  }
+
+  if ($self->get_conf('CONVERT_TEXINFO_MATH_TO_LATEX')) {
+    $self->{'options_latex_math'}
+     = { 
Texinfo::Convert::LaTeX::copy_options_for_convert_to_latex_math($self) };
+  }
+
   # the configuration has potentially been modified for
   # this output file especially.  Set a corresponding initial
   # configuration.
@@ -8814,6 +8822,7 @@ sub output($$)
           'https://www.apache.org/licenses/LICENSE-2.0',
           $mathjax_source ];
     # append to hash
+    $self->{'jslicenses'} = {} if (not defined($self->{'jslicenses'}));
     %{$self->{'jslicenses'}} = ( %{$self->{'jslicenses'}},
                                  %{$self->{'jslicenses_math'}} );
 
@@ -8828,6 +8837,7 @@ sub output($$)
       [ 'Expat',
         'http://www.jclark.com/xml/copying.txt',
         'js/modernizr.js' ];
+    $self->{'jslicenses'} = {} if (not defined($self->{'jslicenses'}));
     %{$self->{'jslicenses'}} = ( %{$self->{'jslicenses'}},
                                  %{$self->{'jslicenses_infojs'}} );
   }
@@ -9020,7 +9030,7 @@ sub output($$)
     }
   }
 
-  if (%{$self->{'jslicenses'}}) {
+  if ($self->{'jslicenses'} and scalar(%{$self->{'jslicenses'}})) {
     $self->_do_jslicenses_file($created_directory);
   }
 
@@ -9094,25 +9104,25 @@ sub _convert_contents($$$)
   my $element = shift;
   my $command_type = shift;
 
-  my $content_formatted = '';
   if (ref($element->{'contents'}) ne 'ARRAY') {
     cluck "for $element contents not an array: $element->{'contents'}";
     print STDERR Texinfo::Common::debug_print_element($element);
   }
 
+  my $element_contents_formatted = '';
   my $content_idx = 0;
   foreach my $content (@{$element->{'contents'}}) {
-    my $new_content = $self->_convert($content, "$command_type 
c[$content_idx]");
-    if (!defined($new_content)) {
+    my $formatted_content = $self->_convert($content, "$command_type 
c[$content_idx]");
+    if (!defined($formatted_content)) {
       cluck "content not defined for $command_type [$content_idx]\n";
-      print STDERR "root is: ".Texinfo::Common::debug_print_element($element);
+      print STDERR "element is: 
".Texinfo::Common::debug_print_element($element);
       print STDERR "content is: 
".Texinfo::Common::debug_print_element($content);
     } else {
-      $content_formatted .= $new_content;
+      $element_contents_formatted .= $formatted_content;
     }
     $content_idx++;
   }
-  return $content_formatted;
+  return $element_contents_formatted;
 }
 
 #my $characters_replaced_from_class_names = quotemeta('[](),~#:/\\@+=!;.,?* ');
@@ -9247,6 +9257,7 @@ sub _convert($$;$)
       $self->{'current_root_command'} = $element;
     }
     if (exists($self->{'commands_conversion'}->{$command_name})) {
+      my $convert_to_latex;
       if (exists($context_brace_commands{$command_name})) {
         $self->_new_document_context($command_name);
       }
@@ -9280,6 +9291,7 @@ sub _convert($$;$)
         
$self->{'document_context'}->[-1]->{'formatting_context'}->[-1]->{'upper_case'}++;
       } elsif ($math_commands{$command_name}) {
         $self->{'document_context'}->[-1]->{'math'}++;
+        $convert_to_latex = 1 if 
($self->get_conf('CONVERT_TEXINFO_MATH_TO_LATEX'));
       } elsif ($command_name eq 'w') {
         
$self->{'document_context'}->[-1]->{'formatting_context'}->[-1]->{'space_protected'}++;
       }
@@ -9290,7 +9302,14 @@ sub _convert($$;$)
       }
       my $content_formatted;
       if ($element->{'contents'}) {
-        $content_formatted = $self->_convert_contents($element, $command_type);
+        if ($convert_to_latex) {
+          $content_formatted
+           = Texinfo::Convert::LaTeX::convert_to_latex_math(undef,
+                                {'contents' => $element->{'contents'}},
+                                         $self->{'options_latex_math'});
+        } else {
+          $content_formatted = $self->_convert_contents($element, 
$command_type);
+        }
       }
       my $args_formatted;
       if ($brace_commands{$command_name} 
@@ -9315,7 +9334,13 @@ sub _convert($$;$)
             foreach my $arg_type (@$arg_spec) {
               my $explanation = "$command_type A[$arg_idx]$arg_type";
               if ($arg_type eq 'normal') {
-                $arg_formatted->{'normal'} = $self->_convert($arg, 
$explanation);
+                if ($convert_to_latex) {
+                  $arg_formatted->{'normal'}
+                   = Texinfo::Convert::LaTeX::convert_to_latex_math(undef, 
$arg,
+                                                  
$self->{'options_latex_math'});
+                } else {
+                  $arg_formatted->{'normal'} = $self->_convert($arg, 
$explanation);
+                }
               } elsif ($arg_type eq 'monospace') {
                 push @{$self->{'document_context'}->[-1]->{'monospace'}}, 1;
                 #$self->{'document_context'}->[-1]->{'code'}++;
diff --git a/tp/Texinfo/Convert/LaTeX.pm b/tp/Texinfo/Convert/LaTeX.pm
index 699f34373a..0404e5a62c 100644
--- a/tp/Texinfo/Convert/LaTeX.pm
+++ b/tp/Texinfo/Convert/LaTeX.pm
@@ -178,6 +178,8 @@ use vars qw($VERSION @ISA);
 
 $VERSION = '6.8dev';
 
+# could export convert_to_latex_math
+
 
 # misc commands that are of use for formatting.
 my %formatted_misc_commands = %Texinfo::Common::formatted_misc_commands;
@@ -737,13 +739,9 @@ sub converter_initialize($)
     $self->{'to_utf8'} = 1;
 
     if ($self->get_conf('ENABLE_ENCODING')) {
-      # Do not use utf-8 encoded curly quotes if '@documentencoding UTF-8'
-      # is not given.
-      if ($self->{'global_commands'}->{'documentencoding'}) {
-        foreach my $quoted_command (@quoted_commands) {
-          # Directed single quotes
-          $self->{'quotes_map'}->{$quoted_command} = ["\x{2018}", "\x{2019}"];
-        }
+      foreach my $quoted_command (@quoted_commands) {
+        # Directed single quotes
+        $self->{'quotes_map'}->{$quoted_command} = ["\x{2018}", "\x{2019}"];
       }
     }
   }
@@ -830,7 +828,7 @@ sub _prepare_conversion($;$)
   my $root = shift;
 
   if (defined($root)) {
-    $self->associate_other_nodes_to_sections($root);
+    $self->_associate_other_nodes_to_sections($root);
   }
 
   if ($self->{'global_commands'}->{'settitle'}) {
@@ -845,7 +843,7 @@ sub _prepare_conversion($;$)
   $self->_prepare_indices();
 }
 
-sub associate_other_nodes_to_sections($$)
+sub _associate_other_nodes_to_sections($$)
 {
   my ($self, $root) = @_;
 
@@ -1016,6 +1014,45 @@ sub convert_tree($$)
   return $result;
 }
 
+sub copy_options_for_convert_to_latex_math($)
+{
+  my $self = shift;
+  my %options;
+  foreach my $option_name ('DEBUG', 'ENABLE_ENCODING', 'OUTPUT_ENCODING_NAME',
+                           'TEST') {
+    $options{$option_name} = $self->get_conf($option_name)
+                    if (defined($self->get_conf($option_name)));
+  }
+  return %options;
+}
+
+# convert texinfo tree to LaTeX math
+# FIXME pass errors somehow?  Return converter for instance?
+sub convert_to_latex_math($$;$$)
+{
+  my $self = shift;
+  my $root = shift;
+  my $options = shift;
+  my $math_style = shift;
+
+  $math_style = 'one-line' if (not defined($math_style));
+
+  if (not defined($self)) {
+    $self = Texinfo::Convert::LaTeX->converter($options);
+  }
+
+  _push_new_context($self, 'convert_to_math');
+
+  push @{$self->{'formatting_context'}->[-1]->{'text_context'}}, 'math';
+  push @{$self->{'formatting_context'}->[-1]->{'math_style'}}, $math_style;
+
+  my $result = $self->_convert($root);
+
+  _pop_context($self);
+
+  return $result;
+}
+
 # ellipsis leaves less spacing after \dots in case it is followed
 # by punctuation. It does not seem to fix the @dots verusus @enddots issue
 # to be loaded after Babel if you are using the French option
@@ -2701,6 +2738,8 @@ sub _convert($$)
         # place where we might output actual UTF-8 binary bytes, we have
         # to check that it is possible.  If not, silently fall back to
         # plain text, on the theory that the user wants something.
+        # Note that being able to output an unicode point as encoded
+        # character does not mean that LaTeX will be able to process it.
         my $res;
         if ($self->{'to_utf8'}) {
           my $possible_conversion
diff --git a/tp/Texinfo/Convert/Text.pm b/tp/Texinfo/Convert/Text.pm
index 6f752a3f58..1ba049df26 100644
--- a/tp/Texinfo/Convert/Text.pm
+++ b/tp/Texinfo/Convert/Text.pm
@@ -253,8 +253,8 @@ sub brace_no_arg_command($;$)
   }
   if (!defined($result) and $options and $options->{'converter'}) {
     my $tree
-      = 
Texinfo::Convert::Utils::translated_command_tree($options->{'converter'},
-                                                                         
$command);
+     = 
Texinfo::Convert::Utils::translated_command_tree($options->{'converter'},
+                                                        $command);
     if ($tree) {
       $result = _convert($tree, $options);
     }
diff --git a/tp/t/html_tests.t b/tp/t/html_tests.t
index 323c299829..8436ba2919 100644
--- a/tp/t/html_tests.t
+++ b/tp/t/html_tests.t
@@ -131,6 +131,13 @@ my $itemize_arguments_text = '
 
 ';
 
+my $mathjax_with_texinfo = '@displaymath
+a@sup{b - \frac{\xsi}{phi @copyright{}}} @dotless{i}
+@end displaymath
+
+Some @math{a @minus{} b @geq{} @AA{} @^e}.
+';
+
 my @test_cases = (
 ['verbatim_in_multitable_in_example',
 '@example
@@ -438,6 +445,13 @@ in <b>html</b> in copying ``
 @top top
 
 '],
+['mathjax_with_texinfo',
+$mathjax_with_texinfo, {}, {'HTML_MATH' => 'mathjax'}],
+['mathjax_with_texinfo_enable_encoding',
+$mathjax_with_texinfo, {}, {'HTML_MATH' => 'mathjax', 'ENABLE_ENCODING' => 1}],
+['mathjax_with_texinfo_no_convert_to_latex',
+$mathjax_with_texinfo, {}, {'HTML_MATH' => 'mathjax',
+                            'CONVERT_TEXINFO_MATH_TO_LATEX' => 0}],
 ['empty_lines_at_beginning_no_setfilename',
 undef, {'test_file' => 'empty_lines_at_beginning_no_setfilename.texi'}
 ],
diff --git a/tp/t/results/html_tests/mathjax_with_texinfo.pl 
b/tp/t/results/html_tests/mathjax_with_texinfo.pl
new file mode 100644
index 0000000000..2baff63f05
--- /dev/null
+++ b/tp/t/results/html_tests/mathjax_with_texinfo.pl
@@ -0,0 +1,419 @@
+use vars qw(%result_texis %result_texts %result_trees %result_errors 
+   %result_indices %result_sectioning %result_nodes %result_menus
+   %result_floats %result_converted %result_converted_errors 
+   %result_elements %result_directions_text %result_indices_sort_strings);
+
+use utf8;
+
+$result_trees{'mathjax_with_texinfo'} = {
+  'contents' => [
+    {
+      'contents' => [
+        {
+          'cmdname' => 'displaymath',
+          'contents' => [
+            {
+              'extra' => {
+                'command' => {}
+              },
+              'parent' => {},
+              'text' => '
+',
+              'type' => 'empty_line_after_command'
+            },
+            {
+              'parent' => {},
+              'text' => 'a'
+            },
+            {
+              'args' => [
+                {
+                  'contents' => [
+                    {
+                      'parent' => {},
+                      'text' => 'b - \\frac'
+                    },
+                    {
+                      'contents' => [
+                        {
+                          'parent' => {},
+                          'text' => '\\xsi'
+                        }
+                      ],
+                      'line_nr' => {
+                        'file_name' => '',
+                        'line_nr' => 2,
+                        'macro' => ''
+                      },
+                      'parent' => {},
+                      'type' => 'bracketed'
+                    },
+                    {
+                      'contents' => [
+                        {
+                          'parent' => {},
+                          'text' => 'phi '
+                        },
+                        {
+                          'args' => [
+                            {
+                              'contents' => [],
+                              'parent' => {},
+                              'type' => 'brace_command_arg'
+                            }
+                          ],
+                          'cmdname' => 'copyright',
+                          'contents' => [],
+                          'line_nr' => {
+                            'file_name' => '',
+                            'line_nr' => 2,
+                            'macro' => ''
+                          },
+                          'parent' => {}
+                        }
+                      ],
+                      'line_nr' => {
+                        'file_name' => '',
+                        'line_nr' => 2,
+                        'macro' => ''
+                      },
+                      'parent' => {},
+                      'type' => 'bracketed'
+                    }
+                  ],
+                  'parent' => {},
+                  'type' => 'brace_command_arg'
+                }
+              ],
+              'cmdname' => 'sup',
+              'contents' => [],
+              'line_nr' => {
+                'file_name' => '',
+                'line_nr' => 2,
+                'macro' => ''
+              },
+              'parent' => {}
+            },
+            {
+              'parent' => {},
+              'text' => ' '
+            },
+            {
+              'args' => [
+                {
+                  'contents' => [
+                    {
+                      'parent' => {},
+                      'text' => 'i'
+                    }
+                  ],
+                  'parent' => {},
+                  'type' => 'brace_command_arg'
+                }
+              ],
+              'cmdname' => 'dotless',
+              'contents' => [],
+              'line_nr' => {
+                'file_name' => '',
+                'line_nr' => 2,
+                'macro' => ''
+              },
+              'parent' => {}
+            },
+            {
+              'parent' => {},
+              'text' => '
+'
+            },
+            {
+              'args' => [
+                {
+                  'contents' => [
+                    {
+                      'parent' => {},
+                      'text' => 'displaymath'
+                    }
+                  ],
+                  'extra' => {
+                    'spaces_after_argument' => '
+'
+                  },
+                  'parent' => {},
+                  'type' => 'line_arg'
+                }
+              ],
+              'cmdname' => 'end',
+              'extra' => {
+                'command_argument' => 'displaymath',
+                'spaces_before_argument' => ' ',
+                'text_arg' => 'displaymath'
+              },
+              'line_nr' => {
+                'file_name' => '',
+                'line_nr' => 3,
+                'macro' => ''
+              },
+              'parent' => {}
+            }
+          ],
+          'extra' => {
+            'end_command' => {}
+          },
+          'line_nr' => {
+            'file_name' => '',
+            'line_nr' => 1,
+            'macro' => ''
+          },
+          'parent' => {}
+        },
+        {
+          'parent' => {},
+          'text' => '
+',
+          'type' => 'empty_line'
+        },
+        {
+          'contents' => [
+            {
+              'parent' => {},
+              'text' => 'Some '
+            },
+            {
+              'args' => [
+                {
+                  'contents' => [
+                    {
+                      'parent' => {},
+                      'text' => 'a '
+                    },
+                    {
+                      'args' => [
+                        {
+                          'contents' => [],
+                          'parent' => {},
+                          'type' => 'brace_command_arg'
+                        }
+                      ],
+                      'cmdname' => 'minus',
+                      'contents' => [],
+                      'line_nr' => {
+                        'file_name' => '',
+                        'line_nr' => 5,
+                        'macro' => ''
+                      },
+                      'parent' => {}
+                    },
+                    {
+                      'parent' => {},
+                      'text' => ' b '
+                    },
+                    {
+                      'args' => [
+                        {
+                          'contents' => [],
+                          'parent' => {},
+                          'type' => 'brace_command_arg'
+                        }
+                      ],
+                      'cmdname' => 'geq',
+                      'contents' => [],
+                      'line_nr' => {
+                        'file_name' => '',
+                        'line_nr' => 5,
+                        'macro' => ''
+                      },
+                      'parent' => {}
+                    },
+                    {
+                      'parent' => {},
+                      'text' => ' '
+                    },
+                    {
+                      'args' => [
+                        {
+                          'contents' => [],
+                          'parent' => {},
+                          'type' => 'brace_command_arg'
+                        }
+                      ],
+                      'cmdname' => 'AA',
+                      'contents' => [],
+                      'line_nr' => {
+                        'file_name' => '',
+                        'line_nr' => 5,
+                        'macro' => ''
+                      },
+                      'parent' => {}
+                    },
+                    {
+                      'parent' => {},
+                      'text' => ' '
+                    },
+                    {
+                      'args' => [
+                        {
+                          'contents' => [
+                            {
+                              'parent' => {},
+                              'text' => 'e'
+                            }
+                          ],
+                          'parent' => {},
+                          'type' => 'following_arg'
+                        }
+                      ],
+                      'cmdname' => '^',
+                      'contents' => [],
+                      'line_nr' => {
+                        'file_name' => '',
+                        'line_nr' => 5,
+                        'macro' => ''
+                      },
+                      'parent' => {}
+                    }
+                  ],
+                  'parent' => {},
+                  'type' => 'brace_command_context'
+                }
+              ],
+              'cmdname' => 'math',
+              'contents' => [],
+              'line_nr' => {
+                'file_name' => '',
+                'line_nr' => 5,
+                'macro' => ''
+              },
+              'parent' => {}
+            },
+            {
+              'parent' => {},
+              'text' => '.
+'
+            }
+          ],
+          'parent' => {},
+          'type' => 'paragraph'
+        }
+      ],
+      'parent' => {},
+      'type' => 'before_node_section'
+    }
+  ],
+  'type' => 'document_root'
+};
+$result_trees{'mathjax_with_texinfo'}{'contents'}[0]{'contents'}[0]{'contents'}[0]{'extra'}{'command'}
 = $result_trees{'mathjax_with_texinfo'}{'contents'}[0]{'contents'}[0];
+$result_trees{'mathjax_with_texinfo'}{'contents'}[0]{'contents'}[0]{'contents'}[0]{'parent'}
 = $result_trees{'mathjax_with_texinfo'}{'contents'}[0]{'contents'}[0];
+$result_trees{'mathjax_with_texinfo'}{'contents'}[0]{'contents'}[0]{'contents'}[1]{'parent'}
 = $result_trees{'mathjax_with_texinfo'}{'contents'}[0]{'contents'}[0];
+$result_trees{'mathjax_with_texinfo'}{'contents'}[0]{'contents'}[0]{'contents'}[2]{'args'}[0]{'contents'}[0]{'parent'}
 = 
$result_trees{'mathjax_with_texinfo'}{'contents'}[0]{'contents'}[0]{'contents'}[2]{'args'}[0];
+$result_trees{'mathjax_with_texinfo'}{'contents'}[0]{'contents'}[0]{'contents'}[2]{'args'}[0]{'contents'}[1]{'contents'}[0]{'parent'}
 = 
$result_trees{'mathjax_with_texinfo'}{'contents'}[0]{'contents'}[0]{'contents'}[2]{'args'}[0]{'contents'}[1];
+$result_trees{'mathjax_with_texinfo'}{'contents'}[0]{'contents'}[0]{'contents'}[2]{'args'}[0]{'contents'}[1]{'parent'}
 = 
$result_trees{'mathjax_with_texinfo'}{'contents'}[0]{'contents'}[0]{'contents'}[2]{'args'}[0];
+$result_trees{'mathjax_with_texinfo'}{'contents'}[0]{'contents'}[0]{'contents'}[2]{'args'}[0]{'contents'}[2]{'contents'}[0]{'parent'}
 = 
$result_trees{'mathjax_with_texinfo'}{'contents'}[0]{'contents'}[0]{'contents'}[2]{'args'}[0]{'contents'}[2];
+$result_trees{'mathjax_with_texinfo'}{'contents'}[0]{'contents'}[0]{'contents'}[2]{'args'}[0]{'contents'}[2]{'contents'}[1]{'args'}[0]{'parent'}
 = 
$result_trees{'mathjax_with_texinfo'}{'contents'}[0]{'contents'}[0]{'contents'}[2]{'args'}[0]{'contents'}[2]{'contents'}[1];
+$result_trees{'mathjax_with_texinfo'}{'contents'}[0]{'contents'}[0]{'contents'}[2]{'args'}[0]{'contents'}[2]{'contents'}[1]{'parent'}
 = 
$result_trees{'mathjax_with_texinfo'}{'contents'}[0]{'contents'}[0]{'contents'}[2]{'args'}[0]{'contents'}[2];
+$result_trees{'mathjax_with_texinfo'}{'contents'}[0]{'contents'}[0]{'contents'}[2]{'args'}[0]{'contents'}[2]{'parent'}
 = 
$result_trees{'mathjax_with_texinfo'}{'contents'}[0]{'contents'}[0]{'contents'}[2]{'args'}[0];
+$result_trees{'mathjax_with_texinfo'}{'contents'}[0]{'contents'}[0]{'contents'}[2]{'args'}[0]{'parent'}
 = 
$result_trees{'mathjax_with_texinfo'}{'contents'}[0]{'contents'}[0]{'contents'}[2];
+$result_trees{'mathjax_with_texinfo'}{'contents'}[0]{'contents'}[0]{'contents'}[2]{'parent'}
 = $result_trees{'mathjax_with_texinfo'}{'contents'}[0]{'contents'}[0];
+$result_trees{'mathjax_with_texinfo'}{'contents'}[0]{'contents'}[0]{'contents'}[3]{'parent'}
 = $result_trees{'mathjax_with_texinfo'}{'contents'}[0]{'contents'}[0];
+$result_trees{'mathjax_with_texinfo'}{'contents'}[0]{'contents'}[0]{'contents'}[4]{'args'}[0]{'contents'}[0]{'parent'}
 = 
$result_trees{'mathjax_with_texinfo'}{'contents'}[0]{'contents'}[0]{'contents'}[4]{'args'}[0];
+$result_trees{'mathjax_with_texinfo'}{'contents'}[0]{'contents'}[0]{'contents'}[4]{'args'}[0]{'parent'}
 = 
$result_trees{'mathjax_with_texinfo'}{'contents'}[0]{'contents'}[0]{'contents'}[4];
+$result_trees{'mathjax_with_texinfo'}{'contents'}[0]{'contents'}[0]{'contents'}[4]{'parent'}
 = $result_trees{'mathjax_with_texinfo'}{'contents'}[0]{'contents'}[0];
+$result_trees{'mathjax_with_texinfo'}{'contents'}[0]{'contents'}[0]{'contents'}[5]{'parent'}
 = $result_trees{'mathjax_with_texinfo'}{'contents'}[0]{'contents'}[0];
+$result_trees{'mathjax_with_texinfo'}{'contents'}[0]{'contents'}[0]{'contents'}[6]{'args'}[0]{'contents'}[0]{'parent'}
 = 
$result_trees{'mathjax_with_texinfo'}{'contents'}[0]{'contents'}[0]{'contents'}[6]{'args'}[0];
+$result_trees{'mathjax_with_texinfo'}{'contents'}[0]{'contents'}[0]{'contents'}[6]{'args'}[0]{'parent'}
 = 
$result_trees{'mathjax_with_texinfo'}{'contents'}[0]{'contents'}[0]{'contents'}[6];
+$result_trees{'mathjax_with_texinfo'}{'contents'}[0]{'contents'}[0]{'contents'}[6]{'parent'}
 = $result_trees{'mathjax_with_texinfo'}{'contents'}[0]{'contents'}[0];
+$result_trees{'mathjax_with_texinfo'}{'contents'}[0]{'contents'}[0]{'extra'}{'end_command'}
 = 
$result_trees{'mathjax_with_texinfo'}{'contents'}[0]{'contents'}[0]{'contents'}[6];
+$result_trees{'mathjax_with_texinfo'}{'contents'}[0]{'contents'}[0]{'parent'} 
= $result_trees{'mathjax_with_texinfo'}{'contents'}[0];
+$result_trees{'mathjax_with_texinfo'}{'contents'}[0]{'contents'}[1]{'parent'} 
= $result_trees{'mathjax_with_texinfo'}{'contents'}[0];
+$result_trees{'mathjax_with_texinfo'}{'contents'}[0]{'contents'}[2]{'contents'}[0]{'parent'}
 = $result_trees{'mathjax_with_texinfo'}{'contents'}[0]{'contents'}[2];
+$result_trees{'mathjax_with_texinfo'}{'contents'}[0]{'contents'}[2]{'contents'}[1]{'args'}[0]{'contents'}[0]{'parent'}
 = 
$result_trees{'mathjax_with_texinfo'}{'contents'}[0]{'contents'}[2]{'contents'}[1]{'args'}[0];
+$result_trees{'mathjax_with_texinfo'}{'contents'}[0]{'contents'}[2]{'contents'}[1]{'args'}[0]{'contents'}[1]{'args'}[0]{'parent'}
 = 
$result_trees{'mathjax_with_texinfo'}{'contents'}[0]{'contents'}[2]{'contents'}[1]{'args'}[0]{'contents'}[1];
+$result_trees{'mathjax_with_texinfo'}{'contents'}[0]{'contents'}[2]{'contents'}[1]{'args'}[0]{'contents'}[1]{'parent'}
 = 
$result_trees{'mathjax_with_texinfo'}{'contents'}[0]{'contents'}[2]{'contents'}[1]{'args'}[0];
+$result_trees{'mathjax_with_texinfo'}{'contents'}[0]{'contents'}[2]{'contents'}[1]{'args'}[0]{'contents'}[2]{'parent'}
 = 
$result_trees{'mathjax_with_texinfo'}{'contents'}[0]{'contents'}[2]{'contents'}[1]{'args'}[0];
+$result_trees{'mathjax_with_texinfo'}{'contents'}[0]{'contents'}[2]{'contents'}[1]{'args'}[0]{'contents'}[3]{'args'}[0]{'parent'}
 = 
$result_trees{'mathjax_with_texinfo'}{'contents'}[0]{'contents'}[2]{'contents'}[1]{'args'}[0]{'contents'}[3];
+$result_trees{'mathjax_with_texinfo'}{'contents'}[0]{'contents'}[2]{'contents'}[1]{'args'}[0]{'contents'}[3]{'parent'}
 = 
$result_trees{'mathjax_with_texinfo'}{'contents'}[0]{'contents'}[2]{'contents'}[1]{'args'}[0];
+$result_trees{'mathjax_with_texinfo'}{'contents'}[0]{'contents'}[2]{'contents'}[1]{'args'}[0]{'contents'}[4]{'parent'}
 = 
$result_trees{'mathjax_with_texinfo'}{'contents'}[0]{'contents'}[2]{'contents'}[1]{'args'}[0];
+$result_trees{'mathjax_with_texinfo'}{'contents'}[0]{'contents'}[2]{'contents'}[1]{'args'}[0]{'contents'}[5]{'args'}[0]{'parent'}
 = 
$result_trees{'mathjax_with_texinfo'}{'contents'}[0]{'contents'}[2]{'contents'}[1]{'args'}[0]{'contents'}[5];
+$result_trees{'mathjax_with_texinfo'}{'contents'}[0]{'contents'}[2]{'contents'}[1]{'args'}[0]{'contents'}[5]{'parent'}
 = 
$result_trees{'mathjax_with_texinfo'}{'contents'}[0]{'contents'}[2]{'contents'}[1]{'args'}[0];
+$result_trees{'mathjax_with_texinfo'}{'contents'}[0]{'contents'}[2]{'contents'}[1]{'args'}[0]{'contents'}[6]{'parent'}
 = 
$result_trees{'mathjax_with_texinfo'}{'contents'}[0]{'contents'}[2]{'contents'}[1]{'args'}[0];
+$result_trees{'mathjax_with_texinfo'}{'contents'}[0]{'contents'}[2]{'contents'}[1]{'args'}[0]{'contents'}[7]{'args'}[0]{'contents'}[0]{'parent'}
 = 
$result_trees{'mathjax_with_texinfo'}{'contents'}[0]{'contents'}[2]{'contents'}[1]{'args'}[0]{'contents'}[7]{'args'}[0];
+$result_trees{'mathjax_with_texinfo'}{'contents'}[0]{'contents'}[2]{'contents'}[1]{'args'}[0]{'contents'}[7]{'args'}[0]{'parent'}
 = 
$result_trees{'mathjax_with_texinfo'}{'contents'}[0]{'contents'}[2]{'contents'}[1]{'args'}[0]{'contents'}[7];
+$result_trees{'mathjax_with_texinfo'}{'contents'}[0]{'contents'}[2]{'contents'}[1]{'args'}[0]{'contents'}[7]{'parent'}
 = 
$result_trees{'mathjax_with_texinfo'}{'contents'}[0]{'contents'}[2]{'contents'}[1]{'args'}[0];
+$result_trees{'mathjax_with_texinfo'}{'contents'}[0]{'contents'}[2]{'contents'}[1]{'args'}[0]{'parent'}
 = 
$result_trees{'mathjax_with_texinfo'}{'contents'}[0]{'contents'}[2]{'contents'}[1];
+$result_trees{'mathjax_with_texinfo'}{'contents'}[0]{'contents'}[2]{'contents'}[1]{'parent'}
 = $result_trees{'mathjax_with_texinfo'}{'contents'}[0]{'contents'}[2];
+$result_trees{'mathjax_with_texinfo'}{'contents'}[0]{'contents'}[2]{'contents'}[2]{'parent'}
 = $result_trees{'mathjax_with_texinfo'}{'contents'}[0]{'contents'}[2];
+$result_trees{'mathjax_with_texinfo'}{'contents'}[0]{'contents'}[2]{'parent'} 
= $result_trees{'mathjax_with_texinfo'}{'contents'}[0];
+$result_trees{'mathjax_with_texinfo'}{'contents'}[0]{'parent'} = 
$result_trees{'mathjax_with_texinfo'};
+
+$result_texis{'mathjax_with_texinfo'} = '@displaymath
+a@sup{b - \\frac{\\xsi}{phi @copyright{}}} @dotless{i}
+@end displaymath
+
+Some @math{a @minus{} b @geq{} @AA{} @^e}.
+';
+
+
+$result_texts{'mathjax_with_texinfo'} = 'ab - \\frac{\\xsi}{phi (C)} i
+
+Some a - b >= AA e^.
+';
+
+$result_errors{'mathjax_with_texinfo'} = [];
+
+
+$result_floats{'mathjax_with_texinfo'} = {};
+
+
+
+$result_converted{'html'}->{'mathjax_with_texinfo'} = '<!DOCTYPE html>
+<html>
+<!-- Created by texinfo, http://www.gnu.org/software/texinfo/ -->
+<head>
+<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
+<title>Untitled Document</title>
+
+<meta name="description" content="Untitled Document">
+<meta name="keywords" content="Untitled Document">
+<meta name="resource-type" content="document">
+<meta name="distribution" content="global">
+<meta name="viewport" content="width=device-width,initial-scale=1">
+
+<style type="text/css">
+<!--
+-->
+</style>
+
+<script type=\'text/javascript\'>
+MathJax = {
+  options: {
+    skipHtmlTags: {\'[-]\': [\'pre\']},
+    ignoreHtmlClass: \'tex2jax_ignore\',
+    processHtmlClass: \'tex2jax_process\'
+  },
+};
+</script><script type="text/javascript" id="MathJax-script" async
+  src="https://cdn.jsdelivr.net/npm/mathjax@3/es5/tex-svg.js";>
+</script>
+</head>
+
+<body lang="en" class="tex2jax_ignore">
+<div class="displaymath"><em class="tex2jax_process">\\[a^{b - 
\\frac{\\xsi}{phi \\copyright{}}} \\imath{}
+\\]</em></div>
+<p>Some <em class="math tex2jax_process">\\(a - b \\geq{} 
\\mathord{\\text{\\AA{}}} \\hat{e}\\)</em>.
+</p>
+
+<a href=\'js_licenses.html\' rel=\'jslicense\'><small>JavaScript license 
information</small></a>
+</body>
+</html>
+';
+
+$result_converted_errors{'html'}->{'mathjax_with_texinfo'} = [
+  {
+    'error_line' => 'warning: must specify a title with a title command or @top
+',
+    'text' => 'must specify a title with a title command or @top',
+    'type' => 'warning'
+  }
+];
+
+
+1;
diff --git a/tp/t/results/html_tests/mathjax_with_texinfo_enable_encoding.pl 
b/tp/t/results/html_tests/mathjax_with_texinfo_enable_encoding.pl
new file mode 100644
index 0000000000..f8b8b1ccc7
--- /dev/null
+++ b/tp/t/results/html_tests/mathjax_with_texinfo_enable_encoding.pl
@@ -0,0 +1,419 @@
+use vars qw(%result_texis %result_texts %result_trees %result_errors 
+   %result_indices %result_sectioning %result_nodes %result_menus
+   %result_floats %result_converted %result_converted_errors 
+   %result_elements %result_directions_text %result_indices_sort_strings);
+
+use utf8;
+
+$result_trees{'mathjax_with_texinfo_enable_encoding'} = {
+  'contents' => [
+    {
+      'contents' => [
+        {
+          'cmdname' => 'displaymath',
+          'contents' => [
+            {
+              'extra' => {
+                'command' => {}
+              },
+              'parent' => {},
+              'text' => '
+',
+              'type' => 'empty_line_after_command'
+            },
+            {
+              'parent' => {},
+              'text' => 'a'
+            },
+            {
+              'args' => [
+                {
+                  'contents' => [
+                    {
+                      'parent' => {},
+                      'text' => 'b - \\frac'
+                    },
+                    {
+                      'contents' => [
+                        {
+                          'parent' => {},
+                          'text' => '\\xsi'
+                        }
+                      ],
+                      'line_nr' => {
+                        'file_name' => '',
+                        'line_nr' => 2,
+                        'macro' => ''
+                      },
+                      'parent' => {},
+                      'type' => 'bracketed'
+                    },
+                    {
+                      'contents' => [
+                        {
+                          'parent' => {},
+                          'text' => 'phi '
+                        },
+                        {
+                          'args' => [
+                            {
+                              'contents' => [],
+                              'parent' => {},
+                              'type' => 'brace_command_arg'
+                            }
+                          ],
+                          'cmdname' => 'copyright',
+                          'contents' => [],
+                          'line_nr' => {
+                            'file_name' => '',
+                            'line_nr' => 2,
+                            'macro' => ''
+                          },
+                          'parent' => {}
+                        }
+                      ],
+                      'line_nr' => {
+                        'file_name' => '',
+                        'line_nr' => 2,
+                        'macro' => ''
+                      },
+                      'parent' => {},
+                      'type' => 'bracketed'
+                    }
+                  ],
+                  'parent' => {},
+                  'type' => 'brace_command_arg'
+                }
+              ],
+              'cmdname' => 'sup',
+              'contents' => [],
+              'line_nr' => {
+                'file_name' => '',
+                'line_nr' => 2,
+                'macro' => ''
+              },
+              'parent' => {}
+            },
+            {
+              'parent' => {},
+              'text' => ' '
+            },
+            {
+              'args' => [
+                {
+                  'contents' => [
+                    {
+                      'parent' => {},
+                      'text' => 'i'
+                    }
+                  ],
+                  'parent' => {},
+                  'type' => 'brace_command_arg'
+                }
+              ],
+              'cmdname' => 'dotless',
+              'contents' => [],
+              'line_nr' => {
+                'file_name' => '',
+                'line_nr' => 2,
+                'macro' => ''
+              },
+              'parent' => {}
+            },
+            {
+              'parent' => {},
+              'text' => '
+'
+            },
+            {
+              'args' => [
+                {
+                  'contents' => [
+                    {
+                      'parent' => {},
+                      'text' => 'displaymath'
+                    }
+                  ],
+                  'extra' => {
+                    'spaces_after_argument' => '
+'
+                  },
+                  'parent' => {},
+                  'type' => 'line_arg'
+                }
+              ],
+              'cmdname' => 'end',
+              'extra' => {
+                'command_argument' => 'displaymath',
+                'spaces_before_argument' => ' ',
+                'text_arg' => 'displaymath'
+              },
+              'line_nr' => {
+                'file_name' => '',
+                'line_nr' => 3,
+                'macro' => ''
+              },
+              'parent' => {}
+            }
+          ],
+          'extra' => {
+            'end_command' => {}
+          },
+          'line_nr' => {
+            'file_name' => '',
+            'line_nr' => 1,
+            'macro' => ''
+          },
+          'parent' => {}
+        },
+        {
+          'parent' => {},
+          'text' => '
+',
+          'type' => 'empty_line'
+        },
+        {
+          'contents' => [
+            {
+              'parent' => {},
+              'text' => 'Some '
+            },
+            {
+              'args' => [
+                {
+                  'contents' => [
+                    {
+                      'parent' => {},
+                      'text' => 'a '
+                    },
+                    {
+                      'args' => [
+                        {
+                          'contents' => [],
+                          'parent' => {},
+                          'type' => 'brace_command_arg'
+                        }
+                      ],
+                      'cmdname' => 'minus',
+                      'contents' => [],
+                      'line_nr' => {
+                        'file_name' => '',
+                        'line_nr' => 5,
+                        'macro' => ''
+                      },
+                      'parent' => {}
+                    },
+                    {
+                      'parent' => {},
+                      'text' => ' b '
+                    },
+                    {
+                      'args' => [
+                        {
+                          'contents' => [],
+                          'parent' => {},
+                          'type' => 'brace_command_arg'
+                        }
+                      ],
+                      'cmdname' => 'geq',
+                      'contents' => [],
+                      'line_nr' => {
+                        'file_name' => '',
+                        'line_nr' => 5,
+                        'macro' => ''
+                      },
+                      'parent' => {}
+                    },
+                    {
+                      'parent' => {},
+                      'text' => ' '
+                    },
+                    {
+                      'args' => [
+                        {
+                          'contents' => [],
+                          'parent' => {},
+                          'type' => 'brace_command_arg'
+                        }
+                      ],
+                      'cmdname' => 'AA',
+                      'contents' => [],
+                      'line_nr' => {
+                        'file_name' => '',
+                        'line_nr' => 5,
+                        'macro' => ''
+                      },
+                      'parent' => {}
+                    },
+                    {
+                      'parent' => {},
+                      'text' => ' '
+                    },
+                    {
+                      'args' => [
+                        {
+                          'contents' => [
+                            {
+                              'parent' => {},
+                              'text' => 'e'
+                            }
+                          ],
+                          'parent' => {},
+                          'type' => 'following_arg'
+                        }
+                      ],
+                      'cmdname' => '^',
+                      'contents' => [],
+                      'line_nr' => {
+                        'file_name' => '',
+                        'line_nr' => 5,
+                        'macro' => ''
+                      },
+                      'parent' => {}
+                    }
+                  ],
+                  'parent' => {},
+                  'type' => 'brace_command_context'
+                }
+              ],
+              'cmdname' => 'math',
+              'contents' => [],
+              'line_nr' => {
+                'file_name' => '',
+                'line_nr' => 5,
+                'macro' => ''
+              },
+              'parent' => {}
+            },
+            {
+              'parent' => {},
+              'text' => '.
+'
+            }
+          ],
+          'parent' => {},
+          'type' => 'paragraph'
+        }
+      ],
+      'parent' => {},
+      'type' => 'before_node_section'
+    }
+  ],
+  'type' => 'document_root'
+};
+$result_trees{'mathjax_with_texinfo_enable_encoding'}{'contents'}[0]{'contents'}[0]{'contents'}[0]{'extra'}{'command'}
 = 
$result_trees{'mathjax_with_texinfo_enable_encoding'}{'contents'}[0]{'contents'}[0];
+$result_trees{'mathjax_with_texinfo_enable_encoding'}{'contents'}[0]{'contents'}[0]{'contents'}[0]{'parent'}
 = 
$result_trees{'mathjax_with_texinfo_enable_encoding'}{'contents'}[0]{'contents'}[0];
+$result_trees{'mathjax_with_texinfo_enable_encoding'}{'contents'}[0]{'contents'}[0]{'contents'}[1]{'parent'}
 = 
$result_trees{'mathjax_with_texinfo_enable_encoding'}{'contents'}[0]{'contents'}[0];
+$result_trees{'mathjax_with_texinfo_enable_encoding'}{'contents'}[0]{'contents'}[0]{'contents'}[2]{'args'}[0]{'contents'}[0]{'parent'}
 = 
$result_trees{'mathjax_with_texinfo_enable_encoding'}{'contents'}[0]{'contents'}[0]{'contents'}[2]{'args'}[0];
+$result_trees{'mathjax_with_texinfo_enable_encoding'}{'contents'}[0]{'contents'}[0]{'contents'}[2]{'args'}[0]{'contents'}[1]{'contents'}[0]{'parent'}
 = 
$result_trees{'mathjax_with_texinfo_enable_encoding'}{'contents'}[0]{'contents'}[0]{'contents'}[2]{'args'}[0]{'contents'}[1];
+$result_trees{'mathjax_with_texinfo_enable_encoding'}{'contents'}[0]{'contents'}[0]{'contents'}[2]{'args'}[0]{'contents'}[1]{'parent'}
 = 
$result_trees{'mathjax_with_texinfo_enable_encoding'}{'contents'}[0]{'contents'}[0]{'contents'}[2]{'args'}[0];
+$result_trees{'mathjax_with_texinfo_enable_encoding'}{'contents'}[0]{'contents'}[0]{'contents'}[2]{'args'}[0]{'contents'}[2]{'contents'}[0]{'parent'}
 = 
$result_trees{'mathjax_with_texinfo_enable_encoding'}{'contents'}[0]{'contents'}[0]{'contents'}[2]{'args'}[0]{'contents'}[2];
+$result_trees{'mathjax_with_texinfo_enable_encoding'}{'contents'}[0]{'contents'}[0]{'contents'}[2]{'args'}[0]{'contents'}[2]{'contents'}[1]{'args'}[0]{'parent'}
 = 
$result_trees{'mathjax_with_texinfo_enable_encoding'}{'contents'}[0]{'contents'}[0]{'contents'}[2]{'args'}[0]{'contents'}[2]{'contents'}[1];
+$result_trees{'mathjax_with_texinfo_enable_encoding'}{'contents'}[0]{'contents'}[0]{'contents'}[2]{'args'}[0]{'contents'}[2]{'contents'}[1]{'parent'}
 = 
$result_trees{'mathjax_with_texinfo_enable_encoding'}{'contents'}[0]{'contents'}[0]{'contents'}[2]{'args'}[0]{'contents'}[2];
+$result_trees{'mathjax_with_texinfo_enable_encoding'}{'contents'}[0]{'contents'}[0]{'contents'}[2]{'args'}[0]{'contents'}[2]{'parent'}
 = 
$result_trees{'mathjax_with_texinfo_enable_encoding'}{'contents'}[0]{'contents'}[0]{'contents'}[2]{'args'}[0];
+$result_trees{'mathjax_with_texinfo_enable_encoding'}{'contents'}[0]{'contents'}[0]{'contents'}[2]{'args'}[0]{'parent'}
 = 
$result_trees{'mathjax_with_texinfo_enable_encoding'}{'contents'}[0]{'contents'}[0]{'contents'}[2];
+$result_trees{'mathjax_with_texinfo_enable_encoding'}{'contents'}[0]{'contents'}[0]{'contents'}[2]{'parent'}
 = 
$result_trees{'mathjax_with_texinfo_enable_encoding'}{'contents'}[0]{'contents'}[0];
+$result_trees{'mathjax_with_texinfo_enable_encoding'}{'contents'}[0]{'contents'}[0]{'contents'}[3]{'parent'}
 = 
$result_trees{'mathjax_with_texinfo_enable_encoding'}{'contents'}[0]{'contents'}[0];
+$result_trees{'mathjax_with_texinfo_enable_encoding'}{'contents'}[0]{'contents'}[0]{'contents'}[4]{'args'}[0]{'contents'}[0]{'parent'}
 = 
$result_trees{'mathjax_with_texinfo_enable_encoding'}{'contents'}[0]{'contents'}[0]{'contents'}[4]{'args'}[0];
+$result_trees{'mathjax_with_texinfo_enable_encoding'}{'contents'}[0]{'contents'}[0]{'contents'}[4]{'args'}[0]{'parent'}
 = 
$result_trees{'mathjax_with_texinfo_enable_encoding'}{'contents'}[0]{'contents'}[0]{'contents'}[4];
+$result_trees{'mathjax_with_texinfo_enable_encoding'}{'contents'}[0]{'contents'}[0]{'contents'}[4]{'parent'}
 = 
$result_trees{'mathjax_with_texinfo_enable_encoding'}{'contents'}[0]{'contents'}[0];
+$result_trees{'mathjax_with_texinfo_enable_encoding'}{'contents'}[0]{'contents'}[0]{'contents'}[5]{'parent'}
 = 
$result_trees{'mathjax_with_texinfo_enable_encoding'}{'contents'}[0]{'contents'}[0];
+$result_trees{'mathjax_with_texinfo_enable_encoding'}{'contents'}[0]{'contents'}[0]{'contents'}[6]{'args'}[0]{'contents'}[0]{'parent'}
 = 
$result_trees{'mathjax_with_texinfo_enable_encoding'}{'contents'}[0]{'contents'}[0]{'contents'}[6]{'args'}[0];
+$result_trees{'mathjax_with_texinfo_enable_encoding'}{'contents'}[0]{'contents'}[0]{'contents'}[6]{'args'}[0]{'parent'}
 = 
$result_trees{'mathjax_with_texinfo_enable_encoding'}{'contents'}[0]{'contents'}[0]{'contents'}[6];
+$result_trees{'mathjax_with_texinfo_enable_encoding'}{'contents'}[0]{'contents'}[0]{'contents'}[6]{'parent'}
 = 
$result_trees{'mathjax_with_texinfo_enable_encoding'}{'contents'}[0]{'contents'}[0];
+$result_trees{'mathjax_with_texinfo_enable_encoding'}{'contents'}[0]{'contents'}[0]{'extra'}{'end_command'}
 = 
$result_trees{'mathjax_with_texinfo_enable_encoding'}{'contents'}[0]{'contents'}[0]{'contents'}[6];
+$result_trees{'mathjax_with_texinfo_enable_encoding'}{'contents'}[0]{'contents'}[0]{'parent'}
 = $result_trees{'mathjax_with_texinfo_enable_encoding'}{'contents'}[0];
+$result_trees{'mathjax_with_texinfo_enable_encoding'}{'contents'}[0]{'contents'}[1]{'parent'}
 = $result_trees{'mathjax_with_texinfo_enable_encoding'}{'contents'}[0];
+$result_trees{'mathjax_with_texinfo_enable_encoding'}{'contents'}[0]{'contents'}[2]{'contents'}[0]{'parent'}
 = 
$result_trees{'mathjax_with_texinfo_enable_encoding'}{'contents'}[0]{'contents'}[2];
+$result_trees{'mathjax_with_texinfo_enable_encoding'}{'contents'}[0]{'contents'}[2]{'contents'}[1]{'args'}[0]{'contents'}[0]{'parent'}
 = 
$result_trees{'mathjax_with_texinfo_enable_encoding'}{'contents'}[0]{'contents'}[2]{'contents'}[1]{'args'}[0];
+$result_trees{'mathjax_with_texinfo_enable_encoding'}{'contents'}[0]{'contents'}[2]{'contents'}[1]{'args'}[0]{'contents'}[1]{'args'}[0]{'parent'}
 = 
$result_trees{'mathjax_with_texinfo_enable_encoding'}{'contents'}[0]{'contents'}[2]{'contents'}[1]{'args'}[0]{'contents'}[1];
+$result_trees{'mathjax_with_texinfo_enable_encoding'}{'contents'}[0]{'contents'}[2]{'contents'}[1]{'args'}[0]{'contents'}[1]{'parent'}
 = 
$result_trees{'mathjax_with_texinfo_enable_encoding'}{'contents'}[0]{'contents'}[2]{'contents'}[1]{'args'}[0];
+$result_trees{'mathjax_with_texinfo_enable_encoding'}{'contents'}[0]{'contents'}[2]{'contents'}[1]{'args'}[0]{'contents'}[2]{'parent'}
 = 
$result_trees{'mathjax_with_texinfo_enable_encoding'}{'contents'}[0]{'contents'}[2]{'contents'}[1]{'args'}[0];
+$result_trees{'mathjax_with_texinfo_enable_encoding'}{'contents'}[0]{'contents'}[2]{'contents'}[1]{'args'}[0]{'contents'}[3]{'args'}[0]{'parent'}
 = 
$result_trees{'mathjax_with_texinfo_enable_encoding'}{'contents'}[0]{'contents'}[2]{'contents'}[1]{'args'}[0]{'contents'}[3];
+$result_trees{'mathjax_with_texinfo_enable_encoding'}{'contents'}[0]{'contents'}[2]{'contents'}[1]{'args'}[0]{'contents'}[3]{'parent'}
 = 
$result_trees{'mathjax_with_texinfo_enable_encoding'}{'contents'}[0]{'contents'}[2]{'contents'}[1]{'args'}[0];
+$result_trees{'mathjax_with_texinfo_enable_encoding'}{'contents'}[0]{'contents'}[2]{'contents'}[1]{'args'}[0]{'contents'}[4]{'parent'}
 = 
$result_trees{'mathjax_with_texinfo_enable_encoding'}{'contents'}[0]{'contents'}[2]{'contents'}[1]{'args'}[0];
+$result_trees{'mathjax_with_texinfo_enable_encoding'}{'contents'}[0]{'contents'}[2]{'contents'}[1]{'args'}[0]{'contents'}[5]{'args'}[0]{'parent'}
 = 
$result_trees{'mathjax_with_texinfo_enable_encoding'}{'contents'}[0]{'contents'}[2]{'contents'}[1]{'args'}[0]{'contents'}[5];
+$result_trees{'mathjax_with_texinfo_enable_encoding'}{'contents'}[0]{'contents'}[2]{'contents'}[1]{'args'}[0]{'contents'}[5]{'parent'}
 = 
$result_trees{'mathjax_with_texinfo_enable_encoding'}{'contents'}[0]{'contents'}[2]{'contents'}[1]{'args'}[0];
+$result_trees{'mathjax_with_texinfo_enable_encoding'}{'contents'}[0]{'contents'}[2]{'contents'}[1]{'args'}[0]{'contents'}[6]{'parent'}
 = 
$result_trees{'mathjax_with_texinfo_enable_encoding'}{'contents'}[0]{'contents'}[2]{'contents'}[1]{'args'}[0];
+$result_trees{'mathjax_with_texinfo_enable_encoding'}{'contents'}[0]{'contents'}[2]{'contents'}[1]{'args'}[0]{'contents'}[7]{'args'}[0]{'contents'}[0]{'parent'}
 = 
$result_trees{'mathjax_with_texinfo_enable_encoding'}{'contents'}[0]{'contents'}[2]{'contents'}[1]{'args'}[0]{'contents'}[7]{'args'}[0];
+$result_trees{'mathjax_with_texinfo_enable_encoding'}{'contents'}[0]{'contents'}[2]{'contents'}[1]{'args'}[0]{'contents'}[7]{'args'}[0]{'parent'}
 = 
$result_trees{'mathjax_with_texinfo_enable_encoding'}{'contents'}[0]{'contents'}[2]{'contents'}[1]{'args'}[0]{'contents'}[7];
+$result_trees{'mathjax_with_texinfo_enable_encoding'}{'contents'}[0]{'contents'}[2]{'contents'}[1]{'args'}[0]{'contents'}[7]{'parent'}
 = 
$result_trees{'mathjax_with_texinfo_enable_encoding'}{'contents'}[0]{'contents'}[2]{'contents'}[1]{'args'}[0];
+$result_trees{'mathjax_with_texinfo_enable_encoding'}{'contents'}[0]{'contents'}[2]{'contents'}[1]{'args'}[0]{'parent'}
 = 
$result_trees{'mathjax_with_texinfo_enable_encoding'}{'contents'}[0]{'contents'}[2]{'contents'}[1];
+$result_trees{'mathjax_with_texinfo_enable_encoding'}{'contents'}[0]{'contents'}[2]{'contents'}[1]{'parent'}
 = 
$result_trees{'mathjax_with_texinfo_enable_encoding'}{'contents'}[0]{'contents'}[2];
+$result_trees{'mathjax_with_texinfo_enable_encoding'}{'contents'}[0]{'contents'}[2]{'contents'}[2]{'parent'}
 = 
$result_trees{'mathjax_with_texinfo_enable_encoding'}{'contents'}[0]{'contents'}[2];
+$result_trees{'mathjax_with_texinfo_enable_encoding'}{'contents'}[0]{'contents'}[2]{'parent'}
 = $result_trees{'mathjax_with_texinfo_enable_encoding'}{'contents'}[0];
+$result_trees{'mathjax_with_texinfo_enable_encoding'}{'contents'}[0]{'parent'} 
= $result_trees{'mathjax_with_texinfo_enable_encoding'};
+
+$result_texis{'mathjax_with_texinfo_enable_encoding'} = '@displaymath
+a@sup{b - \\frac{\\xsi}{phi @copyright{}}} @dotless{i}
+@end displaymath
+
+Some @math{a @minus{} b @geq{} @AA{} @^e}.
+';
+
+
+$result_texts{'mathjax_with_texinfo_enable_encoding'} = 'ab - 
\\frac{\\xsi}{phi (C)} i
+
+Some a - b >= AA e^.
+';
+
+$result_errors{'mathjax_with_texinfo_enable_encoding'} = [];
+
+
+$result_floats{'mathjax_with_texinfo_enable_encoding'} = {};
+
+
+
+$result_converted{'html'}->{'mathjax_with_texinfo_enable_encoding'} = 
'<!DOCTYPE html>
+<html>
+<!-- Created by texinfo, http://www.gnu.org/software/texinfo/ -->
+<head>
+<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
+<title>Untitled Document</title>
+
+<meta name="description" content="Untitled Document">
+<meta name="keywords" content="Untitled Document">
+<meta name="resource-type" content="document">
+<meta name="distribution" content="global">
+<meta name="viewport" content="width=device-width,initial-scale=1">
+
+<style type="text/css">
+<!--
+-->
+</style>
+
+<script type=\'text/javascript\'>
+MathJax = {
+  options: {
+    skipHtmlTags: {\'[-]\': [\'pre\']},
+    ignoreHtmlClass: \'tex2jax_ignore\',
+    processHtmlClass: \'tex2jax_process\'
+  },
+};
+</script><script type="text/javascript" id="MathJax-script" async
+  src="https://cdn.jsdelivr.net/npm/mathjax@3/es5/tex-svg.js";>
+</script>
+</head>
+
+<body lang="en" class="tex2jax_ignore">
+<div class="displaymath"><em class="tex2jax_process">\\[a^{b - 
\\frac{\\xsi}{phi \\copyright{}}} ı
+\\]</em></div>
+<p>Some <em class="math tex2jax_process">\\(a - b \\geq{} 
\\mathord{\\text{\\AA{}}} ê\\)</em>.
+</p>
+
+<a href=\'js_licenses.html\' rel=\'jslicense\'><small>JavaScript license 
information</small></a>
+</body>
+</html>
+';
+
+$result_converted_errors{'html'}->{'mathjax_with_texinfo_enable_encoding'} = [
+  {
+    'error_line' => 'warning: must specify a title with a title command or @top
+',
+    'text' => 'must specify a title with a title command or @top',
+    'type' => 'warning'
+  }
+];
+
+
+1;
diff --git 
a/tp/t/results/html_tests/mathjax_with_texinfo_no_convert_to_latex.pl 
b/tp/t/results/html_tests/mathjax_with_texinfo_no_convert_to_latex.pl
new file mode 100644
index 0000000000..726dd13a1d
--- /dev/null
+++ b/tp/t/results/html_tests/mathjax_with_texinfo_no_convert_to_latex.pl
@@ -0,0 +1,419 @@
+use vars qw(%result_texis %result_texts %result_trees %result_errors 
+   %result_indices %result_sectioning %result_nodes %result_menus
+   %result_floats %result_converted %result_converted_errors 
+   %result_elements %result_directions_text %result_indices_sort_strings);
+
+use utf8;
+
+$result_trees{'mathjax_with_texinfo_no_convert_to_latex'} = {
+  'contents' => [
+    {
+      'contents' => [
+        {
+          'cmdname' => 'displaymath',
+          'contents' => [
+            {
+              'extra' => {
+                'command' => {}
+              },
+              'parent' => {},
+              'text' => '
+',
+              'type' => 'empty_line_after_command'
+            },
+            {
+              'parent' => {},
+              'text' => 'a'
+            },
+            {
+              'args' => [
+                {
+                  'contents' => [
+                    {
+                      'parent' => {},
+                      'text' => 'b - \\frac'
+                    },
+                    {
+                      'contents' => [
+                        {
+                          'parent' => {},
+                          'text' => '\\xsi'
+                        }
+                      ],
+                      'line_nr' => {
+                        'file_name' => '',
+                        'line_nr' => 2,
+                        'macro' => ''
+                      },
+                      'parent' => {},
+                      'type' => 'bracketed'
+                    },
+                    {
+                      'contents' => [
+                        {
+                          'parent' => {},
+                          'text' => 'phi '
+                        },
+                        {
+                          'args' => [
+                            {
+                              'contents' => [],
+                              'parent' => {},
+                              'type' => 'brace_command_arg'
+                            }
+                          ],
+                          'cmdname' => 'copyright',
+                          'contents' => [],
+                          'line_nr' => {
+                            'file_name' => '',
+                            'line_nr' => 2,
+                            'macro' => ''
+                          },
+                          'parent' => {}
+                        }
+                      ],
+                      'line_nr' => {
+                        'file_name' => '',
+                        'line_nr' => 2,
+                        'macro' => ''
+                      },
+                      'parent' => {},
+                      'type' => 'bracketed'
+                    }
+                  ],
+                  'parent' => {},
+                  'type' => 'brace_command_arg'
+                }
+              ],
+              'cmdname' => 'sup',
+              'contents' => [],
+              'line_nr' => {
+                'file_name' => '',
+                'line_nr' => 2,
+                'macro' => ''
+              },
+              'parent' => {}
+            },
+            {
+              'parent' => {},
+              'text' => ' '
+            },
+            {
+              'args' => [
+                {
+                  'contents' => [
+                    {
+                      'parent' => {},
+                      'text' => 'i'
+                    }
+                  ],
+                  'parent' => {},
+                  'type' => 'brace_command_arg'
+                }
+              ],
+              'cmdname' => 'dotless',
+              'contents' => [],
+              'line_nr' => {
+                'file_name' => '',
+                'line_nr' => 2,
+                'macro' => ''
+              },
+              'parent' => {}
+            },
+            {
+              'parent' => {},
+              'text' => '
+'
+            },
+            {
+              'args' => [
+                {
+                  'contents' => [
+                    {
+                      'parent' => {},
+                      'text' => 'displaymath'
+                    }
+                  ],
+                  'extra' => {
+                    'spaces_after_argument' => '
+'
+                  },
+                  'parent' => {},
+                  'type' => 'line_arg'
+                }
+              ],
+              'cmdname' => 'end',
+              'extra' => {
+                'command_argument' => 'displaymath',
+                'spaces_before_argument' => ' ',
+                'text_arg' => 'displaymath'
+              },
+              'line_nr' => {
+                'file_name' => '',
+                'line_nr' => 3,
+                'macro' => ''
+              },
+              'parent' => {}
+            }
+          ],
+          'extra' => {
+            'end_command' => {}
+          },
+          'line_nr' => {
+            'file_name' => '',
+            'line_nr' => 1,
+            'macro' => ''
+          },
+          'parent' => {}
+        },
+        {
+          'parent' => {},
+          'text' => '
+',
+          'type' => 'empty_line'
+        },
+        {
+          'contents' => [
+            {
+              'parent' => {},
+              'text' => 'Some '
+            },
+            {
+              'args' => [
+                {
+                  'contents' => [
+                    {
+                      'parent' => {},
+                      'text' => 'a '
+                    },
+                    {
+                      'args' => [
+                        {
+                          'contents' => [],
+                          'parent' => {},
+                          'type' => 'brace_command_arg'
+                        }
+                      ],
+                      'cmdname' => 'minus',
+                      'contents' => [],
+                      'line_nr' => {
+                        'file_name' => '',
+                        'line_nr' => 5,
+                        'macro' => ''
+                      },
+                      'parent' => {}
+                    },
+                    {
+                      'parent' => {},
+                      'text' => ' b '
+                    },
+                    {
+                      'args' => [
+                        {
+                          'contents' => [],
+                          'parent' => {},
+                          'type' => 'brace_command_arg'
+                        }
+                      ],
+                      'cmdname' => 'geq',
+                      'contents' => [],
+                      'line_nr' => {
+                        'file_name' => '',
+                        'line_nr' => 5,
+                        'macro' => ''
+                      },
+                      'parent' => {}
+                    },
+                    {
+                      'parent' => {},
+                      'text' => ' '
+                    },
+                    {
+                      'args' => [
+                        {
+                          'contents' => [],
+                          'parent' => {},
+                          'type' => 'brace_command_arg'
+                        }
+                      ],
+                      'cmdname' => 'AA',
+                      'contents' => [],
+                      'line_nr' => {
+                        'file_name' => '',
+                        'line_nr' => 5,
+                        'macro' => ''
+                      },
+                      'parent' => {}
+                    },
+                    {
+                      'parent' => {},
+                      'text' => ' '
+                    },
+                    {
+                      'args' => [
+                        {
+                          'contents' => [
+                            {
+                              'parent' => {},
+                              'text' => 'e'
+                            }
+                          ],
+                          'parent' => {},
+                          'type' => 'following_arg'
+                        }
+                      ],
+                      'cmdname' => '^',
+                      'contents' => [],
+                      'line_nr' => {
+                        'file_name' => '',
+                        'line_nr' => 5,
+                        'macro' => ''
+                      },
+                      'parent' => {}
+                    }
+                  ],
+                  'parent' => {},
+                  'type' => 'brace_command_context'
+                }
+              ],
+              'cmdname' => 'math',
+              'contents' => [],
+              'line_nr' => {
+                'file_name' => '',
+                'line_nr' => 5,
+                'macro' => ''
+              },
+              'parent' => {}
+            },
+            {
+              'parent' => {},
+              'text' => '.
+'
+            }
+          ],
+          'parent' => {},
+          'type' => 'paragraph'
+        }
+      ],
+      'parent' => {},
+      'type' => 'before_node_section'
+    }
+  ],
+  'type' => 'document_root'
+};
+$result_trees{'mathjax_with_texinfo_no_convert_to_latex'}{'contents'}[0]{'contents'}[0]{'contents'}[0]{'extra'}{'command'}
 = 
$result_trees{'mathjax_with_texinfo_no_convert_to_latex'}{'contents'}[0]{'contents'}[0];
+$result_trees{'mathjax_with_texinfo_no_convert_to_latex'}{'contents'}[0]{'contents'}[0]{'contents'}[0]{'parent'}
 = 
$result_trees{'mathjax_with_texinfo_no_convert_to_latex'}{'contents'}[0]{'contents'}[0];
+$result_trees{'mathjax_with_texinfo_no_convert_to_latex'}{'contents'}[0]{'contents'}[0]{'contents'}[1]{'parent'}
 = 
$result_trees{'mathjax_with_texinfo_no_convert_to_latex'}{'contents'}[0]{'contents'}[0];
+$result_trees{'mathjax_with_texinfo_no_convert_to_latex'}{'contents'}[0]{'contents'}[0]{'contents'}[2]{'args'}[0]{'contents'}[0]{'parent'}
 = 
$result_trees{'mathjax_with_texinfo_no_convert_to_latex'}{'contents'}[0]{'contents'}[0]{'contents'}[2]{'args'}[0];
+$result_trees{'mathjax_with_texinfo_no_convert_to_latex'}{'contents'}[0]{'contents'}[0]{'contents'}[2]{'args'}[0]{'contents'}[1]{'contents'}[0]{'parent'}
 = 
$result_trees{'mathjax_with_texinfo_no_convert_to_latex'}{'contents'}[0]{'contents'}[0]{'contents'}[2]{'args'}[0]{'contents'}[1];
+$result_trees{'mathjax_with_texinfo_no_convert_to_latex'}{'contents'}[0]{'contents'}[0]{'contents'}[2]{'args'}[0]{'contents'}[1]{'parent'}
 = 
$result_trees{'mathjax_with_texinfo_no_convert_to_latex'}{'contents'}[0]{'contents'}[0]{'contents'}[2]{'args'}[0];
+$result_trees{'mathjax_with_texinfo_no_convert_to_latex'}{'contents'}[0]{'contents'}[0]{'contents'}[2]{'args'}[0]{'contents'}[2]{'contents'}[0]{'parent'}
 = 
$result_trees{'mathjax_with_texinfo_no_convert_to_latex'}{'contents'}[0]{'contents'}[0]{'contents'}[2]{'args'}[0]{'contents'}[2];
+$result_trees{'mathjax_with_texinfo_no_convert_to_latex'}{'contents'}[0]{'contents'}[0]{'contents'}[2]{'args'}[0]{'contents'}[2]{'contents'}[1]{'args'}[0]{'parent'}
 = 
$result_trees{'mathjax_with_texinfo_no_convert_to_latex'}{'contents'}[0]{'contents'}[0]{'contents'}[2]{'args'}[0]{'contents'}[2]{'contents'}[1];
+$result_trees{'mathjax_with_texinfo_no_convert_to_latex'}{'contents'}[0]{'contents'}[0]{'contents'}[2]{'args'}[0]{'contents'}[2]{'contents'}[1]{'parent'}
 = 
$result_trees{'mathjax_with_texinfo_no_convert_to_latex'}{'contents'}[0]{'contents'}[0]{'contents'}[2]{'args'}[0]{'contents'}[2];
+$result_trees{'mathjax_with_texinfo_no_convert_to_latex'}{'contents'}[0]{'contents'}[0]{'contents'}[2]{'args'}[0]{'contents'}[2]{'parent'}
 = 
$result_trees{'mathjax_with_texinfo_no_convert_to_latex'}{'contents'}[0]{'contents'}[0]{'contents'}[2]{'args'}[0];
+$result_trees{'mathjax_with_texinfo_no_convert_to_latex'}{'contents'}[0]{'contents'}[0]{'contents'}[2]{'args'}[0]{'parent'}
 = 
$result_trees{'mathjax_with_texinfo_no_convert_to_latex'}{'contents'}[0]{'contents'}[0]{'contents'}[2];
+$result_trees{'mathjax_with_texinfo_no_convert_to_latex'}{'contents'}[0]{'contents'}[0]{'contents'}[2]{'parent'}
 = 
$result_trees{'mathjax_with_texinfo_no_convert_to_latex'}{'contents'}[0]{'contents'}[0];
+$result_trees{'mathjax_with_texinfo_no_convert_to_latex'}{'contents'}[0]{'contents'}[0]{'contents'}[3]{'parent'}
 = 
$result_trees{'mathjax_with_texinfo_no_convert_to_latex'}{'contents'}[0]{'contents'}[0];
+$result_trees{'mathjax_with_texinfo_no_convert_to_latex'}{'contents'}[0]{'contents'}[0]{'contents'}[4]{'args'}[0]{'contents'}[0]{'parent'}
 = 
$result_trees{'mathjax_with_texinfo_no_convert_to_latex'}{'contents'}[0]{'contents'}[0]{'contents'}[4]{'args'}[0];
+$result_trees{'mathjax_with_texinfo_no_convert_to_latex'}{'contents'}[0]{'contents'}[0]{'contents'}[4]{'args'}[0]{'parent'}
 = 
$result_trees{'mathjax_with_texinfo_no_convert_to_latex'}{'contents'}[0]{'contents'}[0]{'contents'}[4];
+$result_trees{'mathjax_with_texinfo_no_convert_to_latex'}{'contents'}[0]{'contents'}[0]{'contents'}[4]{'parent'}
 = 
$result_trees{'mathjax_with_texinfo_no_convert_to_latex'}{'contents'}[0]{'contents'}[0];
+$result_trees{'mathjax_with_texinfo_no_convert_to_latex'}{'contents'}[0]{'contents'}[0]{'contents'}[5]{'parent'}
 = 
$result_trees{'mathjax_with_texinfo_no_convert_to_latex'}{'contents'}[0]{'contents'}[0];
+$result_trees{'mathjax_with_texinfo_no_convert_to_latex'}{'contents'}[0]{'contents'}[0]{'contents'}[6]{'args'}[0]{'contents'}[0]{'parent'}
 = 
$result_trees{'mathjax_with_texinfo_no_convert_to_latex'}{'contents'}[0]{'contents'}[0]{'contents'}[6]{'args'}[0];
+$result_trees{'mathjax_with_texinfo_no_convert_to_latex'}{'contents'}[0]{'contents'}[0]{'contents'}[6]{'args'}[0]{'parent'}
 = 
$result_trees{'mathjax_with_texinfo_no_convert_to_latex'}{'contents'}[0]{'contents'}[0]{'contents'}[6];
+$result_trees{'mathjax_with_texinfo_no_convert_to_latex'}{'contents'}[0]{'contents'}[0]{'contents'}[6]{'parent'}
 = 
$result_trees{'mathjax_with_texinfo_no_convert_to_latex'}{'contents'}[0]{'contents'}[0];
+$result_trees{'mathjax_with_texinfo_no_convert_to_latex'}{'contents'}[0]{'contents'}[0]{'extra'}{'end_command'}
 = 
$result_trees{'mathjax_with_texinfo_no_convert_to_latex'}{'contents'}[0]{'contents'}[0]{'contents'}[6];
+$result_trees{'mathjax_with_texinfo_no_convert_to_latex'}{'contents'}[0]{'contents'}[0]{'parent'}
 = $result_trees{'mathjax_with_texinfo_no_convert_to_latex'}{'contents'}[0];
+$result_trees{'mathjax_with_texinfo_no_convert_to_latex'}{'contents'}[0]{'contents'}[1]{'parent'}
 = $result_trees{'mathjax_with_texinfo_no_convert_to_latex'}{'contents'}[0];
+$result_trees{'mathjax_with_texinfo_no_convert_to_latex'}{'contents'}[0]{'contents'}[2]{'contents'}[0]{'parent'}
 = 
$result_trees{'mathjax_with_texinfo_no_convert_to_latex'}{'contents'}[0]{'contents'}[2];
+$result_trees{'mathjax_with_texinfo_no_convert_to_latex'}{'contents'}[0]{'contents'}[2]{'contents'}[1]{'args'}[0]{'contents'}[0]{'parent'}
 = 
$result_trees{'mathjax_with_texinfo_no_convert_to_latex'}{'contents'}[0]{'contents'}[2]{'contents'}[1]{'args'}[0];
+$result_trees{'mathjax_with_texinfo_no_convert_to_latex'}{'contents'}[0]{'contents'}[2]{'contents'}[1]{'args'}[0]{'contents'}[1]{'args'}[0]{'parent'}
 = 
$result_trees{'mathjax_with_texinfo_no_convert_to_latex'}{'contents'}[0]{'contents'}[2]{'contents'}[1]{'args'}[0]{'contents'}[1];
+$result_trees{'mathjax_with_texinfo_no_convert_to_latex'}{'contents'}[0]{'contents'}[2]{'contents'}[1]{'args'}[0]{'contents'}[1]{'parent'}
 = 
$result_trees{'mathjax_with_texinfo_no_convert_to_latex'}{'contents'}[0]{'contents'}[2]{'contents'}[1]{'args'}[0];
+$result_trees{'mathjax_with_texinfo_no_convert_to_latex'}{'contents'}[0]{'contents'}[2]{'contents'}[1]{'args'}[0]{'contents'}[2]{'parent'}
 = 
$result_trees{'mathjax_with_texinfo_no_convert_to_latex'}{'contents'}[0]{'contents'}[2]{'contents'}[1]{'args'}[0];
+$result_trees{'mathjax_with_texinfo_no_convert_to_latex'}{'contents'}[0]{'contents'}[2]{'contents'}[1]{'args'}[0]{'contents'}[3]{'args'}[0]{'parent'}
 = 
$result_trees{'mathjax_with_texinfo_no_convert_to_latex'}{'contents'}[0]{'contents'}[2]{'contents'}[1]{'args'}[0]{'contents'}[3];
+$result_trees{'mathjax_with_texinfo_no_convert_to_latex'}{'contents'}[0]{'contents'}[2]{'contents'}[1]{'args'}[0]{'contents'}[3]{'parent'}
 = 
$result_trees{'mathjax_with_texinfo_no_convert_to_latex'}{'contents'}[0]{'contents'}[2]{'contents'}[1]{'args'}[0];
+$result_trees{'mathjax_with_texinfo_no_convert_to_latex'}{'contents'}[0]{'contents'}[2]{'contents'}[1]{'args'}[0]{'contents'}[4]{'parent'}
 = 
$result_trees{'mathjax_with_texinfo_no_convert_to_latex'}{'contents'}[0]{'contents'}[2]{'contents'}[1]{'args'}[0];
+$result_trees{'mathjax_with_texinfo_no_convert_to_latex'}{'contents'}[0]{'contents'}[2]{'contents'}[1]{'args'}[0]{'contents'}[5]{'args'}[0]{'parent'}
 = 
$result_trees{'mathjax_with_texinfo_no_convert_to_latex'}{'contents'}[0]{'contents'}[2]{'contents'}[1]{'args'}[0]{'contents'}[5];
+$result_trees{'mathjax_with_texinfo_no_convert_to_latex'}{'contents'}[0]{'contents'}[2]{'contents'}[1]{'args'}[0]{'contents'}[5]{'parent'}
 = 
$result_trees{'mathjax_with_texinfo_no_convert_to_latex'}{'contents'}[0]{'contents'}[2]{'contents'}[1]{'args'}[0];
+$result_trees{'mathjax_with_texinfo_no_convert_to_latex'}{'contents'}[0]{'contents'}[2]{'contents'}[1]{'args'}[0]{'contents'}[6]{'parent'}
 = 
$result_trees{'mathjax_with_texinfo_no_convert_to_latex'}{'contents'}[0]{'contents'}[2]{'contents'}[1]{'args'}[0];
+$result_trees{'mathjax_with_texinfo_no_convert_to_latex'}{'contents'}[0]{'contents'}[2]{'contents'}[1]{'args'}[0]{'contents'}[7]{'args'}[0]{'contents'}[0]{'parent'}
 = 
$result_trees{'mathjax_with_texinfo_no_convert_to_latex'}{'contents'}[0]{'contents'}[2]{'contents'}[1]{'args'}[0]{'contents'}[7]{'args'}[0];
+$result_trees{'mathjax_with_texinfo_no_convert_to_latex'}{'contents'}[0]{'contents'}[2]{'contents'}[1]{'args'}[0]{'contents'}[7]{'args'}[0]{'parent'}
 = 
$result_trees{'mathjax_with_texinfo_no_convert_to_latex'}{'contents'}[0]{'contents'}[2]{'contents'}[1]{'args'}[0]{'contents'}[7];
+$result_trees{'mathjax_with_texinfo_no_convert_to_latex'}{'contents'}[0]{'contents'}[2]{'contents'}[1]{'args'}[0]{'contents'}[7]{'parent'}
 = 
$result_trees{'mathjax_with_texinfo_no_convert_to_latex'}{'contents'}[0]{'contents'}[2]{'contents'}[1]{'args'}[0];
+$result_trees{'mathjax_with_texinfo_no_convert_to_latex'}{'contents'}[0]{'contents'}[2]{'contents'}[1]{'args'}[0]{'parent'}
 = 
$result_trees{'mathjax_with_texinfo_no_convert_to_latex'}{'contents'}[0]{'contents'}[2]{'contents'}[1];
+$result_trees{'mathjax_with_texinfo_no_convert_to_latex'}{'contents'}[0]{'contents'}[2]{'contents'}[1]{'parent'}
 = 
$result_trees{'mathjax_with_texinfo_no_convert_to_latex'}{'contents'}[0]{'contents'}[2];
+$result_trees{'mathjax_with_texinfo_no_convert_to_latex'}{'contents'}[0]{'contents'}[2]{'contents'}[2]{'parent'}
 = 
$result_trees{'mathjax_with_texinfo_no_convert_to_latex'}{'contents'}[0]{'contents'}[2];
+$result_trees{'mathjax_with_texinfo_no_convert_to_latex'}{'contents'}[0]{'contents'}[2]{'parent'}
 = $result_trees{'mathjax_with_texinfo_no_convert_to_latex'}{'contents'}[0];
+$result_trees{'mathjax_with_texinfo_no_convert_to_latex'}{'contents'}[0]{'parent'}
 = $result_trees{'mathjax_with_texinfo_no_convert_to_latex'};
+
+$result_texis{'mathjax_with_texinfo_no_convert_to_latex'} = '@displaymath
+a@sup{b - \\frac{\\xsi}{phi @copyright{}}} @dotless{i}
+@end displaymath
+
+Some @math{a @minus{} b @geq{} @AA{} @^e}.
+';
+
+
+$result_texts{'mathjax_with_texinfo_no_convert_to_latex'} = 'ab - 
\\frac{\\xsi}{phi (C)} i
+
+Some a - b >= AA e^.
+';
+
+$result_errors{'mathjax_with_texinfo_no_convert_to_latex'} = [];
+
+
+$result_floats{'mathjax_with_texinfo_no_convert_to_latex'} = {};
+
+
+
+$result_converted{'html'}->{'mathjax_with_texinfo_no_convert_to_latex'} = 
'<!DOCTYPE html>
+<html>
+<!-- Created by texinfo, http://www.gnu.org/software/texinfo/ -->
+<head>
+<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
+<title>Untitled Document</title>
+
+<meta name="description" content="Untitled Document">
+<meta name="keywords" content="Untitled Document">
+<meta name="resource-type" content="document">
+<meta name="distribution" content="global">
+<meta name="viewport" content="width=device-width,initial-scale=1">
+
+<style type="text/css">
+<!--
+-->
+</style>
+
+<script type=\'text/javascript\'>
+MathJax = {
+  options: {
+    skipHtmlTags: {\'[-]\': [\'pre\']},
+    ignoreHtmlClass: \'tex2jax_ignore\',
+    processHtmlClass: \'tex2jax_process\'
+  },
+};
+</script><script type="text/javascript" id="MathJax-script" async
+  src="https://cdn.jsdelivr.net/npm/mathjax@3/es5/tex-svg.js";>
+</script>
+</head>
+
+<body lang="en" class="tex2jax_ignore">
+<div class="displaymath"><em class="tex2jax_process">\\[a<sup class="sup">b - 
\\frac{\\xsi}{phi &copy;}</sup> i
+\\]</em></div>
+<p>Some <em class="math tex2jax_process">\\(a - b &ge; &Aring; &ecirc;\\)</em>.
+</p>
+
+<a href=\'js_licenses.html\' rel=\'jslicense\'><small>JavaScript license 
information</small></a>
+</body>
+</html>
+';
+
+$result_converted_errors{'html'}->{'mathjax_with_texinfo_no_convert_to_latex'} 
= [
+  {
+    'error_line' => 'warning: must specify a title with a title command or @top
+',
+    'text' => 'must specify a title with a title command or @top',
+    'type' => 'warning'
+  }
+];
+
+
+1;
diff --git a/tp/tests/layout/res_parser/formatting_mathjax/formatting.html 
b/tp/tests/layout/res_parser/formatting_mathjax/formatting.html
index bb15b15f50..e50593d2a3 100644
--- a/tp/tests/layout/res_parser/formatting_mathjax/formatting.html
+++ b/tp/tests/layout/res_parser/formatting_mathjax/formatting.html
@@ -1059,31 +1059,29 @@ but , ,
 After clickstyle &rArr;
 <code class="code">@clicksequence{click @click{} A}</code> click &rArr; A
 </p>
-<div class="displaymath"><em class="tex2jax_process">\[<strong 
class="strong">``simple-double--three---four----''</strong> aa<!-- /@w -->
-`<!-- /@w -->`simple-double-<!-- /@w -->-three---four----'<!-- /@w -->'
-
+<div class="displaymath"><em 
class="tex2jax_process">\[\mathbf{``simple-double--three---four----''} \hbox{aa}
+`\hbox{}`simple-double-\hbox{}-three---four----'\hbox{}'
 \]</em></div>
-<div class="displaymath"><em class="tex2jax_process">\[&uuml; &Uuml; &ntilde; 
&acirc; &eacute; &#333; &igrave; &eacute; i j &#274;&#768;
-&#322; &#262;&#807; &#262;&#807; &ccedil; a&#779; &#551; &aring; a&#865;
-&#259; a&#818; &#7841; &#462; &#261; a<sup class="sup">h</sup><sub 
class="sub">l</sub>
-
- &nbsp;&nbsp; &nbsp;   ! ? . @ } { 
-a sunny day
+<div class="displaymath"><em class="tex2jax_process">\[\ddot{u} \ddot{U} 
\tilde{n} \hat{a} \acute{e} \bar{o} \grave{i} \acute{e} \imath{} \jmath{} 
\grave{\bar{E}}
+\mathord{\text{\l{}}} \textsl{\c{\'{C}}} \textsl{\c{\'{C}}} \textsl{\c{c}} 
\textsl{\H{a}} \dot{a} \mathring{a} \textsl{\t{a}}
+\breve{a} \textsl{\b{a}} \textsl{\d{a}} \check{a} \textsl{\k{a}} a^{h}_{l}
+ \ {}\ {} \ {}\-{}   ! ? . @ \} \{ 
+\today{}
 \]</em></div>
-<div class="displaymath"><em class="tex2jax_process">\[&rarr;
-&#x0075;
-TeX LaTeX &bull; &copy; &hellip; ... &equiv;
-error&rarr; &rarr; - &lowast; -| &rArr;
-&aring; &Aring; &aelig; &oelig; &AElig; &OElig; &oslash; &Oslash; &szlig; 
&#322; &#321; &ETH;
-&THORN; &eth; &thorn; &iexcl; &iquest; &pound;
-&reg; &ordf; &ordm; , 
+<div class="displaymath"><em class="tex2jax_process">\[\rightarrow{}
+u
+TeX LaTeX \bullet{} \copyright{} \dots{} \dots{} \equiv{}
+\fbox{error} \mapsto{} - \star{} \dashv{} \Rightarrow{}
+\mathord{\text{\aa{}}} \mathord{\text{\AA{}}} \mathord{\text{\ae{}}} 
\mathord{\text{\oe{}}} \mathord{\text{\AE{}}} \mathord{\text{\OE{}}} 
\mathord{\text{\o{}}} \mathord{\text{\O{}}} \mathord{\text{\ss{}}} 
\mathord{\text{\l{}}} \mathord{\text{\L{}}} \mathord{\text{\DH{}}}
+\mathord{\text{\TH{}}} \mathord{\text{\dh{}}} \mathord{\text{\th{}}} 
\mathord{\text{\textexclamdown{}}} \mathord{\text{\textquestiondown{}}} 
\mathsterling{}
+\circledR{} \mathord{\text{\textordfeminine{}}} 
\mathord{\text{\textordmasculine{}}} , 
 \]</em></div>
-<div class="displaymath"><em class="tex2jax_process">\[&ldquo; &rdquo; 
-&lsquo; &rsquo; &bdquo; &sbquo; &laquo;
-&raquo; &laquo; &raquo; &lsaquo;
-&rsaquo; &deg; &euro; &rarr; &le; &ge;
+<div class="displaymath"><em 
class="tex2jax_process">\[\mathord{\text{\textquotedblleft{}}} 
\mathord{\text{\textquotedblright{}}} 
+\mathord{\text{\textquoteleft{}}} \mathord{\text{\textquoteright{}}} 
\mathord{\text{\quotedblbase{}}} \mathord{\text{\quotesinglbase{}}} 
\mathord{\text{\guillemotleft{}}}
+\mathord{\text{\guillemotright{}}} \mathord{\text{\guillemotleft{}}} 
\mathord{\text{\guillemotright{}}} \mathord{\text{\guilsinglleft{}}}
+\mathord{\text{\guilsinglright{}}} ^{\circ{}} \euro{} \rightarrow{} \leq{} 
\geq{}
 \]</em></div>
-<div class="displaymath"><em class="tex2jax_process">\[<b class="b">b</b> <i 
class="i">i</i> <span class="r">r</span> <small class="sc">SC</small> <code 
class="t">t</code> <span class="sansserif">sansserif</span> <i 
class="slanted">slanted</i>
+<div class="displaymath"><em class="tex2jax_process">\[\mathbf{b} \mathit{i} 
\mathrm{r} sc \mathtt{t} \mathsf{sansserif} slanted
 \]</em></div>
 <p><kbd class="kbd">default kbdinputstyle</kbd>
 </p><dl class="vtable">
@@ -1356,7 +1354,7 @@ $ wget 
'http://savannah.gnu.org/cgi-bin/viewcvs/config/config/config.sub?rev=HEA
 </pre></div>
 
 <div class="displaymath"><em class="tex2jax_process">\[disp--laymath
-f(x) = {1 \over \sigma \sqrt{2\pi}}e<sup class="sup">-{1 \over 2}\left({x-\mu 
\over \sigma}\right)^2</sup>
+f(x) = {1 \over \sigma \sqrt{2\pi}}e^{-{1 \over 2}\left({x-\mu \over 
\sigma}\right)^2}
 \]</em></div>
 <dl class="first-deffn">
 <dt class="deffn" id="index-titlepage-d_002d_002deffn_005fname"><span 
class="category-def">c--ategory: </span><span><strong 
class="strong">d--effn_name</strong> <em class="emph">a--rguments...</em><a 
class="copiable-link" href='#index-titlepage-d_002d_002deffn_005fname'> 
&para;</a></span></dt>
@@ -2074,31 +2072,29 @@ but , ,
 After clickstyle &rArr;
 <code class="code">@clicksequence{click @click{} A}</code> click &rArr; A
 </p>
-<div class="displaymath"><em class="tex2jax_process">\[<strong 
class="strong">``simple-double--three---four----''</strong> aa<!-- /@w -->
-`<!-- /@w -->`simple-double-<!-- /@w -->-three---four----'<!-- /@w -->'
-
+<div class="displaymath"><em 
class="tex2jax_process">\[\mathbf{``simple-double--three---four----''} \hbox{aa}
+`\hbox{}`simple-double-\hbox{}-three---four----'\hbox{}'
 \]</em></div>
-<div class="displaymath"><em class="tex2jax_process">\[&uuml; &Uuml; &ntilde; 
&acirc; &eacute; &#333; &igrave; &eacute; i j &#274;&#768;
-&#322; &#262;&#807; &#262;&#807; &ccedil; a&#779; &#551; &aring; a&#865;
-&#259; a&#818; &#7841; &#462; &#261; a<sup class="sup">h</sup><sub 
class="sub">l</sub>
-
- &nbsp;&nbsp; &nbsp;   ! ? . @ } { 
-a sunny day
+<div class="displaymath"><em class="tex2jax_process">\[\ddot{u} \ddot{U} 
\tilde{n} \hat{a} \acute{e} \bar{o} \grave{i} \acute{e} \imath{} \jmath{} 
\grave{\bar{E}}
+\mathord{\text{\l{}}} \textsl{\c{\'{C}}} \textsl{\c{\'{C}}} \textsl{\c{c}} 
\textsl{\H{a}} \dot{a} \mathring{a} \textsl{\t{a}}
+\breve{a} \textsl{\b{a}} \textsl{\d{a}} \check{a} \textsl{\k{a}} a^{h}_{l}
+ \ {}\ {} \ {}\-{}   ! ? . @ \} \{ 
+\today{}
 \]</em></div>
-<div class="displaymath"><em class="tex2jax_process">\[&rarr;
-&#x0075;
-TeX LaTeX &bull; &copy; &hellip; ... &equiv;
-error&rarr; &rarr; - &lowast; -| &rArr;
-&aring; &Aring; &aelig; &oelig; &AElig; &OElig; &oslash; &Oslash; &szlig; 
&#322; &#321; &ETH;
-&THORN; &eth; &thorn; &iexcl; &iquest; &pound;
-&reg; &ordf; &ordm; , 
+<div class="displaymath"><em class="tex2jax_process">\[\rightarrow{}
+u
+TeX LaTeX \bullet{} \copyright{} \dots{} \dots{} \equiv{}
+\fbox{error} \mapsto{} - \star{} \dashv{} \Rightarrow{}
+\mathord{\text{\aa{}}} \mathord{\text{\AA{}}} \mathord{\text{\ae{}}} 
\mathord{\text{\oe{}}} \mathord{\text{\AE{}}} \mathord{\text{\OE{}}} 
\mathord{\text{\o{}}} \mathord{\text{\O{}}} \mathord{\text{\ss{}}} 
\mathord{\text{\l{}}} \mathord{\text{\L{}}} \mathord{\text{\DH{}}}
+\mathord{\text{\TH{}}} \mathord{\text{\dh{}}} \mathord{\text{\th{}}} 
\mathord{\text{\textexclamdown{}}} \mathord{\text{\textquestiondown{}}} 
\mathsterling{}
+\circledR{} \mathord{\text{\textordfeminine{}}} 
\mathord{\text{\textordmasculine{}}} , 
 \]</em></div>
-<div class="displaymath"><em class="tex2jax_process">\[&ldquo; &rdquo; 
-&lsquo; &rsquo; &bdquo; &sbquo; &laquo;
-&raquo; &laquo; &raquo; &lsaquo;
-&rsaquo; &deg; &euro; &rarr; &le; &ge;
+<div class="displaymath"><em 
class="tex2jax_process">\[\mathord{\text{\textquotedblleft{}}} 
\mathord{\text{\textquotedblright{}}} 
+\mathord{\text{\textquoteleft{}}} \mathord{\text{\textquoteright{}}} 
\mathord{\text{\quotedblbase{}}} \mathord{\text{\quotesinglbase{}}} 
\mathord{\text{\guillemotleft{}}}
+\mathord{\text{\guillemotright{}}} \mathord{\text{\guillemotleft{}}} 
\mathord{\text{\guillemotright{}}} \mathord{\text{\guilsinglleft{}}}
+\mathord{\text{\guilsinglright{}}} ^{\circ{}} \euro{} \rightarrow{} \leq{} 
\geq{}
 \]</em></div>
-<div class="displaymath"><em class="tex2jax_process">\[<b class="b">b</b> <i 
class="i">i</i> <span class="r">r</span> <small class="sc">SC</small> <code 
class="t">t</code> <span class="sansserif">sansserif</span> <i 
class="slanted">slanted</i>
+<div class="displaymath"><em class="tex2jax_process">\[\mathbf{b} \mathit{i} 
\mathrm{r} sc \mathtt{t} \mathsf{sansserif} slanted
 \]</em></div>
 <p><kbd class="kbd">default kbdinputstyle</kbd>
 </p><dl class="vtable">
@@ -2371,7 +2367,7 @@ $ wget 
'http://savannah.gnu.org/cgi-bin/viewcvs/config/config/config.sub?rev=HEA
 </pre></div>
 
 <div class="displaymath"><em class="tex2jax_process">\[disp--laymath
-f(x) = {1 \over \sigma \sqrt{2\pi}}e<sup class="sup">-{1 \over 2}\left({x-\mu 
\over \sigma}\right)^2</sup>
+f(x) = {1 \over \sigma \sqrt{2\pi}}e^{-{1 \over 2}\left({x-\mu \over 
\sigma}\right)^2}
 \]</em></div>
 <dl class="first-deffn">
 <dt class="deffn" id="index-copying-d_002d_002deffn_005fname"><span 
class="category-def">c--ategory: </span><span><strong 
class="strong">d--effn_name</strong> <em class="emph">a--rguments...</em><a 
class="copiable-link" href='#index-copying-d_002d_002deffn_005fname'> 
&para;</a></span></dt>
@@ -3145,31 +3141,29 @@ but , ,
 After clickstyle &rArr;
 <code class="code">@clicksequence{click @click{} A}</code> click &rArr; A
 </p>
-<div class="displaymath"><em class="tex2jax_process">\[<strong 
class="strong">``simple-double--three---four----''</strong> aa<!-- /@w -->
-`<!-- /@w -->`simple-double-<!-- /@w -->-three---four----'<!-- /@w -->'
-
+<div class="displaymath"><em 
class="tex2jax_process">\[\mathbf{``simple-double--three---four----''} \hbox{aa}
+`\hbox{}`simple-double-\hbox{}-three---four----'\hbox{}'
 \]</em></div>
-<div class="displaymath"><em class="tex2jax_process">\[&uuml; &Uuml; &ntilde; 
&acirc; &eacute; &#333; &igrave; &eacute; i j &#274;&#768;
-&#322; &#262;&#807; &#262;&#807; &ccedil; a&#779; &#551; &aring; a&#865;
-&#259; a&#818; &#7841; &#462; &#261; a<sup class="sup">h</sup><sub 
class="sub">l</sub>
-
- &nbsp;&nbsp; &nbsp;   ! ? . @ } { 
-a sunny day
+<div class="displaymath"><em class="tex2jax_process">\[\ddot{u} \ddot{U} 
\tilde{n} \hat{a} \acute{e} \bar{o} \grave{i} \acute{e} \imath{} \jmath{} 
\grave{\bar{E}}
+\mathord{\text{\l{}}} \textsl{\c{\'{C}}} \textsl{\c{\'{C}}} \textsl{\c{c}} 
\textsl{\H{a}} \dot{a} \mathring{a} \textsl{\t{a}}
+\breve{a} \textsl{\b{a}} \textsl{\d{a}} \check{a} \textsl{\k{a}} a^{h}_{l}
+ \ {}\ {} \ {}\-{}   ! ? . @ \} \{ 
+\today{}
 \]</em></div>
-<div class="displaymath"><em class="tex2jax_process">\[&rarr;
-&#x0075;
-TeX LaTeX &bull; &copy; &hellip; ... &equiv;
-error&rarr; &rarr; - &lowast; -| &rArr;
-&aring; &Aring; &aelig; &oelig; &AElig; &OElig; &oslash; &Oslash; &szlig; 
&#322; &#321; &ETH;
-&THORN; &eth; &thorn; &iexcl; &iquest; &pound;
-&reg; &ordf; &ordm; , 
+<div class="displaymath"><em class="tex2jax_process">\[\rightarrow{}
+u
+TeX LaTeX \bullet{} \copyright{} \dots{} \dots{} \equiv{}
+\fbox{error} \mapsto{} - \star{} \dashv{} \Rightarrow{}
+\mathord{\text{\aa{}}} \mathord{\text{\AA{}}} \mathord{\text{\ae{}}} 
\mathord{\text{\oe{}}} \mathord{\text{\AE{}}} \mathord{\text{\OE{}}} 
\mathord{\text{\o{}}} \mathord{\text{\O{}}} \mathord{\text{\ss{}}} 
\mathord{\text{\l{}}} \mathord{\text{\L{}}} \mathord{\text{\DH{}}}
+\mathord{\text{\TH{}}} \mathord{\text{\dh{}}} \mathord{\text{\th{}}} 
\mathord{\text{\textexclamdown{}}} \mathord{\text{\textquestiondown{}}} 
\mathsterling{}
+\circledR{} \mathord{\text{\textordfeminine{}}} 
\mathord{\text{\textordmasculine{}}} , 
 \]</em></div>
-<div class="displaymath"><em class="tex2jax_process">\[&ldquo; &rdquo; 
-&lsquo; &rsquo; &bdquo; &sbquo; &laquo;
-&raquo; &laquo; &raquo; &lsaquo;
-&rsaquo; &deg; &euro; &rarr; &le; &ge;
+<div class="displaymath"><em 
class="tex2jax_process">\[\mathord{\text{\textquotedblleft{}}} 
\mathord{\text{\textquotedblright{}}} 
+\mathord{\text{\textquoteleft{}}} \mathord{\text{\textquoteright{}}} 
\mathord{\text{\quotedblbase{}}} \mathord{\text{\quotesinglbase{}}} 
\mathord{\text{\guillemotleft{}}}
+\mathord{\text{\guillemotright{}}} \mathord{\text{\guillemotleft{}}} 
\mathord{\text{\guillemotright{}}} \mathord{\text{\guilsinglleft{}}}
+\mathord{\text{\guilsinglright{}}} ^{\circ{}} \euro{} \rightarrow{} \leq{} 
\geq{}
 \]</em></div>
-<div class="displaymath"><em class="tex2jax_process">\[<b class="b">b</b> <i 
class="i">i</i> <span class="r">r</span> <small class="sc">SC</small> <code 
class="t">t</code> <span class="sansserif">sansserif</span> <i 
class="slanted">slanted</i>
+<div class="displaymath"><em class="tex2jax_process">\[\mathbf{b} \mathit{i} 
\mathrm{r} sc \mathtt{t} \mathsf{sansserif} slanted
 \]</em></div>
 <p><kbd class="kbd">default kbdinputstyle</kbd>
 </p><dl class="vtable">
@@ -3442,7 +3436,7 @@ $ wget 
'http://savannah.gnu.org/cgi-bin/viewcvs/config/config/config.sub?rev=HEA
 </pre></div>
 
 <div class="displaymath"><em class="tex2jax_process">\[disp--laymath
-f(x) = {1 \over \sigma \sqrt{2\pi}}e<sup class="sup">-{1 \over 2}\left({x-\mu 
\over \sigma}\right)^2</sup>
+f(x) = {1 \over \sigma \sqrt{2\pi}}e^{-{1 \over 2}\left({x-\mu \over 
\sigma}\right)^2}
 \]</em></div>
 <dl class="first-deffn">
 <dt class="deffn" id="index-copying-d_002d_002deffn_005fname"><span 
class="category-def">c--ategory: </span><span><strong 
class="strong">d--effn_name</strong> <em class="emph">a--rguments...</em><a 
class="copiable-link" href='#index-copying-d_002d_002deffn_005fname'> 
&para;</a></span></dt>
@@ -4159,31 +4153,29 @@ but , ,
 After clickstyle &rArr;
 <code class="code">@clicksequence{click @click{} A}</code> click &rArr; A
 </p>
-<div class="displaymath"><em class="tex2jax_process">\[<strong 
class="strong">``simple-double--three---four----''</strong> aa<!-- /@w -->
-`<!-- /@w -->`simple-double-<!-- /@w -->-three---four----'<!-- /@w -->'
-
+<div class="displaymath"><em 
class="tex2jax_process">\[\mathbf{``simple-double--three---four----''} \hbox{aa}
+`\hbox{}`simple-double-\hbox{}-three---four----'\hbox{}'
 \]</em></div>
-<div class="displaymath"><em class="tex2jax_process">\[&uuml; &Uuml; &ntilde; 
&acirc; &eacute; &#333; &igrave; &eacute; i j &#274;&#768;
-&#322; &#262;&#807; &#262;&#807; &ccedil; a&#779; &#551; &aring; a&#865;
-&#259; a&#818; &#7841; &#462; &#261; a<sup class="sup">h</sup><sub 
class="sub">l</sub>
-
- &nbsp;&nbsp; &nbsp;   ! ? . @ } { 
-a sunny day
+<div class="displaymath"><em class="tex2jax_process">\[\ddot{u} \ddot{U} 
\tilde{n} \hat{a} \acute{e} \bar{o} \grave{i} \acute{e} \imath{} \jmath{} 
\grave{\bar{E}}
+\mathord{\text{\l{}}} \textsl{\c{\'{C}}} \textsl{\c{\'{C}}} \textsl{\c{c}} 
\textsl{\H{a}} \dot{a} \mathring{a} \textsl{\t{a}}
+\breve{a} \textsl{\b{a}} \textsl{\d{a}} \check{a} \textsl{\k{a}} a^{h}_{l}
+ \ {}\ {} \ {}\-{}   ! ? . @ \} \{ 
+\today{}
 \]</em></div>
-<div class="displaymath"><em class="tex2jax_process">\[&rarr;
-&#x0075;
-TeX LaTeX &bull; &copy; &hellip; ... &equiv;
-error&rarr; &rarr; - &lowast; -| &rArr;
-&aring; &Aring; &aelig; &oelig; &AElig; &OElig; &oslash; &Oslash; &szlig; 
&#322; &#321; &ETH;
-&THORN; &eth; &thorn; &iexcl; &iquest; &pound;
-&reg; &ordf; &ordm; , 
+<div class="displaymath"><em class="tex2jax_process">\[\rightarrow{}
+u
+TeX LaTeX \bullet{} \copyright{} \dots{} \dots{} \equiv{}
+\fbox{error} \mapsto{} - \star{} \dashv{} \Rightarrow{}
+\mathord{\text{\aa{}}} \mathord{\text{\AA{}}} \mathord{\text{\ae{}}} 
\mathord{\text{\oe{}}} \mathord{\text{\AE{}}} \mathord{\text{\OE{}}} 
\mathord{\text{\o{}}} \mathord{\text{\O{}}} \mathord{\text{\ss{}}} 
\mathord{\text{\l{}}} \mathord{\text{\L{}}} \mathord{\text{\DH{}}}
+\mathord{\text{\TH{}}} \mathord{\text{\dh{}}} \mathord{\text{\th{}}} 
\mathord{\text{\textexclamdown{}}} \mathord{\text{\textquestiondown{}}} 
\mathsterling{}
+\circledR{} \mathord{\text{\textordfeminine{}}} 
\mathord{\text{\textordmasculine{}}} , 
 \]</em></div>
-<div class="displaymath"><em class="tex2jax_process">\[&ldquo; &rdquo; 
-&lsquo; &rsquo; &bdquo; &sbquo; &laquo;
-&raquo; &laquo; &raquo; &lsaquo;
-&rsaquo; &deg; &euro; &rarr; &le; &ge;
+<div class="displaymath"><em 
class="tex2jax_process">\[\mathord{\text{\textquotedblleft{}}} 
\mathord{\text{\textquotedblright{}}} 
+\mathord{\text{\textquoteleft{}}} \mathord{\text{\textquoteright{}}} 
\mathord{\text{\quotedblbase{}}} \mathord{\text{\quotesinglbase{}}} 
\mathord{\text{\guillemotleft{}}}
+\mathord{\text{\guillemotright{}}} \mathord{\text{\guillemotleft{}}} 
\mathord{\text{\guillemotright{}}} \mathord{\text{\guilsinglleft{}}}
+\mathord{\text{\guilsinglright{}}} ^{\circ{}} \euro{} \rightarrow{} \leq{} 
\geq{}
 \]</em></div>
-<div class="displaymath"><em class="tex2jax_process">\[<b class="b">b</b> <i 
class="i">i</i> <span class="r">r</span> <small class="sc">SC</small> <code 
class="t">t</code> <span class="sansserif">sansserif</span> <i 
class="slanted">slanted</i>
+<div class="displaymath"><em class="tex2jax_process">\[\mathbf{b} \mathit{i} 
\mathrm{r} sc \mathtt{t} \mathsf{sansserif} slanted
 \]</em></div>
 <p><kbd class="kbd">default kbdinputstyle</kbd>
 </p><dl class="vtable">
@@ -4456,7 +4448,7 @@ $ wget 
'http://savannah.gnu.org/cgi-bin/viewcvs/config/config/config.sub?rev=HEA
 </pre></div>
 
 <div class="displaymath"><em class="tex2jax_process">\[disp--laymath
-f(x) = {1 \over \sigma \sqrt{2\pi}}e<sup class="sup">-{1 \over 2}\left({x-\mu 
\over \sigma}\right)^2</sup>
+f(x) = {1 \over \sigma \sqrt{2\pi}}e^{-{1 \over 2}\left({x-\mu \over 
\sigma}\right)^2}
 \]</em></div>
 <dl class="first-deffn">
 <dt class="deffn" id="index-d_002d_002deffn_005fname"><span 
class="category-def">c--ategory: </span><span><strong 
class="strong">d--effn_name</strong> <em class="emph">a--rguments...</em><a 
class="copiable-link" href='#index-d_002d_002deffn_005fname'> 
&para;</a></span></dt>
@@ -5183,35 +5175,33 @@ but , ,
 After clickstyle &rArr;
 <code class="code">@clicksequence{click @click{} A}</code> click &rArr; A
 
-</pre><div class="displaymath"><em class="tex2jax_process">\[<strong 
class="strong">``simple-double--three---four----''</strong> aa<!-- /@w -->
-`<!-- /@w -->`simple-double-<!-- /@w -->-three---four----'<!-- /@w -->'
-
+</pre><div class="displaymath"><em 
class="tex2jax_process">\[\mathbf{``simple-double--three---four----''} \hbox{aa}
+`\hbox{}`simple-double-\hbox{}-three---four----'\hbox{}'
 \]</em></div><pre class="example-preformatted">
 
-</pre><div class="displaymath"><em class="tex2jax_process">\[&uuml; &Uuml; 
&ntilde; &acirc; &eacute; &#333; &igrave; &eacute; i j &#274;&#768;
-&#322; &#262;&#807; &#262;&#807; &ccedil; a&#779; &#551; &aring; a&#865;
-&#259; a&#818; &#7841; &#462; &#261; a<sup class="sup">h</sup><sub 
class="sub">l</sub>
-
- &nbsp;&nbsp; &nbsp;   ! ? . @ } { 
-a sunny day
+</pre><div class="displaymath"><em class="tex2jax_process">\[\ddot{u} \ddot{U} 
\tilde{n} \hat{a} \acute{e} \bar{o} \grave{i} \acute{e} \imath{} \jmath{} 
\grave{\bar{E}}
+\mathord{\text{\l{}}} \textsl{\c{\'{C}}} \textsl{\c{\'{C}}} \textsl{\c{c}} 
\textsl{\H{a}} \dot{a} \mathring{a} \textsl{\t{a}}
+\breve{a} \textsl{\b{a}} \textsl{\d{a}} \check{a} \textsl{\k{a}} a^{h}_{l}
+ \ {}\ {} \ {}\-{}   ! ? . @ \} \{ 
+\today{}
 \]</em></div><pre class="example-preformatted">
 
-</pre><div class="displaymath"><em class="tex2jax_process">\[&rarr;
-&#x0075;
-TeX LaTeX &bull; &copy; &hellip; ... &equiv;
-error&rarr; &rarr; - &lowast; -| &rArr;
-&aring; &Aring; &aelig; &oelig; &AElig; &OElig; &oslash; &Oslash; &szlig; 
&#322; &#321; &ETH;
-&THORN; &eth; &thorn; &iexcl; &iquest; &pound;
-&reg; &ordf; &ordm; , 
+</pre><div class="displaymath"><em class="tex2jax_process">\[\rightarrow{}
+u
+TeX LaTeX \bullet{} \copyright{} \dots{} \dots{} \equiv{}
+\fbox{error} \mapsto{} - \star{} \dashv{} \Rightarrow{}
+\mathord{\text{\aa{}}} \mathord{\text{\AA{}}} \mathord{\text{\ae{}}} 
\mathord{\text{\oe{}}} \mathord{\text{\AE{}}} \mathord{\text{\OE{}}} 
\mathord{\text{\o{}}} \mathord{\text{\O{}}} \mathord{\text{\ss{}}} 
\mathord{\text{\l{}}} \mathord{\text{\L{}}} \mathord{\text{\DH{}}}
+\mathord{\text{\TH{}}} \mathord{\text{\dh{}}} \mathord{\text{\th{}}} 
\mathord{\text{\textexclamdown{}}} \mathord{\text{\textquestiondown{}}} 
\mathsterling{}
+\circledR{} \mathord{\text{\textordfeminine{}}} 
\mathord{\text{\textordmasculine{}}} , 
 \]</em></div><pre class="example-preformatted">
 
-</pre><div class="displaymath"><em class="tex2jax_process">\[&ldquo; &rdquo; 
-&lsquo; &rsquo; &bdquo; &sbquo; &laquo;
-&raquo; &laquo; &raquo; &lsaquo;
-&rsaquo; &deg; &euro; &rarr; &le; &ge;
+</pre><div class="displaymath"><em 
class="tex2jax_process">\[\mathord{\text{\textquotedblleft{}}} 
\mathord{\text{\textquotedblright{}}} 
+\mathord{\text{\textquoteleft{}}} \mathord{\text{\textquoteright{}}} 
\mathord{\text{\quotedblbase{}}} \mathord{\text{\quotesinglbase{}}} 
\mathord{\text{\guillemotleft{}}}
+\mathord{\text{\guillemotright{}}} \mathord{\text{\guillemotleft{}}} 
\mathord{\text{\guillemotright{}}} \mathord{\text{\guilsinglleft{}}}
+\mathord{\text{\guilsinglright{}}} ^{\circ{}} \euro{} \rightarrow{} \leq{} 
\geq{}
 \]</em></div><pre class="example-preformatted">
 
-</pre><div class="displaymath"><em class="tex2jax_process">\[<b 
class="b">b</b> <i class="i">i</i> <span class="r">r</span> <span 
class="sc">SC</span> <code class="t">t</code> <span 
class="sansserif">sansserif</span> <i class="slanted">slanted</i>
+</pre><div class="displaymath"><em class="tex2jax_process">\[\mathbf{b} 
\mathit{i} \mathrm{r} sc \mathtt{t} \mathsf{sansserif} slanted
 \]</em></div><pre class="example-preformatted">
 
 <kbd class="kbd">default kbdinputstyle</kbd>
@@ -5540,7 +5530,7 @@ $ wget 
'http://savannah.gnu.org/cgi-bin/viewcvs/config/config/config.sub?rev=HEA
 <pre class="example-preformatted">
 
 </pre><div class="displaymath"><em class="tex2jax_process">\[disp--laymath
-f(x) = {1 \over \sigma \sqrt{2\pi}}e<sup class="sup">-{1 \over 2}\left({x-\mu 
\over \sigma}\right)^2</sup>
+f(x) = {1 \over \sigma \sqrt{2\pi}}e^{-{1 \over 2}\left({x-\mu \over 
\sigma}\right)^2}
 \]</em></div><pre class="example-preformatted">
 
 </pre><dl class="first-deffn">



reply via email to

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