Displaying math formulas

Oliver Schrenk's Avatar

Oliver Schrenk

19 Jul, 2012 04:43 PM

I'm trying to use Marked with MultiMarkdowns Math support but have difficulties getting it to work.

Consider the following example

# Mathematics #

You can also include formulas within a sentence, such as
$x^2 + y^2 = 1$

## Eulers Identity ##

<< e^(i pi) + 1 = 0 [Euler's identity]>>

I tried both styles $$, and <<>>, but none will display the beautiful math formulas I crave so much (much like plants crave electrolytes).

Using Marked 1.4 (221)
OSX 10.7.4
FIle extension is called math.md
Installed mmd is peg-multimarkdown version 3.2
Calling Marked through Sublime Text 2 Build Tool.
Checked Include MathJax from CDN (I also tried without but it didn't change anything)

What am I doing wrong? Missing headers? Wrong extension (I tried .mmd, which Marked does not identify)?

  1. Support Staff 1 Posted by Brett on 19 Jul, 2012 05:06 PM

    Brett's Avatar

    As long as MathJax is enabled in preferences, you should be able to use this syntax:

     \\[ {e}^{i\pi } 1=0 \\]
    
     \\[ {x}_{1,2}=\frac{-b\pm \sqrt{{b}^{2}-4ac}}{2a} \\]
    
     \\[ \frac{H_{U_1}}{H_{U_1}} \\] 
    
     \\[ $latex \frac{1}{2 \pi} $$ \\]
    
     You can also include formulas within a sentence, such as \\({x}^{2} {y}^{2}=1\\).
    

    Should give you something like: http://ckyp.us/F819

  2. 2 Posted by Oliver Schrenk on 19 Jul, 2012 05:47 PM

    Oliver Schrenk's Avatar

    Using \\[...\\] does work.

    I was using the MultiMarkdown Syntax which basically uses <<...>> but it seems this has since been superseded by the MMD 3.0 Syntax.

    So it seems the MMD documentation is out of date. Thanks for your input

  3. Brett closed this discussion on 23 Jul, 2012 05:00 PM.

Comments are currently closed for this discussion. You can start a new one.

Keyboard shortcuts

Generic

? Show this help
ESC Blurs the current field

Comment Form

r Focus the comment reply box
^ + ↩ Submit the comment

You can use Command ⌘ instead of Control ^ on Mac