
LaTeX 문서에 삽입하고 싶은 꽤 긴 행렬이 있는데, matrix
단순히 글꼴을 충분히 줄이면 텍스트를 읽을 수 없게 되므로 행렬을 여러 페이지에 표시할 수 있도록 환경을 분할할 수 있는지 알고 싶었습니다. 다음은 최소한의 작업 예입니다.
\documentclass[10pt,a4paper]{article}
\usepackage{amsmath}
\begin{document}
\begin{align*}
A=\begin{pmatrix}
0&0\\
0&0\\
0&0\\
0&0\\0&0\\
0&0\\0&0\\
0&0\\0&0\\
0&0\\0&0\\
0&0\\0&0\\
0&0\\0&0\\
0&0\\0&0\\
0&0\\0&0\\
0&0\\0&0\\
0&0\\0&0\\
0&0\\0&0\\
0&0\\0&0\\
0&0\\0&0\\
0&0\\0&0\\
0&0\\0&0\\
0&0\\0&0\\
0&0\\0&0\\
0&0\\0&0\\
0&0\\0&0\\
0&0\\0&0\\
0&0\\0&0\\
0&0\\0&0\\
0&0\\0&0
\end{pmatrix}
\end{align*}
\end{document}
이 예에서 우리는 0의 마지막 줄을 제거하면 행렬이 여기서처럼 페이지 2가 아닌 페이지 1에서 시작하는 반면, 줄을 계속 추가하면 LaTeX는 이러한 추가 요소를 계속 표시하고 그 이상으로 넘어갑니다. 여백. 나는 이것이 내 논문에 대해 내가 염두에 두었던 매트릭스가 아니라는 점을 분명히 해야 합니다.
내 특별한 경우에는 행렬에 전체 페이지를 채울 만큼 충분한 열이 있다는 점을 정확하게 설명해야 합니다.
답변1
가능한 해결책은 거대한 행렬을 하위 행렬로 분할하는 것입니다.
\documentclass[10pt,a4paper]{article}
\usepackage{amsmath}
\begin{document}
\[
\mathbf{A}=\begin{pmatrix}
\mathbf{A}_1 \\
\mathbf{A}_2 \\
\mathbf{A}_3 \\
\mathbf{A}_4 \\
\end{pmatrix}
\]
where submatrices $\mathbf{A}_1$, $\mathbf{A}_2$, $\mathbf{A}_3$ and $\mathbf{A}_4$ are
\[
\mathbf{A}_1 = \begin{pmatrix}
0&0\\0&0\\
0&0\\0&0\\
0&0\\0&0\\
0&0\\0&0\\
0&0\\0&0\\
0&0\\0&0\\
0&0\\0&0\\
0&0\\0&0\\
\end{pmatrix}
\quad
\mathbf{A}_2 = \begin{pmatrix}
0&0\\0&0\\
0&0\\0&0\\
0&0\\0&0\\
0&0\\0&0\\
0&0\\0&0\\
0&0\\0&0\\
0&0\\0&0\\
0&0\\0&0\\
\end{pmatrix}
\quad
\mathbf{A}_3 = \begin{pmatrix}
0&0\\0&0\\
0&0\\0&0\\
0&0\\0&0\\
0&0\\0&0\\
0&0\\0&0\\
0&0\\0&0\\
0&0\\0&0\\
0&0\\0&0\\
\end{pmatrix}
\quad
\mathbf{A}_4 = \begin{pmatrix}
0&0\\0&0\\
0&0\\0&0\\
0&0\\0&0\\
0&0\\0&0\\
0&0\\0&0\\
0&0\\0&0\\
0&0\\0&0\\
0&0\\0&0\\
\end{pmatrix}
\]
\end{document}
답변2
연속성을 위해 약간 겹쳐서 잘라낼 수 있습니다. 기준선은 뷰포트의 0pt에 해당하는 중앙(다소)에 있습니다. \strutbox
는 을 포함하는 미리 정의된 상자이므로 의 높이도 \strut
마찬가지 입니다 .\ht\strutbox
\strut
\documentclass[10pt,a4paper]{article}
\usepackage{amsmath}
\usepackage{adjustbox}
\newsavebox{\tempbox}
\begin{document}
\savebox{\tempbox}{\begin{minipage}{\textwidth}
\begin{align*}
A=\begin{pmatrix}
0&0\\
0&0\\
0&0\\
0&0\\0&0\\
0&0\\0&0\\
0&0\\0&0\\
0&0\\0&0\\
0&0\\0&0\\
0&0\\0&0\\
0&0\\0&0\\
0&0\\0&0\\
0&0\\0&0\\
0&0\\0&0\\
0&0\\0&0\\
0&0\\0&0\\
0&0\\0&0\\
0&0\\0&0\\
0&0\\0&0\\
0&0\\0&0\\
0&0\\0&0\\
0&0\\0&0\\
0&0\\0&0\\
0&0\\0&0\\
0&0\\0&0\\
0&0\\0&0\\
0&0\\0&0
\end{pmatrix}
\end{align*}
\end{minipage}}%
\adjustbox{clip=true,viewport=0pt {-\ht\strutbox} {\wd\tempbox} {\ht\tempbox}}{\usebox{\tempbox}}
\newpage
\adjustbox{clip=true,viewport=0pt {-\dp\tempbox} {\wd\tempbox} {\dp\strutbox}}{\usebox{\tempbox}}
\end{document}