I've got two questions.
- I wish to put text above and below a figure. When I try this now I get two figure numbers, which of course I don't want.
How can I just get one figure number and a title above and an explanation underneath?
my MWE code is below:Code: Select all
\begin{figure}%[H] \caption{my Title} \begin{center} \includegraphics[width=4in,height=5in,keepaspectratio]{images/stateSpace} \label{stateSpace} \caption{hello world} \end{center} \end{figure}
- I am using the algorithm package. With this package when you use caption you get a title between two neat black lines at the top of your algorithm.
I wish to use more than one line of text in between these two black lines.
When I do the below, I get that effect. However, I also get the first line "MY title" unjustified and spread out over the width of the page. How do i enforce it being left justified?
my MWE code is below:Code: Select all
\usepackage{algorithm} \usepackage{algorithmic} \usepackage{algorithmwh} \begin{algorithm}[H] \label{algViterbi} \caption{MY title. \text{A = FUNC(B,C)}} \begin{algorithmic}[1] \STATE {\bf Initialize} \end{algorithmic} \end{algorithm}
Many Thanks!