1

I am writing an article using the aa document class.

I include two column figures using the figure* macro.

Sometimes, this results in one or two figures being placed on a page with no other text. They are aligned to the top of the page.

Is it possible to vertically align all standalone figures (even if there is more than one on a page) to the center of the page?

MWE: https://www.overleaf.com/read/mxwkbphjwcpk

Contents of link:

\documentclass{aa}  

\usepackage{color}
\usepackage{xcolor}
\definecolor{xlinkcolor}{cmyk}{1,1,0,0}

\usepackage{graphicx} 
\usepackage[varg]{txfonts} 

\usepackage[activate={true,nocompatibility},
    final,
    tracking=true,
    kerning=true,
    spacing=true,
    factor=1100,
    stretch=10,
    shrink=10]{microtype}

\usepackage[bookmarks=true,         % show bookmarks bar?
     bookmarksopen=true,
     pdfnewwindow=true,      % links in new window
     colorlinks=true,    % false: boxed links; true: colored links
     linkcolor=xlinkcolor,     % color of internal links
     citecolor=xlinkcolor,     % color of links to bibliography
     filecolor=xlinkcolor,  % color of file links
     urlcolor=xlinkcolor,      % color of external links
     final=true]{hyperref} 
\hypersetup{pdfstartview=Fit}
\usepackage{bookmark}

\usepackage{longtable}

\usepackage{adjustbox}
\allowdisplaybreaks

\usepackage[labelfont=bf]{caption}

\usepackage{etoolbox}
\makeatletter
\patchcmd\@combinedblfloats{\box\@outputbox}{\unvbox\@outputbox}{}{\errmessage{\noexpand patch failed}}
\makeatother

\makeatletter
\renewcommand*\aa@pageof{, page \thepage{} of \pageref*{LastPage}}
\makeatother

\usepackage{afterpage}

\usepackage{lipsum}

\begin{document} 

   \title{Float placement MWE} 
   \titlerunning{MWE} 

   \author{A.\ P.\ Erson\inst{1}}

   \institute{Space Elevator Institute \\
              \email{\url{ersonap@sei.edu}}}

   \date{Received \today}

   \abstract{}{\lipsum[1]}{\lipsum[2]}{\lipsum[3]}{}

   \keywords{}

   \maketitle
%
%________________________________________________________________

\section{Introduction} 
\lipsum[4-8]

\begin{figure*}[p]
    \centering
    \includegraphics[width=0.5\textwidth]{universe.jpg}
    \caption{The Andromeda Galaxy.}
\end{figure*}

\end{document}
0

Probably using a placement statement in your figure environment https://en.m.wikibooks.org/wiki/LaTeX/Floats,_Figures_and_Captions#placement

\begin{figure*}[p]
  \includegraphics...
\end{figure*}

Could you post a MWE? You could put a bunch of stuff within the figure* environment that will affect vertical spacing.

  • I have added a MWE (which shows that this does not solve the problem) – rhombidodecahedron Oct 3 '18 at 11:53
  • where you added mwe? i don't see anything like this in your question! link is not reliable and after while it will be dead, so other people will not be able to test your mwe. – Zarko Oct 3 '18 at 12:39
  • @Zarko I have added the contents of the link to the post – rhombidodecahedron Oct 3 '18 at 15:03

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.