Template:Mvar/doc

维基百科,自由的百科全书

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模板并手动斜体字母部分)

字符串必需