Linked Questions

18
votes
2answers
3k views

How to programmatically make tabular rows using `\whiledo` ?

The following code snippet does not work: \documentclass{minimal} \usepackage{longtable} \usepackage{ifthen} \newcounter{xyz} \setcounter{xyz}{0} \begin{document} \begin{longtable}{|*2{c|}} \hline \...
6
votes
6answers
671 views

loop and char &

I can't find the problem in this code \documentclass{article} \newcount\mt \newcount\mtt \newcommand{\mttab}[2]{% \mt=0 \loop \advance\mt by 1 \mtt=1 {\loop ...
3
votes
1answer
979 views

how to use \loop … \repeat to generate an arbitrary number of rows in a table [duplicate]

Possible Duplicate: Copy table row n times The code below is intended to produce a table with 3 columns and 3 rows (one heading and two empty rows) but it can be seen that it doesn't work. \...
2
votes
1answer
941 views

Display wide and long table

In the appendix of my report, I would like to add a table. The problem is that I have a cell "description" that contains too much text to be displayed on one line, now the row "overflows" on the right....
2
votes
1answer
364 views

Table too large for longtable?

i have a very wide table that will not fit on a page horizontally (nrow = 127, ncol = 60). I am using longtable to handle the number of rows (breaking onto the next page when the number of rows are ...
1
vote
1answer
198 views

Alternating \rowcolor using \if

I know that the best way to altern row color is using \rowcolors{2}{}{} but on my .tex file \usepackage[table]{xcolor} doesn't work so I am trying to reach the same result with \if. I would like to ...
1
vote
1answer
81 views

loops on columns inside tabular environment

What is the proper way to use loops inside the tabular environment? The context of my question is generating tables using the datatool package. I need the following features: In each row, I want to ...
2
votes
1answer
97 views

Circle Highlight in Column

I'm trying to make this table following figure. I can do the table, but I can not insert some circles to highlight some columns, at the end of each circle I want to put arrows down associating with ...
2
votes
1answer
67 views

loop makes empty tabular

First, I have seen a couple similar posts, which is how I got as far as I have gotten: loop and char & problem with using loop inside the tabular environment I am also pretty sure this could be ...
1
vote
1answer
38 views

How to have desired number of rows in the table

\FPset\rowN{5} This sets the number of rows in the table = 5 and table have 5 rows. If \FPset\rowN{3}, table need to have only 3 rows... How to automatically decide number of rows in a table? ...
1
vote
0answers
37 views

LaTeX: table with variable number of lines [duplicate]

In LaTeX, I can do this: \begin{tabular}{|p{5ex}|p{5ex}|}\hline & \\ \hline & \\ \hline & \\ \hline \end{tabular} But I cannot get a variable number of blank lines this way \...