Traitements formules mathématiques
Actuellement notre export ne traite pas les formules mathématiques. Pour le faire il faut utiliser une option pandoc cf ici
Je pense que la solution préférable est de les traiter en mathlm. Mais il faudrait voir quelle est la manière de les traiter pour métopes et commons.
Discuter avec Métopes.
Et probablement ajouter l'option --mathml.
Je vais faire une branch de test
Article d'exemple avec des formules: https://stylo.huma-num.fr/article/68039d0419c8a20028ea214c/preview#un-cas-d%C3%A9tude-la-cr%C3%A9ativit%C3%A9-des-llms
@ymarcoux : des préconisations pour ensuite avoir l'xml?
l'option --mathml donne des trucs de ce type (en html):
<math display="block" xmlns="http://www.w3.org/1998/Math/MathML"><semantics><mrow><mi>σ</mi><mrow><mo stretchy="true" form="prefix">(</mo><msub><mi>z</mi><mi>i</mi></msub><mo stretchy="true" form="postfix">)</mo></mrow><mo>=</mo><mfrac><msup><mi>e</mi><mrow><mi>β</mi><msub><mi>z</mi><mi>i</mi></msub></mrow></msup><mrow><munderover><mo>∑</mo><mrow><mi>j</mi><mo>=</mo><mn>1</mn></mrow><mi>K</mi></munderover><msup><mi>e</mi><mrow><mi>β</mi><msub><mi>z</mi><mi>j</mi></msub></mrow></msup></mrow></mfrac><mspace width="0.222em"></mspace><mspace width="0.222em"></mspace><mspace width="0.222em"></mspace><mi>f</mi><mi>o</mi><mi>r</mi><mspace width="0.222em"></mspace><mi>i</mi><mo>=</mo><mn>1</mn><mo>,</mo><mn>2</mn><mo>,</mo><mi>…</mi><mo>,</mo><mi>K</mi></mrow><annotation encoding="application/x-tex">\sigma(z_i) = \frac{e^{\beta z_{i}}}{\sum_{j=1}^K e^{\beta z_{j}}} \ \ \ for\ i=1,2,\dots,K</annotation></semantics></math>
Edited by Marcello Vitali-Rosati