insert text RIGHT under image ABOVE caption

insert text RIGHT under image ABOVE caption

Como coloco o texto DIREITO abaixo de uma imagem (acima da legenda) subfig? Aqui está o meu código:

\documentclass{article}

\usepackage{hyperref}
\usepackage{graphicx} 
\usepackage{subfig} 

\begin{document}

\captionsetup[subfigure]{labelfont=bf,textfont=normalfont,singlelinecheck=off,justification=raggedright}
\captionsetup[figure]{singlelinecheck=off}

\begin{figure}
\subfloat[\textit{\textit{D. pulex}}
\newline \tiny \url{commons.wikimedia.org/wiki/File:Daphnia_pulex.png}
\newline \tiny Photos by Paul Hebert]{\label{dpulex}
\includegraphics[width=0.48\textwidth]{dpulex.png}
}
\end{figure}

\end{document}

Aqui está o que ele imprime:

insira a descrição da imagem aqui

Então, gostaria que essas duas linhas escritas tinyaparecessem abaixo da imagem e acima de "(a) D. pulex". Qualquer ajuda será apreciada.

Responder1

Basta incluí-lo abaixo da imagem, em vez de acima da legenda:

insira a descrição da imagem aqui

\documentclass{article}

\usepackage{graphicx,subfig}% http://ctan.org/pkg/{graphicx,subfig}
\usepackage{hyperref}% http://ctan.org/pkg/hyperref
\captionsetup[subfigure]{labelfont=bf,textfont=normalfont,singlelinecheck=off,justification=raggedright}
\captionsetup[figure]{singlelinecheck=off}

\begin{document}

\begin{figure}
  \subfloat[\textit{D.\ pulex}\label{dpulex}]{%
    \centering\parbox{0.48\linewidth}{%
      \includegraphics[width=\linewidth]{example-image-a} \\
      {\tiny \url{commons.wikimedia.org/wiki/File:Daphnia_pulex.png} \\
      Photos by Paul Hebert}%
    }
  }
\end{figure}

\end{document}

The skip between the URL and credits can be changed to suit your needs. For example, use \\[-.5\baselineskip] instead of \\, say):

insira a descrição da imagem aqui

I've used a \parbox purely to have a left-aligned block. However, you can modify this to your liking. The fundamental idea remains the same.

Also, hyperref should actually be loaded last in this instance. See Which packages should be loaded after hyperref instead of before?

Responder2

If you're willing to use the subcaption package instead of the subfigure package (which, I believe, is deprecated), you could use something like the following method:

\documentclass{article}
\usepackage[demo]{graphicx} % omit [demo] in real version
\usepackage{subcaption} 
\captionsetup[subfigure]{labelfont=bf, 
   singlelinecheck=off,
   justification=raggedright}
\captionsetup[figure]{singlelinecheck=off}
\usepackage{hyperref}
\begin{document}
\begin{figure}

\begin{subfigure}{0.48\textwidth}
\includegraphics[width=\linewidth]{dpulex.png}

\tiny Photos by Paul Hebert

\url{commons.wikimedia.org/wiki/File:Daphnia_pulex.png}

\caption{\textit{D. pulex}}\label{dpulex}
\end{subfigure}
\end{figure}
\end{document}

insira a descrição da imagem aqui

informação relacionada