Hi all,
When I try and compile my document from the master (with 7 or so child
documents for a dissertation), I am now getting an error which I did not
receive previously. I recently added some material to one of the
chapters (child docs): first use of subfigures (added
"usepackage{subfig} to the Preamble), and a footnote to one of the
subfigure captions (added ERT based on advice from this list). Since
these additions, the errors come up for ALL of my figures.
After modifying a duplicate file and removing both of these new
additions, I still get this error for all of the figures. So, this
makes me think that there is some global change which is effecting my
figures (BTW no problem with tables). However, no idea what that could
be since last time I added to one of the child docs, the whole
dissertation compiled just fine. Now that I'm back to writing, I am
suddenly getting this error!
Here is text from the error console:
Argument of \fnum@figure has an extra }.
...uai Plain\label{fig:The-Huanghuai-Plain}}
I've run across a `}' that doesn't seem to match anything.
For example, `\def\a#1{...}' and `\a}' would produce
this error. If you simply proceed now, the `\par' that
I've just inserted will cause me to report a runaway
argument that might be the root of the problem. But if
your `}' was spurious, just type `2' and it will go away.
========
Paragraph ended before \fnum@figure was complete.
...uai Plain\label{fig:The-Huanghuai-Plain}}
I suspect you've forgotten a `}', causing me to apply this
control sequence to too much text. How can we recover?
My plan is to forget the whole thing and hope for the best.
======================
This is the code for the above referenced figure:
<code>
\begin{figure}
\centering\subfloat[ljl]{\includegraphics[scale=0.2]{Figures/HH-YR-1}
}
\subfloat[lkjl]{\includegraphics[scale=0.2]{Figures/HH-YR-2}
}
\subfloat[kljl]{\includegraphics[scale=0.2]{Figures/HH-YR-3}
}
\caption{The Huanghuai Plain\label{fig:The-Huanghuai-Plain}}
\end{figure}
<\code>
I get the above errors twice for every figure. Please let me know what
additional information you need. In any case, I'm using Lyx 2.0.6 in
Linux Mint 14 (Nadia).
Cheers,
Charles