I've been reading previous posts but wasn't able to find the right solution for my case.
I need a table like this:
+------+----------------[...]---------------+-------+
| | | |
| +----------------[...]---------------+ |
| | | |
+------+----------------[...]---------------+-------+
First column should contain an image (i.e. a logo) the last should contain the name of the file itself. The title of the document and the title of the current chapter in the two cell in the center column.
I guess I have two options.
Option A) a table 2 rows by 3 columns, merging the cells in column 1 and merging the cells i column 3.
\begin{tabular}{|c|c|c|}
\multirow{2}{*}{\includegraphics[height=20mm]{logo}} & %
DOCUMENT TITLE & %
\multirow{2}{*}{file_name.txt} \\
\cline{2-2} & Chapter title & \\
\end{tabular}
The issue with this is related to image height: if it is too high, the image flows through the bottom border of the table.
Option B) a table 1 row by 3 columns, the center cell containing a tabular 2 rows by one column.
\begin{tabular}{|c|@{}c@{}|c|}
\hline
\includegraphics[height=40mm]{logo} & %
\begin{tabular}{@{}c@{}}DOCUMENT~TITLE\\ \hline Chapter~Title\\\end{tabular} & %
filename.txt \\
\hline
\end{tabular}
The issue with this is that the contents of the cells rest on bottom of the cells and it not floating in the middle (I forced the height of the cell to a size bigger than really needed).
I tried both tabular*
and tabularx
but I wasn't able to find a solution.
Can you please help me with this with examples or pointers to pages I missed?
Many thanks in advance!
Cheers,