He creado mi propio comando que crea vectores de columnas etiquetadas usando elblkarray
ambiente. Los problemas de espaciado vertical surgen cuando el comando se usa dentro del align
entorno. Generaba demasiado espacio vertical.
Lo he usado \\[-3em]
justo después \begin{align}
y justo antes \end{align}
; pero no quiero ajustarlo manualmente cada vez. Además, eché un vistazo aeste, Pero el problema persiste.
\documentclass{article}
\usepackage{blkarray}
\usepackage{amsmath}
\setlength{\parindent}{0pt}
\newcommand{\colVectorLabelled}[2]{
\ensuremath{\mathrm{#1} =
\begin{blockarray}{*{1}{c} l}
\begin{block}{*{1}{>{$\footnotesize}c<{$}} l} & \\\end{block}
\begin{block}{[c]>{$\footnotesize}l<{$}}#2\end{block}
\end{blockarray}
}
}
\begin{document}
\textbf{The} \verb|\blockarray| \textbf{environment alone}: Some filler text
some filler text some filler text some filler text some filler text some filler text.\\
\colVectorLabelled{X}{1 & $0_{2}$\\0 & $1_{2}$\\}
\textbf{The} \verb|\blockarray| \textbf{environment inside} \verb|\align|
\textbf{environment}: Some filler text some filler text some filler text some
filler text some filler text some filler text.\\
\begin{align}
\colVectorLabelled{X}{1 & $0_{2}$\\0 & $1_{2}$\\}
\end{align}
More filler text filler text filler text filler text filler text filler text filler text
\end{document}
Gracias de antemano :)
Respuesta1
Aquí hay una solución alternativa, con \useshortskip
from nccmath
para el espacio anterior y una sencilla \vskip -2ex
para el espacio siguiente:
\documentclass{article}
\usepackage{blkarray}
\usepackage{amsmath, nccmath}
\setlength{\parindent}{0pt}
\newcommand{\colVectorLabelled}[2]{
\ensuremath{\mathrm{#1} =
\begin{blockarray}{*{1}{c} l}
\begin{block}{*{1}{>{$\footnotesize}c<{$}} l} & \\\end{block}
\begin{block}{[c]>{$\footnotesize}l<{$}}#2\end{block}
\end{blockarray}
}
}
\begin{document}
\textbf{The} \verb|\blockarray| \textbf{environment alone}: Some filler text
some filler text some filler text some filler text some filler text some filler text.\\
\colVectorLabelled{X}{1 & $0_{2}$\\0 & $1_{2}$\\}
\textbf{The} \verb|\blockarray| \textbf{environment inside} \verb|\align|
\textbf{environment}: Some filler text some filler text some filler text some
filler text some filler text some filler text some filler text some filler text some filler text.\useshortskip
\begin{align}
\colVectorLabelled{X}{1 & $0_{2}$\\0 & $1_{2}$\\}
\end{align}\vskip-2ex
More filler text filler text filler text filler text filler text filler text filler text
\end{document}