jupyter-book: PDF's do not respect hidden cells

If you use hide-cell, the cell does not show up in the HTML version, but does show up in both the LaTeX and HTML based PDFs.

The new version is fantastic, by the way!..

About this issue

  • Original URL
  • State: open
  • Created 4 years ago
  • Comments: 23 (16 by maintainers)

Most upvoted comments

ah yes - I think that particular feature hasn’t yet made its way into the Latex builder (cc @mmcky )

For the HTML builder - hmm I hadn’t thought about the best way to handle that. It’s a bit tricky going from interactive -> static PDF gracefully. So you’d expect a “hidden” cell (w/ a toggle button) to be removed in the final PDF?

And thanks 😃

@mmcky I think that’s reasonable. I will go ahead and merge it.

@AakashGfude given juptyerbook-latex is still in development – I think you can merge that branch into master to set that extension up. We can add new features and bug fixes via PR. It will make initial testing a bit easier. We should also add install instructions to the README while it is not available via pip

what do you think?

@amichuda@AakashGfude is starting to look into this also and plans to make some headway for improvements to latex in jupyterbook-latex repo to hold transforms needed to improve latex support. So it would be great to work with you on this. (Currently that repo is empty but is a placeholder for work to be done on this).

As a starting guide to learn about sphinx transforms is in the developing extensions guide which gives you an overview of sphinx. There isn’t much documentation on transforms and post-transforms. The application interface is here and the actual code is well organised in sphinx repo.