I am writing a paper for a journal and have to use the bmcart class of the BioMed Central template found here (direct link to ZIP file). I am using it with two columns:
\documentclass[twocolumn]{bmcart}
The bmcart class encloses every figure and its caption in a box. When I enable graphics in the template file:
\usepackage{graphicx}
%\def\includegraphic{}
%\def\includegraphics{}
and insert a plot without scaling:
\begin{figure}[h!]
\includegraphics{myplot}
\caption{\csentence{Sample figure title.}
Figure legend text.}
\end{figure}
then the plot overflows the box to the right. The width of my plot is 235 pt, the width I got using \showthe\columnwidth in a figure environment.
My question is: what is the optimal width for plots that I want to include so that when I do \includegraphics{myplot} there is no scaling and the plot fits perfectly inside the box drawn around it?
I would be really grateful if you could point out how to determine the optimal width in this case, but also in general, if possible.
Edit: thanks to @Fran for pointing out this question about the difference between \hsize, \columnwidth, \linewidth and other dimensions.
\includegraphics[width=\columnwidth]{myplot}. – Mico Apr 10 '15 at 12:39bmcart,\columnwidthoverflows the box boundaries to the right. I wrote that in my post but made a typo so it wasn't clear, now I fixed it. – nedim Apr 10 '15 at 13:17widthparameter. However, your comment has lead me to a solution. If I make my plots as wide as\hsizethen they fit perfectly without scaling! Thank you, please write this as an answer and I will gladly accept it. – nedim Apr 10 '15 at 13:19