Skip to content
This repository has been archived by the owner on Dec 18, 2018. It is now read-only.

Mathematical functions #7

Closed
fabienrohrer opened this issue Apr 14, 2016 · 4 comments
Closed

Mathematical functions #7

fabienrohrer opened this issue Apr 14, 2016 · 4 comments
Assignees

Comments

@fabienrohrer
Copy link
Member

For now, the formula sources are still into the TEX format in the webots/src/doc/formulas/ repository.

A better integration seems obviously required.

Several Javascript are doing mathematical text to HTML formula view conversion very well including:

MathJax is supposed to support TEX formulas, amongs other, which seems to be the shortest way to import our formulas.

Some code snippet are existing to integrate this into showdown:
https://gist.github.com/xentec/6588519
https://gist.github.com/npisenti/3028983

@fabienrohrer
Copy link
Member Author

Complete search on the Markdown and mathematical topic: https://github.com/cben/mathdown/wiki/math-in-markdown

@fabienrohrer fabienrohrer mentioned this issue Apr 14, 2016
5 tasks
@fabienrohrer
Copy link
Member Author

@omichel After our discussion on Monday, I'm assigning this issue to you.

@fabienrohrer fabienrohrer assigned omichel and unassigned fabienrohrer Mar 22, 2017
@omichel
Copy link
Member

omichel commented Mar 22, 2017

The proposed solution is the following:

  • use MathML in our source files.
  • include the MathJax Javascript from the cdn for the online version with the MML_HTMLorMML config, which mean input is in MathML format, output is in HTML or MathML if supported by the browser (Firefox supports MathML, Chrome doesn't).
  • the offline version relies on WebKit which supports natively MathML.
  • we can use online wysiwyg tools to generate the formulae in MathML format such as http://www.wiris.com/editor/demo/en/mathml-latex

@fabienrohrer
Copy link
Member Author

Fixed in #41

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Development

No branches or pull requests

2 participants