Giter Club home page Giter Club logo

Comments (6)

WI-KIWI avatar WI-KIWI commented on June 17, 2024 2

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.

from jupyter2slides.

AliDashti avatar AliDashti commented on June 17, 2024 1

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());
      }
    };

from jupyter2slides.

karelin avatar karelin commented on June 17, 2024

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.

from jupyter2slides.

 avatar commented on June 17, 2024

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

from jupyter2slides.

 avatar commented on June 17, 2024

replace the lines below to keep the same theme:

from jupyter2slides.

ezmiller avatar ezmiller commented on June 17, 2024

Also having this problem.

from jupyter2slides.

Related Issues (15)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.