# Mathematica document not retaining margins from stylesheet when printing?

In the process of creating my resume in Mathematica, I needed to adjust the margins of the default stylesheet so that section headers would take up less whitespace. After modifying the stylesheet using the instructions mentioned here, the changes clearly show up in my document in Mathematica.

However, after I export the document to a PDF, either by saving or by printing, my work is undone.

So I've resorted to copying and pasting screen captures of my resume into MSPaint and then printing from there. This is a huge pain.

What am I doing wrong? Is there a setting I have to modify to get my stylesheet margins to stick in the PDF version?

• When printing (or saving to PDF), it uses the Printout screen environment, whereas what you see (by default) in the notebook is the Working screen environment. The changes to the style definitions that you've made are only for the working environment, whereas you need to modify it for the printout env. I don't have time to write an answer now, but this might give you a lead as to where to look (or someone else can write up an answer). Try exploring the Default.nb and Core.nb stylesheets to see how the styles for Printout are defined. If no one answers by this evening, I'll write one. – rm -rf Oct 12 '12 at 19:13
• @rm-rf: I had similar issue, but when I change the PrintingStyleEnvironment to Working, I have issues with Margins and zoomed out document. I changed stuff in my notebook by using a stylesheet like you mentioned in one of your answers. How do I make the same changes to the Printout option privately only for that notebook? – preeti Feb 7 '14 at 20:54
• @preeti Add the following to your stylesheet: Cell[StyleData[All, "Printout"], CellLabelMargins->Inherited, Magnification->1] – rm -rf Feb 7 '14 at 20:58
• @rm-rf That doesn't seem to do anything..My requirement : Printout should be having the same fontcolor etc as mentioned in my stylesheet. How do I do that? – preeti Feb 7 '14 at 21:16
• @preeti You only mentioned margins and zoomout in your previous comment, so that's all I addressed. You should ask the right question with all details to get the right answer... :) Try adding ShowAutoStyles->True and ShowSyntaxStyles->True to the snippet I wrote above to display the colors. The idea here is that any change you want to make, you make it to the StyleData[All, "Printout"] style. – rm -rf Feb 7 '14 at 21:30

SetOptions[$FrontEnd, PrintingStyleEnvironment -> "Working"] for a permanent change or SetOptions[$FrontEndSession, PrintingStyleEnvironment -> "Working"]