Graphics, Figures & Tablesleft align figure with imsart

Information and discussion about graphics, figures & tables in LaTeX documents.
Post Reply
asafw
Posts: 37
Joined: Sun Jun 10, 2012 12:33 pm

left align figure with imsart

Post by asafw »

Hi there,

I am using subfigure with the imsart document class.
Everything is compiling, but I'd like to flush the entire subfigure box to the left (because the right figure spills to the margin). Any advice on how to do this?

Thank you very much,
Asaf



Code: Select all

\documentclass[aoas,preprint]{imsart}

\RequirePackage[OT1]{fontenc}
\RequirePackage{amsmath, amsfonts, amssymb, amsthm}
\RequirePackage[numbers]{natbib}
\RequirePackage[colorlinks,citecolor=blue,urlcolor=blue,breaklinks=true]{hyperref}
\RequirePackage{graphicx}
\RequirePackage{caption}
\RequirePackage{subcaption}
\RequirePackage{float}
\RequirePackage{enumerate}
%\RequirePackage[hyphenbreaks]{breakurl}

% settings
%\pubyear{2005}
%\volume{0}
%\issue{0}
%\firstpage{1}
%\lastpage{8}




% AW:doc specific commands
\setlength\parindent{0pt}
\newcommand{\forceindent}{\leavevmode{\parindent=1em\indent}}
\addtolength{\topmargin}{-40pt}


\begin{document}

%JB: Please note, that this is TeX, not LaTeX

\begin{figure}[H]
%\centering
  \begin{subfigure}[b]{0.375\textwidth}
	\includegraphics[scale=.35,angle=0]{plt1.pdf}
	\caption{confidence regions}
 \label{fig2}
  \end{subfigure}
\hspace{3em}
  \begin{subfigure}[b]{0.375\textwidth}
	\includegraphics[scale=.35,angle=0]{plt1.pdf}
	\caption{confidence regions}
 \label{fig3}
  \end{subfigure}
%  \caption{a confidence region}
\end{figure}



%\bibliographystyle{abbrvnat}
%\bibliography{/Users/assafweinstein/Dropbox/Research/References}

\end{document}

Recommended reading 2024:

LaTeXguide.org • LaTeX-Cookbook.net • TikZ.org

NEW: TikZ book now 40% off at Amazon.com for a short time.

And: Currently, Packt sells ebooks for $4.99 each if you buy 5 of their over 1000 ebooks. If you choose only a single one, $9.99. How about combining 3 LaTeX books with Python, gnuplot, mathplotlib, Matlab, ChatGPT or other AI books? Epub and PDF. Bundle (3 books, add more for higher discount): https://packt.link/MDH5p

Stefan Kottwitz
Site Admin
Posts: 10324
Joined: Mon Mar 10, 2008 9:44 pm

Re: left align figure with imsart

Post by Stefan Kottwitz »

Hi Asaf,

is that issue the same if you would use the article class with your code example? I don't have the impart class. And can you post the images with their size as attachment here? I don't have a test case where an image spills to the margin. It doesn't happen when I use dummy images.

Stefan
LaTeX.org admin
Post Reply