简体   繁体   English

Mathematica - 如何设置默认样式表

[英]Mathematica - How to set default stylesheet

I want to change my default stylesheet to StandardReport, but all I find when I google this problem is how to set a custom stylesheet as default stylesheet.我想将我的默认样式表更改为 StandardReport,但是当我用谷歌搜索这个问题时,我发现的只是如何将自定义样式表设置为默认样式表。 Can someone please tell me how I set a non-custom stylesheet as default.有人可以告诉我如何将非自定义样式表设置为默认值。

I figured it out (for Windows):我想通了(对于Windows):

1) Select the stylesheet you want to use as default (under "Format -> Stylesheet") (in my case I choose StandardReport). 1) Select 您要用作默认样式表(在“格式 - > 样式表”下)(在我的情况下,我选择 StandardReport)。

2) Press "Format -> Edit Stylesheet". 2) 按“格式 -> 编辑样式表”。 You should now see a line that says "Inheriting base definitions from stylesheet "Report"" ("Report" is different depending on which stylesheet you want to have as default).您现在应该看到一行写着“从样式表“报告”继承基本定义”(“报告”根据您希望使用的默认样式表而有所不同)。

3) Save the file as whatever name that pleases you, eg I used "Untitled.nb". 3) 将文件保存为您喜欢的任何名称,例如我使用“Untitled.nb”。

4) Place this file under "...\AppData\Roaming\Mathematica\SystemFiles\FrontEnd\StyleSheets". 4) 将此文件放在“...\AppData\Roaming\Mathematica\SystemFiles\FrontEnd\StyleSheets”下。

5) In Mathematica, press "Format -> Option Inspector". 5) 在 Mathematica 中,按“格式 -> 选项检查器”。

6) Choose "Show option values -> Global Preferences". 6) 选择“显示选项值 -> 全局首选项”。

7) Search for "DefaultStyleDefinitions" and choose your file (in my case the "Untitled.nb" file). 7) 搜索“DefaultStyleDefinitions”并选择您的文件(在我的例子中是“Untitled.nb”文件)。

You've now changed the default stylesheet for Mathematica.您现在已经更改了 Mathematica 的默认样式表。 :) :)

This should do it这应该这样做

SetOptions[$FrontEnd, DefaultStyleDefinitions->"Untitled.nb"]

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM