Skip to content
GitLab
Projects Groups Snippets
  • /
  • Help
    • Help
    • Support
    • Community forum
    • Submit feedback
    • Contribute to GitLab
  • Sign in / Register
  • M MathJax
  • Project information
    • Project information
    • Activity
    • Labels
    • Members
  • Repository
    • Repository
    • Files
    • Commits
    • Branches
    • Tags
    • Contributors
    • Graph
    • Compare
  • Issues 304
    • Issues 304
    • List
    • Boards
    • Service Desk
    • Milestones
  • Merge requests 15
    • Merge requests 15
  • CI/CD
    • CI/CD
    • Pipelines
    • Jobs
    • Schedules
  • Deployments
    • Deployments
    • Environments
    • Releases
  • Packages and registries
    • Packages and registries
    • Package Registry
    • Infrastructure Registry
  • Monitor
    • Monitor
    • Incidents
  • Analytics
    • Analytics
    • Value stream
    • CI/CD
    • Repository
  • Wiki
    • Wiki
  • Snippets
    • Snippets
  • Activity
  • Graph
  • Create a new issue
  • Jobs
  • Commits
  • Issue Boards
Collapse sidebar
  • MathJax
  • MathJax
  • Wiki
  • Usage of the semantics element

Usage of the semantics element · Changes

Page history
Create a page about usage of semantics authored Dec 03, 2012 by fred-wang's avatar fred-wang
Hide whitespace changes
Inline Side-by-side
Usage-of-the-semantics-element.md 0 → 100644
View page @ 7e49c233
Various tools generate MathML code with some annotations attached to it. The most typical examples are LaTeX to MathML converters that embed the LaTeX code inside an <annotation> or Computer Algebra Systems adding content MathML inside an <annotation-xml>. Below we describes briefly how some of these MathML applications use the <semantics> element to preserve this kind of information. The information can naturally be shared between applications during file transfer or copy & paste operations. MathJax could expose the most important formats to its "Show Math As" menu. See https://github.com/mathjax/MathJax/issues/357.
* Gellmu: uses a TeX-like input. It does not seem to include any <annotation> element. The documentation mentions possible generation of semantics info in the future, so probably something like content MathML or OpenMath. See http://www.albany.edu/~hammond/gellmu/glman/glman.xhtml#SU-9.2.6
* LaTeXML: adds the LaTeX code inside math@alttext as well as an <annotation> with encoding "application/x-tex". LaTeX macros are expanded.
* Maple: Seems to generate "MathML-Content" in <annotation-xml> and "Maple" in <annotation>: http://www.maplesoft.com/support/help/Maple/view.aspx?path=MathML/ExportContent
* MathType: ???
* Mathematica: It seems possible to generate <semantics> with "MathML-Content" in an <annotation-xml>: http://reference.wolfram.com/mathematica/ref/format/MathML.html
* Sage: ???
* StartOffice/OpenOffice/LibreOffice: includes the original StarOffice code in an <annotation> element. Encoding is e.g "StarMath 5.0".
* Tex4ht, HeVeA, Hermes: ??? do not seem to include the LaTeX code
* Word: ???
* blahtex: By default Blahtex(ml) does not use any annotation. If the --annotate-TeX option is used an <annotation> with encoding "TeX" is created. The LaTeX macros are expanded. It is also possible to use the --annotate-PNG option to generate an <annotation> with the URI of a PNG representation of the formula.
* itex2MML: does not include the LaTeX code, but Jacques Distler told me he plans to implement that in the future and suggested that Gecko support copy and paste. itex2MML does not support LaTeX macros. itex2MML is used, for example, in instiki and Abiword. itex2MML also uses the <semantics> trick to embed foreign content (e.g. SVG) in MathML.
\ No newline at end of file
Clone repository

MathJax Wiki

  • Contributing
  • Development
    • Development Process
      • Release Process Checklist
      • Hotfix Release Process
      • Documentation Update Process
      • Source Control Policies
    • Design Documents
      • MathJax Roadmap
      • CDN Hosting
        • Managing Rackspace Cloud Files & CDN
        • Directory Structure
        • .htaccess settings
        • Managing Amazon Cloudfront
      • Performance Discussion
      • Profiling and Diagnostics Tools
      • Configuration Options
      • Documentation generation guide
      • Testing
        • Platforms supported
        • Test Machines
  • MathJax web presence