模板:Mvar/doc
此页面是Template:Mvar的模板文档。 此页面可能包含了模板的使用说明、分类和其他内容。 |
mvar模板能将变量符号按数学上的习惯显示为斜体,用于在普通文本中提及一个变量的情况。它不应在{{math}}模板中使用。
注意变量中的数字按惯例不应斜体化,此时应当使用{{math}}模板,例如用{{math|''x''<sub>1</sub>}}以显示x1。多字母的函数和变量按习惯也应当采用正体,例如用{{math|cos}}以显示cos。
用法
编辑输入:
Let {{mvar|x}} be the maximum value used.
输出:
Let x be the maximum value used.
参见
编辑- {{math}} which formats its argument as mathematics
- {{bigmath}}, the same as {{math}} but makes it bigger
- {{tmath}} wraps a TeX math expression in <math> tags
将变量显示为数学格式
参数 | 描述 | 类型 | 状态 | |
---|---|---|---|---|
变量 | 1 | 填写变量的符号(若变量中有数字,数字不应斜体化,应当使用math模板并手动斜体字母部分) | 字符串 | 必需 |