Insert author and image description. Latex

Asked

Viewed 10,243 times

5

How can I place the author below the image and a description above. As shown in the figure?inserir a descrição da imagem aqui

3 answers

4


You can use the package caption and then use \caption{} as many times as you want. To determine the position of the legend will follow the order in which you write the code. So, for a legend above and another below:

\caption{}
\includegraphics{}
\caption*{}

Detail that in the second \caption{} I added a * not to number the legend.

Example:

\documentclass{article}
\usepackage[brazilian]{babel}
\usepackage[utf8]{inputenc}
\usepackage[demo]{graphicx}
% pacotes para legenda
\usepackage{caption}

\begin{document}

\begin{figure}
\centering
\caption{Taxonomia de Jogos Sérios}
  \centering
  \includegraphics[width=.4\linewidth]{image1}
\caption*{Fonte: Laamarti, Eid e El Saddik (2014, tradução nossa)}
\label{fig:test}
\end{figure}

\end{document}

inserir a descrição da imagem aqui

3

In addition to @Willian’s elegant solution, I remind you that you can write Latex inside of the environment figure, with the content you want...

\documentclass{article}
\usepackage[brazilian]{babel}
\usepackage[utf8]{inputenc}
\usepackage[demo]{graphicx}

\begin{document}

\begin{figure}
\centering
\caption{Taxonomia de Jogos Sérios}
  \centering
  \includegraphics[width=.4\linewidth]{image1}\\
 Fonte: Laamarti, Eid e El Saddik (2014, tradução nossa)
\label{fig:test}
\end{figure}

\end{document}

1

Another option:

When I used this same structure, my "Source" text was not broken, as if it had started in the last line after the end of the figure (I did not use the \\ at the end of the function \includegraphics. So to solve this, I did it this way:

\caption{Taxonomia de Jogos Sérios}
  \centering
  \includegraphics[width=.4\linewidth]{image1}
 \legend{Fonte: Laamarti, Eid e El Saddik (2014, tradução nossa)}
\label{fig:test}

I used the function

\Legend

, was so "standardized" and aligned, as it should be.

Browser other questions tagged

You are not signed in. Login or sign up in order to post.