Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Emacs & LaTeX: amount of columns for tables/matrices/arrays

Would anyone have a suggestion how to go about having for:

\begin{array}{cc}
Lorem & Ipsum \\
More & Stuff \\
\end{array}

Where adding or removing a c, l or r in the part after array would add or remove the & from all lines in the array environment.

Basically the same trick could then be applied to matrices or table environments.

At the least I'd be interested in how others go about this "easy-to-go-wrong", "hard-to-efficiently-alter" task.

like image 680
PascalVKooten Avatar asked Sep 19 '12 14:09

PascalVKooten


1 Answers

I usually generate the tables from a different format (tab separated values or org-mode tables) in which such operations are simpler.

like image 167
choroba Avatar answered Sep 18 '22 15:09

choroba