[prev in list] [next in list] [prev in thread] [next in thread]
List: lyx-users
Subject: Sudden error with figures (possibly \caption )
From: Charles Hartley <chartley () uchicago ! edu>
Date: 2013-06-21 22:00:16
Message-ID: 51C4CCF0.30605 () uchicago ! edu
[Download RAW message or body]
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
[Attachment #3 (text/html)]
<html>
<head>
<meta http-equiv="content-type" content="text/html; charset=ISO-8859-1">
</head>
<body bgcolor="#FFFFFF" text="#000000">
Hi all,<br>
<br>
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.<br>
<br>
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!<br>
<br>
Here is text from the error console:<br>
<br>
<br>
Argument of \fnum@figure has an extra }.<br>
<br>
...uai Plain\label{fig:The-Huanghuai-Plain}}<br>
&nbs \
p; \
\
<br> I've run across a `}' that doesn't seem to match anything.<br>
For example, `\def\a#1{...}' and `\a}' would produce<br>
this error. If you simply proceed now, the `\par' that<br>
I've just inserted will cause me to report a runaway<br>
argument that might be the root of the problem. But if<br>
your `}' was spurious, just type `2' and it will go away.<br>
<br>
========<br>
<br>
Paragraph ended before \fnum@figure was complete.<br>
<br>
...uai Plain\label{fig:The-Huanghuai-Plain}}<br>
&nbs \
p; \
\
<br> I suspect you've forgotten a `}', causing me to apply this<br>
control sequence to too much text. How can we recover?<br>
My plan is to forget the whole thing and hope for the best.<br>
<br>
======================<br>
<br>
This is the code for the above referenced figure:<br>
<br>
<code><br>
<meta name="qrichtext" content="1">
<p style=" margin-top:0px; margin-bottom:0px; margin-left:0px;
margin-right:0px; -qt-block-indent:0; \
text-indent:0px;"><!--StartFragment-->\begin{figure}</p> <p style=" margin-top:0px; \
margin-bottom:0px; margin-left:0px;
margin-right:0px; -qt-block-indent:0; \
text-indent:0px;">\centering\subfloat[ljl]{\includegraphics[scale=0.2]{Figures/HH-YR-1}</p>
<p style="-qt-paragraph-type:empty; margin-top:0px;
margin-bottom:0px; margin-left:0px; margin-right:0px;
-qt-block-indent:0; text-indent:0px;"><br>
</p>
<p style="-qt-paragraph-type:empty; margin-top:0px;
margin-bottom:0px; margin-left:0px; margin-right:0px;
-qt-block-indent:0; text-indent:0px;"><br>
</p>
<p style=" margin-top:0px; margin-bottom:0px; margin-left:0px;
margin-right:0px; -qt-block-indent:0; text-indent:0px;">}</p>
<p style="-qt-paragraph-type:empty; margin-top:0px;
margin-bottom:0px; margin-left:0px; margin-right:0px;
-qt-block-indent:0; text-indent:0px;"><br>
</p>
<p style=" margin-top:0px; margin-bottom:0px; margin-left:0px;
margin-right:0px; -qt-block-indent:0; \
text-indent:0px;">\subfloat[lkjl]{\includegraphics[scale=0.2]{Figures/HH-YR-2}</p> \
<p style="-qt-paragraph-type:empty; margin-top:0px; margin-bottom:0px; \
margin-left:0px; margin-right:0px;
-qt-block-indent:0; text-indent:0px;"><br>
</p>
<p style="-qt-paragraph-type:empty; margin-top:0px;
margin-bottom:0px; margin-left:0px; margin-right:0px;
-qt-block-indent:0; text-indent:0px;"><br>
</p>
<p style=" margin-top:0px; margin-bottom:0px; margin-left:0px;
margin-right:0px; -qt-block-indent:0; text-indent:0px;">}</p>
<p style="-qt-paragraph-type:empty; margin-top:0px;
margin-bottom:0px; margin-left:0px; margin-right:0px;
-qt-block-indent:0; text-indent:0px;"><br>
</p>
<p style=" margin-top:0px; margin-bottom:0px; margin-left:0px;
margin-right:0px; -qt-block-indent:0; \
text-indent:0px;">\subfloat[kljl]{\includegraphics[scale=0.2]{Figures/HH-YR-3}</p> \
<p style="-qt-paragraph-type:empty; margin-top:0px; margin-bottom:0px; \
margin-left:0px; margin-right:0px;
-qt-block-indent:0; text-indent:0px;"><br>
</p>
<p style="-qt-paragraph-type:empty; margin-top:0px;
margin-bottom:0px; margin-left:0px; margin-right:0px;
-qt-block-indent:0; text-indent:0px;"><br>
</p>
<p style=" margin-top:0px; margin-bottom:0px; margin-left:0px;
margin-right:0px; -qt-block-indent:0; text-indent:0px;">}</p>
<p style="-qt-paragraph-type:empty; margin-top:0px;
margin-bottom:0px; margin-left:0px; margin-right:0px;
-qt-block-indent:0; text-indent:0px;"><br>
</p>
<p style=" margin-top:0px; margin-bottom:0px; margin-left:0px;
margin-right:0px; -qt-block-indent:0; text-indent:0px;">\caption{The
Huanghuai Plain\label{fig:The-Huanghuai-Plain}}</p>
<p style="-qt-paragraph-type:empty; margin-top:0px;
margin-bottom:0px; margin-left:0px; margin-right:0px;
-qt-block-indent:0; text-indent:0px;"><br>
</p>
<p style="-qt-paragraph-type:empty; margin-top:0px;
margin-bottom:0px; margin-left:0px; margin-right:0px;
-qt-block-indent:0; text-indent:0px;"><br>
</p>
<p style=" margin-top:0px; margin-bottom:0px; margin-left:0px;
margin-right:0px; -qt-block-indent:0; \
text-indent:0px;">\end{figure}<!--EndFragment--></p> <meta http-equiv="Content-Type" \
content="text/html; charset=ISO-8859-1">
<style type="text/css">
p, li { white-space: pre-wrap; </style><\code><br>
<br>
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).<br>
<br>
Cheers,<br>
Charles<br>
</body>
</html>
[prev in list] [next in list] [prev in thread] [next in thread]
Configure |
About |
News |
Add a list |
Sponsored by KoreLogic