I'm trying to add a teaser (figure) after title and before the abstract section in a document with acm_proc_article-sp class but no luck!
Tried to use the following solution by David Carlisle, but don't know how to change the code to put figure after the title:
How do I put a figure* before my abstract?
\documentclass{acm_proc_article-sp}
\makeatletter
\patchcmd\@maketitle\null{{\myfigure{}\par}}{}{}
\makeatother
\begin{document}
\newcommand\myfigure{%
\centering
\includegraphics[width=\linewidth]{teaser}
\captionof{figure}{Some stuff about the teaser}
\label{fig-teaser}
}
\title{a title}
\maketitle
\begin{abstract}
abstract
\end{abstract}
Best Answer
This might be what you're after:
You original patch of
\@maketitle
inacm_proc_article-sp
inserts the figure (\myfigure
) as a replacement for\null
. This is too early, making the figure appear above the title. Instead, I've placed it as part of the\@author
construction, and therefore comes below that (and above the abstract).Since
caption
is not suggested with this document class (see the.log
for some warnings), I've manually set Figure 1: <caption> using the same construction techniques employed by the class.