Hi,
I'm trying to put a figure next to a table and used the minipage command. Still the figure shows up under the table. What did i do wrong? (i dont know how to show the code in a nice window, sorry...)
Thx,
Matthijs
\begin{table}[h!]
\begin{minipage}{0.6\linewidth}
\centering
\begin{tabular}{||c|c|c||}
\hline
Druk (mbar) & Energie (keV) & Afstand (cm)
\\
\hline\hline
...
...
\hline
\end{tabular}
\end{minipage}
\end{table}
\hspace{0.5cm}
\begin{figure}[h]
\begin{minipage}{0.4\linewidth}
\begin{center}
\includegraphics[width=0.6\textwidth]{EnergieAfstand}
\end{center}
\caption{...}
\label{fig:EnergieAfstand}
\end{minipage}
\end{figure}
Graphics, Figures & Tables ⇒ Problem with figure next to table
NEW: TikZ book now 40% off at Amazon.com for a short time.

- localghost
- Site Moderator
- Posts: 9202
- Joined: Fri Feb 02, 2007 12:06 pm
Problem with figure next to table
It's just a button in the list right above the input window. For more information see the Forum Guide. Please post full examples and not useless code snippets.Shizzle wrote:[…] (i dont know how to show the code in a nice window, sorry...) […]
The described behaviour is quite normal since float environments are never positioned side by side. The caption manual has an interesting example how to merge a table and figure and put them side by side in one environment with a customized caption.
Best regards and welcome to the board
Thorsten
How to make a "Minimal Example"
Board Rules
Avoidable Mistakes
¹ System: TeX Live 2025 (vanilla), TeXworks 0.6.10
Board Rules
Avoidable Mistakes
¹ System: TeX Live 2025 (vanilla), TeXworks 0.6.10