페이지 헤더와 겹치는 회전된 테이블

페이지 헤더와 겹치는 회전된 테이블

다음과 비슷한 문제가 있습니다.

Sidewaystable과 페이지 헤더 사이의 문제

테이블이 페이지 헤더와 겹치지 않도록 vbox 위에 빈 공간을 삽입하고 싶습니다.

GDPR로 인해 테이블을 공유할 수 없지만 아래 형식으로 되어 있습니다.

\documentclass[12pt]{article}
\usepackage{float}
\usepackage{adjustbox}
\usepackage{rotating}

\usepackage{fancyhdr}
\usepackage{lastpage}
\pagestyle{fancy}

\fancypagestyle{documentstyle}{
    \fancyhf{} % clear all header and footer fields
    \renewcommand{\headrulewidth}{0.2pt}
    \lhead{\textit{Section 1}}
    \rhead{\textit{Name}}
    \cfoot{\thepage\ of \pageref{LastPage}}
}


\begin{document}

\newpage\pagestyle{documentstyle}

\setlength{\tabcolsep}{0.1cm}
\rotatebox{90}{
\vbox{
\begin{table}[H]
\centering
\begin{adjustbox}{width=1.5\textwidth,center=\textwidth}
\tiny
\begin{tabular}{|c|c|c|c|c|c|c|c|c|c|c|c|c|c|c|}
\hline
1& 1& 1& 1& 1& 1& 1& 1& 1& 1& 1& 1& 1& 1&1\\ \hline
1& 1& 1& 1& 1& 1& 1& 1& 1& 1& 1& 1& 1& 1&1\\ \hline
\end{tabular}
\end{adjustbox}
\end{table}
}}

\end{document}

답변1

나는 sidewaystable. 테이블은 텍스트 영역보다 작으면 텍스트 영역의 중앙에 위치합니다.

\documentclass[12pt]{article}
\usepackage{rotating}

\usepackage{fancyhdr}
\usepackage{lastpage}
\pagestyle{fancy}

\fancypagestyle{documentstyle}{
    \fancyhf{} % clear all header and footer fields
    \renewcommand{\headrulewidth}{0.2pt}
    \lhead{\textit{Section 1}}
    \rhead{\textit{Name}}
    \cfoot{\thepage\ of \pageref{LastPage}}
}

\begin{document}
\pagestyle{documentstyle}

\begin{sidewaystable}
    \centering
\begin{tabular}{|c|c| c|c| c|c| c|c| c|c| c|c| c|c| c|}
    \hline
1& 2& 3& 4& 5& 6& 7& 8& 9& 10& 11& 12& 13& 14& 15\\ \hline
1& 1& 1& 1& 1& 1& 1& 1& 1& 1& 1& 1& 1& 1&1\\ \hline
\end{tabular}
\end{sidewaystable}

\end{document}

여기에 이미지 설명을 입력하세요

관련 정보