# [Tex/LaTex] Two table environments side by side

positioningsubfloatstables

I have the follown problem. In order to save space I want to place two different table-environemnts side by side. If I use subtable from the subcaption package I have the problem that the tables are named 'a) Caption of a' and 'b) Caption of b' and have a additional common caption below and only one common number. But I want to have for example Table 3 and Table 4 side by side without a addtional label a) or b) and without the addtional common caption below both.

How can this be done?

Here is a minimal – not clean – working example:

\documentclass{IOS-Book-Article}

\usepackage[utf8]{inputenc}
\begin{document}
\begin{table}
\begin{centering}
\begin{minipage}{0.4\textwidth}
\begin{tabular}{|c|r|r|}\hline
Matrix & $err_{global}(A,B)$ & $err_{local}(A,B)$ \\\hline\hline
(a) & & \\
(b) &  & \\
(c) & & \\
(d) & & \\\hline
(e) &  &\\
(f) &  &\\
(g) & & \\
(h) & & \\\hline
\end{tabular}
\caption{This is a ver very very long cpation which overwrites the text on the right side of the paper.}
\label{tab:accuracy}
\end{minipage}
\hfill
\begin{minipage}{0.55\textwidth}
\begin{tabular}{|c|r|r|r|}\hline
Matrix & no OpenMP & OpenMP & speed up\\\hline\hline
(a) & & &\\
(b) & & &\\
(c) & & &\\
(d) & & &\\\hline
(e) & & &\\
(f) & & &\\
(g) & & &\\
(h) & & &\\\hline
\end{tabular}
\caption{Speed up for the parallel solution of the trivial problem, 16
\label{tab:ompdiff}
\end{minipage}
\end{centering}
\end{table}

\end{document}


The IOS-Book-Article class is available at http://www.iospress.nl/service/authors/latex-and-word-tools-for-book-authors/ and I am forced to use it.

As David has mentioned, you can use two minipages inside a single table environment. However, with the IOS-Book-Article document class, this approach generates a problem due to the internal definition of \@maketablecaption; a quick workaround is to set \tablewidth to the appropriate value:

\documentclass[draft]{IOS-Book-Article}
\usepackage[utf8]{inputenc}

\begin{document}

\begin{table}
\centering
\setlength\tabcolsep{4pt}
\begin{minipage}{0.48\textwidth}
\centering
\tablewidth=\textwidth
\begin{tabular}{|c|r|r|}\hline
Matrix & $err_{global}(A,B)$ & $err_{local}(A,B)$ \\\hline\hline
(a) & & \\
(b) &  & \\
(c) & & \\
(d) & & \\\hline
(e) &  &\\
(f) &  &\\
(g) & & \\
(h) & & \\\hline
\end{tabular}
\caption{This is a ver very very long caption which doesn't overwrites the text on the right side of the paper.}
\label{tab:accuracy}
\end{minipage}%
\hfill
\begin{minipage}{0.48\textwidth}
\centering
\begin{tabular}{|c|r|r|r|}\hline
Matrix & no OpenMP & OpenMP & speed up\\\hline\hline
(a) & & &\\
(b) & & &\\
(c) & & &\\
(d) & & &\\\hline
(e) & & &\\
(f) & & &\\
(g) & & &\\
(h) & & &\\\hline
\end{tabular}
\caption{Speed up for the parallel solution of the trivial problem, 16