blkarray 내부의 수평 클라인 길이

blkarray 내부의 수평 클라인 길이

패키지를 사용하는 다음 MWE를 고려하십시오 blkarray.

\documentclass[11pt]{article}
\usepackage{lmodern}
\usepackage{blkarray}

\begin{document}
\[
\begin{blockarray}{[ccc|ccc|cc]c}
\mathsf{x} & \mathsf{x} & \mathsf{x} & \mathsf{x} & 
\mathsf{x} & \mathsf{x} & \mathsf{x} & \mathsf{x} \\
\mathsf{x} & \mathsf{x} & \mathsf{x} & \mathsf{x} & \mathsf{x} & 
\mathsf{x} & \mathsf{x} & \mathsf{x} \\
& \mathsf{x} & \mathsf{x} & \mathsf{x} & \mathsf{x} & 
\mathsf{x} & \mathsf{x} & \mathsf{x} \\ \cline{1-8}
&            &            & \mathsf{x} & \mathsf{x} & 
\mathsf{x} & \mathsf{x} & \mathsf{x} & p \\
&            &            & \mathsf{x} & \mathsf{x} & 
\mathsf{x} & \mathsf{x} & \mathsf{x} \\
&            &            &            & \mathsf{x} & 
\mathsf{x} & \mathsf{x} & \mathsf{x} \\\cline{1-8}
&            &            &            &            & 
& \mathsf{x} & \mathsf{x} & q \\   
&            &            &            &            & 
&            & \mathsf{x} \\   
\end{blockarray}
\]
\end{document}

두 개의 \cline가 중괄호와 교차하는 것을 볼 수 있습니다. 이것들을 다듬는 가장 좋은 방법은 무엇입니까? \cmidrulefrom 명령은 대략적 booktabs으로 이 작업을 수행하지만 두 수직선과 부정적인 상호 작용이 있습니다.

또한 등가물과 비교하면 bmatrix중괄호가 평소보다 행렬 요소에 다소 더 가까운 것처럼 보입니다.

답변1

\aboverulesep(기본값: 0.605mm또는 0.4ex) 및 \belowrulesep{<width>}(기본값: 0.984mm또는 0.65ex) 값에 따라 달라지는 booktabs 규칙의 안쪽 여백을 로컬로 제거하는 경우 수직선과 상호 작용이 없습니다.

\documentclass[11pt]{article}
\usepackage{lmodern}
\usepackage{blkarray, bigstrut}
\usepackage{booktabs} 

\begin{document}
\[ \setlength\aboverulesep{0pt}\setlength\belowrulesep{0pt}
    \setlength\cmidrulewidth{0.5pt}
\begin{blockarray}{[ccc|ccc|cc]c}
\bigstrut[t]\mathsf{x} & \mathsf{x} & \mathsf{x} & \mathsf{x} &
\mathsf{x} & \mathsf{x} & \mathsf{x} & \mathsf{x} \\
\mathsf{x} & \mathsf{x} & \mathsf{x} & \mathsf{x} & \mathsf{x} &
\mathsf{x} & \mathsf{x} & \mathsf{x} \\
& \mathsf{x} & \mathsf{x} & \mathsf{x} & \mathsf{x} &
\mathsf{x} & \mathsf{x} & \mathsf{x} \\ 
\cmidrule(lr){1-8}
& & & \mathsf{x} & \mathsf{x} &
\mathsf{x} & \mathsf{x} & \mathsf{x} & p \\
& & & \mathsf{x} & \mathsf{x} &
\mathsf{x} & \mathsf{x} & \mathsf{x} \\
& & & & \mathsf{x} &
\mathsf{x} & \mathsf{x} & \mathsf{x} \\%\cline{1-8}
\cmidrule(lr){1-8} & & & & && \mathsf{x} & \mathsf{x} & q \\
    & & & & & & & \mathsf{x}\bigstrut[b] \\
\end{blockarray}
\]

\end{document} 

여기에 이미지 설명을 입력하세요

관련 정보