I am trying to write a payoff matrix in latex, but when I do so, the outcome that I take is the following:
As you can see, the matrix is in the end of the page, below the date and the footnotes, while it should be below the proposition that refers "Example 1.1 ...payoff matrix". Why is this so? Is there any command that could help me to give the direction that I want to the matrix?
I use the package
\usepackage{multirow,array}
and the code is
\begin{table}
\setlength{\extrarowheight}{3pt}
\begin{tabular}{cc|c|c|}
& \multicolumn{1}{c}{} & \multicolumn{2}{c}{Player $Y$}\\
& \multicolumn{1}{c}{} & \multicolumn{1}{c}{$A$} & \multicolumn{1}{c}{$B$} \\\cline{3-4}
\multirow{2}*{Player $X$} & $A$ & $(2,1)$ & $(0,0)$ \\\cline{3-4}
& $B$ & $(0,0)$ & $(1,2)$ \\\cline{3-4}
\end{tabular}
\end{table}
Thank you in advance!
\begin{table}[tp](or[htp]if you want to include h position – David Carlisle Sep 07 '21 at 08:48tableat all? do you want it to move? You could just usetabularwithout the surrounding table if it is part of the proposition text. – David Carlisle Sep 07 '21 at 08:51\begin{table}that specifies that latex may move the content to help with page breaking. It is not directly related to having a table/matrix in the content. – David Carlisle Sep 07 '21 at 08:54tabledoes not affect the horizontal position it just affects moving (or not) the content to the top or bottom of a page but glad [htbp] worked for you. – David Carlisle Sep 07 '21 at 08:59