{"id":321842,"date":"2024-05-21T19:40:09","date_gmt":"2024-05-21T11:40:09","guid":{"rendered":"https:\/\/docs.pingcode.com\/ask\/ask-ask\/321842.html"},"modified":"2024-05-21T19:40:33","modified_gmt":"2024-05-21T11:40:33","slug":"%e5%a6%82%e4%bd%95%e5%9c%a8-mathematica-%e4%b8%ad%e5%bc%ba%e5%88%b6%e4%bd%bf%e7%94%a8%e5%90%8c%e4%b8%80%e5%ad%97%e4%bd%93","status":"publish","type":"post","link":"https:\/\/docs.pingcode.com\/ask\/321842.html","title":{"rendered":"\u5982\u4f55\u5728 Mathematica \u4e2d\u5f3a\u5236\u4f7f\u7528\u540c\u4e00\u5b57\u4f53"},"content":{"rendered":"<p style=\"text-align:center\"><img decoding=\"async\" src=\"https:\/\/cdn-kb.worktile.com\/kb\/wp-content\/uploads\/2024\/04\/25114021\/09ad7f6b-8b06-4ab7-b669-daa39c73a44b.webp\" alt=\"\u5982\u4f55\u5728 Mathematica \u4e2d\u5f3a\u5236\u4f7f\u7528\u540c\u4e00\u5b57\u4f53\" \/><\/p>\n<p><p>\u5728Mathematica\u4e2d\u5f3a\u5236\u4f7f\u7528\u540c\u4e00\u5b57\u4f53\uff0c\u53ef\u4ee5\u901a\u8fc7\u4ee5\u4e0b\u5173\u952e\u64cd\u4f5c\u6765\u5b9e\u73b0\uff1a<strong>\u8bbe\u7f6e\u5168\u5c40\u5b57\u4f53\u504f\u597d\u3001\u4f7f\u7528Style\u51fd\u6570\u3001\u4fee\u6539\u6837\u5f0f\u8868\u3001\u5229\u7528CellDynamicExpression<\/strong>\u3002\u5176\u4e2d\uff0c<strong>\u8bbe\u7f6e\u5168\u5c40\u5b57\u4f53\u504f\u597d<\/strong>\u662f\u6700\u76f4\u63a5\u7684\u65b9\u6cd5\u3002\u7528\u6237\u53ef\u4ee5\u901a\u8fc7\u4fee\u6539Mathematica\u7684\u5168\u5c40\u8bbe\u7f6e\uff0c\u6765\u786e\u4fdd\u5728\u6574\u4e2a\u7b14\u8bb0\u672c\u6216\u8005\u6240\u6709\u65b0\u521b\u5efa\u7684\u7b14\u8bb0\u672c\u4e2d\u4f7f\u7528\u76f8\u540c\u7684\u5b57\u4f53\u3002\u8fd9\u53ef\u4ee5\u901a\u8fc7\u8bbf\u95ee\u201c\u9009\u9879\u201d\u83dc\u5355\u4e0b\u7684\u201c\u7f16\u8f91\u5668\u8bbe\u7f6e\u201d\u6216\u201c\u5168\u5c40\u504f\u597d\u201d\u6765\u5b9e\u73b0\uff0c\u4ece\u800c\u4fdd\u8bc1\u65e0\u8bba\u662f\u6587\u672c\u3001\u4ee3\u7801\u8fd8\u662f\u6570\u5b66\u516c\u5f0f\uff0c\u90fd\u80fd\u591f\u4fdd\u6301\u5b57\u4f53\u4e00\u81f4\u6027\u3002<\/p>\n<\/p>\n<p><h3>\u4e00\u3001\u8bbe\u7f6e\u5168\u5c40\u5b57\u4f53\u504f\u597d<\/h3>\n<\/p>\n<p><p>\u8bbe\u7f6e\u5168\u5c40\u5b57\u4f53\u504f\u597d\u662f\u786e\u4fdd\u5728\u4f7f\u7528Mathematica\u65f6\uff0c\u80fd\u591f\u8ba9\u6240\u6709\u7b14\u8bb0\u672c\u548c\u6587\u6863\u4fdd\u6301\u4e00\u81f4\u5b57\u4f53\u7684\u6700\u6709\u6548\u65b9\u6cd5\u3002\u8981\u8fdb\u884c\u8bbe\u7f6e\uff0c\u9996\u5148\u6253\u5f00Mathematica\uff0c\u7136\u540e\u5bfc\u822a\u5230\u201c\u683c\u5f0f\u201d\u83dc\u5355\u4e0b\u7684\u201c\u9009\u9879\u68c0\u67e5\u5668\u201d\u3002\u5728\u9009\u9879\u68c0\u67e5\u5668\u4e2d\uff0c\u9009\u62e9\u201c\u5168\u5c40\u504f\u597d\u201d\uff0c\u7136\u540e\u5728\u641c\u7d22\u6846\u4e2d\u952e\u5165\u201cFont\u201d\uff0c\u4ece\u800c\u627e\u5230\u76f8\u5173\u7684\u5b57\u4f53\u8bbe\u7f6e\u9009\u9879\u3002<\/p>\n<\/p>\n<p><p>\u5728\u8fd9\u4e9b\u8bbe\u7f6e\u4e2d\uff0c\u7528\u6237\u53ef\u4ee5\u9488\u5bf9\u6587\u5b57\u3001\u6570\u5b66\u516c\u5f0f\u3001\u4ee3\u7801\u5355\u5143\u7b49\u5206\u522b\u8bbe\u7f6e\u5e0c\u671b\u4f7f\u7528\u7684\u5b57\u4f53\u3002\u4f8b\u5982\uff0c\u5c06&quot;FontFamily&quot;\u7684\u503c\u66f4\u6539\u4e3a\u60f3\u8981\u4f7f\u7528\u7684\u5b57\u4f53\u540d\u79f0\uff0c\u5982&quot;Arial&quot;\u3001&quot;Times New Roman&quot;\u7b49\uff0c\u7136\u540e\u4fdd\u5b58\u8bbe\u7f6e\u3002\u6b64\u65f6\uff0c\u6240\u6709\u65b0\u521b\u5efa\u7684\u7b14\u8bb0\u672c\u90fd\u4f1a\u5e94\u7528\u8fd9\u4e2a\u5b57\u4f53\u8bbe\u7f6e\uff0c\u4ee5\u524d\u521b\u5efa\u7684\u7b14\u8bb0\u672c\u5982\u679c\u60f3\u8981\u66f4\u65b0\u5b57\u4f53\uff0c\u5219\u9700\u8981\u5728\u6bcf\u4e2a\u7b14\u8bb0\u672c\u4e2d\u5355\u72ec\u8fdb\u884c\u5b57\u4f53\u8bbe\u7f6e\u7684\u8c03\u6574\u3002<\/p>\n<\/p>\n<p><h3>\u4e8c\u3001\u4f7f\u7528Style\u51fd\u6570<\/h3>\n<\/p>\n<p><p>Style\u51fd\u6570\u662fMathematica\u4e2d\u4e00\u4e2a\u5f3a\u5927\u7684\u5de5\u5177\uff0c\u5b83\u5141\u8bb8\u7528\u6237\u5bf9\u6587\u672c\u7684\u5177\u4f53\u90e8\u5206\u751a\u81f3\u5355\u4e2a\u5b57\u7b26\u8fdb\u884c\u6837\u5f0f\u4fee\u6539\uff0c\u5305\u62ec\u5b57\u4f53\u3001\u989c\u8272\u3001\u5927\u5c0f\u7b49\u3002\u8fd9\u610f\u5473\u7740\u7528\u6237\u53ef\u4ee5\u5728\u8ba1\u7b97\u6216\u6587\u672c\u8f93\u5165\u8fc7\u7a0b\u4e2d\u5373\u65f6\u6539\u53d8\u5b57\u4f53\u3002<\/p>\n<\/p>\n<p><p>\u4f7f\u7528Style\u51fd\u6570\u5f3a\u5236\u8bbe\u7f6e\u5b57\u4f53\u975e\u5e38\u7b80\u5355\u3002\u4f8b\u5982\uff0c\u8981\u5c06\u67d0\u6bb5\u6587\u5b57\u8bbe\u7f6e\u4e3a&quot;Times New Roman&quot;\uff0c\u53ea\u9700\u5728\u6587\u672c\u5468\u56f4\u4f7f\u7528Style\u51fd\u6570\uff0c\u5982\uff1a<code>Style[&quot;\u8fd9\u91cc\u662f\u6587\u672c&quot;, FontFamily -&gt; &quot;Times New Roman&quot;]<\/code>\u3002\u8fd9\u79cd\u65b9\u6cd5\u9002\u7528\u4e8e\u9700\u8981\u5bf9\u7b14\u8bb0\u672c\u4e2d\u7279\u5b9a\u6587\u672c\u8fdb\u884c\u7cbe\u7ec6\u63a7\u5236\u7684\u60c5\u51b5\uff0c\u53ef\u4ee5\u7075\u6d3b\u8fd0\u7528\u4e8e\u4e0d\u540c\u90e8\u5206\u7684\u5185\u5bb9\u8c03\u6574\u3002<\/p>\n<\/p>\n<p><h3>\u4e09\u3001\u4fee\u6539\u6837\u5f0f\u8868<\/h3>\n<\/p>\n<p><p>\u6837\u5f0f\u8868\u662f\u63a7\u5236Mathematica\u7b14\u8bb0\u672c\u5916\u89c2\u7684\u53e6\u4e00\u4e2a\u5f3a\u5927\u5de5\u5177\u3002\u901a\u8fc7\u521b\u5efa\u6216\u4fee\u6539\u6837\u5f0f\u8868\uff0c\u7528\u6237\u53ef\u4ee5\u5b9a\u4e49\u4e00\u7cfb\u5217\u7684\u6837\u5f0f\u8bbe\u7f6e\uff0c\u5305\u62ec\u5b57\u4f53\uff0c\u5e76\u5c06\u5b83\u4eec\u5e94\u7528\u4e8e\u6574\u4e2a\u7b14\u8bb0\u672c\u3002<\/p>\n<\/p>\n<p><p>\u4e3a\u4e86\u4fee\u6539\u6837\u5f0f\u8868\u4ee5\u5f3a\u5236\u4f7f\u7528\u540c\u4e00\u5b57\u4f53\uff0c\u7528\u6237\u9700\u8981\u6253\u5f00\u60f3\u8981\u4fee\u6539\u7684\u7b14\u8bb0\u672c\uff0c\u7136\u540e\u901a\u8fc7\u201c\u683c\u5f0f\u201d\u83dc\u5355\u8bbf\u95ee\u201c\u7f16\u8f91\u6837\u5f0f\u8868\u201d\u3002\u5728\u6837\u5f0f\u8868\u7f16\u8f91\u5668\u4e2d\uff0c\u53ef\u4ee5\u9488\u5bf9\u4e0d\u540c\u7c7b\u578b\u7684\u5355\u5143\uff08\u5982\u6587\u5b57\u3001\u6807\u9898\u3001\u4ee3\u7801\u7b49\uff09\u5b9a\u4e49\u5b57\u4f53\u8bbe\u7f6e\u3002\u901a\u8fc7\u8bbe\u7f6e<code>Cell[StyleData[&quot;Text&quot;], FontFamily-&gt;&quot;\u4f60\u7684\u5b57\u4f53\u540d\u79f0&quot;]<\/code>\uff0c\u53ef\u4ee5\u786e\u4fdd\u6240\u6709\u7684\u6587\u672c\u5355\u5143\u4f7f\u7528\u76f8\u540c\u7684\u5b57\u4f53\u3002\u4fee\u6539\u5b8c\u6bd5\u540e\uff0c\u4fdd\u5b58\u6837\u5f0f\u8868\u5373\u53ef\u5e94\u7528\u65b0\u7684\u8bbe\u7f6e\u3002<\/p>\n<\/p>\n<p><h3>\u56db\u3001\u5229\u7528CellDynamicExpression<\/h3>\n<\/p>\n<p><p>CellDynamicExpression\u662fMathematica\u7684\u4e00\u4e2a\u9ad8\u7ea7\u529f\u80fd\uff0c\u5b83\u5141\u8bb8\u7528\u6237\u5728\u5355\u5143\u683c\u7ea7\u522b\u4e0a\u8bbe\u7f6e\u52a8\u6001\u8868\u8fbe\u5f0f\uff0c\u8fd9\u4e9b\u8868\u8fbe\u5f0f\u5728\u5355\u5143\u683c\u5185\u5bb9\u53d1\u751f\u53d8\u5316\u65f6\u4f1a\u88ab\u8bc4\u4f30\u3001\u6267\u884c\u3002\u901a\u8fc7\u4f7f\u7528CellDynamicExpression\uff0c\u53ef\u4ee5\u4e3a\u7b14\u8bb0\u672c\u4e2d\u7684\u6bcf\u4e2a\u5355\u5143\u683c\u5f3a\u5236\u8bbe\u7f6e\u7279\u5b9a\u7684\u5b57\u4f53\u3002<\/p>\n<\/p>\n<p><p>\u8981\u901a\u8fc7CellDynamicExpression\u5f3a\u5236\u4f7f\u7528\u540c\u4e00\u5b57\u4f53\uff0c\u7528\u6237\u53ef\u4ee5\u5728\u521b\u5efa\u65b0\u5355\u5143\u683c\u6216\u7f16\u8f91\u73b0\u6709\u5355\u5143\u683c\u65f6\uff0c\u4e3a\u5176\u6dfb\u52a0\u4e00\u4e2aCellDynamicExpression\u5c5e\u6027\uff0c\u5176\u4e2d\u5305\u542b\u8bbe\u7f6e\u5b57\u4f53\u7684\u4ee3\u7801\u3002\u4f8b\u5982\uff0c<code>CellDynamicExpression :&gt; SetOptions[EvaluationCell[], FontFamily -&gt; &quot;\u5b57\u4f53\u540d\u79f0&quot;]<\/code>\u3002\u8fd9\u6837\uff0c\u65e0\u8bba\u5355\u5143\u683c\u5185\u5bb9\u4f55\u65f6\u66f4\u65b0\uff0c\u6240\u6307\u5b9a\u7684\u5b57\u4f53\u8bbe\u7f6e\u90fd\u4f1a\u88ab\u81ea\u52a8\u5e94\u7528\u3002<\/p>\n<\/p>\n<p><p>\u901a\u8fc7\u8fd9\u4e9b\u65b9\u6cd5\uff0c\u7528\u6237\u53ef\u4ee5\u6709\u6548\u5730\u5728Mathematica\u4e2d\u5f3a\u5236\u4f7f\u7528\u540c\u4e00\u5b57\u4f53\uff0c\u65e0\u8bba\u662f\u5168\u5c40\u8bbe\u7f6e\u8fd8\u662f\u5bf9\u7279\u5b9a\u90e8\u5206\u7684\u7cbe\u7ec6\u63a7\u5236\uff0c\u90fd\u6709\u76f8\u5e94\u7684\u89e3\u51b3\u65b9\u6848\u53ef\u4f9b\u9009\u62e9\u3002<\/p>\n<\/p>\n<h2><strong>\u76f8\u5173\u95ee\u7b54FAQs\uff1a<\/strong><\/h2>\n<p><strong>1. \u5982\u4f55\u5728 Mathematica \u4e2d\u8bbe\u7f6e\u9ed8\u8ba4\u5b57\u4f53\uff1f<\/strong><\/p>\n<p>\u5728 Mathematica \u4e2d\uff0c\u53ef\u4ee5\u6309\u7167\u4ee5\u4e0b\u6b65\u9aa4\u8bbe\u7f6e\u9ed8\u8ba4\u5b57\u4f53\uff1a\u6253\u5f00\u9009\u9879\u83dc\u5355\uff0c\u9009\u62e9 &quot;\u7f16\u8f91\u5668\u9996\u9009\u9879&quot;\uff0c\u7136\u540e\u5728 &quot;\u7f16\u8f91\u5668\u9996\u9009\u9879&quot; \u5bf9\u8bdd\u6846\u4e2d\u9009\u62e9 &quot;\u5b57\u4f53&quot; \u9009\u9879\u5361\u3002\u5728\u8fd9\u91cc\uff0c\u60a8\u53ef\u4ee5\u9009\u62e9\u60a8\u559c\u6b22\u7684\u5b57\u4f53\u5e76\u5c06\u5176\u8bbe\u7f6e\u4e3a\u9ed8\u8ba4\u5b57\u4f53\u3002<\/p>\n<p><strong>2. \u5982\u4f55\u5728 Mathematica \u4e2d\u4f7f\u7528\u7279\u5b9a\u7684\u5b57\u4f53\uff1f<\/strong><\/p>\n<p>\u8981\u5728 Mathematica \u4e2d\u4f7f\u7528\u7279\u5b9a\u7684\u5b57\u4f53\uff0c\u53ef\u4ee5\u4f7f\u7528 Graphics \u6216 Style \u51fd\u6570\u3002\u4f8b\u5982\uff0c\u5982\u679c\u60f3\u4f7f\u7528 Arial \u5b57\u4f53\uff0c\u53ef\u4ee5\u5c06\u4ee5\u4e0b\u4ee3\u7801\u63d2\u5165\u5230\u60a8\u7684 Mathematica \u4ee3\u7801\u4e2d\uff1a<\/p>\n<pre><code>Graphics[Text[Style[&quot;Hello, World!&quot;, FontFamily -&gt; &quot;Arial&quot;, FontSize -&gt; 20]], ImageSize -&gt; Medium]\n<\/code><\/pre>\n<p>\u8fd9\u5c06\u5728\u56fe\u5f62\u4e2d\u663e\u793a &quot;Hello, World!&quot;\uff0c\u5e76\u5c06\u5b57\u4f53\u8bbe\u7f6e\u4e3a Arial\u3002<\/p>\n<p><strong>3. \u5982\u4f55\u5728 Mathematica \u4e2d\u5c06\u4e0d\u540c\u7684\u5b57\u4f53\u5e94\u7528\u4e8e\u4e0d\u540c\u90e8\u5206\uff1f<\/strong><\/p>\n<p>\u8981\u5728 Mathematica \u4e2d\u5c06\u4e0d\u540c\u7684\u5b57\u4f53\u5e94\u7528\u4e8e\u4e0d\u540c\u90e8\u5206\uff0c\u60a8\u53ef\u4ee5\u4f7f\u7528 Style \u51fd\u6570\u5e76\u8bbe\u7f6e\u4e0d\u540c\u7684 FontFamily\u3002\u4f8b\u5982\uff0c\u53ef\u4ee5\u4f7f\u7528\u4ee5\u4e0b\u4ee3\u7801\u5c06 &quot;Hello&quot; \u8bbe\u4e3a Arial \u5b57\u4f53\uff0c\u5c06 &quot;World!&quot; \u8bbe\u4e3a Times New Roman \u5b57\u4f53\uff1a<\/p>\n<pre><code>Row[{Style[&quot;Hello&quot;, FontFamily -&gt; &quot;Arial&quot;], Style[&quot;World!&quot;, FontFamily -&gt; &quot;Times New Roman&quot;]}]\n<\/code><\/pre>\n<p>\u8fd9\u5c06\u6309\u7167\u6307\u5b9a\u7684\u5b57\u4f53\u663e\u793a &quot;Hello&quot; \u548c &quot;World!&quot;\u3002<\/p>\n","protected":false},"excerpt":{"rendered":"\u5728Mathematica\u4e2d\u5f3a\u5236\u4f7f\u7528\u540c\u4e00\u5b57\u4f53\uff0c\u53ef\u4ee5\u901a\u8fc7\u4ee5\u4e0b\u5173\u952e\u64cd\u4f5c\u6765\u5b9e\u73b0\uff1a\u8bbe\u7f6e\u5168\u5c40\u5b57\u4f53\u504f\u597d\u3001\u4f7f\u7528Style\u51fd\u6570\u3001 [&hellip;]","protected":false},"author":3,"featured_media":321870,"comment_status":"closed","ping_status":"","sticky":false,"template":"","format":"standard","meta":{"_acf_changed":false,"footnotes":""},"categories":[37],"tags":[],"acf":[],"_links":{"self":[{"href":"https:\/\/docs.pingcode.com\/wp-json\/wp\/v2\/posts\/321842"}],"collection":[{"href":"https:\/\/docs.pingcode.com\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/docs.pingcode.com\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/docs.pingcode.com\/wp-json\/wp\/v2\/users\/3"}],"replies":[{"embeddable":true,"href":"https:\/\/docs.pingcode.com\/wp-json\/wp\/v2\/comments?post=321842"}],"version-history":[{"count":0,"href":"https:\/\/docs.pingcode.com\/wp-json\/wp\/v2\/posts\/321842\/revisions"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/docs.pingcode.com\/wp-json\/wp\/v2\/media\/321870"}],"wp:attachment":[{"href":"https:\/\/docs.pingcode.com\/wp-json\/wp\/v2\/media?parent=321842"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/docs.pingcode.com\/wp-json\/wp\/v2\/categories?post=321842"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/docs.pingcode.com\/wp-json\/wp\/v2\/tags?post=321842"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}