Failed, see #9
This commit is contained in:
8
Makefile
Normal file
8
Makefile
Normal file
@@ -0,0 +1,8 @@
|
||||
# Makefile to send this Git repository to Zam
|
||||
SHELL=/usr/bin/env /bin/bash
|
||||
|
||||
all: send
|
||||
|
||||
send: send_zamok
|
||||
send_zamok:
|
||||
CP --exclude=.git ./ ${Szam}publis/StrapDown.js/
|
@@ -13,6 +13,11 @@ Inline equations, as for instance the classic `\Delta = b^2-4ac` and
|
||||
$$ J\_\alpha(x) = \sum\limits\_{m=0}^\infty \frac{(-1)^m}{m! \, \Gamma(m + \alpha + 1)}{\left({\frac{x}{2}}\right)}^{2 m + \alpha} $$
|
||||
</p>
|
||||
|
||||
Also using dollar sign as delimiter:
|
||||
$\Delta^2 - 4ac$
|
||||
$x_(1,2) = (-b pm sqrt Delta)(2a)$, or display equations as this one :
|
||||
$$ J\_\alpha(x) = \sum\limits\_{m=0}^\infty \frac{(-1)^m}{m! \, \Gamma(m + \alpha + 1)}{\left({\frac{x}{2}}\right)}^{2 m + \alpha} $$
|
||||
|
||||
## From a classic math book
|
||||
But a less classic exercise about [Hölder functions](https://en.wikipedia.org/wiki/H%C3%B6lder_condition)
|
||||
(more precisely, *Exercice 7*, Chapter 4.5, page 267, of the [Gourdon, "*Les maths en tête : Analyse*", $2^\text{nd}$ edition](http://www.amazon.fr/gp/product/2729837590) book).
|
||||
@@ -35,56 +40,16 @@ You just have to load [MathJax](http://www.mathjax.org/) (as described [here](ht
|
||||
from the bottom of a *StrapDown*-flavored page, for instance from the default *CDN* :
|
||||
|
||||
> ```html
|
||||
<script type="text/javascript" src="//cdnjs.cloudflare.com/ajax/libs/mathjax/2.7.0/MathJax.js?config=TeX-AMS-MML_HTMLorMML"></script>
|
||||
<script type="text/javascript" src="//cdnjs.cloudflare.com/ajax/libs/mathjax/2.7.0/MathJax.js?config=AM_CHTML"></script>
|
||||
```
|
||||
|
||||
You can consult [a second example](example4.html) to see some more advanced examples of LaTeX equations rendered with MathJax.
|
||||
|
||||
### A better solution?
|
||||
From version 0.5, you can import MathJax in an even *quicker* way: you just have to add ``&mathjax=yes`` to the URL used to import [``strapdown.min.js``](index.html).
|
||||
See [the first paragraph of this third example](example5.html) to see this.
|
||||
|
||||
***
|
||||
|
||||
# Warning
|
||||
Be aware of the following limitations :
|
||||
|
||||
## Escape the underscore ('``_``')
|
||||
The [StrapDown.js](//lbesson.bitbucket.io/md/index.html) text processor interprets
|
||||
underscores (the '``_``' symbol) as underline markup (like _this_),
|
||||
so be sure to escape the '``_``' in the $\LaTeX2e{}$ code.
|
||||
|
||||
A *bad looking* example could be ``$\mathcal{M}_{n,m}(\mathbb{F_9})$``
|
||||
(which is **badly displayed** as $\mathcal{M}_{n,m}(\mathbb{F_9})$). _Ugly_ right ?
|
||||
|
||||
Escape the '``_``' in the previous code to get ``$\mathcal{M}\_{n,m}(\mathbb{F\_9})$`` :
|
||||
now it is **nicely displayed** as $\mathcal{M}\_{n,m}(\mathbb{F\_9})$.
|
||||
|
||||
## Escape some others Markdown markup code ('``*``', '``**``' or '``#``')
|
||||
The previous limitation is also true for other symbols, used for *Markdown as markup* and for *LaTeX as symbols*.
|
||||
|
||||
An example could be ``$[ u^*; v^*](x)$`` (which is badly displayed as $[ u^*; v^*](x)$),
|
||||
which becomes ``$\[ u^\*; v^\*\]\(x\)$`` (now it is nicely displayed as $\[ u^\*; v^\*\]\(x\)$).
|
||||
|
||||
A pretty good rule of thumb can be to **escape every Markdown markup symbols** in LaTeX code.
|
||||
Feel free to refresh your mind about which symbols are used as elements of the Markdown syntax
|
||||
with [this page](http://daringfireball.net/projects/markdown/syntax#list),
|
||||
or [this one on Wikipedia](https://en.wikipedia.org/wiki/Markdown).
|
||||
|
||||
## Escape the backslash ('``\``')
|
||||
The backslash symbol, already escaped by an backslash ('``\``')
|
||||
is used in LaTeX to force a new line. It is usually used in aligned equations,
|
||||
as shown in the Lorenz Equations [here](example4.html).
|
||||
|
||||
You should also escape the backslash, by typing ``\\`` where you would have
|
||||
used a simple ``\`` in LaTeX.
|
||||
|
||||
***
|
||||
|
||||
## See also
|
||||
+ [This page](http://perso.crans.org/besson/math.html) shows how to use MathJax on a [Sphinx](http://sphinx-doc.org/) project.
|
||||
+ [This script (strapdown2pdf)](strapdown2pdf.html) to print to PDF a *StrapDown*-powered web page.
|
||||
It comes with a limited support of LaTeX (still not perfect).
|
||||
+ [This script (strapdown2pdf)](strapdown2pdf.html) to print to PDF a *StrapDown*-powered web page. It comes with a limited support of LaTeX (still not perfect).
|
||||
|
||||
---
|
||||
|
||||
@@ -97,4 +62,7 @@ It comes with a limited support of LaTeX (still not perfect).
|
||||
</xmp>
|
||||
<script type="text/javascript" src="//cdnjs.cloudflare.com/ajax/libs/mathjax/2.7.0/MathJax.js?config=AM_CHTML&locale=fr"></script>
|
||||
<script type="text/javascript" src="strapdown.min.js"></script>
|
||||
<script type="text/javascript">
|
||||
window.MathJax = { loader: { load: ['input/asciimath'] }, asciimath: { delimiters: [['$','$'], ['`','`']] } });
|
||||
</script>
|
||||
</body></html>
|
||||
|
Reference in New Issue
Block a user