I feel like this has probably been asked before, but I couldn't find a duplicate. I'm having some trouble with an array that I'm trying to make. The main problem has to do with graphics inclusion, but I have several other questions and I'll list them all. The array needs to consist of, from left to right:
- The Rolfsen index of a knot
- A picture of said knot
- A matrix associated with the knot
- The Jones polynomial of the knot
Here is a sample file of the array, made long enough that you can see all of the problems:
\documentclass[12pt,letterpaper]{report}
\usepackage{graphicx}
\usepackage{amsmath}
\begin{document}
\begin{small}
\[
\begin{array}{cccc}
& \textbf{Knot with Crossings} && \\
\textbf{Knot} &
\textbf{Labeled and Oriented} &
\textbf{Trip Matrix} &
\textbf{Jones Polynomial}
\\
\text{\Large{$8_{18}$}}
&
\includegraphics[width=0.25\textwidth]{example-image.jpg}
&
\begin{bmatrix}
0 & 1 & 0 & 1 & 0 & 0 & 1 & 1 \\
1 & 0 & 1 & 0 & 1 & 0 & 0 & 1 \\
0 & 1 & 0 & 1 & 1 & 1 & 0 & 0 \\
1 & 0 & 1 & 0 & 0 & 1 & 1 & 0 \\
0 & 1 & 1 & 0 & 0 & 1 & 0 & 1 \\
0 & 0 & 1 & 1 & 1 & 0 & 1 & 0 \\
1 & 0 & 0 & 1 & 0 & 1 & 0 & 1 \\
1 & 1 & 0 & 0 & 1 & 0 & 1 & 0
\end{bmatrix}
&
q^4-4q^3+6q^2-7q+9-7q^{-1}+6q^{-2}-4q^{-3}+q^{-4}
\\
\text{\Large{$8_{19}$}}
&
\includegraphics[width=0.25\textwidth]{example-image.jpg}
&
\begin{bmatrix}
0 & 1 & 1 & 0 & 1 & 1 & 0 & 0 \\
1 & 0 & 1 & 0 & 1 & 1 & 0 & 0 \\
1 & 1 & 0 & 1 & 1 & 0 & 1 & 1 \\
0 & 0 & 1 & 1 & 1 & 0 & 1 & 1 \\
1 & 1 & 1 & 1 & 1 & 0 & 0 & 0 \\
1 & 1 & 0 & 0 & 0 & 1 & 1 & 1 \\
0 & 0 & 1 & 1 & 0 & 1 & 0 & 1 \\
0 & 0 & 1 & 1 & 0 & 1 & 1 & 0
\end{bmatrix}
&
-q^8+q^5+q^3
\\
\text{\Large{$8_{20}$}}
&
\includegraphics[width=0.25\textwidth]{example-image.jpg}
&
\begin{bmatrix}
1 & 1 & 1 & 0 & 1 & 1 & 1 & 1 \\
1 & 1 & 0 & 1 & 0 & 0 & 1 & 1 \\
1 & 0 & 0 & 1 & 1 & 1 & 0 & 0 \\
0 & 1 & 1 & 0 & 1 & 1 & 0 & 0 \\
1 & 0 & 1 & 1 & 1 & 1 & 1 & 1 \\
1 & 0 & 1 & 1 & 1 & 0 & 0 & 0 \\
1 & 1 & 0 & 0 & 1 & 0 & 1 & 1 \\
1 & 1 & 0 & 0 & 1 & 0 & 1 & 1 \\
\end{bmatrix}
&
-q+2-q^{-1}+2q^{-2}-q^{-3}+q^{-4}-q^{-5}
\\
\text{\Large{$8_{21}$}}
&
\includegraphics[width=0.25\textwidth]{example-image.jpg}
&
\begin{bmatrix}
0 & 1 & 1 & 0 & 1 & 1 & 1 & 1 \\
1 & 1 & 0 & 1 & 0 & 0 & 1 & 1 \\
1 & 0 & 1 & 1 & 1 & 1 & 0 & 0 \\
0 & 1 & 1 & 1 & 1 & 1 & 0 & 0 \\
1 & 0 & 1 & 1 & 1 & 1 & 1 & 1 \\
1 & 0 & 1 & 1 & 1 & 1 & 0 & 0 \\
1 & 1 & 0 & 0 & 1 & 0 & 1 & 1 \\
1 & 1 & 0 & 0 & 1 & 0 & 1 & 1 \\
\end{bmatrix}
&
2q^{-1}-2q^{-2}+3q^{-3}-3q^{-4}+2q^{-5}-2q^{-6}+q^{-7}
\end{array}
\]
\end{small}
\end{document}
This will be a very long list, spanning about 15 pages, that I will be adding to repeatedly over the course of my thesis, so I'd like to streamline it now. Perhaps I'm completely off base trying to do it in an array environment in the first place, and there's some better environment for it that I don't know about. The problems I'm having, in order of importance, are:
- The array is rendering for me such that all of the text is vertically centered at the bottom of the graphic in the second column. I would like it so that the vertical centers of the entries all line up with each other, i.e. the center of the knot index lines up with the center of the picture lines up with the center of the array lines up with the center of the polynomial, or at the very least so that the bottoms line up.
- I would like to put a line break in the middle of the Jones Polynomials sometimes so that everything can fit on the page, and I don't know how to accomplish this inside of an array. Word-wrapping with a fixed width for the column would be ideal, because like I said there will be a lot of them, and it would be annoying to have to format each one individually.
- I would like the first column to have Large font size without manually putting in
\text{\Large{$KNOT$}}
every time I write an entry in the first column. - Page breaks that happen in the middle of the row do not move the row in question onto the next page, and I need them to do that.
- There's a blank page showing up before the array. I suspect this will go away when I figure out #4.
- (BONUS) If I could get it to repeat the title rows at the beginning of every page automatically that would be awesome, that seems like something someone would have programmed LaTeX to do by now, but I realize it's probably a long shot.