[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: Latex equation support in the documentation created by generate_html
From: |
siko1056 |
Subject: |
Re: Latex equation support in the documentation created by generate_html package |
Date: |
Sun, 29 May 2016 13:49:11 -0700 (PDT) |
Dear Fernando,
I can hardly add anything to this conversation.
* No 30 MB Javascript needs to be included, too many people are 24/7 online
these days, use the CDN.
* There should be a PDF version generated by makeinfo attached to a package
for reading offline / print.
* I guess rendering issues will be solved with upcoming versions (too many
projects use MathJax for this not to happen), we have to follow the changes.
* My biggest concern is the texinfo markup language. As Oliver explained
@math expands to some emphasize, that would eat brackets {}, and it would
require something like @verb{$My math$} to get the LaTeX through makeinfo or
texi2pdf.
I uploaded a modified part of the Octave documentation, where the effort of
including MathJax should become obvious
Exponents_and_Logarithms_mathjax.html
<http://octave.1599824.n4.nabble.com/file/n4677253/Exponents_and_Logarithms_mathjax.html>
Looking at the source, the only lines I added to the <head> are
-------------------------------
-------------------------------
The first five lines only ensure $ $ to be interpreted as inline Math, as
many users familiar to LaTeX are used to this syntax, otherwise only three
lines of code would be needed. The last thing I inserted was a more verbose
exponential function formula:
$e^x = \lim\limits_{n\rightarrow\infty}\left(1+\dfrac{x}{n}\right)^{n}$
That's all and in Firefox and Chrome everything looks great.
Best,
Kai
--
View this message in context:
http://octave.1599824.n4.nabble.com/Latex-equation-support-in-the-documentation-created-by-generate-html-package-tp4677129p4677253.html
Sent from the Octave - Maintainers mailing list archive at Nabble.com.