I want to put figures in the text. The codes are as follows.
Code: Select all
\documentclass[11pt]{article}
\usepackage{subfig}
\usepackage{graphicx}
\begin{document}
\begin{figure}[h]
\begin{centering}
\subfloat[a]{\label{fig:fig1}\includegraphics[width=0.5\textwidth]{fig1}}
\\ \subfloat[b] {\label{fig:fig2} \includegraphics[width=0.5\textwidth]{fig2}}
\caption{my figure \\ \textit{Note: the resource of my figure.} }
\end{centering}
\end{figure}
\end{document}
I also wish the caption in the middle, with "note" left aligned. But the above code shows the "Figure 1: my figure" on the left. I want it to be in the middle. How to do this?
I tried this code.
Code: Select all
\caption{ \textit{Note: the resource of my figure.}}
Any suggestion is appreciated.
Lynn