缺少}插入,显示对齐的矩阵方程,但括号平衡

缺少}插入,显示对齐的矩阵方程,但括号平衡

我正在尝试在数学模式下显示两个对齐的系统方程

\documentclass[9pt,a4paper,twocolumn]{article}
\usepackage[margin=1.5cm]{geometry}
\usepackage[english]{babel}
\usepackage[utf8]{inputenc}
\usepackage{marvosym}
\usepackage{listings}
\usepackage{array}
\usepackage{booktabs}
%\usepackage{shortstack}
\usepackage{graphicx}
\usepackage{multirow}
\usepackage{minipage}
\usepackage{hyperref}
%\usepackage{pdfpages}
\usepackage{amsfonts}
\usepackage{amsmath}    % math fonts
\usepackage{lmodern}    % font definition
\usepackage{slashed}
\usepackage{amsthm}
\usepackage{subfig}
\usepackage{epstopdf}
\usepackage{subfig}

\DeclareGraphicsExtensions{.eps}



\setcounter{secnumdepth}{5}
\title{ wrthuywetshsdfghdsgh }
\author{ 2po4ihu524 }
\begin{document}
\maketitle  

\begin{subequations}
\begin{align}
{
    % State Equations
    X^{(c)}_{t + 1} &= 
    \begin{bmatrix}
    {
        \gamma  & 1-\gamma & 1\\
        0       & 1        & 0\\
        0       & 0        & \zeta
    }
    \end{bmatrix}
    X_t + 
    \begin{bmatrix}
    {
        0 \\
        0 \\
        b_3
    }
    \end{bmatrix}
    U_t + { ^{x}Q^{(c)} }^{1/2} { ^{x}eps^{(c)}_t } \\
    % "Observation equation" 
    X^{(c)}_{t+1} &= \begin{bmatrix}  1 & 0 & 1 \end{bmatrix} X_t +  { ^{y}Q^{(c)} }^{1/2} { ^{y}eps^{(c)}_t }        
}    
\end{align}
\end{subequations}

\end{document}

我得到的错误是:

(...)
("C:\Program Files\MiKTeX 2.9\tex\latex\base\article.cls"
Document Class: article 2007/10/19 v1.4h Standard LaTeX document class
("C:\Program Files\MiKTeX 2.9\tex\latex\base\size10.clo"))
("C:\Program Files\MiKTeX 2.9\tex\latex\geometry\geometry.sty"
("C:\Program Files\MiKTeX 2.9\tex\latex\graphics\keyval.sty")
("C:\Program Files\MiKTeX 2.9\tex\generic\oberdiek\ifpdf.sty")
("C:\Program Files\MiKTeX 2.9\tex\generic\oberdiek\ifvtex.sty")
("C:\Program Files\MiKTeX 2.9\tex\generic\ifxetex\ifxetex.sty")
("C:\Program Files\MiKTeX 2.9\tex\latex\geometry\geometry.cfg"))
("C:\Program Files\MiKTeX 2.9\tex\generic\babel\babel.sty"
*************************************
* Local config file bblopts.cfg used
*
("C:\Program Files\MiKTeX 2.9\tex\latex\00miktex\bblopts.cfg")
("C:\Program Files\MiKTeX 2.9\tex\generic\babel\english.ldf"
("C:\Program Files\MiKTeX 2.9\tex\generic\babel\babel.def")))
("C:\Program Files\MiKTeX 2.9\tex\latex\base\inputenc.sty"
("C:\Program Files\MiKTeX 2.9\tex\latex\base\utf8.def"
("C:\Program Files\MiKTeX 2.9\tex\latex\base\t1enc.dfu")
("C:\Program Files\MiKTeX 2.9\tex\latex\base\ot1enc.dfu")
("C:\Program Files\MiKTeX 2.9\tex\latex\base\omsenc.dfu")))
("C:\Program Files\MiKTeX 2.9\tex\latex\marvosym\marvosym.sty")
("C:\Program Files\MiKTeX 2.9\tex\latex\listings\listings.sty"
("C:\Program Files\MiKTeX 2.9\tex\latex\listings\lstmisc.sty")
("C:\Program Files\MiKTeX 2.9\tex\latex\listings\listings.cfg"))
("C:\Program Files\MiKTeX 2.9\tex\latex\tools\array.sty")
("C:\Program Files\MiKTeX 2.9\tex\latex\booktabs\booktabs.sty")
("C:\Program Files\MiKTeX 2.9\tex\latex\graphics\graphicx.sty"
("C:\Program Files\MiKTeX 2.9\tex\latex\graphics\graphics.sty"
("C:\Program Files\MiKTeX 2.9\tex\latex\graphics\trig.sty")
("C:\Program Files\MiKTeX 2.9\tex\latex\00miktex\graphics.cfg")
("C:\Program Files\MiKTeX 2.9\tex\latex\graphics\dvips.def")))
("C:\Program Files\MiKTeX 2.9\tex\latex\multirow\multirow.sty")
("C:\Program Files\MiKTeX 2.9\tex\latex\hyperref\hyperref.sty"
("C:\Program Files\MiKTeX 2.9\tex\generic\oberdiek\hobsub-hyperref.sty"
("C:\Program Files\MiKTeX 2.9\tex\generic\oberdiek\hobsub-generic.sty"))
("C:\Program Files\MiKTeX 2.9\tex\latex\oberdiek\auxhook.sty")
("C:\Program Files\MiKTeX 2.9\tex\latex\oberdiek\kvoptions.sty")
("C:\Program Files\MiKTeX 2.9\tex\latex\hyperref\pd1enc.def")
("C:\Program Files\MiKTeX 2.9\tex\latex\00miktex\hyperref.cfg")
("C:\Program Files\MiKTeX 2.9\tex\latex\url\url.sty"))

Package hyperref Message: Driver (default): hdvips.

("C:\Program Files\MiKTeX 2.9\tex\latex\hyperref\hdvips.def"
("C:\Program Files\MiKTeX 2.9\tex\latex\hyperref\pdfmark.def"
("C:\Program Files\MiKTeX 2.9\tex\latex\oberdiek\rerunfilecheck.sty")))
("C:\Program Files\MiKTeX 2.9\tex\latex\amsfonts\amsfonts.sty")
("C:\Program Files\MiKTeX 2.9\tex\latex\amsmath\amsmath.sty"
For additional information on amsmath, use the `?' option.
("C:\Program Files\MiKTeX 2.9\tex\latex\amsmath\amstext.sty"
("C:\Program Files\MiKTeX 2.9\tex\latex\amsmath\amsgen.sty"))
("C:\Program Files\MiKTeX 2.9\tex\latex\amsmath\amsbsy.sty")
("C:\Program Files\MiKTeX 2.9\tex\latex\amsmath\amsopn.sty"))
("C:\Program Files\MiKTeX 2.9\tex\latex\lm\lmodern.sty")
("C:\Program Files\MiKTeX 2.9\tex\latex\carlisle\slashed.sty")
("C:\Program Files\MiKTeX 2.9\tex\latex\amscls\amsthm.sty")
("C:\Program Files\MiKTeX 2.9\tex\latex\subfig\subfig.sty"
("C:\Program Files\MiKTeX 2.9\tex\latex\caption\caption.sty"
("C:\Program Files\MiKTeX 2.9\tex\latex\caption\caption3.sty")))
("C:\Program Files\MiKTeX 2.9\tex\latex\oberdiek\epstopdf.sty"
("C:\Program Files\MiKTeX 2.9\tex\latex\oberdiek\epstopdf-base.sty"
("C:\Program Files\MiKTeX 2.9\tex\latex\oberdiek\grfext.sty")

Package epstopdf Warning: Drivers other than `pdftex.def' are not supported.

))

LaTeX Warning: Unused global option(s):
    [9pt].

No file dumb.aux.
("C:\Program Files\MiKTeX 2.9\tex\latex\lm\ot1lmr.fd")
*geometry* driver: auto-detecting
*geometry* detected driver: dvips
("C:\Program Files\MiKTeX 2.9\tex\latex\hyperref\nameref.sty"
("C:\Program Files\MiKTeX 2.9\tex\generic\oberdiek\gettitlestring.sty"))

Package hyperref Warning: Rerun to get /PageLabels entry.

("C:\Program Files\MiKTeX 2.9\tex\latex\lm\omllmm.fd")
("C:\Program Files\MiKTeX 2.9\tex\latex\lm\omslmsy.fd")
("C:\Program Files\MiKTeX 2.9\tex\latex\lm\omxlmex.fd")
("C:\Program Files\MiKTeX 2.9\tex\latex\amsfonts\umsa.fd")
("C:\Program Files\MiKTeX 2.9\tex\latex\amsfonts\umsb.fd")
! Missing } inserted.
<inserted text>
                }
l.64 \end{align}

括号和大括号是匹配的。问题是什么?

答案1

您不必要地在alignbmatrix环境中对内部内容进行分组。删除那些导致括号组不匹配的内部组:

在此处输入图片描述

\documentclass{article}
\usepackage{amsmath}
\begin{document}

\begin{subequations}
  \begin{align}
    % State Equations
    X^{(c)}_{t + 1} &= 
    \begin{bmatrix}
        \gamma  & 1-\gamma & 1\\
        0       & 1        & 0\\
        0       & 0        & \zeta
    \end{bmatrix}
    X_t + 
    \begin{bmatrix}
        0 \\
        0 \\
        b_3
    \end{bmatrix}
    U_t + { ^{x}Q^{(c)} }^{1/2} { ^{x}\text{eps}^{(c)}_t } \\
    % "Observation equation" 
    X^{(c)}_{t+1} &= \begin{bmatrix}  1 & 0 & 1 \end{bmatrix} X_t +  { ^{y}Q^{(c)} }^{1/2} { ^{y}\text{eps}^{(c)}_t }
  \end{align}
\end{subequations}

\end{document}

相关内容