Layout and breaks\newcolumntype

\newcolumntypeCommand

Used to define reusable array/tabular column specifiers, including parameterized column types for custom preambles.

\newcolumntype{C}{c}
Available in
base
Kind
prefix
Allowed mode
math
Frequency
Not measured
Commonality
low
Tags
invisible, newdefine
Renderer support
PackageMathJaxKaTeXXeTeX
baseMathJax: FullKaTeX: NoneXeTeX: None
About the test scope

Syntax#

\newcolumntypem{a}math contentO{0}:I[1]optional integerm{b}math content

Argspec m O{0}:I m — one optional and two mandatory arguments. Reading argspecs

Examples#

\newcolumntype{C}[1]{c}

In TeXForm#

TeXForm parses this entry as prefix syntax; the package determines its argument specification.

Test cases#

base
InputCaseMathJaxKaTeXXeTeX
\newcolumntype{a}{b}Positive · baselinePassFailFail
\newcolumntype{a}[1]{c}Positive · vary:o[1]PassFailFail
\newcolumntype a{b}Positive · bare[0]PassFailFail
\newcolumntype{a}bPositive · bare[2]PassFailFail
\newcolumntype{a}[a]{b}Negative · neg:I[1]FailFailFail
All 24 in Layout and breaks