Quantcast
Channel: tabular – texblog
Viewing all articles
Browse latest Browse all 22

Table: column-type repetition

$
0
0

I am sure you know the situation where you have several columns in a tabular which all are of the same type:

\begin{tabular}{|r|c|c|c|c|c|}

Now this can be simplified as follows using the *(star) symbol:

\begin{tabular}{|r*{5}{|c}|}

The advantages are obvious, the table can be easily extended, you don’t have to count the numerous c’s, l’s or r’s and it saves you time.



Viewing all articles
Browse latest Browse all 22

Trending Articles