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.

PDF export of page includes right side-bar

See original GitHub issue

Is your feature request related to a problem? Please describe. I’m creating a course jupyterbook template and the export to pdf correctly ignores the left sidebar, but does include the table of contents on there right.

HTML version:

Screen Shot 2020-07-07 at 12 27 57 PM

PDF version:

Screen Shot 2020-07-07 at 12 59 57 PM

Describe the solution you’d like Several options come to mind:

  1. Remove right-sidebar from PDF export by default or user-controlled parameter

Describe alternatives you’ve considered Other options:

  1. Hide/disable “on this page” from HTML version also
  2. Move “on this page” to the left sidebar
  3. Make the text on the page full-width

Re #4, the docs talk about having full-width jupyter notebook cells. Is it possible to do this also with .md files as well ? That would be a good workaround for me! I guess I could move my md file into a notebook and just add the full width tag.

Issue Analytics

  • State:closed
  • Created 3 years ago
  • Comments:7 (7 by maintainers)

github_iconTop GitHub Comments

4reactions
firasmcommented, Jul 11, 2020

Got it! the final incantation for anyone else wanting this is:

@media print {

    div.topbar {
        display: none;
    }

    .pr-md-0 {
        flex: 0 0 100% !important;
        max-width: 100% !important;
    }

}

In a separate CSS file created in the _static folder as described here.

Thanks!

1reaction
firasmcommented, Jul 18, 2020

Yes! I’m preparing a Syllabus template on GitHub](https://github.com/firasm/template_jb_syllabus) and I’ll hopefully be writing a blog post about this in the next few weeks once I get my courses in order.

I can write a summary for the forum as well, and I have ideas on things to add in the forum, will send in a PR.

Read more comments on GitHub >

github_iconTop Results From Across the Web

How can I export my pages without including the right side bar?
Solved: All my pages have two column section with right side bar. The sidebar has some relevant links to the content of the...
Read more >
The Sidebar - PDF Annotator Manual
The Sidebar is PDF Annotator's way of allowing rapid access to a large number of functions directly next to the document window.
Read more >
Navigating PDF pages, Adobe Acrobat
Navigating PDF pages in Adobe Acrobat, Acrobat Reader, ... You can display more tools on the Page Navigation toolbar by right-clicking the ...
Read more >
Use sidebars in Pages on Mac - Apple Support
The Pages window has sidebars on the right and left that contain controls for modifying your document, its settings, and more. The Pages...
Read more >
Export WordPress Pages & Posts to PDF Files with just One ...
You will see a new “Export this post to PDF” button shown up in the right sidebar. Simply click on this button to...
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