14

I have to mention the source of the image that I am using in my text.

enter image description here

How can I write the source below any image just like its shown in the above figure? I don't want to mention the source alongside caption. I am using following code for inserting images and it would be helpful if anyone can tell the codes for writing source which is compatible with this one:

\begin{figure}[ht]
\includegraphics[width=\linewidth]{image}
\caption{Letter e}
\end{figure}

I have seen Add source to figure caption but it doesn't help much.

17
\documentclass{article}
\usepackage{graphicx}
\usepackage[x11names]{xcolor}

\usepackage{copyrightbox}
%%%% figure-copyright
    \usepackage{url}

\begin{document}
    \begin{figure}[!h]
\copyrightbox[b]{\includegraphics[width=0.6\linewidth]{example-image-b}}%
           {Source: \url{http://tex.stackexchange.com/}}

    \end{figure}
\end{document}

enter image description here

edit: or with stackengine

\documentclass{article}
\usepackage{graphicx}

\usepackage{stackengine}
\usepackage{url}

\begin{document}
    \begin{figure}[hb]
    \centering
\def\stackalignment{r}
\stackunder{\includegraphics[width=\linewidth]{example-image-b}}%
           {\scriptsize%
            Source: \url{http://tex.stackexchange.com/}}
\caption{Image with copyright}
    \end{figure}
\end{document}

enter image description here

12

Set your image in a tabular that has a single right-aligned column:

enter image description here

\documentclass{article}

\usepackage{graphicx}

\newcommand{\imagesource}[1]{{\footnotesize Source: #1}}

\begin{document}

\begin{figure}
  \centering
  \begin{tabular}{ @{} r @{} }
    \includegraphics[width = .5\linewidth]{example-image} \\
    \imagesource{Image A}
  \end{tabular}
\end{figure}

\end{document}

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.