Graphics, Figures & Tables ⇒ array within caption environment
array within caption environment
I am trying to put an array within a figure caption but it gives error message
Argument of \@caption has an extra }.
Can anyone help, please.
Sohail
Learn LaTeX easily with newest books:
The LaTeX Beginner's Guide: 2nd edition and perfect for students writing a thesis
The LaTeX Cookbook: 2nd edition full of practical examples for mathematics, physics, chemistry, and more
LaTeX Graphics with TikZ: the first book about TikZ for perfect drawings in your LaTeX thesis
Re: array within caption environment
sohail
array within caption environment
Code: Select all
\caption{A matrix here: $\begin{array}{lr} a & b \\ c & d \end{array}$}
Code: Select all
\caption[Text excluding the matrix]{A matrix here: $\begin{array}{lr} a & b \\ c & d \end{array}$}