Giter Site home page Giter Site logo

Comments (2)

jgm avatar jgm commented on June 17, 2024

This is a bit tricky, though. Some Greek letters, particularly
capitals, are used as operators, right? And there's no way to tell
from the TeX which it is.

Should we treat all lowercase Greek letters as mi, and uppercase
as mo? Or would it be better to make them all mi?

+++ rwst [Nov 08 11 08:59 ]:

The input in pandoc markdown

text $a+\alpha$

when fed to the command

pandoc -f markdown t --mathml -o t.xml

results in

<p>text <math display="inline" xmlns="http://www.w3.org/1998/Math/MathML"><mrow><mi>a</mi><mo>+</mo><mo>&#945;</mo></mrow></math></p>

i.e., the alpha is presented as operator while the MathML 3.0 spec says in 3.2.3.3:

The names of symbolic constants should be represented as mi elements:

<mi> &#x3C0;<!--GREEK SMALL LETTER PI--> </mi>
<mi> &#x2148;<!--DOUBLE-STRUCK ITALIC SMALL I--> </mi>
<mi> &#x2147;<!--DOUBLE-STRUCK ITALIC SMALL E--> </mi>

Reply to this email directly or view it on GitHub:
#2

from texmath.

rwst avatar rwst commented on June 17, 2024

There IS a way to tell from LaTeX either 1) if a char is used as math operator;
and 2) if a greek char is intended to be written upright. The default is

  1. always NO; 2) always NO for lowercase and YES for those uppercase
    chars that are different from Latin -- see the book Math Mode by Voß.

This canonical text also recommends using

  1. \mathop or the AMSTeX macro \DeclareMathOperator; and 2) the upgreek package
    for upright lowercase greek and \mathit for italic uppercase greek.

This issue was about default behaviour which should now be identical to LaTeX.

from texmath.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.