如何修改默认样式表?
每次创建新笔记本时,我都必须将放大倍数设置为 150% 并将输出颜色修改为蓝色。
有没有办法使用样式表或其他功能自动执行此操作?
Each time I create a new notebook, I have to set the magnification to 150% and modify the output color to blue.
Is there a way to automate this using stylesheets or other features?
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(2)
您可以非常轻松地修改默认放大倍率。
打开一个新笔记本。打开选项检查器(格式->选项检查器)。在第一个对话框中选择“全局首选项”,移至笔记本选项,然后进行显示。这里有一个名为“放大倍率”的选项,可以将其设置为您想要的值。应用,退出,然后下次开始时您的新默认放大倍率应该可见。
“输出颜色”是什么意思?
您可以修改样式表以具有您想要的任何(ish)样式。
从菜单中转到“格式”->“编辑样式表”。从列表中选择要修改的适当样式。
样式表的记录不是特别好。 David Park 有一个 v6.0 指南,至今仍然适用。 Mathgroup 涵盖 MMA8 中的安装。
John Fultz 在 MathGroup 表示“StandardForm 输入和输出单元格的字体来自 StandardForm 样式。同样,InputForm 单元格的字体来自 InputForm 样式,OutputForm 单元格的字体来自 OutputForm 样式。
在包含输入/输出样式的组中 Core.nb 中有一条注释
其中提到了这一点。”
问候,
戴夫。
You can modify default magnification very easily.
Open a new notebook. Open the Option inspector (Format->Option inspector). Select "Global preferences" in the first dialogue box, the move to Notebook options, then to display. There's an option here called Magnification which can be set to what you want. Apply, quit, then your new default magnification should be visible when next you start.
What do you mean 'output colour'?
You can modify a style sheet to have whatever (ish) style you want.
Go to Format->edit stylesheet from the menu. Choose an appropriate style to modify from the list.
Stylesheets are not documented particularly well. David Park has a guide for v6.0 that's still relevant today. There is also a more recent discussion in Mathgroup that covers installation in MMA8.
There's a comment form John Fultz in MathGroup that "The font for StandardForm Input and Output cells comes from the StandardForm style. Similarly, the font for InputForm cells comes from the InputForm style, and for OutputForm cells from the OutputForm style.
There is a comment in Core.nb in the group that contains the Input/Output styles
which mentions this."
Regards,
Dave.
看那里:
(1) 打开一个笔记本,在菜单中选择“格式”-> “编辑样式表”。
(2) 选择要更改的样式。例如,左上角菜单中的“文本”。
(3) 修改字体等。
(4) 将此样式表保存为.nb 文件。或者也可以单击“安装样式表”,以便可以在“格式”->“格式”中找到样式表。 “样式表...”菜单。
(5)打开菜单“格式”-> “选项检查器”,确保在弹出菜单中选择“全局首选项”(默认为“选择”)。
(6) 搜索DefaultStyleDefinitions,将其更改为保存的样式表文件。单击“应用”。
关闭 Mathematica 并再次启动它。默认字体已更改。
Look there:
(1) Open a notebook, in the menu choose "Format" -> "Edit Stylesheet".
(2) Choose a style to change. For example, "Text", in the menu at the top left.
(3) Modify fonts, etc.
(4) Save this stylesheet to a .nb file. Optionally one can also click Install StyleSheet so that the stylesheet can be found at "Format" -> "Stylesheet..." menu.
(5) Open menu "Format" -> "Option Inspector", make sure "Global Preference" is selected (where the default is "Selection") in the popup menu.
(6) Search for DefaultStyleDefinitions, change it to the saved stylesheet file. Click apply.
Close Mathematica and launch it again. The default font is changed.