Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Export Notebook as one long pdf page using Mathematica?

I need to export my notebook to show my work.

I want the pdf just to look like what I see on my screen in the same format as I scroll down through my notebook.

Is it possible ?

Edit :

New solution, new problem, thanks to Verbeia, I was able to have obtain a "1 long page" pdf out of my notebook. But there remain weird formatting behavior as below, can we fix that ?

enter image description hereenter image description here While my notebook looks like :

like image 960
500 Avatar asked Sep 16 '11 02:09

500


2 Answers

This works for me under Mac OS X 10.6, Mma 8.0.1:

  1. Select the whole notebook. This is easiest done if you have a top-level title or heading at the beginning of the document.
  2. Choose "Save Selection As..." from the File menu (screenshot 1).
  3. Choose PDF from the resulting dialog (screenshot 2).

You need to use "Save Selection As...", because "Save As" does try to calculate page breaks. If I understand your question correctly, you want a long "scroll" PDF with no page breaks. "Save Selection As..." does that.

enter image description here

enter image description here

EDIT in response to 500's question edit

To ensure the content goes "full width", you need to set the Printing Environment properly. I found setting the Printing Environment to the default Printing (see screenshot) and setting landscape paper in the Page Setup gave good results. Alternatively, you could go to the Option Inspector and set the Page Size or Paper Size settings for that notebook explicitly. (on Mac OS X you get there from the Mathematica menu > Preferences > Advanced Tab > Show Option Inspector button > Notebook options > Printing options > Printing Options)

enter image description here

enter image description here

like image 182
Verbeia Avatar answered Oct 22 '22 20:10

Verbeia


I don't know whether this will help for the this specific case. You can explicitly enter a page break into Mathematica using Insert > Page Break (appears at the bottom of the Insert menu). Try doing that before and after the image you have here.

Exporting by saving the notebook as a pdf and exporting by using the Export function often have different results as well. You may wish to try using the Export function out.

like image 20
Searke Avatar answered Oct 22 '22 21:10

Searke