가로 모드의 페이지 머리글(장 이름 및 페이지 번호) 표지 표

가로 모드의 페이지 머리글(장 이름 및 페이지 번호) 표지 표

저는 이 문제에 어떻게 접근해야 할지 잘 모르겠습니다. 여러분 중 일부가 저를 도울 수 있기를 바랍니다. 첨부된 스크린샷에서 볼 수 있듯이 가로 모드의 테이블이 장 이름 및 페이지 번호(빨간색 사각형 내부)와 충돌합니다. 내가 원하는 것은 표에 포함된 페이지의 페이지 번호/장 이름을 제거하거나 표가 헤더와 충돌하지 않도록 이동하는 것입니다.

헤더와 겹치는 테이블(빨간색 사각형 안 참조)

안부 인사, 헨릭

테이블에 사용된 코드:

    \begin{landscape}
    \section{Rock-Eval Data}
    Rock-Eval data. Any missing values in hydrogen and oxygen index is due to either negative or missing TOC values.

    \begin{footnotesize}
    \begin{center}
    \begin{longtable}{ccccccccc}

    \caption{Rock-Eval data.}\\
    \toprule
    \label{tab:retable}
    \textbf{Level (m)} & \textbf{S$1$ (mg/g)} & \textbf{S$2$ (mg/g)} & \textbf{S$3$ (mg/g)} & \textbf{T$_{Max}$ (\degree{C})} & \textbf{PI (wt ratio)} & \textbf{Hydrogen Index (mg HC/g TOC)} & \textbf{Oxygen Index (mg HC/g TOC)} &\textbf{Powder Colour}\\
    \midrule
    \endfirsthead
    \multicolumn{9}{c}%{\tablename\ \thetable\ -- \textit{Continued from previous page}} \\
    \toprule
    \textbf{Level (m)} & \textbf{S$1$ (mg/g)} & \textbf{S$2$ (mg/g)} & \textbf{S$3$ (mg/g)} & \textbf{T$_{Max}$ (\degree{C})} & \textbf{PI (wt ratio)} & \textbf{Hydrogen Index (mg HC/g TOC)} & \textbf{Oxygen Index (mg HC/g TOC)} &\textbf{Powder Colour}\\
    \midrule
    \endhead
    \bottomrule \multicolumn{3}{r}{\textit{Continued on next page}}\\
    \endfoot
    \bottomrule
    \endlastfoot

    DATA GOES HERE
    $11.75$  & $0$    & $0$     & $0.62$  & $513$   & $0$     &          &           & Light Grey \\

    \end{longtable}
    \end{center}
    \end{footnotesize}
    \end{landscape}

답변1

다음은 makecell. \thead셀의 줄바꿈과 일반적인 서식을 허용합니다 . 참고는 SIunitx단위를 조판하는 데 도움이 되며 표에 숫자 형식을 멋지게 표시하는 데 도움이 됩니다. 또한 footnotesize제가 아는 한 환경은 없고 \footnotesize스위치만 있습니다. 어쨌든 테이블을 입력할 수 있습니다 \normalsize.

\documentclass{article}
\usepackage[utf8]{inputenc}
\usepackage[T1]{fontenc}
\usepackage{array, ltablex, caption, booktabs, makecell}
\usepackage[detect-weight]{siunitx}
\renewcommand\theadfont{\normalfont\bfseries\boldmath}
\usepackage{lscape}

\begin{document}
\begin{landscape}
    \section{Rock-Eval Data}
    Rock-Eval data. Any missing values in hydrogen and oxygen index is due to either negative or missing TOC values.
    \begin{center}%
    \begin{longtable}{ccccccccc}
    \caption{Rock-Eval data.}
    \label{tab:retable}\\
    \toprule
    \thead{Level \\(m)} & \thead{S$1$ (mg/g)} & \thead{S$2$\\ (mg/g)} & \thead{S$3$\\ (mg/g)} & \thead{$\mathbf T_\text{Max}$\\ (\si{\celsius})}
     & \thead{PI\\ (wt ratio)} & \thead{Hydrogen Index\\ (mg HC/g TOC)} & \thead{Oxygen Index\\ (mg HC/g TOC)} &\thead{Powder\\ Colour}\\
    \midrule
    \endfirsthead
    %\multicolumn{9}{c}%{\tablename\ \thetable\ -- \textit{Continued from previous page}} \\
    \toprule
    \thead{Level \\(m)} & \thead{S$1$ (mg/g)} & \thead{S$2$\\ (mg/g)} & \thead{S$3$\\ (mg/g)} & \thead{$T_\text{Max}$\\ (\si{\celsius})}
     & \thead{PI\\ (wt ratio)} & \thead{Hydrogen Index\\ (mg HC/g TOC)} & \thead{Oxygen Index\\ (mg HC/g TOC)} &\thead{Powder\\ Colour}\\
    \midrule
    \endhead
    \bottomrule \multicolumn{3}{r}{\textit{Continued on next page}}\\
    \endfoot
    \bottomrule
    \endlastfoot
    %%DATA GOES HERE
    $11.75$ & $0$ & $0$ & $0.62$ & $513$ & $0$ & & & Light Grey \\
    \end{longtable}
    \end{center}
    \end{landscape}

    \end{document} 

\documentclass{article}
\usepackage[utf8]{inputenc}
\usepackage[T1]{fontenc}
\usepackage{array, ltablex, caption, booktabs, makecell}
\usepackage[detect-weight]{siunitx}
\renewcommand\theadfont{\normalfont\bfseries\boldmath}
\usepackage{lscape}

\begin{document}
\begin{landscape}
    \section{Rock-Eval Data}
    Rock-Eval data. Any missing values in hydrogen and oxygen index is due to either negative or missing TOC values.
    \begin{center}%
    \begin{longtable}{ccccccccc}
    \caption{Rock-Eval data.}
    \label{tab:retable}\\
    \toprule
    \thead{Level \\(m)} & \thead{S$1$ (mg/g)} & \thead{S$2$\\ (mg/g)} & \thead{S$3$\\ (mg/g)} & \thead{$\mathbf T_\text{Max}$\\ (\si{\celsius})}
     & \thead{PI\\ (wt ratio)} & \thead{Hydrogen Index\\ (mg HC/g TOC)} & \thead{Oxygen Index\\ (mg HC/g TOC)} &\thead{Powder\\ Colour}\\
    \midrule
    \endfirsthead
    %\multicolumn{9}{c}%{\tablename\ \thetable\ -- \textit{Continued from previous page}} \\
    \toprule
    \thead{Level \\(m)} & \thead{S$1$ (mg/g)} & \thead{S$2$\\ (mg/g)} & \thead{S$3$\\ (mg/g)} & \thead{$T_\text{Max}$\\ (\si{\celsius})}
     & \thead{PI\\ (wt ratio)} & \thead{Hydrogen Index\\ (mg HC/g TOC)} & \thead{Oxygen Index\\ (mg HC/g TOC)} &\thead{Powder\\ Colour}\\
    \midrule
    \endhead
    \bottomrule \multicolumn{3}{r}{\textit{Continued on next page}}\\
    \endfoot
    \bottomrule
    \endlastfoot
    %%DATA GOES HERE
    $11.75$ & $0$ & $0$ & $0.62$ & $513$ & $0$ & & & Light Grey \\
    \end{longtable}
    \end{center}
    \end{landscape}

    \end{document} 

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

관련 정보