For some reason, I am getting hit with a bad math environment delimiter. I know the problem has to stem from the \begin\end
figure I added since the file compiled prior to this begin added.
In my preamble, I have tried everything suggested error using environment inside the section argument
Here is my preamble in case there is something conflicted in it:
\documentclass[11pt, dvipsnames]{article}
\usepackage{amsmath, amssymb, eucal, pxfonts, setspace, enumerate, amscd,
dsfont, wasysym, tikz, tikz-qtree, mathtools, kurier, pgfplots, listings,
etoolbox, tikz-3dplot, float, wrapfig, multirow, array, tkz-fct, graphicx,
datetime, fancyhdr, amsfonts, xcolor, microtype, marvosym, starfont, hyperref,
fixltx2e}
\usepackage[margin=0.75in]{geometry}
\usepackage{subfig}
\usepackage[all]{hypcap}
Figure that is causing the issue is below:
\begin{figure}
\centering
\subfloat[\(z\in [-50, 0]\)]{\includegraphics[width = 3.25in]
{stumpffneg50to0.eps}}
\subfloat[\(z\in [0, 30]\)]{\includegraphics[width = 3.25in]
{stumpff0to30.eps}}
\subfloat[\(z\in [0, 500]\)]{\includegraphics[width = 3.25in]
{stumpff0to500.eps}}
\caption{The Stumpff functions \(C(z)\) and \(S(z)\) plotted for the specified
ranges.}
\label{fig:stumpff}
\end{figure}
Here is the log file:
./230OrbitalMechanicsNotes.tex:2184: LaTeX Error: Bad math environment delimite
r.
See the LaTeX manual or LaTeX Companion for explanation.
Type H <return> for immediate help.
...
l.2184 \subfloat[\(z\in [-50, 0]\)
]{\includegraphics[width = 3.25in]
Your command was ignored.
Type I <command> <return> to replace it with another command,
or <return> to continue without it.
./230OrbitalMechanicsNotes.tex:2184: Missing $ inserted.
<inserted text>
$
l.2184 \subfloat[\(z\in [-50, 0]\)
]{\includegraphics[width = 3.25in]
I've inserted a begin-math/end-math symbol since I think
you left one out. Proceed, with fingers crossed.
./230OrbitalMechanicsNotes.tex:2184: Missing $ inserted.
<inserted text>
$
l.2184 \subfloat[\(z\in [-50, 0]\)
]{\includegraphics[width = 3.25in]
I've inserted a begin-math/end-math symbol since I think
you left one out. Proceed, with fingers crossed.
Overfull \hbox (9.3413pt too wide) in paragraph at lines 2184--2184
[]\OT1/kurier/m/n/9 (-20) (a)
[]
Overfull \hbox (11.57193pt too wide) in paragraph at lines 2184--2184
|$\OML/pxmi/m/it/9 z \OMS/pxsy/m/n/9 2
[]
Overfull \hbox (26.26796pt too wide) in paragraph at lines 2184--2184
\OT1/pxr/m/n/9 [\OMS/pxsy/m/n/9 ^^@\OT1/pxr/m/n/9 50\OML/pxmi/m/it/9 ; \OT1/pxr
/m/n/9 0$
[]
Package epstopdf Info: Source file: <stumpffneg50to0.eps>
(epstopdf) date: 2013-06-04 21:23:34
(epstopdf) size: 25117 bytes
(epstopdf) Output file: <stumpffneg50to0-eps-converted-to.pdf>
(epstopdf) date: 2013-06-04 21:24:44
(epstopdf) size: 14370 bytes
(epstopdf) Command: <repstopdf --outfile=stumpffneg50to0-eps-conver
ted-to.pdf stumpffneg50to0.eps>
(epstopdf) \includegraphics on input line 2185.
Package epstopdf Info: Output file is already uptodate.
<stumpffneg50to0-eps-converted-to.pdf, id=590, 578.16pt x 433.62pt>
File: stumpffneg50to0-eps-converted-to.pdf Graphic file (type pdf)
<use stumpffneg50to0-eps-converted-to.pdf>
Package pdftex.def Info: stumpffneg50to0-eps-converted-to.pdf used on input lin
e 2185.
(pdftex.def) Requested size: 234.87749pt x 176.15768pt.
./230OrbitalMechanicsNotes.tex:2186: LaTeX Error: Bad math environment delimite
r.
See the LaTeX manual or LaTeX Companion for explanation.
Type H <return> for immediate help.
...
l.2186 \subfloat[\(z\in [0, 30]\)
]{\includegraphics[width = 3.25in]
Your command was ignored.
Type I <command> <return> to replace it with another command,
or <return> to continue without it.
./230OrbitalMechanicsNotes.tex:2186: Missing $ inserted.
<inserted text>
$
l.2186 \subfloat[\(z\in [0, 30]\)
]{\includegraphics[width = 3.25in]
I've inserted a begin-math/end-math symbol since I think
you left one out. Proceed, with fingers crossed.
./230OrbitalMechanicsNotes.tex:2186: Missing $ inserted.
<inserted text>
$
l.2186 \subfloat[\(z\in [0, 30]\)
]{\includegraphics[width = 3.25in]
I've inserted a begin-math/end-math symbol since I think
you left one out. Proceed, with fingers crossed.
Overfull \hbox (9.53748pt too wide) in paragraph at lines 2186--2186
[]\OT1/kurier/m/n/9 (-20) (b)
[]
Overfull \hbox (11.57193pt too wide) in paragraph at lines 2186--2186
|$\OML/pxmi/m/it/9 z \OMS/pxsy/m/n/9 2
[]
Overfull \hbox (20.24696pt too wide) in paragraph at lines 2186--2186
\OT1/pxr/m/n/9 [0\OML/pxmi/m/it/9 ; \OT1/pxr/m/n/9 30$
[]
Package epstopdf Info: Source file: <stumpff0to30.eps>
(epstopdf) date: 2013-06-04 21:23:35
(epstopdf) size: 25597 bytes
(epstopdf) Output file: <stumpff0to30-eps-converted-to.pdf>
(epstopdf) date: 2013-06-04 21:24:44
(epstopdf) size: 15001 bytes
(epstopdf) Command: <repstopdf --outfile=stumpff0to30-eps-converted
-to.pdf stumpff0to30.eps>
(epstopdf) \includegraphics on input line 2187.
Package epstopdf Info: Output file is already uptodate.
<stumpff0to30-eps-converted-to.pdf, id=591, 578.16pt x 433.62pt>
File: stumpff0to30-eps-converted-to.pdf Graphic file (type pdf)
<use stumpff0to30-eps-converted-to.pdf>
Package pdftex.def Info: stumpff0to30-eps-converted-to.pdf used on input line 2
187.
(pdftex.def) Requested size: 234.87749pt x 176.15768pt.
./230OrbitalMechanicsNotes.tex:2188: LaTeX Error: Bad math environment delimite
r.
See the LaTeX manual or LaTeX Companion for explanation.
Type H <return> for immediate help.
...
l.2188 \subfloat[\(z\in [0, 500]\)
]{\includegraphics[width = 3.25in]
Your command was ignored.
Type I <command> <return> to replace it with another command,
or <return> to continue without it.
./230OrbitalMechanicsNotes.tex:2188: Missing $ inserted.
<inserted text>
$
l.2188 \subfloat[\(z\in [0, 500]\)
]{\includegraphics[width = 3.25in]
I've inserted a begin-math/end-math symbol since I think
you left one out. Proceed, with fingers crossed.
./230OrbitalMechanicsNotes.tex:2188: Missing $ inserted.
<inserted text>
$
l.2188 \subfloat[\(z\in [0, 500]\)
]{\includegraphics[width = 3.25in]
I've inserted a begin-math/end-math symbol since I think
you left one out. Proceed, with fingers crossed.
Best Answer
The ranges in
z \in [..]
contains square brackets which confuses LaTeX when reading the optional argument of\subfloat
. So, you need to conceal it by using{[...]}
: