查看“模板:Math”的源代码
←
模板:Math
跳到导航
跳到搜索
因为以下原因,您没有权限编辑本页:
您所请求的操作仅限于该用户组的用户使用:
用户
您可以查看与复制此页面的源代码。
<includeonly><span class="texhtml {{#if:{{{big|}}}{{{size|}}}|texhtml-big}}" {{#if:{{{big|}}}{{{size|}}}|style="font-size:{{{size|165%}}};"}}>{{{1}}}</span></includeonly><noinclude> 这个模板用于在页面中插入数学公式 <div class="hide"> /*<nowiki>*/ .texhtml { -moz-font-feature-settings: "lnum","tnum","kern" 0; -webkit-font-feature-settings: "lnum","tnum","kern" 0; font-feature-settings: "lnum","tnum","kern" 0; font-variant-numeric: lining-nums tabular-nums; font-kerning: none; font-family: "Nimbus Roman No9 L","Times New Roman",Times,"楷体",serif; font-size: 118%; line-height: 1; white-space: nowrap; color:black; } /*</nowiki>*/ </div> == 使用方法 == === 格式规范 === * 使用模板<code><nowiki>{{math}}</nowiki></code> * 字母变量倾斜,例如<code><nowiki>''x''</nowiki></code>,显示为 {{math|''x''}} * 中文变量、数字不倾斜 * 变量、数字和符号之间用空格间隔 * 等号使用<code><nowiki>{{=}}</nowiki></code> * 乘号使用<code>&times;</code>,显示为 {{math|×}} * 除号使用<code>&divide;</code>,显示为 {{math|÷}} * 乘方使用上标标记,例如<code><nowiki>''x''<sup>2</sup></nowiki></code>,显示为 {{math|''x''<sup>2</sup>}} * 使用半角括号<code>()</code> * 竖线使用<code><nowiki>{{!}}</nowiki></code>,显示为 {{math|{{!}}}} * 圆周率常数使用<code>&pi;</code>,显示为 {{math|π}} 更多数学符号参考[//en.wikipedia.org/wiki/Wikipedia:Mathematical_symbols 数学符号-维基百科]<small>'''(英文)'''</small> === 示例 === {| class="wikitable" ! 代码 ! 显示结果 |- | <pre><nowiki>{{math|''&alpha;''}}</nowiki></pre> | {{math|''α''}} |- | <pre><nowiki>{{math|sin &pi; {{=}} 0}}</nowiki></pre> | {{math|sin π {{=}} 0}} |- | <pre><nowiki>{{math|''f''(''x'') {{=}} ''x''<sup>2</sup>}}</nowiki></pre> | {{math|''f''(''x'') {{=}} ''x''<sup>2</sup>}} |- | <pre><nowiki>{{math|''f''(''x'') {{=}} ''b''<sup>''x''</sup> {{=}} ''y''}}</nowiki></pre> | {{math|''f''(''x'') {{=}} ''b''<sup>''x''</sup> {{=}} ''y''}} |- | <pre><nowiki>{{math|{{!}}''f''(''x'') − ''a''{{!}} < ε}}</nowiki></pre> | {{math|{{!}}''f''(''x'') − ''a''{{!}} < ε}} |- | <pre><nowiki>{{math|{{frac|1|2}} − {{frac|1|3}} {{=}} {{frac|1|6}}}}</nowiki></pre> | {{math|{{frac|1|2}} − {{frac|1|3}} {{=}} {{frac|1|6}}}} |- | <pre><nowiki>{{math|({{radic|2}})<sup>2</sup> {{=}} 2}}</nowiki></pre> | {{math|({{radic|2}})<sup>2</sup> {{=}} 2}} |- | <pre><nowiki>{{math|补正系数 {{=}} 随机数(0~1) &times; 剩余系数 &times; (0.6 + 0.4 &times; 0) + 0.05 + ''x''}}</nowiki></pre> | {{math|补正系数 {{=}} 随机数(0~1) × 剩余系数 × (0.6 + 0.4 × 0) + 0.05 + ''x''}} |} === 参数列表 === <pre> #1 数学公式的代码 big 当设置为1时,将字体大小变大(136%) size 自定义字体大小 </pre> 代码: <pre><nowiki>{{math|1 + 2 {{=}} 3|big=1}}</nowiki></pre> 显示为:<br> {{math|1 + 2 {{=}} 3|big=1}} == 扩展链接 == === 相关页面 === *[[模板:Frac]] *[[模板:Radic]] === 参考链接 === * <small>'''(英文)'''</small>[//en.wikipedia.org/wiki/Template:Math 模板:Math-维基百科] * <small>'''(英文)'''</small>[//en.wikipedia.org/wiki/Wikipedia:Rendering_math 渲染数学-维基百科] * <small>'''(英文)'''</small>[//en.wikipedia.org/wiki/Wikipedia:Mathematical_symbols 数学符号-维基百科] </noinclude>
该页面使用的模板:
模板:=
(
查看源代码
)
模板:Frac
(
查看源代码
)
模板:Math
(
查看源代码
)
模板:Radic
(
查看源代码
)
返回至
模板:Math
。
导航菜单
个人工具
创建账户
登录
名字空间
模板
讨论
变种
视图
阅读
查看源代码
查看历史
更多
搜索
导航
首页
最近更改
随机页面
MediaWiki帮助
工具
链入页面
相关更改
特殊页面
页面信息