I have learned recently that Export
in Mathematica uses by default the "Printout"
screen style environment rather than "Working"
when exporting to PDF. It sometimes results in FontSize
fluctuations in the resulting PDF which are very annoying.
Try for example:
Show[First@ImportString[ExportString[Style[T, 100], "PDF"], "PDF"],
Prolog -> Inset[Style[T, 100], FormatType -> StandardForm]]
Show[First@ImportString[ExportString[Style[T, 100], "PDF"], "PDF"],
Prolog ->
Inset[Style[T, 100, Magnification -> .8],
FormatType -> StandardForm]]
You can see that the exported "T" has 80% of the size of "T" that appears in the notebook. This is how the "Printout"
environment is tuned on by default.
Is there a way to force Export
use the default "Working"
environment?
P.S. For some reason setting a private stylesheet with Magnification->1
for the "Printout" environment does not affect Export
.
Prolog
toEpilog
for your example to work in version 7. – RaskindProlog
andEpilog
give visually identical results in this case as they should. – DietscheProlog
I see only one T; theInset
does not appear at all, as though it is occluded by an opaque layer. – RaskindGraphics
. Try e.g.Show[First@ ImportString[ ExportString[ Graphics[Inset[Style[T, 100]], FormatType -> StandardForm], "PDF"], "PDF"], Epilog -> Inset[Style[T, 100], FormatType -> StandardForm]]
– IlluminativeExport
gives a file with page size 4.17x4.17 inches, but saving to PDF gives a file with page size 3.33x3.33 inches (Mathematica 7.0.1 for Windows). 3.33/4.17=80%. In both cases the size of "T" relative to the page size is the same. – DietscheSetOptions[$FrontEnd, PrintingStyleEnvironment -> "Working"]
and restarting the FrontEndExport
and Save Graphic As ... PDF give identically looking files with page size 5x5 inches. In both cases the size of "T" relative to the page size is the same but is less than by default (withPrintingStyleEnvironment -> "Printout"
). – Dietsche