I just can't get my minipage to work. I wanted to put the two tables side by side - the easiest way possible, as my LateX skills are "basic". Therefore, I basically followed the instructions that were provided on how to create a mini page. I just don't know whether a longtable works within them. Also, sffamily is needed as I use a different font in the table than in the text. Any ideas on how to fix this problem? Thx in advance.
\begin{table}[!htb]
\caption{Global caption}
\begin{minipage}{.5\linewidth}
\caption{Caption of longtable}\\
\centering
\sffamily
\scriptsize
\begin{longtable}{lllll}
\hline
0 & 0 & 0 & 0 \\\\\hline
Example 1 & & & \\\\
1 & 2 & 3 & 4 \\\\
\\hline
\end{longtable}
}
\end{minipage}%
\begin{minipage}{.5\linewidth}
\caption{Caption for longtable}\\\\
\centering
\sffamily
\scriptsize
\begin{longtable}{lllll}
\hline
0 & 0 &0 & 0. \\\\\hline
Example 2 & & & \\\\
1 & 2 & 3 & 4 \\\\
\\hline
\end{longtable}
}
\end{minipage}
\end{table}
minipage
is better encapsulatetabular
environment instead oflongtable
, etc.