From bf69a9d4aa62bc6ab9767a8557fb63cb9a445cb9 Mon Sep 17 00:00:00 2001 From: Lilian Besson Date: Sat, 10 Oct 2020 13:25:31 +0200 Subject: [PATCH] Failed, see #9 --- Makefile | 8 ++++++++ example11.html | 52 ++++++++++---------------------------------------- 2 files changed, 18 insertions(+), 42 deletions(-) create mode 100644 Makefile diff --git a/Makefile b/Makefile new file mode 100644 index 0000000..07b6ba4 --- /dev/null +++ b/Makefile @@ -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/ diff --git a/example11.html b/example11.html index 4a3fc8e..f917980 100644 --- a/example11.html +++ b/example11.html @@ -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} $$

+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 - + ``` 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). +