I'm in a 2-column environment. I need to use the entire pagewidth (\textwidth
) while importing a table with \includegraphics
.
\begin{table}
\centering
\includegraphics[width=\textwidth]{./myfile.pdf}
\caption{Beautiful stuff here}
\label{tab:myfile}
\end{table}
(I have tried tabular* without success.)
Best Answer
The
multicols
environment doesn't completely support floats; you canUse the starred version of floats (
table*
orfigure*
) but the float will appear on the top of the next page:End the
multicols
, typeset the table inside, for example, aminipage
or acenter
environment (\captionof
from thecapt-of
orcaption
packages can be used to provide a caption) and then start anothermulticols
:Remark:
The
demo
option forgraphicx
simply replaces actual figures with black rectangles; do not use that option in your actual document.