是否可以更改 OUTPUT 字体类型而不是默认字体类型?如何?
这是我的默认样式表:http://filefactory.com/file/cfc2cb0/n/blueOutput.nb
谢谢!
最佳答案
问题出在StandardForm
不尊重 FontFamily
选项,尽管它似乎确实尊重大多数其他字体选项。 Sjoerd's answer二手 TraditionalForm
输出并因此起作用。如果你运行,你可以看到这个问题
SetOptions[EvaluationNotebook[], StyleDefinitions -> Notebook[{
Cell[StyleData[StyleDefinitions -> "Default.nb"]],
Cell[StyleData["Output"],
FontColor -> RGBColor[0, 0, .5], FontSize -> 14,
FontFamily -> "Symbol", FontWeight -> "Bold"]}]]
然后比较
{1 + 1, "abc", Sin[x]} (* This is by default in StandardForm *)
{1 + 1, "abc", Sin[x]} // StandardForm
{1 + 1, "abc", Sin[x]} // OutputForm
{1 + 1, "abc", Sin[x]} // TraditionalForm
你也可以看看
Dynamic[CurrentValue/@{FontFamily, FontWeight, FontSize}]
Dynamic[CurrentValue/@{FontFamily, FontWeight, FontSize}] // TraditionalForm
这表明
CurrentValue
的 FontFamily
输出中的“可见”取决于输出格式。不幸的是,我不知道如何解决这个问题......
关于wolfram-mathematica - 如何修改OUTPUT字体类型?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/8000365/