TransWikia.com

Interpreting the code "newcolumntype"

TeX - LaTeX Asked by Anupama John on July 1, 2021

newcolumntype{Q}[1]{>{centeringarraybackslash}p{#1}}

what does [1] and p{#1} mean ?

One Answer

p is a standard latex array column specifier

begin{tabular}{cp{3cm}}

means that each cell in the second column is a parbox of width 3cm

Q here is defined as a new column type taking an argument Q{...} where #1 denotes the argument. so Q{3cm} expands to >{centeringarraybackslash}p{3cm} which is a p column with centering applied to each cell.

See the array package manual (texdoc array) for more details.

Answered by David Carlisle on July 1, 2021

Add your own answers!

Ask a Question

Get help from others!

© 2024 TransWikia.com. All rights reserved. Sites we Love: PCI Database, UKBizDB, Menu Kuliner, Sharing RPP