TransWikia.com

How to split table creation into commands

TeX - LaTeX Asked by Yuriy on December 2, 2020

How to split table creation into separate commands or macros:

begin{tabularx}{textwidth}{X|X}
    A & B
end{tabularx}

Like this:

newcommand{tableHeader}{begin{tabularx}{textwidth}{X|X}}
newcommand{tableRow}{A & B}
newcommand{tableFooter}{end{tabularx}}

tableHeader
tableRow
tableFooter

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