块阵列错误

块阵列错误

blockarray在第一个环境前面插入第二个环境后,我收到十几条错误消息,这些错误消息针对之前没有出现过的行。这似乎与插入的blockarray环境有关。但由于它只是从第一个环境复制和调整而来,所以我看不出错误在哪里。错误例如,Paragraph ended before \BA@beginblock was complete.对于其他行,它从子节开始Something's wrong--perhaps a missing \item. \subsection,并且Missing } [and \cr] inserted. \subsection{Survey}

\documentclass{article}

\usepackage{amsmath}
\usepackage{blkarray}

\begin{document}

...values is then taken, corresponding to the rules for
\\
\vspace{0.5cm}
\begin{blockarray}{rc}
    \begin{block}{rc\Right{\}}{= for odd number of frames \textit{n}}
        odd number of frames $n$ : & pix$_\frac{n+1}{2}$(x,y) \\
        even number of frames $n$ : & $\dfrac{1}{2}\left(pix_\frac{n}{2} + pix_{\frac{n}{2}+1}\right)$ \\
    \end{block}
\end{blockarray}
\\
\begin{blockarray}{rc}
    \begin{block}{rc\Right{\}}{= Master-\textbf{Dark}[Bias]}}
        odd pixel values $n$ : & \textbf{Dark}[Bias]$_\frac{n+1}{2}$ \\
        even pixel values $n$ : & $\dfrac{1}{2}\left(\mathbf{Dark}\mathrm{[Bias]}_\frac{n}{2} + \mathbf{Dark}\mathrm{[Bias]}_{\frac{n}{2}+1}\right)$ \\
    \end{block}
    & \\
    \begin{block}{rc\Right{\}}{= Master-\textbf{Dark}$_\mathbf{Flat}$[Bias]}}
        odd pixel values $n$ : & \textbf{Dark}$_\mathbf{Flat}$[Bias]$_\frac{n+1}{2}$ \\
        even pixel values $n$ : & $\dfrac{1}{2}\left(\mathbf{Dark}_\mathbf{Flat}\mathrm{[Bias]}_\frac{n}{2} + \mathbf{Dark}_\mathbf{Flat}\mathrm{[Bias]}_{\frac{n}{2}+1}\right)$ \\
    \end{block}
\end{blockarray}

\subsection{Survey}
...
\end{document}

另外,我问自己,在块开头的选项是什么,{= Master-\textbf{Dark}$_\mathbf{Flat}$[Bias]}}因为它们没有显示在我的 pdf 中?

答案1

您的代码缺少一个 }来关闭第一个环境的序言。此外,在 blockarray 环境中,blockarray大括号 ( : ) 右侧的文本似乎宽度为 0。实现此环境居中的一种解决方法是在后面添加一个。虽然并不完美,但它似乎产生了 (几乎) 正确的居中:\Right{\}}{some text}}\end{blockarray}\hphantom{some text}

\documentclass[a4paper,oneside,abstracton]{scrartcl}
\usepackage[utf8]{inputenc}
\usepackage[T1]{fontenc} %Schriftsatz Dokument
\usepackage{lmodern} %use this package in combination with [T1]{fontenc} wo have vector-graphics letters instead of pixelated letters
\usepackage[english]{babel}
\usepackage{amsmath}
\usepackage{amssymb}
\usepackage{amsthm}
\usepackage{amsfonts}
\usepackage{amsbsy}
\usepackage{latexsym}
\usepackage{blkarray}

\begin{document}

...values is then taken, corresponding to the rules for
\\
\vspace{0.5cm}
\begin{blockarray}{rc}
 \begin{block}{rc\Right{\}}{= for odd number of frames \textit{n}}}
 odd number of frames $n$ : & pix$_\frac{n+1}{2}$(x,y) \\
 even number of frames $n$ : & $\dfrac{1}{2}\left(pix_\frac{n}{2} + pix_{\frac{n}{2}+1}\right)$ \\
 \end{block}
\end{blockarray}
\\
\begin{blockarray}{rc}
 \begin{block}{rc\Right{\}}{= Master-\textbf{Dark}[Bias]}}
 odd pixel values $n$ : & \textbf{Dark}[Bias]$_\frac{n+1}{2}$ \\
 even pixel values $n$ : & $\dfrac{1}{2}\left(\mathbf{Dark}\mathrm{[Bias]}_\frac{n}{2} + \mathbf{Dark}\mathrm{[Bias]}_{\frac{n}{2}+1}\right)$ \\
 \end{block}
 & \\
 \begin{block}{rc\Right{\}}{= Master-\textbf{Dark}$_\mathbf{Flat}$[Bias]}}
 odd pixel values $n$ : & \textbf{Dark}$_\mathbf{Flat}$[Bias]$_\frac{n+1}{2}$ \\
 even pixel values $n$ : & $\dfrac{1}{2}\left(\mathbf{Dark}_\mathbf{Flat}\mathrm{[Bias]}_\frac{n}{2} + \mathbf{Dark}_\mathbf{Flat}\mathrm{[Bias]}_{\frac{n}{2}+1}\right)$ \\
 \end{block}
\end{blockarray}

\subsection{Survey}
...
\end{document} 

在此处输入图片描述

相关内容