texinfo-commits
[Top][All Lists]
Advanced

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

branch master updated: * tp/Texinfo/XS/convert/format_html.c (file_heade


From: Patrice Dumas
Subject: branch master updated: * tp/Texinfo/XS/convert/format_html.c (file_header_information): do not output mathjax header on every file if split. Remove trailing end of line from text output if MATHJAX_CONFIGURATION is set.
Date: Sun, 13 Oct 2024 10:03:35 -0400

This is an automated email from the git hooks/post-receive script.

pertusus pushed a commit to branch master
in repository texinfo.

The following commit(s) were added to refs/heads/master by this push:
     new 266b333890 * tp/Texinfo/XS/convert/format_html.c 
(file_header_information): do not output mathjax header on every file if split. 
Remove trailing end of line from text output if MATHJAX_CONFIGURATION is set.
266b333890 is described below

commit 266b333890ebc989dfff3b59a8b276d06ad12058
Author: Patrice Dumas <pertusus@free.fr>
AuthorDate: Sun Oct 13 16:03:26 2024 +0200

    * tp/Texinfo/XS/convert/format_html.c (file_header_information):
    do not output mathjax header on every file if split.
    Remove trailing end of line from text output if MATHJAX_CONFIGURATION
    is set.
---
 tp/init/documentation_examples.pm                  |  12 ++
 tp/t/init_files_tests.t                            |   4 +
 .../init_files_tests/documentation_examples.pl     | 171 ++++++++++++++++++---
 .../res_html/js_licenses.html                      |  11 ++
 .../res_html/prepended_to_filenames-chapter.html   |  48 +++++-
 .../documentation_examples_texi2html.pl            | 171 ++++++++++++++++++---
 .../res_html/documentation_examples_texi2html.html |  48 +++++-
 .../res_html/js_licenses.html                      |  11 ++
 8 files changed, 432 insertions(+), 44 deletions(-)

diff --git a/tp/init/documentation_examples.pm 
b/tp/init/documentation_examples.pm
index c0cde86752..3edf321a12 100644
--- a/tp/init/documentation_examples.pm
+++ b/tp/init/documentation_examples.pm
@@ -10,6 +10,18 @@ use utf8;
 # To check if there is no erroneous autovivification
 #no autovivification qw(fetch delete exists store strict);
 
+texinfo_set_from_init_file('MATHJAX_CONFIGURATION',
+"options: { enableMenu: false },
+loader: {
+load: [\'[tex]/physics\'],
+versionWarnings: false
+},
+tex: {
+packages: {\'[+]\': [\'physics\']}
+}
+");
+texinfo_set_from_init_file('HTML_MATH', 'mathjax');
+
 my $default_footnotestyle = texinfo_get_conf('footnotestyle');
 my $main_program_footnotestyle;
 if (not defined($default_footnotestyle)) {
diff --git a/tp/t/init_files_tests.t b/tp/t/init_files_tests.t
index 193156beef..60b5b19fef 100644
--- a/tp/t/init_files_tests.t
+++ b/tp/t/init_files_tests.t
@@ -80,6 +80,10 @@ my $documentation_examples_text = '
 @email{a@@display}
 @end display
 
+@displaymath
+\frac{h}{j@sup{2}} \dv[n]{f}{x}
+@end displaymath
+
 @cindex @file{e1}
 @cindex i2
 
diff --git a/tp/t/results/init_files_tests/documentation_examples.pl 
b/tp/t/results/init_files_tests/documentation_examples.pl
index 4a1b013ef9..addfc109bb 100644
--- a/tp/t/results/init_files_tests/documentation_examples.pl
+++ b/tp/t/results/init_files_tests/documentation_examples.pl
@@ -844,6 +844,133 @@ $result_trees{'documentation_examples'} = {
         },
         {
           'text' => '
+',
+          'type' => 'empty_line'
+        },
+        {
+          'args' => [
+            {
+              'info' => {
+                'spaces_after_argument' => {
+                  'text' => '
+'
+                }
+              },
+              'type' => 'block_line_arg'
+            }
+          ],
+          'cmdname' => 'displaymath',
+          'contents' => [
+            {
+              'text' => '\\frac'
+            },
+            {
+              'contents' => [
+                {
+                  'text' => '{h}'
+                }
+              ],
+              'source_info' => {
+                'line_nr' => 33
+              },
+              'type' => 'balanced_braces'
+            },
+            {
+              'contents' => [
+                {
+                  'text' => '{j'
+                },
+                {
+                  'args' => [
+                    {
+                      'contents' => [
+                        {
+                          'text' => '2'
+                        }
+                      ],
+                      'type' => 'brace_container'
+                    }
+                  ],
+                  'cmdname' => 'sup',
+                  'source_info' => {
+                    'line_nr' => 33
+                  }
+                },
+                {
+                  'text' => '}'
+                }
+              ],
+              'source_info' => {
+                'line_nr' => 33
+              },
+              'type' => 'balanced_braces'
+            },
+            {
+              'text' => ' \\dv[n]'
+            },
+            {
+              'contents' => [
+                {
+                  'text' => '{f}'
+                }
+              ],
+              'source_info' => {
+                'line_nr' => 33
+              },
+              'type' => 'balanced_braces'
+            },
+            {
+              'contents' => [
+                {
+                  'text' => '{x}'
+                }
+              ],
+              'source_info' => {
+                'line_nr' => 33
+              },
+              'type' => 'balanced_braces'
+            },
+            {
+              'text' => '
+'
+            },
+            {
+              'args' => [
+                {
+                  'contents' => [
+                    {
+                      'text' => 'displaymath'
+                    }
+                  ],
+                  'info' => {
+                    'spaces_after_argument' => {
+                      'text' => '
+'
+                    }
+                  },
+                  'type' => 'line_arg'
+                }
+              ],
+              'cmdname' => 'end',
+              'extra' => {
+                'text_arg' => 'displaymath'
+              },
+              'info' => {
+                'spaces_before_argument' => {
+                  'text' => ' '
+                }
+              },
+              'source_info' => {
+                'line_nr' => 34
+              }
+            }
+          ],
+          'source_info' => {
+            'line_nr' => 32
+          }
+        },
+        {
+          'text' => '
 ',
           'type' => 'empty_line'
         },
@@ -864,7 +991,7 @@ $result_trees{'documentation_examples'} = {
                   ],
                   'cmdname' => 'file',
                   'source_info' => {
-                    'line_nr' => 32
+                    'line_nr' => 36
                   }
                 }
               ],
@@ -892,7 +1019,7 @@ $result_trees{'documentation_examples'} = {
             }
           },
           'source_info' => {
-            'line_nr' => 32
+            'line_nr' => 36
           },
           'type' => 'index_entry_command'
         },
@@ -928,7 +1055,7 @@ $result_trees{'documentation_examples'} = {
             }
           },
           'source_info' => {
-            'line_nr' => 33
+            'line_nr' => 37
           },
           'type' => 'index_entry_command'
         },
@@ -954,7 +1081,7 @@ $result_trees{'documentation_examples'} = {
             'command_name' => 'vindex'
           },
           'source_info' => {
-            'line_nr' => 35
+            'line_nr' => 39
           },
           'type' => 'index_entry_command'
         },
@@ -990,7 +1117,7 @@ $result_trees{'documentation_examples'} = {
             }
           },
           'source_info' => {
-            'line_nr' => 37
+            'line_nr' => 41
           }
         },
         {
@@ -1008,7 +1135,7 @@ $result_trees{'documentation_examples'} = {
               ],
               'cmdname' => 'error',
               'source_info' => {
-                'line_nr' => 39
+                'line_nr' => 43
               }
             },
             {
@@ -1033,7 +1160,7 @@ $result_trees{'documentation_examples'} = {
               ],
               'cmdname' => 'equiv',
               'source_info' => {
-                'line_nr' => 41
+                'line_nr' => 45
               }
             },
             {
@@ -1059,7 +1186,7 @@ $result_trees{'documentation_examples'} = {
           'cmdname' => 'contents',
           'extra' => {},
           'source_info' => {
-            'line_nr' => 43
+            'line_nr' => 47
           }
         },
         {
@@ -1108,7 +1235,7 @@ $result_trees{'documentation_examples'} = {
         }
       },
       'source_info' => {
-        'line_nr' => 45
+        'line_nr' => 49
       }
     },
     {
@@ -1162,7 +1289,7 @@ $result_trees{'documentation_examples'} = {
             }
           },
           'source_info' => {
-            'line_nr' => 48
+            'line_nr' => 52
           }
         },
         {
@@ -1180,7 +1307,7 @@ $result_trees{'documentation_examples'} = {
               ],
               'cmdname' => 'error',
               'source_info' => {
-                'line_nr' => 50
+                'line_nr' => 54
               }
             },
             {
@@ -1205,7 +1332,7 @@ $result_trees{'documentation_examples'} = {
               ],
               'cmdname' => 'equiv',
               'source_info' => {
-                'line_nr' => 52
+                'line_nr' => 56
               }
             },
             {
@@ -1230,7 +1357,7 @@ $result_trees{'documentation_examples'} = {
         }
       },
       'source_info' => {
-        'line_nr' => 46
+        'line_nr' => 50
       }
     },
     {
@@ -1262,7 +1389,7 @@ $result_trees{'documentation_examples'} = {
         }
       },
       'source_info' => {
-        'line_nr' => 54
+        'line_nr' => 58
       }
     },
     {
@@ -1318,7 +1445,7 @@ $result_trees{'documentation_examples'} = {
             }
           },
           'source_info' => {
-            'line_nr' => 57
+            'line_nr' => 61
           }
         },
         {
@@ -1336,15 +1463,15 @@ $result_trees{'documentation_examples'} = {
         }
       },
       'source_info' => {
-        'line_nr' => 55
+        'line_nr' => 59
       }
     }
   ],
   'type' => 'document_root'
 };
 
$result_trees{'documentation_examples'}{'contents'}[4]{'contents'}[1]{'contents'}[8]{'args'}[0]{'extra'}{'node_content'}{'contents'}[0]
 = 
$result_trees{'documentation_examples'}{'contents'}[4]{'contents'}[1]{'contents'}[8]{'args'}[0]{'contents'}[0];
-$result_trees{'documentation_examples'}{'contents'}[4]{'contents'}[12]{'extra'}{'element_node'}
 = $result_trees{'documentation_examples'}{'contents'}[3];
-$result_trees{'documentation_examples'}{'contents'}[4]{'contents'}[13]{'extra'}{'element_node'}
 = $result_trees{'documentation_examples'}{'contents'}[3];
+$result_trees{'documentation_examples'}{'contents'}[4]{'contents'}[14]{'extra'}{'element_node'}
 = $result_trees{'documentation_examples'}{'contents'}[3];
+$result_trees{'documentation_examples'}{'contents'}[4]{'contents'}[15]{'extra'}{'element_node'}
 = $result_trees{'documentation_examples'}{'contents'}[3];
 
 $result_texis{'documentation_examples'} = '
 @settitle @email{someone@@example.com, me} @sansserif{in--title} @error{} 
@equiv{}
@@ -1377,6 +1504,10 @@ $result_texis{'documentation_examples'} = '
 @email{a@@display}
 @end display
 
+@displaymath
+\\frac{h}{j@sup{2}} \\dv[n]{f}{x}
+@end displaymath
+
 @cindex @file{e1}
 @cindex i2
 
@@ -1429,6 +1560,8 @@ a@example
 
 a@display
 
+\\frac{h}{j2} \\dv[n]{f}{x}
+
 
 
 
@@ -1653,7 +1786,7 @@ $result_errors{'documentation_examples'} = [
   {
     'error_line' => 'warning: @vindex missing argument
 ',
-    'line_nr' => 35,
+    'line_nr' => 39,
     'text' => '@vindex missing argument',
     'type' => 'warning'
   }
diff --git 
a/tp/t/results/init_files_tests/documentation_examples/res_html/js_licenses.html
 
b/tp/t/results/init_files_tests/documentation_examples/res_html/js_licenses.html
new file mode 100644
index 0000000000..6933c53297
--- /dev/null
+++ 
b/tp/t/results/init_files_tests/documentation_examples/res_html/js_licenses.html
@@ -0,0 +1,11 @@
+<!DOCTYPE html>
+<html><head><title>jslicense labels</title></head>
+<body>
+<table id="jslicense-labels1">
+<tr>
+<td><a 
href="https://cdn.jsdelivr.net/npm/mathjax@3/es5/tex-svg.js";>https://cdn.jsdelivr.net/npm/mathjax@3/es5/tex-svg.js</a></td>
+<td><a href="https://www.apache.org/licenses/LICENSE-2.0";>Apache License, 
Version 2.0.</a></td>
+<td><a 
href="http://docs.mathjax.org/en/latest/web/hosting.html#getting-mathjax-via-git";>http://docs.mathjax.org/en/latest/web/hosting.html#getting-mathjax-via-git</a></td>
+</tr>
+</table>
+</body></html>
diff --git 
a/tp/t/results/init_files_tests/documentation_examples/res_html/prepended_to_filenames-chapter.html
 
b/tp/t/results/init_files_tests/documentation_examples/res_html/prepended_to_filenames-chapter.html
index 2b39ba0a99..19af2caad9 100644
--- 
a/tp/t/results/init_files_tests/documentation_examples/res_html/prepended_to_filenames-chapter.html
+++ 
b/tp/t/results/init_files_tests/documentation_examples/res_html/prepended_to_filenames-chapter.html
@@ -24,14 +24,54 @@ div.display {margin-left: 3.2em}
 div.example {margin-left: 3.2em}
 h1.titlefont {text-align:center}
 pre.display-preformatted {font-family: inherit}
+pre.displaymath {font-style: italic; font-family: serif; display: flex; 
justify-content: center}
 span:hover a.copiable-link {visibility: visible}
 -->
 </style>
 
+<script type='text/javascript'>
+MathJax = {
+  options: {
+    skipHtmlTags: {'[-]': ['pre']},       // do not skip pre
+    ignoreHtmlClass: 'tex2jax_ignore',
+    processHtmlClass: 'tex2jax_process'
+  },
+  tex: {
+    processEscapes: false,      // do not use \$ to produce a literal dollar 
sign
+    processEnvironments: false, // do not process \begin{xxx}...\end{xxx} 
outside math mode
+    processRefs: false,         // do not process \ref{...} outside of math 
mode
+    displayMath: [             // start/end delimiter pairs for display math
+      ['\\[', '\\]']
+    ],
+  },
+};
+var MathJax_conf = {
+options: { enableMenu: false },
+loader: {
+load: ['[tex]/physics'],
+versionWarnings: false
+},
+tex: {
+packages: {'[+]': ['physics']}
+}
 
+};
+
+for (let component in MathJax_conf) {
+  if (!MathJax.hasOwnProperty(component)) {
+    MathJax[component] = MathJax_conf[component];
+  } else {
+    for (let field in MathJax_conf[component]) {
+      MathJax[component][field] = MathJax_conf[component][field];
+    }
+  }
+}
+</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">
+<body lang="en" class="tex2jax_ignore">
 <div class="chapter-level-extent" id="prepended_to_labels-chapter">
 <div class="nav-panel">
 <p>
@@ -47,7 +87,7 @@ Next: <a href="prepended_to_filenames-my-node.html" 
accesskey="n" rel="next">New
 <small class="sc">in Sc</small>
 <var class="var">IN VAR</var>
  <code>HTML</code> text </p>
-<p><em class="math jax_p"><span class="math-arg"><code 
class="sansserif">in--math</code> &shy; a=b error--&gt; is the <strong 
class="strong">same</strong> as</span></em>
+<p><em class="math jax_p"><span class="math-arg">\mathsf{in--math} \-{} a=b 
\fbox{error} \equiv{}</span></em>
  <code>HTML</code> text </p>
 <table class="indentedblock"><tr><td>&nbsp;</tr></td><div class="example">
 <pre class="example-preformatted">&lsquo;<code 
class="sansserif">in--example</code>&rsquo; &shy; c. error--&gt; is the <strong 
class="strong">same</strong> as
@@ -59,6 +99,8 @@ Next: <a href="prepended_to_filenames-my-node.html" 
accesskey="n" rel="next">New
 <pre class="display-preformatted"><a class="email" 
href="mailto:a@display";>a@display Generated <em class="emph">a sunny day</em> 
using <a class="uref" href="https://www.gnu.org/software/texinfo/";><em 
class="emph"></em></a>. (<a class="myurl" href="a@display">a@display</a>);</a> 
[undefined text-align:center, is undef|end|separate]
 </pre></div>
 
+<pre class="displaymath tex2jax_process">\[\frac{h}{j^{2}} \dv[n]{f}{x}
+\]</pre>
 <table><p class="myanchor_class" id="anchor_id_1"></p>
 <td><tr><a href="#index-e1"><samp class="file">e1</samp><code>purple: 1, 
black: 42</code></a></tr><tr><a 
href="#prepended_to_labels-chapter">chapter</a></tr></td>
 <td><tr>e1</tr></td>
@@ -79,6 +121,6 @@ Next: <a href="prepended_to_filenames-my-node.html" 
accesskey="n" rel="next">New
 </div>
 
 
-
+<a href="js_licenses.html" rel="jslicense"><small>Information de licence de 
JavaScript</small></a>
 </body>
 </html>
diff --git a/tp/t/results/init_files_tests/documentation_examples_texi2html.pl 
b/tp/t/results/init_files_tests/documentation_examples_texi2html.pl
index 27a4d799e6..c8e6e7351e 100644
--- a/tp/t/results/init_files_tests/documentation_examples_texi2html.pl
+++ b/tp/t/results/init_files_tests/documentation_examples_texi2html.pl
@@ -844,6 +844,133 @@ $result_trees{'documentation_examples_texi2html'} = {
         },
         {
           'text' => '
+',
+          'type' => 'empty_line'
+        },
+        {
+          'args' => [
+            {
+              'info' => {
+                'spaces_after_argument' => {
+                  'text' => '
+'
+                }
+              },
+              'type' => 'block_line_arg'
+            }
+          ],
+          'cmdname' => 'displaymath',
+          'contents' => [
+            {
+              'text' => '\\frac'
+            },
+            {
+              'contents' => [
+                {
+                  'text' => '{h}'
+                }
+              ],
+              'source_info' => {
+                'line_nr' => 33
+              },
+              'type' => 'balanced_braces'
+            },
+            {
+              'contents' => [
+                {
+                  'text' => '{j'
+                },
+                {
+                  'args' => [
+                    {
+                      'contents' => [
+                        {
+                          'text' => '2'
+                        }
+                      ],
+                      'type' => 'brace_container'
+                    }
+                  ],
+                  'cmdname' => 'sup',
+                  'source_info' => {
+                    'line_nr' => 33
+                  }
+                },
+                {
+                  'text' => '}'
+                }
+              ],
+              'source_info' => {
+                'line_nr' => 33
+              },
+              'type' => 'balanced_braces'
+            },
+            {
+              'text' => ' \\dv[n]'
+            },
+            {
+              'contents' => [
+                {
+                  'text' => '{f}'
+                }
+              ],
+              'source_info' => {
+                'line_nr' => 33
+              },
+              'type' => 'balanced_braces'
+            },
+            {
+              'contents' => [
+                {
+                  'text' => '{x}'
+                }
+              ],
+              'source_info' => {
+                'line_nr' => 33
+              },
+              'type' => 'balanced_braces'
+            },
+            {
+              'text' => '
+'
+            },
+            {
+              'args' => [
+                {
+                  'contents' => [
+                    {
+                      'text' => 'displaymath'
+                    }
+                  ],
+                  'info' => {
+                    'spaces_after_argument' => {
+                      'text' => '
+'
+                    }
+                  },
+                  'type' => 'line_arg'
+                }
+              ],
+              'cmdname' => 'end',
+              'extra' => {
+                'text_arg' => 'displaymath'
+              },
+              'info' => {
+                'spaces_before_argument' => {
+                  'text' => ' '
+                }
+              },
+              'source_info' => {
+                'line_nr' => 34
+              }
+            }
+          ],
+          'source_info' => {
+            'line_nr' => 32
+          }
+        },
+        {
+          'text' => '
 ',
           'type' => 'empty_line'
         },
@@ -864,7 +991,7 @@ $result_trees{'documentation_examples_texi2html'} = {
                   ],
                   'cmdname' => 'file',
                   'source_info' => {
-                    'line_nr' => 32
+                    'line_nr' => 36
                   }
                 }
               ],
@@ -892,7 +1019,7 @@ $result_trees{'documentation_examples_texi2html'} = {
             }
           },
           'source_info' => {
-            'line_nr' => 32
+            'line_nr' => 36
           },
           'type' => 'index_entry_command'
         },
@@ -928,7 +1055,7 @@ $result_trees{'documentation_examples_texi2html'} = {
             }
           },
           'source_info' => {
-            'line_nr' => 33
+            'line_nr' => 37
           },
           'type' => 'index_entry_command'
         },
@@ -954,7 +1081,7 @@ $result_trees{'documentation_examples_texi2html'} = {
             'command_name' => 'vindex'
           },
           'source_info' => {
-            'line_nr' => 35
+            'line_nr' => 39
           },
           'type' => 'index_entry_command'
         },
@@ -990,7 +1117,7 @@ $result_trees{'documentation_examples_texi2html'} = {
             }
           },
           'source_info' => {
-            'line_nr' => 37
+            'line_nr' => 41
           }
         },
         {
@@ -1008,7 +1135,7 @@ $result_trees{'documentation_examples_texi2html'} = {
               ],
               'cmdname' => 'error',
               'source_info' => {
-                'line_nr' => 39
+                'line_nr' => 43
               }
             },
             {
@@ -1033,7 +1160,7 @@ $result_trees{'documentation_examples_texi2html'} = {
               ],
               'cmdname' => 'equiv',
               'source_info' => {
-                'line_nr' => 41
+                'line_nr' => 45
               }
             },
             {
@@ -1059,7 +1186,7 @@ $result_trees{'documentation_examples_texi2html'} = {
           'cmdname' => 'contents',
           'extra' => {},
           'source_info' => {
-            'line_nr' => 43
+            'line_nr' => 47
           }
         },
         {
@@ -1108,7 +1235,7 @@ $result_trees{'documentation_examples_texi2html'} = {
         }
       },
       'source_info' => {
-        'line_nr' => 45
+        'line_nr' => 49
       }
     },
     {
@@ -1162,7 +1289,7 @@ $result_trees{'documentation_examples_texi2html'} = {
             }
           },
           'source_info' => {
-            'line_nr' => 48
+            'line_nr' => 52
           }
         },
         {
@@ -1180,7 +1307,7 @@ $result_trees{'documentation_examples_texi2html'} = {
               ],
               'cmdname' => 'error',
               'source_info' => {
-                'line_nr' => 50
+                'line_nr' => 54
               }
             },
             {
@@ -1205,7 +1332,7 @@ $result_trees{'documentation_examples_texi2html'} = {
               ],
               'cmdname' => 'equiv',
               'source_info' => {
-                'line_nr' => 52
+                'line_nr' => 56
               }
             },
             {
@@ -1230,7 +1357,7 @@ $result_trees{'documentation_examples_texi2html'} = {
         }
       },
       'source_info' => {
-        'line_nr' => 46
+        'line_nr' => 50
       }
     },
     {
@@ -1262,7 +1389,7 @@ $result_trees{'documentation_examples_texi2html'} = {
         }
       },
       'source_info' => {
-        'line_nr' => 54
+        'line_nr' => 58
       }
     },
     {
@@ -1318,7 +1445,7 @@ $result_trees{'documentation_examples_texi2html'} = {
             }
           },
           'source_info' => {
-            'line_nr' => 57
+            'line_nr' => 61
           }
         },
         {
@@ -1336,15 +1463,15 @@ $result_trees{'documentation_examples_texi2html'} = {
         }
       },
       'source_info' => {
-        'line_nr' => 55
+        'line_nr' => 59
       }
     }
   ],
   'type' => 'document_root'
 };
 
$result_trees{'documentation_examples_texi2html'}{'contents'}[4]{'contents'}[1]{'contents'}[8]{'args'}[0]{'extra'}{'node_content'}{'contents'}[0]
 = 
$result_trees{'documentation_examples_texi2html'}{'contents'}[4]{'contents'}[1]{'contents'}[8]{'args'}[0]{'contents'}[0];
-$result_trees{'documentation_examples_texi2html'}{'contents'}[4]{'contents'}[12]{'extra'}{'element_node'}
 = $result_trees{'documentation_examples_texi2html'}{'contents'}[3];
-$result_trees{'documentation_examples_texi2html'}{'contents'}[4]{'contents'}[13]{'extra'}{'element_node'}
 = $result_trees{'documentation_examples_texi2html'}{'contents'}[3];
+$result_trees{'documentation_examples_texi2html'}{'contents'}[4]{'contents'}[14]{'extra'}{'element_node'}
 = $result_trees{'documentation_examples_texi2html'}{'contents'}[3];
+$result_trees{'documentation_examples_texi2html'}{'contents'}[4]{'contents'}[15]{'extra'}{'element_node'}
 = $result_trees{'documentation_examples_texi2html'}{'contents'}[3];
 
 $result_texis{'documentation_examples_texi2html'} = '
 @settitle @email{someone@@example.com, me} @sansserif{in--title} @error{} 
@equiv{}
@@ -1377,6 +1504,10 @@ $result_texis{'documentation_examples_texi2html'} = '
 @email{a@@display}
 @end display
 
+@displaymath
+\\frac{h}{j@sup{2}} \\dv[n]{f}{x}
+@end displaymath
+
 @cindex @file{e1}
 @cindex i2
 
@@ -1429,6 +1560,8 @@ a@example
 
 a@display
 
+\\frac{h}{j2} \\dv[n]{f}{x}
+
 
 
 
@@ -1653,7 +1786,7 @@ $result_errors{'documentation_examples_texi2html'} = [
   {
     'error_line' => 'warning: @vindex missing argument
 ',
-    'line_nr' => 35,
+    'line_nr' => 39,
     'text' => '@vindex missing argument',
     'type' => 'warning'
   }
diff --git 
a/tp/t/results/init_files_tests/documentation_examples_texi2html/res_html/documentation_examples_texi2html.html
 
b/tp/t/results/init_files_tests/documentation_examples_texi2html/res_html/documentation_examples_texi2html.html
index 1bfcfb8662..1743a961c2 100644
--- 
a/tp/t/results/init_files_tests/documentation_examples_texi2html/res_html/documentation_examples_texi2html.html
+++ 
b/tp/t/results/init_files_tests/documentation_examples_texi2html/res_html/documentation_examples_texi2html.html
@@ -20,6 +20,7 @@ div.example {margin-left: 3.2em}
 h1.settitle {text-align:center}
 h1.titlefont {text-align:center}
 pre.display-preformatted {font-family: inherit}
+pre.displaymath {font-style: italic; font-family: serif; display: flex; 
justify-content: center}
 pre.menu-comment-preformatted {font-family: serif}
 span.program-in-footer {font-size: smaller}
 span:hover a.copiable-link {visibility: visible}
@@ -43,10 +44,49 @@ ul.toc-numbered-mark {list-style: none}
 -->
 </style>
 
+<script type='text/javascript'>
+MathJax = {
+  options: {
+    skipHtmlTags: {'[-]': ['pre']},       // do not skip pre
+    ignoreHtmlClass: 'tex2jax_ignore',
+    processHtmlClass: 'tex2jax_process'
+  },
+  tex: {
+    processEscapes: false,      // do not use \$ to produce a literal dollar 
sign
+    processEnvironments: false, // do not process \begin{xxx}...\end{xxx} 
outside math mode
+    processRefs: false,         // do not process \ref{...} outside of math 
mode
+    displayMath: [             // start/end delimiter pairs for display math
+      ['\\[', '\\]']
+    ],
+  },
+};
+var MathJax_conf = {
+options: { enableMenu: false },
+loader: {
+load: ['[tex]/physics'],
+versionWarnings: false
+},
+tex: {
+packages: {'[+]': ['physics']}
+}
 
+};
+
+for (let component in MathJax_conf) {
+  if (!MathJax.hasOwnProperty(component)) {
+    MathJax[component] = MathJax_conf[component];
+  } else {
+    for (let field in MathJax_conf[component]) {
+      MathJax[component][field] = MathJax_conf[component][field];
+    }
+  }
+}
+</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">
+<body lang="en" class="tex2jax_ignore">
 <h1 class="settitle"><a class="email" href="mailto:someone@example.com";>me 
Generated <em class="emph">a sunny day</em> using <a class="uref" 
href="https://www.gnu.org/software/texinfo/";><em class="emph"></em></a>. (<a 
class="myurl" href="someone@example.com">me</a>);</a> [undefined 
text-align:center, is undef|separate|separate] <code 
class="sansserif">in&ndash;title</code> error--&gt; is the <strong 
class="strong">same</strong> as</h1>
 <hr>
 
@@ -112,7 +152,7 @@ Appendices
 <small class="sc">in Sc</small>
 <var class="var">IN VAR</var>
  <code>HTML</code> text </p>
-<p><em class="math jax_p"><span class="math-arg"><code 
class="sansserif">in--math</code> &shy; a=b error--&gt; is the <strong 
class="strong">same</strong> as</span></em>
+<p><em class="math jax_p"><span class="math-arg">\mathsf{in--math} \-{} a=b 
\fbox{error} \equiv{}</span></em>
  <code>HTML</code> text </p>
 <table class="indentedblock"><tr><td>&nbsp;</tr></td><div class="example">
 <pre class="example-preformatted">&lsquo;<code 
class="sansserif">in--example</code>&rsquo; &shy; c. error--&gt; is the <strong 
class="strong">same</strong> as
@@ -124,6 +164,8 @@ Appendices
 <pre class="display-preformatted"><a class="email" 
href="mailto:a@display";>a@display Generated <em class="emph">a sunny day</em> 
using <a class="uref" href="https://www.gnu.org/software/texinfo/";><em 
class="emph"></em></a>. (<a class="myurl" href="a@display">a@display</a>);</a> 
[undefined text-align:center, is undef|separate|separate]
 </pre></div>
 
+<pre class="displaymath tex2jax_process">\[\frac{h}{j^{2}} \dv[n]{f}{x}
+\]</pre>
 <table><p class="myanchor_class" id="anchor_id_1"></p>
 <td><tr><a href="#index-e1"><samp class="file">e1</samp><code>purple: 1, 
black: 42</code></a></tr><tr><a href="#prepended_to_labels-chapter">1 
Chapter</a></tr></td>
 <td><tr>e1</tr></td>
@@ -351,6 +393,6 @@ Appendices
   <span class="program-in-footer">Ten dokument zostaƂ wygenerowany <em 
class="emph">a sunny day</em>.</span>
 </p>
 
-
+<a href="js_licenses.html" rel="jslicense"><small>Informacje o licencji 
JavaScriptu</small></a>
 </body>
 </html>
diff --git 
a/tp/t/results/init_files_tests/documentation_examples_texi2html/res_html/js_licenses.html
 
b/tp/t/results/init_files_tests/documentation_examples_texi2html/res_html/js_licenses.html
new file mode 100644
index 0000000000..6933c53297
--- /dev/null
+++ 
b/tp/t/results/init_files_tests/documentation_examples_texi2html/res_html/js_licenses.html
@@ -0,0 +1,11 @@
+<!DOCTYPE html>
+<html><head><title>jslicense labels</title></head>
+<body>
+<table id="jslicense-labels1">
+<tr>
+<td><a 
href="https://cdn.jsdelivr.net/npm/mathjax@3/es5/tex-svg.js";>https://cdn.jsdelivr.net/npm/mathjax@3/es5/tex-svg.js</a></td>
+<td><a href="https://www.apache.org/licenses/LICENSE-2.0";>Apache License, 
Version 2.0.</a></td>
+<td><a 
href="http://docs.mathjax.org/en/latest/web/hosting.html#getting-mathjax-via-git";>http://docs.mathjax.org/en/latest/web/hosting.html#getting-mathjax-via-git</a></td>
+</tr>
+</table>
+</body></html>



reply via email to

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