\displaylines - Tex命令



名称

\displaylines - 用于显示任意数量居中的公式(无需任何对齐)。

概要

{ \displaylines{ <math> \cr <repeat as needed> } }

描述

\displaylines 命令用于显示任意数量居中的公式。可以使用双反斜杠代替 \cr;最后的 \\ 或 \cr 是可选的。

示例

  1. \displaylines{
    a = a\\
    \text{if } a=b \text{ then } b=a\\
    \text{if } a=b \text{ and } b=c \text{ then } a=c
    }
    
    $ \displaylines{ a = a\\ \text{如果 } a=b \text{ 则 } b=a\\ \text{如果 } a=b \text{ 且 } b=c \text{ 则 } a=c } $
广告
© . All rights reserved.