Replace Google Chart API by CodeCogs
This commit is contained in:
parent
6d05c378d0
commit
4d621f43d9
3 changed files with 9 additions and 9 deletions
|
@ -962,7 +962,7 @@ Math rendering in HTML
|
|||
|
||||
: Render TeX formulas using an external script that converts TeX
|
||||
formulas to images. The formula will be concatenated with the URL
|
||||
provided. If *URL* is not specified, the Google Chart API will be used.
|
||||
provided. If *URL* is not specified, the CodeCogs will be used.
|
||||
Note: the `--webtex` option will affect Markdown output
|
||||
as well as HTML.
|
||||
|
||||
|
@ -2715,7 +2715,7 @@ Docx
|
|||
|
||||
FictionBook2
|
||||
~ If the `--webtex` option is used, formulas are rendered as images
|
||||
using Google Charts or other compatible web service, downloaded
|
||||
using CodeCogss or other compatible web service, downloaded
|
||||
and embedded in the e-book. Otherwise, they will appear verbatim.
|
||||
|
||||
HTML, Slidy, DZSlides, S5, EPUB
|
||||
|
@ -2758,8 +2758,8 @@ HTML, Slidy, DZSlides, S5, EPUB
|
|||
6. If the `--webtex` option is used, TeX formulas will be converted
|
||||
to `<img>` tags that link to an external script that converts
|
||||
formulas to images. The formula will be URL-encoded and concatenated
|
||||
with the URL provided. If no URL is specified, the Google Chart
|
||||
API will be used (`http://chart.apis.google.com/chart?cht=tx&chl=`).
|
||||
with the URL provided. If no URL is specified, the CodeCogs
|
||||
will be used (`https://latex.codecogs.com/png.latex?`).
|
||||
|
||||
7. If the `--mathjax` option is used, TeX math will be displayed
|
||||
between `\(...\)` (for inline math) or `\[...\]` (for display
|
||||
|
|
|
@ -1092,7 +1092,7 @@ If \f[I]URL\f[] is not specified, it is assumed that the script is at
|
|||
Render TeX formulas using an external script that converts TeX formulas
|
||||
to images.
|
||||
The formula will be concatenated with the URL provided.
|
||||
If \f[I]URL\f[] is not specified, the Google Chart API will be used.
|
||||
If \f[I]URL\f[] is not specified, the CodeCogs will be used.
|
||||
Note: the \f[C]\-\-webtex\f[] option will affect Markdown output as well
|
||||
as HTML.
|
||||
.RS
|
||||
|
@ -3376,7 +3376,7 @@ It will be rendered using OMML math markup.
|
|||
.TP
|
||||
.B FictionBook2
|
||||
If the \f[C]\-\-webtex\f[] option is used, formulas are rendered as
|
||||
images using Google Charts or other compatible web service, downloaded
|
||||
images using CodeCogs or other compatible web service, downloaded
|
||||
and embedded in the e\-book.
|
||||
Otherwise, they will appear verbatim.
|
||||
.RS
|
||||
|
@ -3433,8 +3433,8 @@ If the \f[C]\-\-webtex\f[] option is used, TeX formulas will be
|
|||
converted to \f[C]<img>\f[] tags that link to an external script that
|
||||
converts formulas to images.
|
||||
The formula will be URL\-encoded and concatenated with the URL provided.
|
||||
If no URL is specified, the Google Chart API will be used
|
||||
(\f[C]http://chart.apis.google.com/chart?cht=tx&chl=\f[]).
|
||||
If no URL is specified, the CodeCogs will be used
|
||||
(\f[C]https://latex.codecogs.com/png.latex?\f[]).
|
||||
.IP "7." 3
|
||||
If the \f[C]\-\-mathjax\f[] option is used, TeX math will be displayed
|
||||
between \f[C]\\(...\\)\f[] (for inline math) or \f[C]\\[...\\]\f[] (for
|
||||
|
|
|
@ -823,7 +823,7 @@ options =
|
|||
, Option "" ["webtex"]
|
||||
(OptArg
|
||||
(\arg opt -> do
|
||||
let url' = fromMaybe "http://chart.apis.google.com/chart?cht=tx&chl=" arg
|
||||
let url' = fromMaybe "https://latex.codecogs.com/png.latex?" arg
|
||||
return opt { optHTMLMathMethod = WebTeX url' })
|
||||
"URL")
|
||||
"" -- "Use web service for HTML math"
|
||||
|
|
Loading…
Add table
Reference in a new issue