I have a big square table 26*26, and I'm trying to display it in one single page. I'm wondering if there is a way to combine \sidewaystable and \resizebox. I'm trying but without being able to solve my issue. Do you have any suggestions?
\documentclass[a4paper,11pt, twoside, openright]{book}
\usepackage[english]{babel}
\usepackage[a4paper,top=3.5cm,bottom=3cm,left=3cm,right=3cm]{geometry}
\usepackage{fancyhdr}
\usepackage{setspace}
\usepackage{caption}
\captionsetup{font=small}
\usepackage{topfront}
\usepackage{emptypage}
\usepackage{chngcntr}
\usepackage{rotating}
\begin{sidewaystable}
\resizebox{1\textwidth}{!}{
\begin{table}[h]
\tiny
\centering
\begin{table}[htbp]
\begin{tabular}{p{5em}rrrrrrrrrrrrrrrrrrrrrrrp{5em}r}
\multicolumn{1}{r}{} & \multicolumn{1}{p{5em}}{ddddddddd ddddddd} & \multicolumn{1}{p{5em}}{\% ddddddddddddddddddddddd} & \multicolumn{1}{p{5em}}{ddddddddddddddddddddddd} & \multicolumn{1}{p{5em}}{ddddddddddddddddddddddd} & \multicolumn{1}{p{5em}}{ddddddddddddddddddddddd} & \multicolumn{1}{p{5em}}{ddddddddddddddddddddddd} & \multicolumn{1}{p{5em}}{ddddddddddddddddddddddd} & \multicolumn{1}{p{5em}}{ddddddddddddddddddddddd} & \multicolumn{1}{p{5em}}{ddddddddddddddddddddddd} & \multicolumn{1}{p{5em}}{ddddddddddddddddddddddd} & \multicolumn{1}{p{5em}}{ddddddddddddddddddddddd} & \multicolumn{1}{p{5em}}{ddddddddddddddddddddddd} & \multicolumn{1}{p{5em}}{ddddddddddddddddddddddd} & \multicolumn{1}{p{5em}}{ddddddddddddddddddddddd} & \multicolumn{1}{p{5em}}{ddddddddddddddddddddddd} & \multicolumn{1}{p{5em}}{ddddddddddddddddddddddd} & \multicolumn{1}{p{5em}}{ddddddddddddddddddddddd} & \multicolumn{1}{p{5em}}{ddddddddddddddddddddddd} & \multicolumn{1}{p{5em}}{ddddddddddddddddddddddd} & \multicolumn{1}{p{5em}}{ddddddddddddddddddddddd} & \multicolumn{1}{p{5em}}{ddddddddddddddddddddddd} & \multicolumn{1}{p{5em}}{ddddddddddddddddddddddd} & \multicolumn{1}{p{5em}}{ddddddddddddddddddddddd} & ddddddddddddddddddddddd & \multicolumn{1}{p{5em}}{ddddddddddddddddddddddd} \\
\multicolumn{1}{r}{} & & & & & & & & & & & & & & & & & & & & & & & & \multicolumn{1}{r}{} & \\
ddddddddd ddddddd & 1 & & & & & & & & & & & & & & & & & & & & & & & \multicolumn{1}{r}{} & \\
\% ddddddddddddddddddddddd & -0.0034 & 1 & & & & & & & & & & & & & & & & & & & & & & \multicolumn{1}{r}{} & \\
ddddddddddddddddddddddd & -0.0034 & -0.0034 & 1 & & & & & & & & & & & & & & & & & & & & & \multicolumn{1}{r}{} & \\
ddddddddddddddddddddddd & -0.0034 & -0.0034 & -0.0034 & 1 & & & & & & & & & & & & & & & & & & & & \multicolumn{1}{r}{} & \\
ddddddddddddddddddddddd & -0.0034 & -0.0034 & -0.0034 & -0.0034 & 1 & & & & & & & & & & & & & & & & & & & \multicolumn{1}{r}{} & \\
ddddddddddddddddddddddd & -0.0034 & -0.0034 & -0.0034 & -0.0034 & -0.0034 & 1 & & & & & & & & & & & & & & & & & & \multicolumn{1}{r}{} & \\
ddddddddddddddddddddddd & -0.0034 & -0.0034 & -0.0034 & -0.0034 & -0.0034 & -0.0034 & 1 & & & & & & & & & & & & & & & & & \multicolumn{1}{r}{} & \\
ddddddddddddddddddddddd & -0.0034 & -0.0034 & -0.0034 & -0.0034 & -0.0034 & -0.0034 & -0.0034 & 1 & & & & & & & & & & & & & & & & \multicolumn{1}{r}{} & \\
ddddddddddddddddddddddd & -0.0034 & -0.0034 & -0.0034 & -0.0034 & -0.0034 & -0.0034 & -0.0034 & -0.0034 & 1 & & & & & & & & & & & & & & & \multicolumn{1}{r}{} & \\
ddddddddddddddddddddddd & -0.0034 & -0.0034 & -0.0034 & -0.0034 & -0.0034 & -0.0034 & -0.0034 & -0.0034 & -0.0034 & 1 & & & & & & & & & & & & & & \multicolumn{1}{r}{} & \\
ddddddddddddddddddddddd & -0.0034 & -0.0034 & -0.0034 & -0.0034 & -0.0034 & -0.0034 & -0.0034 & -0.0034 & -0.0034 & -0.0034 & 1 & & & & & & & & & & & & & \multicolumn{1}{r}{} & \\
ddddddddddddddddddddddd & -0.0034 & -0.0034 & -0.0034 & -0.0034 & -0.0034 & -0.0034 & -0.0034 & -0.0034 & -0.0034 & -0.0034 & -0.0034 & 1 & & & & & & & & & & & & \multicolumn{1}{r}{} & \\
ddddddddddddddddddddddd & -0.0034 & -0.0034 & -0.0034 & -0.0034 & -0.0034 & -0.0034 & -0.0034 & -0.0034 & -0.0034 & -0.0034 & -0.0034 & -0.0034 & 1 & & & & & & & & & & & \multicolumn{1}{r}{} & \\
ddddddddddddddddddddddd & -0.0034 & -0.0034 & -0.0034 & -0.0034 & -0.0034 & -0.0034 & -0.0034 & -0.0034 & -0.0034 & -0.0034 & -0.0034 & -0.0034 & -0.0034 & 1 & & & & & & & & & & \multicolumn{1}{r}{} & \\
ddddddddddddddddddddddd & -0.0034 & -0.0034 & -0.0034 & -0.0034 & -0.0034 & -0.0034 & -0.0034 & -0.0034 & -0.0034 & -0.0034 & -0.0034 & -0.0034 & -0.0034 & -0.0034 & 1 & & & & & & & & & \multicolumn{1}{r}{} & \\
ddddddddddddddddddddddd & -0.0034 & -0.0034 & -0.0034 & -0.0034 & -0.0034 & \multicolumn{1}{p{5em}}{-0.5888} & -0.0034 & -0.0034 & -0.0034 & -0.0034 & -0.0034 & -0.0034 & -0.0034 & -0.0034 & -0.0034 & 1 & & & & & & & & \multicolumn{1}{r}{} & \\
ddddddddddddddddddddddd & -0.0034 & -0.0034 & -0.0034 & -0.0034 & -0.0034 & \multicolumn{1}{p{5em}}{0.5819} & -0.0034 & -0.0034 & -0.0034 & -0.0034 & -0.0034 & -0.0034 & -0.0034 & -0.0034 & -0.0034 & -0.0034 & 1 & & & & & & & \multicolumn{1}{r}{} & \\
ddddddddddddddddddddddd & -0.0034 & -0.0034 & -0.0034 & -0.0034 & -0.0034 & \multicolumn{1}{p{5em}}{0.1969} & -0.0034 & -0.0034 & -0.0034 & -0.0034 & -0.0034 & -0.0034 & -0.0034 & -0.0034 & -0.0034 & -0.0034 & -0.0034 & 1 & & & & & & \multicolumn{1}{r}{} & \\
ddddddddddddddddddddddd & -0.0034 & -0.0034 & -0.0034 & -0.0034 & -0.0034 & -0.0034 & -0.0034 & -0.0034 & -0.0034 & -0.0034 & -0.0034 & -0.0034 & -0.0034 & -0.0034 & -0.0034 & -0.0034 & -0.0034 & -0.0034 & 1 & & & & & \multicolumn{1}{r}{} & \\
ddddddddddddddddddddddd & -0.0034 & -0.0034 & -0.0034 & -0.0034 & -0.0034 & -0.0034 & -0.0034 & -0.0034 & -0.0034 & -0.0034 & -0.0034 & -0.0034 & -0.0034 & -0.0034 & -0.0034 & -0.0034 & -0.0034 & -0.0034 & \multicolumn{1}{p{5em}}{0.0722} & 1 & & & & \multicolumn{1}{r}{} & \\
ddddddddddddddddddddddd & -0.0034 & -0.0034 & -0.0034 & -0.0034 & -0.0034 & -0.0034 & -0.0034 & -0.0034 & -0.0034 & -0.0034 & -0.0034 & -0.0034 & -0.0034 & -0.0034 & -0.0034 & -0.0034 & -0.0034 & -0.0034 & -0.0034 & \multicolumn{1}{p{5em}}{0.1455} & 1 & & & \multicolumn{1}{r}{} & \\
ddddddddddddddddddddddd & -0.0034 & -0.0034 & -0.0034 & -0.0034 & -0.0034 & -0.0034 & -0.0034 & -0.0034 & -0.0034 & -0.0034 & -0.0034 & -0.0034 & -0.0034 & -0.0034 & -0.0034 & -0.0034 & -0.0034 & -0.0034 & -0.0034 & -0.0034 & -0.0034 & 1 & & \multicolumn{1}{r}{} & \\
ddddddddddddddddddddddd & -0.0034 & -0.0034 & -0.0034 & -0.0034 & -0.0034 & -0.0034 & -0.0034 & -0.0034 & -0.0034 & -0.0034 & -0.0034 & -0.0034 & -0.0034 & -0.0034 & -0.0034 & -0.0034 & -0.0034 & -0.0034 & \multicolumn{1}{p{5em}}{-0.0579} & -0.0034 & -0.0034 & -0.0034 & 1 & \multicolumn{1}{r}{} & \\
ddddddddddddddddddddddd & -0.0034 & -0.0034 & -0.0034 & -0.0034 & -0.0034 & -0.0034 & -0.0034 & -0.0034 & -0.0034 & -0.0034 & -0.0034 & -0.0034 & -0.0034 & -0.0034 & -0.0034 & -0.0034 & -0.0034 & -0.0034 & -0.0034 & -0.0034 & -0.0034 & -0.0034 & -0.0034 & \multicolumn{1}{r}{1} & \\
ddddddddddddddddddddddd & -0.0034 & -0.0034 & -0.0034 & -0.0034 & -0.0034 & -0.0034 & -0.0034 & -0.0034 & -0.0034 & -0.0034 & -0.0034 & -0.0034 & -0.0034 & -0.0034 & -0.0034 & -0.0034 & -0.0034 & -0.0034 & -0.0034 & -0.0034 & -0.0034 & -0.0034 & -0.0034 & -0.1519 & 1 \\
\end{tabular}%
\label{tab:addlabel}%
\end{table}%
}
\end{sidewaystable}
\end{document}
table
environment inside asidewaystable
environment. Do get rid of bothbegin{table}
statemetns as well as the lone\end{table}
statement.