- How to integrate LaTeX code in a post by Jacopo Notarstefano
- Re: How to integrate LaTeX code in a post by Jacopo Notarstefano
- Re: [nesta] Re: How to integrate LaTeX code in a post by Graham Ashton
- Re: [nesta] Re: How to integrate LaTeX code in a post by Jacopo Notarstefano
- Re: [nesta] Re: How to integrate LaTeX code in a post by Jeff Clites

- From:
- Jacopo Notarstefano
- Date:
- 2012-02-06 @ 17:27

Hey everyone! I'm writing a post for my blog where I'd really like to type some mathematical formulas using LaTeX. These formulas would appear either in the text or on their own lines, as in a typical post on math.stackexchange.com, e.g. http://math.stackexchange.com/questions/106303/integral-with-sums-of-prime-counting-functions What do you think would be the best way to get the job done? Cheers, Jacopo Notarstefano

- From:
- Jacopo Notarstefano
- Date:
- 2012-02-06 @ 23:16

I found a solution involving Mathjax. You might check the result at http://jacquerie.it/ (but that particular post is in italian! sorry about that.) Here's the code that made it work: https://github.com/Jacquerie/jacquerie.it/commit/c2cfd7fc2897b9d2499c4faaf4410a14a8bac5bd Cheers, Jacopo Notarstefano On Feb 6, 2012, at 6:27 PM, Jacopo Notarstefano wrote: > Hey everyone! > > I'm writing a post for my blog where I'd really like to type some mathematical formulas using LaTeX. These formulas would appear either in the text or on their own lines, as in a typical post on math.stackexchange.com, e.g. http://math.stackexchange.com/questions/106303/integral-with-sums-of-prime-counting-functions > > What do you think would be the best way to get the job done? > > Cheers, > Jacopo Notarstefano

- From:
- Graham Ashton
- Date:
- 2012-02-07 @ 11:20

On 6 Feb 2012, at 23:16, Jacopo Notarstefano wrote: > I found a solution involving Mathjax. You might check the result at http://jacquerie.it/ (but that particular post is in italian! sorry about that.) > > Here's the code that made it work: https://github.com/Jacquerie/jacquerie.it/commit/c2cfd7fc2897b9d2499c4faaf4410a14a8bac5bd Nice. I wanted to do equations myself a few months ago but didn't pursue it hard enough. -- Graham Ashton Founder, The Agile Planner http://theagileplanner.com | @agileplanner | @grahamashton

- From:
- Jacopo Notarstefano
- Date:
- 2012-02-07 @ 22:55

Ah, I forgot to say that Markdown syntax and Mathjax clash somehow. Here's two bugs I ran into, and how I solved them. i) a^b is translated by Markdown with the "b" wrapped in a <sup> tag. The simplest solution I found was to use display mode, which ignores spaces, and write a ^{b}. ii) the (recommended) \( syntax can't be used, because LaTeX and Markdown share backslash as the escape character. The solution I found was to pass a configuration block to Mathjax using the (deprecated) dollar sign syntax. Hopefully this will be useful to someone, someday! Cheers, Jacopo On Tue, Feb 7, 2012 at 12:20 PM, Graham Ashton <graham@effectif.com> wrote: > On 6 Feb 2012, at 23:16, Jacopo Notarstefano wrote: > > > I found a solution involving Mathjax. You might check the result at > http://jacquerie.it/ (but that particular post is in italian! sorry about > that.) > > > > Here's the code that made it work: > https://github.com/Jacquerie/jacquerie.it/commit/c2cfd7fc2897b9d2499c4faaf4410a14a8bac5bd > > Nice. I wanted to do equations myself a few months ago but didn't pursue > it hard enough. > > -- > Graham Ashton > Founder, The Agile Planner > http://theagileplanner.com | @agileplanner | @grahamashton > > > >

- From:
- Jeff Clites
- Date:
- 2012-02-12 @ 20:34

Instiki (a Rails-based wiki engine) has Markdown + LaTeX support, so whatever solution they came up with might be reusable: http://golem.ph.utexas.edu/wiki/instiki/show/HomePage Seems like some Markdown enhancement is what is needed, to allow marking a section to be processed specially, to avoid (or minimize) the syntax clashes. JEff On Feb 7, 2012, at 2:55 PM, Jacopo Notarstefano wrote: > > Ah, I forgot to say that Markdown syntax and Mathjax clash somehow. Here's two bugs I ran into, and how I solved them. > > i) a^b is translated by Markdown with the "b" wrapped in a <sup> tag. The simplest solution I found was to use display mode, which ignores spaces, and write a ^{b}. > > ii) the (recommended) \( syntax can't be used, because LaTeX and Markdown share backslash as the escape character. The solution I found was to pass a configuration block to Mathjax using the (deprecated) dollar sign syntax. > > Hopefully this will be useful to someone, someday! > > Cheers, > Jacopo > > > On Tue, Feb 7, 2012 at 12:20 PM, Graham Ashton <graham@effectif.com> wrote: > On 6 Feb 2012, at 23:16, Jacopo Notarstefano wrote: > > > I found a solution involving Mathjax. You might check the result at http://jacquerie.it/ (but that particular post is in italian! sorry about that.) > > > > Here's the code that made it work: https://github.com/Jacquerie/jacquerie.it/commit/c2cfd7fc2897b9d2499c4faaf4410a14a8bac5bd > > Nice. I wanted to do equations myself a few months ago but didn't pursue it hard enough.