I have a table in which I want rows to have two lines of text. In the first row, I would like "Number of pairs" centered over "of newborn bunnies." In the second row, I would like "January 1" aligned against the left edge of the table and below the date, I would like "Start" indented 3mm from the left edge. (I put a "%" in front of the first two lines of code so that the code for the table would compile.)
I would also appreciate a suggestion for putting the title within the boundaries of the table.
\documentclass{amsart}
\usepackage{amsmath}
\usepackage{amsfonts}
\usepackage{makecell}
\usepackage{stackengine}\setstackEOL{\cr} %EOL is abbreviation for "end of line."
\usepackage{adjustbox}
\usepackage{siunitx}
\usepackage{booktabs}
\begin{document}
\noindent \hspace*{\fill}
\setlength\extrarowheight{2pt}
\belowbaseline[-7pt]{\stackunder{\bfseries\Longstack{Fibonacci's Rabbit Population\cr Explosion}}{%
\begin{tabular}{|| c | S[table-format=-1.0] | S[table-format=-1.0] | S[table-format=-1.0] ||} \hline
%&Number of pairs\cr of newborn bunnies&{Number of pairs\cr of mature rabbits}&{Total number\cr of pairs of rabbits} \ \Xhline{0.8pt}
%{January 1\cr \hspace{3mm}Start}&1&0&1 \ \hline
February 1&0&1&1 \ \hline
March 1&1&1&2 \ \hline
April 1&1&2&3 \ \hline
May 1&2&3&5 \ \hline
June 1&3&5&8 \ \hline
July 1&5&8&13 \ \hline
\end{tabular}
}}
\hspace{\fill}
\end{document}


\cris some TeX primitive, better not using it...? – user202729 Jul 15 '22 at 03:40