In the attachment is my output table, where some text is made black as you can see.
But I do not like the formatting of it, I want all the tables to look like the format of 'Code 06'... But I can't seem to get it right.
The code used to generate these tables is by using the following command:
Code: Select all
\newcommand{\Tabel}[9]{
\begin{tabular}{l|p{2.4cm}p{2.4cm}p{2.4cm}|p{8cm}} \hline
\isText{#1}{Code} & \isText{#2}{\textbf{P}ercentage \textbf{1}} & \isText{#4}{\textbf{M}in. perc. \textbf{1}} & \isText{#6}{\textbf{G}rensbedrag} & \multirow{4}{*}{#8}\\
\isEmpty{#1} & \isLine{#2} & \isLine{#4} & \isLine{#6} & \\
& \isText{#3}{\textbf{P}ercentage \textbf{2}} & \isText{#5}{\textbf{M}in. perc. \textbf{2}} & \isText{#7}{\textbf{B}ovengrens} & \\
& \isLine{#3} & \isLine{#5} & \isLine{#7} & \\ [{#9}]
\end{tabular}}
Where the following additional 'functions' are used to trigger the appearance of some text.
\newcommand{\isEmpty}[1]{\ifthenelse{\equal{#1}{}}
{}{{#1}}}
\newcommand{\isLine}[1]{\centering \ifthenelse{\equal{#1}{}}
{}{{ $\ldots$}}}
\newcommand{\isText}[2]{\ifthenelse{\equal{#1}{}}
{}{{#2}}}
This table is then called with the following command
\Tabel{06}{@}{@}{@}{@}{@}{}{
\begin{tabular}{lp{4cm}}
\Bound{0}{G}: & P1 \PL XXXX XXXX XXXX XXXX\\
\Bound{G}{HS}: & P2 \PL XXXXXX XXXXXX.\\ \It{Optioneel}: & M1, M2
\end{tabular}
}
{2ex}
The difficulty lies in the usage of \multirow in combination with the table inside it. I've tried to use some bounding boxes as well, but this didn't gave me the desired result.
What I want is the following structure
Code: Select all
Code__|_'Options'____________|_Description______________ |
textte|texttexttexttexttextte| van..tot:.................|
.........................................................
textte|texttexttexttexttextte| van..tot:.................|
.........................................................
textte|texttexttexttexttextte|Optioneel:.................|
______|______________________|___________________________|
where it is important that the 'dotted' rows are variable. Such that the height of the table is proportional to the length of the description.
My question is: do you guys know more ways to configure the size/height/formatting of/inside tables? Because I'm kind of stuck in my current options and find it hard to find new solutions.