如何在“工作"界面中导出图形风格的环境,而不是“打印输出"? [英] How to export graphics in "Working" style environment rather than "Printout"?

查看:69
本文介绍了如何在“工作"界面中导出图形风格的环境,而不是“打印输出"?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我最近了解到, Export Mathematica 在导出为PDF时默认使用"Printout"屏幕样式环境,而不使用"Working".有时会导致

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.

尝试例如:

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]]

您可以看到导出的"T"的大小是笔记本中出现的"T"的80%.这是默认情况下如何打开"Printout"环境的方法.

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.

是否有一种方法可以强制Export使用默认的"Working"环境?

Is there a way to force Export use the default "Working" environment?

P.S.出于某些原因,在打印输出"环境中使用Magnification->1设置专用样式表不会影响Export.

P.S. For some reason setting a private stylesheet with Magnification->1 for the "Printout" environment does not affect Export.

推荐答案

解决方案似乎是:

SetOptions[$FrontEnd, PrintingStyleEnvironment -> "Working"]

这篇关于如何在“工作"界面中导出图形风格的环境,而不是“打印输出"?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆