頁首(章節名稱和頁碼)橫向模式下的封面表

頁首(章節名稱和頁碼)橫向模式下的封面表

我對如何解決這個問題有點無能為力,希望你們中的一些人能夠幫助我。如所附螢幕截圖所示,我在橫向模式下的表格與章節名稱和頁碼(紅色方塊內)發生衝突。我想要的是刪除表格所覆蓋頁面的頁碼/章節名稱,或移動表格,使其不與標題衝突。

表格與標題重疊(請參閱紅色方框內)

最好的問候,亨里克

表使用的代碼:

    \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} 

在此輸入影像描述

相關內容