3 wolfram-mathematica wolframalpha mathematica-frontend
是否可以更改OUTPUT字体类型而不是默认字体类型?怎么样?
这是我的默认样式表:http://filefactory.com/file/cfc2cb0/n/blueOutput.nb
谢谢!
问题在于StandardForm不尊重该FontFamily选项,尽管它似乎确实尊重大多数其他字体选项.Sjoerd的回答使用了TraditionalForm输出并因此起作用.如果运行,您可以看到此问题
SetOptions[EvaluationNotebook[], StyleDefinitions -> Notebook[{
Cell[StyleData[StyleDefinitions -> "Default.nb"]],
Cell[StyleData["Output"],
FontColor -> RGBColor[0, 0, .5], FontSize -> 14,
FontFamily -> "Symbol", FontWeight -> "Bold"]}]]
Run Code Online (Sandbox Code Playgroud)
然后比较
{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
Run Code Online (Sandbox Code Playgroud)

你也可以看看
Dynamic[CurrentValue/@{FontFamily, FontWeight, FontSize}]
Dynamic[CurrentValue/@{FontFamily, FontWeight, FontSize}] // TraditionalForm
Run Code Online (Sandbox Code Playgroud)

这表明输出中CurrentValue的FontFamily"看到"取决于输出格式.
不幸的是,我没有看到如何解决这个问题......
| 归档时间: |
|
| 查看次数: |
1625 次 |
| 最近记录: |