question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Math not rendering on pdf using pdfhtml builder

See original GitHub issue

Describe the bug

context I’m trying to build a pdf from the book’s HTML by doing

jupyter-book build mybookname/ --builder pdfhtml

expectation I expected the book to show the math as on the website (image below)

image

bug But the math is not rendering. It shows as seen below

image

problem Math is not rendered in the pdf and is needed by some people writing math in their books. I didn’t find this documented, sorry if I just missed it.

Reproduce the bug

  1. Clone https://github.com/marianaiv/tesis_grado_UCV/tree/marco-teorico to your computer
  2. Go to the file. From the command line would be
    cd path_where_cloned/tesis_grado_UCV
  3. Build the pdf using jupyter-book build tesis --builder pdfhtml

List your environment

jupyter-book --version
Jupyter Book      : 0.12.2
External ToC      : 0.2.4
MyST-Parser       : 0.15.2
MyST-NB           : 0.13.2
Sphinx Book Theme : 0.1.10
Jupyter-Cache     : 0.4.3
NbClient          : 0.5.4
  • Version of Python: 3.7.4
  • OS: Windows 10

Issue Analytics

  • State:closed
  • Created a year ago
  • Reactions:1
  • Comments:5 (4 by maintainers)

github_iconTop GitHub Comments

3reactions
AakashGfudecommented, Apr 19, 2022

Hi @marianaiv, thanks for pointing this out. It does seem broken at my end as well. We will keep this issue a priority.

1reaction
SimplyOmcommented, Jul 6, 2022

Thanks for checking @AakashGfude. I’ll submit a PR for this over next couple days.

I’m not very close to the entire codebase though - I’m guessing you have checked and this would not have any other unintended impact?

Read more comments on GitHub >

github_iconTop Results From Across the Web

Generating a PDF in Rails with MathJax and wkhtmltopdf
This works, in that a PDF is created which is saved to the user's computer. However, the maths is not rendered properly because,...
Read more >
PDF is not completely rendered (math equations) : r/buboflash
Hi,. I am opening a pdf paper in Buboflash and many of the formulae are not rendering correctly. See Buboflash's display:.
Read more >
PDF Options - Quarto
For LaTeX/PDF output, the options set for the document class. For HTML output using KaTeX, you can render display math equations flush left...
Read more >
Build a PDF - Jupyter Book
It is possible to build a single PDF from your book's HTML. This starts by converting all of your book's content into a...
Read more >
How can I render a markdown file with some LaTeX inline math?
If you need a command line tool to convert markdown to pdf or html, then pandoc might be a good candidate. You simply...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found