Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

embedding of latex symbols #107

Closed
samoht opened this issue Feb 10, 2014 · 4 comments
Closed

embedding of latex symbols #107

samoht opened this issue Feb 10, 2014 · 4 comments

Comments

@samoht
Copy link
Member

samoht commented Feb 10, 2014

Just a random idea: it would be cool to be able to embed arbitrary latex formulas in a markdown document, using a special syntax (and extension ?).

One idea would be to generate images using an external tool and then embed the images of the formulas in the document.

@Chris00
Copy link
Member

Chris00 commented Feb 10, 2014

On Mon, 10 Feb 2014 03:03:03 -0800, Thomas Gazagnaire wrote:

Just a random idea: it would be cool to be able to embed arbitrary
latex formulas in a markdown document, using a special syntax (and
extension ?).

Agreed. One can of course use a preprocessing step transforming it to
HTML.

One idea would be to generate images using an external tool and then
embed the images of the formulas in the document.

Or, better, using mathjax.

@tinara
Copy link

tinara commented May 17, 2014

You can actually embed latex formulas with mathjax but you will have to escape some characters in your markdown file. For example,
An inline formula on the .md file (using \(...\)for inline code instead of $...$ because it's off on a raw mathjax config) :

foobar \\(y\_\{23\} = \(x^3 + 1\)^3 \\) barz baz

OMD will render it :

 <p>foobar \(y_{23} = (x^3 + 1)^3 \) barz baz</p>

or a bloc code :

 $$ \\sum\\limits\_\{i=0}^n i^3 $$

will renders

 <p>$$ \sum\limits_{i=0}^n i^3 $$</p>

And finally mathjax renders it correctly. We can't use raw bloc because, it puts the...between ... ` and Mathjax don't parse it. It will be easier to have an special syntax to "real raw blocs" we don't want omd touch or parse.

@pw374
Copy link
Contributor

pw374 commented May 18, 2014

related to #115 : see the discussion there for "real raw blocks"

@nojb
Copy link
Contributor

nojb commented Jun 20, 2020

Moved this one to #205

@nojb nojb closed this as completed Jun 20, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

5 participants