Latex / Mathjax

's Avatar

m.bath

30 Oct, 2012 10:15 PM

Hi!

Will you be adding support for cases in mathjax?

  1. Support Staff 1 Posted by Brett on 08 Nov, 2012 05:11 PM

    Brett's Avatar

    I have to admit that I don't know what that means.

    MathJax is included as a convenience, but I'm not a math guy. If MathJax can support it, though, I can probably get it working. Do you have a link to any documentation from MathJax on this?

  2. 2 Posted by Robin on 24 Apr, 2013 03:59 PM

    Robin's Avatar

    This is something I would be interested in as well.

    The implentation in Markdown-Here (Chrome/Firefox plugin to allow Markdown in Gmail) works pretty well for me. I think it uses MathJax so perhaps that would be a starting point.

  3. 3 Posted by rebcabin on 18 Jun, 2014 01:59 PM

    rebcabin's Avatar

    Hello -- I bought Marked specifically for MathJax support, specifically as advertized here http://markedapp.com/, but I can't guess how to make it work. I tried following instructions like these, https://stackedit.io/, copied here

    MathJax

    You can render LaTeX mathematical expressions using MathJax, as on [math.stackexchange.com][1]:

    The Gamma function satisfying $\Gamma(n) = (n-1)!\quad\forall
    n\in\mathbb N$ is via the Euler integral

    $$ \Gamma(z) = \int_0^\infty t^{z-1}e^{-t}dt\,. $$

    Tip: Make sure you include MathJax into your publications to render mathematical expression correctly. Your page/template should include something like:

    <script type="text/javascript" src="https://stackedit.io/libs/MathJax/MathJax.js?config=TeX-AMS_HTML"></script>
    

    and i wrote the following

    # Math Test


    <script type="text/javascript" src="https://stackedit.io/libs/MathJax/MathJax.js?config=TeX-AMS_HTML"></script>


    $\mu = 42$
    which displays like this
    $\mu = 42$ instead of typeset like math. Can you help, please & thanks?
  4. Support Staff 4 Posted by Brett on 18 Jun, 2014 02:05 PM

    Brett's Avatar

    Which version of Marked are you using? If you're on 1.4, you have to use
    \[ delimiters as documented in the MultiMarkdown documentation. If
    you're on 2.x, you should be able to use $ as you show, assuming MathJax
    is enabled in Style preferences.

  5. 5 Posted by rebcabin on 18 Jun, 2014 02:32 PM

    rebcabin's Avatar

    Looks like 1.4 (228). I just tried

    [\mu = 42]
    
    and
    [$\mu=42$]
    
    and it didn't display correctly. Can you give me a (full even if tiny, like the above) example or point me to the appropriate documentation lest I be doomed to continuing trial-and-error?
  6. 6 Posted by rebcabin on 18 Jun, 2014 02:34 PM

    rebcabin's Avatar

    I did put in the correct bracketing syntax in my sample, it just didn't show up in my response above. My .md file looks like
    backslash
    left-square-bracket
    backslash
    m
    u

    space

    space
    4
    2
    backslash
    right-square-bracket

  7. 7 Posted by rebcabin on 18 Jun, 2014 02:36 PM

    rebcabin's Avatar

    let me try that again in plain text. My full MD sample (which doesn't work) is this (copy pasted from text edit)

    Math Test

    [\mu = 42]

  8. 8 Posted by rebcabin on 18 Jun, 2014 02:38 PM

    rebcabin's Avatar

    oh my god, I can't get this forum to stop formatting my pastes & just show my stuff literally -- i'm including a file. Sorry for the noise :(

  9. Support Staff 9 Posted by Brett on 18 Jun, 2014 02:42 PM

    Brett's Avatar

    Still wondering which version... From the MMD documentation:

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

    This works in 2.2 and should work in 1.4:

    mathjax

    Tip: Indent your code examples by 5 spaces to get exact formatting.

  10. Support Staff 10 Posted by Brett on 18 Jun, 2014 02:43 PM

    Brett's Avatar

    In 2.x, this also works for inline equations:

     ${e}^{i\pi } 1=0$
    
  11. 11 Posted by rebcabin on 18 Jun, 2014 04:10 PM

    rebcabin's Avatar

    WORKS! Thanks much!

  12. 12 Posted by Jerome Baum on 20 Jun, 2014 08:48 PM

    Jerome Baum's Avatar

    When are you posting 2.x on the App Store? I am trying to get this to work and it doesn't work with $ delimiters. The MMD reference says they should work:

    https://rawgit.com/fletcher/human-markdown-reference/master/index.html

  13. Support Staff 13 Posted by Brett on 20 Jun, 2014 08:51 PM

    Brett's Avatar

    First, that's not an official MMD reference. The version in 1.4 does not recognize $ delimiters. 2.0 will be submitted to the App Store next week as a new application requiring a new purchase. Availability will depend on the review process.

  14. 14 Posted by Jerome Baum on 20 Jun, 2014 08:57 PM

    Jerome Baum's Avatar

    Here's the official version:

    http://fletcher.github.io/MultiMarkdown-4/math

    :)

    What pricing are you look at for Marked 2? Is the upgrade pay-for for everyone or only App Store users? (Apologies if this is getting too far off-topic :))

  15. 15 Posted by Jerome Baum on 20 Jun, 2014 08:58 PM

    Jerome Baum's Avatar

    Btw, awesome response time! :)

  16. Support Staff 16 Posted by Brett on 20 Jun, 2014 09:05 PM

    Brett's Avatar

    Marked 2's official price will _probably_ be $13.99 US. It will be
    offered initially at an "intro" price to allow users to upgrade,
    probably $9.

  17. Support Staff 17 Posted by Brett on 20 Jun, 2014 09:05 PM

    Brett's Avatar

    Note that it's available right now for 11.99 at http://marked2app.com.

    -Brett

Reply to this discussion

Internal reply

Formatting help / Preview (switch to plain text) No formatting (switch to Markdown)

Attaching KB article:

»

Attached Files

You can attach files up to 10MB

If you don't have an account yet, we need to confirm you're human and not a machine trying to post spam.

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