当我尝试使用该Bmatrix
命令编译我的文档时,出现一条奇怪的消息,编译以下代码:
\documentclass[10pt,twoside,openright,english,italian]{book}% twoside!
\usepackage[twoside=true]{geometry}
\geometry{a4paper,
margin=3cm,
top=3.8cm,
bindingoffset=0.4cm
}
\usepackage{phdthesis}
\usepackage{fancyhdr}
\usepackage{color}
\usepackage{amsmath}
\usepackage{amssymb}
\usepackage{amstext}
\usepackage{array}
\usepackage{mdwmath}
\usepackage{mdwtab}
\usepackage{cite}
\usepackage{graphicx}
\usepackage{glossaries}
\usepackage{listings}
\usepackage{stfloats}
\usepackage{subfig}
\usepackage{booktabs}
\usepackage{latexsym}
\usepackage{color}
\usepackage{url}
\usepackage{bnf}
\usepackage{rotating}
\usepackage{multirow}
\usepackage{phdtitle}
\usepackage{paralist}
\usepackage{bibentry}
%\usepackage[algochapter]{algorithm2e}
\usepackage[bookmarks=true,pdftex=false,bookmarksopen=true,pdfborder={0,0,0}]{hyperref}
\usepackage{lscape}
\usepackage{algorithmic}
\usepackage{algorithm}
\usepackage{longtable}
\usepackage[T1]{fontenc}
\usepackage[latin1]{inputenc}
\usepackage{siunitx}%[per-mode = symbol]
\usepackage{xcolor, colortbl}
\hyphenation{}
\newtheorem{Definition}{Definition}[section]
\lstset{tabsize=2,basicstyle=\footnotesize,breaklines=true}
\usepackage[greek,english,italian]{babel}
\usepackage{ulem}
\normalem
\begin{document}
\selectlanguage{english}
\usefont{OT1}{cmr}{m}{n}\selectfont
\begin{equation}
\begin{Bmatrix}
0 \\ 1 \\ 2\\ 3 \\ 4\\ 5
\end{Bmatrix}
\end{equation}
\end{document}
我只报告了导致此错误的文档部分,没有这个公式,文档编译正确。我不明白这个错误,因为我是Bmatrix
从amsmath
文档中复制的。
这是我收到的错误:
! Extra \right. \rbrace ->\delimiter "5267309 l.325 \end{Bmatrix}
I'm ignoring a \right that had no matching \left.
! Missing $ inserted.
<inserted text>
$
l.325 \end{Bmatrix}
! Missing } inserted.
<inserted text>
}
l.325 \end{Bmatrix}
! You can't use `\eqno' in math mode.
\endmathdisplay@a ...\df@tag \@empty \else \veqno
\alt@tag \df@tag \fi \ifx ...
l.326 \end{equation}
! Missing \right. inserted.
<inserted text>
\right .
l.326 \end{equation}
! Missing \endgroup inserted.
<inserted text>
\endgroup
l.326 \end{equation}
是否有任何软件包与之冲突amsmath
?我不明白为什么会出现此错误,如能提供任何帮助,我将不胜感激,谢谢