help-texinfo
[Top][All Lists]
Advanced

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

Re: How to add "Up:" to Texinfo navigation bar?


From: Gavin Smith
Subject: Re: How to add "Up:" to Texinfo navigation bar?
Date: Sat, 31 Aug 2024 12:41:45 +0100

On Fri, Aug 30, 2024 at 10:32:26AM +0200, Rudolf Adamkovič wrote:
> Another point of friction was MathJax, namely its *hard-coded*
> configuration.  I ended up pointing `MATHJAX_SCRIPT' to a dummy file,
> and then configuring and loading MathJax myself in `EXTRA_HEAD'.

I don't know what your problem is with texi2any's use of MathJax.
Why are MATHJAX_SCRIPT and MATHJAX_SOURCE not enough?

> Speaking of MathJax, Texinfo puts each `displaymath' inside a `div' and
> `em', so with no-JavaScript browsers, and text readers, such fragments
> become LaTeX code with *no line breaks*, which makes them hard to read.
> Perhaps Texinfo could put displayed mathematics into some HTML element
> that preserves line breaks?

I don't know why you say there are no line breaks.  For example:

@displaymath
 f(x)
= {1\over\sigma\sqrt{2\pi}}
     e^{-{1\over2}\left({x-\mu\over\sigma}\right)^2}
@end displaymath

This becomes in HTML (with -c HTML_MATH=mathjax):

<div class="displaymath"><em class="tex2jax_process">\[ f(x)
= {1\over\sigma\sqrt{2\pi}}
     e^{-{1\over2}\left({x-\mu\over\sigma}\right)^2}
\]</em></div>

I tested this in "lynx" and it looks as follows:

   \[ f(x) = {1\over\sigma\sqrt{2\pi}}
   e^{-{1\over2}\left({x-\mu\over\sigma}\right)^2} \]

The content is breaking, just not at exactly the line breaks in the
HTML source.

In TeX, a single line break is equivalent to a space, so there is
no loss of meaning.




reply via email to

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