7
$\begingroup$

I have a notebook that I would like to export as a pdf file. I currently want to send this to a collaborator, but in general I'd like to keep the technique to future-proof my notebook collection against a day when I might no longer have Mathematica installed.

The notebook in question has a lot of very wide graphics of various sizes, and it occupies most of the 1920px of my screen. The pdf printout is mostly meant to be read on-screen instead of printed, so I do not care about either page width or page breaks. On the other hand, I would like to avoid excessive whitespace on either the right hand side of the page or the bottom. I want the pdf page to be as big as it needs to be, but not bigger - in essence, to be a direct representation of what the Front End actually puts on my screen.

Moreover, I would like to be able to do this programmatically from an external notebook or script that I can then run on a larger collection of notebooks.

What is the cleanest way to do this?

$\endgroup$
12
  • $\begingroup$ It doesn't seem to be possible. Your question is related to mine here: mathematica.stackexchange.com/questions/95945/… Could exporting to HTML be an alternative? $\endgroup$ Commented Nov 18, 2015 at 19:21
  • $\begingroup$ @Gustavo That's pretty disappointing. Exporting to HTML is a very-last-ditch option, as it turns all code into images. $\endgroup$ Commented Nov 18, 2015 at 19:41
  • $\begingroup$ I have been trying that before, but it never worked. I tried to use landscape A3 as the paper format setting to get more horizontal space, but this setting simply doesn't stick, it immediately reverts to letter. One thing that helps is setting the screen environment to "printout" using the Format menu. Switch on the ruler bar using the Window menu, so that you can see the paper size indicated by a marker. [cont'd] $\endgroup$ Commented Nov 18, 2015 at 20:35
  • 1
    $\begingroup$ @SjoerdC.deVries reverting to letter was a bug confirmed to me by Wolfram about 6-8 months ago from memory. Of course if the bug is fixed it still does not necessarily mean that the above would be possible $\endgroup$ Commented Nov 18, 2015 at 21:38
  • 1
    $\begingroup$ @MikeHoneychurch Good to know WRI knows about this. $\endgroup$ Commented Nov 18, 2015 at 22:02

0

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Browse other questions tagged or ask your own question.