[texhax] LaTeX help
Prof. Sudhir R. Ghorpade
srg at math.iitb.ac.in
Tue Aug 5 19:30:06 CEST 2003
Hello! I am not sure if this is the right address to ask questions.
But I will be very grateful if you please help with the following
question or direct it to somone who might help.
In my LaTeX file I have inserted a figure within the
\begin{figure} .... \end{figure}
and using the command \includegraphics to include my EPS file(s).
I tried to give the following caption:
--------------------------------------------------------------------
\caption{Graphs of (i) $f(x):= |x|$ and
(ii) $f(x):= \left\{ \begin{array}{ll} x + 2 & \mbox{ if} \ x \le 1, \\
x^2 - 1 & \mbox{ if} \ x > 1; \end{array} \right.$}
--------------------------------------------------------------------
However, while compiling, I get the following error message:
--------------------------------------------------------------------
Argument of \@caption has an extra }.
<inserted text>
\par
l.1404 ...mbox{ if} \ x > 1; \end{array} \right.$}
--------------------------------------------------------------------
I know for sure that there is no extra brace. If I ignore the
above error, I get:
--------------------------------------------------------------------
Runaway argument?
\@captype {\def \@currenvir {array}\edef \@currenvline {\on at line }\csname
\ETC.
! Paragraph ended before \@caption was complete.
<to be read again>
\par
l.1404 ...mbox{ if} \ x > 1; \end{array} \right.$}
--------------------------------------------------------------------
If I ignore it again, then it stops complaining and produced a DVI
file with correct output.
Nevertheless it is annoying to have this error message. Can you tell
me how to avoid it? Could it be because the array environment (and the
\\ comand to go to next line) is forbidden within \caption?
Thanks a lot for your time and cooperation.
With regards,
Sudhir
_________________________________________________________________________
Sudhir R. Ghorpade
Department of Mathematics
Indian Institute of Technology, Bombay
Powai, Mumbai 400 076, INDIA
E-Mail : srg at math.iitb.ac.in
Fax : (+91-22) 2572 3480
Tel. : (+91-22) 2576 7470 (Office), 2576 7451 (Dept. Office)
2570 1229 (Home)
Web Page : http://www.math.iitb.ac.in/~srg/
_________________________________________________________________________
More information about the texhax
mailing list