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

Latex rendering not working #3

Open
marpat opened this issue Oct 14, 2017 · 6 comments
Open

Latex rendering not working #3

marpat opened this issue Oct 14, 2017 · 6 comments

Comments

@marpat
Copy link

marpat commented Oct 14, 2017

Tried one cell as Markdown type and cannot get the Latex rendered. Works with RISE. How to fix it?

example:

Testing Mathjax

$\large{C_x = x^2 + \frac{a^3}{2b - c}}$

@karelin
Copy link

karelin commented Oct 22, 2017

For some reason, the author removed initialization of MathJax library from the template.

In my case, adding

{{ mathjax() }}

to static/jupyter_template.tpl file after <!--[if lt IE 9]> ... <![endif]--> part helps.

In general, the jupyter2slides project looks like a collection of hacks over nbconvert utility and not all of the hacks working properly.

@WI-KIWI
Copy link

WI-KIWI commented Nov 8, 2017

Hi karelin,
thanks for the tipp, after adding the

{{ mathjax() }}

I got doubled tex-output in html, the first one is in the right Position, and the second one is in the next line. I think it's still a little bit Buggy for html Output with Latex formula.

@ghost
Copy link

ghost commented Jun 20, 2018

If you use this template, it works:
https://github.com/jupyter/nbconvert/blob/master/nbconvert/templates/html/slides_reveal.tpl

instead of the original
jupyter_template.tpl

@ghost
Copy link

ghost commented Jun 21, 2018

replace the lines below to keep the same theme:

@ezmiller
Copy link

Also having this problem.

@AliDashti
Copy link

Hi karelin,
thanks for the tipp, after adding the

{{ mathjax() }}

I got doubled tex-output in html, the first one is in the right Position, and the second one is in the next line. I think it's still a little bit Buggy for html Output with Latex formula.

I remove the following few lines from jupyter_template.tpl and the double rendering went away:

    var update = function(event){
      if(MathJax.Hub.getAllJax(Reveal.getCurrentSlide())){
        MathJax.Hub.Rerender(Reveal.getCurrentSlide());
      }
    };

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

5 participants