3

I tried adding figure environment inside the abstract area but it generates an error. How do I add a graphical abstract as well as a textual one?

5
  • 4
    Perhaps just use \includegraphics without the figure environment. Do you need a caption? Apr 29, 2013 at 22:24
  • 2
    What class are you using? It works fine for me in the article and report classes. Can you show us a minimal working example (MWE) that exhibits this error?
    – hpesoj626
    Apr 29, 2013 at 22:25
  • Nicola is correct. Not suse how to make them appear next to each other; I had to use \centering to get them on separate lines.
    – Elliot
    Apr 29, 2013 at 22:33
  • @Elliot Can you edit your question to include a MWE or make a self-answer? At this point, I don't think that this question is of any help to anyone reading this. As such, this could be closed as too localized.
    – hpesoj626
    Apr 29, 2013 at 22:38
  • 1
    @NicolaTalbot: Seems like your comment is the (simple) right answer, why don’t you make a real answer out of it?!
    – Tobi
    Apr 29, 2013 at 22:46

1 Answer 1

2

You can just use \includegraphics without the figure environment. Here's an example:

\documentclass{article}

\usepackage{graphicx}

\begin{document}
\begin{abstract}
One possible method:

{\centering
\includegraphics{test-img}
\par
}

This is a sample abstract with the image centred on the line above. 
Another method below.

\begin{minipage}[t]{0.5\linewidth}
Here's another paragraph with the image on the right of the text.
It's done by putting this paragraph in a minipage environment with a
top-aligned image next to it.
\end{minipage}
\vtop{%
  \vskip-1ex
  \hbox{%
    \includegraphics[width=0.45\linewidth]{test-img}%
  }%
}%
\end{abstract}
\end{document}

See Top-aligning imported graphics for an explanation about the \vtop stuff.

3
  • Isn't \begin{center}\includegraphics[...]{...}\end{center} easier than the first method?
    – egreg
    Apr 30, 2013 at 10:43
  • @egreg It depends if you want the extra vertical space. Apr 30, 2013 at 10:49
  • I'd want it. :)
    – egreg
    Apr 30, 2013 at 11:00

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .