\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.