
Tengo algunas matrices bastante largas que me gustaría insertar en un documento LaTeX y quería saber si era posible dividir el matrix
entorno para permitir que las matrices se mostraran en varias páginas, ya que simplemente reducir lo suficiente la fuente hace que mi texto sea ilegible. Aquí hay un ejemplo de trabajo mínimo:
\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}
En este ejemplo, vemos que si eliminamos la última línea de ceros, la matriz comenzará en la página 1 en lugar de en la página 2 como ocurre aquí, mientras que si seguimos agregando líneas, LaTeX continuará mostrando estos elementos adicionales e irá más allá. márgenes. Debo precisar que ésta no es la matriz que tenía en mente para mi artículo.
Debo precisar que en mi caso específico, la matriz tiene suficientes columnas para llenar una página completa.
Respuesta1
Una posible solución es dividir tus enormes matrices en submatrices:
\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}
Respuesta2
Podrías recortarlo, con un poco de superposición para darle continuidad. Tenga en cuenta que la línea de base está en el centro (más o menos), lo que corresponde a 0 puntos en la ventana gráfica. \strutbox
es un cuadro predefinido que contiene \strut
, al igual que \ht\strutbox
la altura de \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}