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

Learn LaTeX easily with newest books:

The LaTeX Beginner's Guide: 2nd edition and perfect for students writing a thesis

The LaTeX Cookbook: 2nd edition full of practical examples for mathematics, physics, chemistry, and more

LaTeX Graphics with TikZ: the first book about TikZ for perfect drawings in your LaTeX thesis

User avatar
Stefan Kottwitz
Site Admin
Posts: 10348
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