\cellaligns¶
Command in package table.
Synopsis¶
\cellaligns{aligns}
Description¶
This command is only allowed in the style argument of table environments (table, mtable, and similar environments). It controls the
alignment of the cells of the table. aligns should be a string of alignment
characters. Possible alignment characters are l
, r
, c
for left, right,
center, respectively. The n-th character in aligns controls the n-th column of the
table. If aligns contains less characters then there are columns in the table, the
remaining columns get the default alignment, which is left in most cases.
Example 1¶
\begin{table}[\cellaligns{lll}]
Abba & Baba & Duda\\
C & D & E
\end{table}
Result, as rendered by your browser
Abba | Baba | Duda |
C | D | E |
Example 2¶
\begin{table}[\cellaligns{ccc}]
Abba & Baba & Duda\\
C & D & E
\end{table}
Result, as rendered by your browser
Abba | Baba | Duda |
C | D | E |
Example 3¶
\begin{table}[\cellaligns{rrr}]
Abba & Baba & Duda\\
C & D & E
\end{table}
Result, as rendered by your browser
Abba | Baba | Duda |
C | D | E |
Example 4¶
\begin{table}[\cellaligns{lcr}]
Abba & Baba & Duda\\
C & D & E
\end{table}
Result, as rendered by your browser
Abba | Baba | Duda |
C | D | E |
Example 5¶
\begin{table}[\cellaligns{l}]
Abba & Baba & Duda\\
C & D & E
\end{table}
Result, as rendered by your browser
Abba | Baba | Duda |
C | D | E |
Example 6¶
\begin{table}[\cellaligns{c}]
Abba & Baba & Duda\\
C & D & E
\end{table}
Result, as rendered by your browser
Abba | Baba | Duda |
C | D | E |
Example 7¶
\begin{table}[\align{c}\cellaligns{r}]
Abba & Baba & Duda\\
C & D & E
\end{table}
Result, as rendered by your browser
Abba | Baba | Duda |
C | D | E |
This page is generated automatically and each change here will be replaced on a next update.