Hi,
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
Graphics, Figures & Tables ⇒ array within caption environment
NEW: TikZ book now 40% off at Amazon.com for a short time.

Re: array within caption environment
Thanks a lot. I think the answer to my question is in your refered link but I am just struggling with the document you refered. Can you tell me more precisely as I am a new latex user?
sohail
sohail
array within caption environment
This causes an error:
This avoids the error:
The text in the optional argument will go to the List of Figures.
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}$}
The CTAN lion is an artwork by Duane Bibby. Courtesy of www.ctan.org.