LaTeX 错误坏数学环境分隔符在子浮点标题内

LaTeX 错误坏数学环境分隔符在子浮点标题内

由于某种原因,我遇到了错误的数学环境分隔符。我知道问题出在\begin\end我添加的数字上,因为在此开始之前编译的文件已添加。

在我的序言中,我已经尝试了所有建议在节参数中使用环境时出错

以下是我的序言,以防其中有冲突:

\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[caption = false]{subfig}
\usepackage[all]{hypcap}

导致问题的图如下:

\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}

这是日志文件:

./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.

答案1

中的范围z \in [..]包含方括号,这会使 LaTeX 在读取 的可选参数时感到困惑\subfloat。因此,您需要使用 来隐藏它{[...]}

\begin{figure}
  \centering
  \subfloat[\(z\in {[-50, 0]}\)]{\includegraphics[width = 3.25in]%
    {example-image-a}}
  \subfloat[\(z\in {[0, 30]}\)]{\includegraphics[width = 3.25in]%
    {example-image-a}}
  \subfloat[\(z\in {[0, 500]}\)]{\includegraphics[width = 3.25in]%
    {example-image-a}}
  \caption{The Stumpff functions \(C(z)\) and \(S(z)\) plotted for the specified    
    ranges.}
  \label{fig:stumpff}
\end{figure}

相关内容