如何让我的长表符合页面限制

如何让我的长表符合页面限制

我有下表代码:

\begin{longtable}{lllllll} 
    
    \toprule
    Monitoring  & Thickness             & \makecell[c]{Channel\\ Dimensions\\
        (W\texttimes{} L) \textmu m}
    & Fabrication Technique & Array size
    & Transconductance      & Reference     \\
    \midrule
    
    
    Heart ECG recordings
    & 2.6 \textmu m         & 10\texttimes{}10
    & \makecell[l]{Photolithography \\ RIE\\ lift-off}
    & 4 \texttimes{}4
    & 1 mS                  & \textbf{x}    \\
    \addlinespace
    
    
    ECoG        & $\sim$ 1.3 \textmu m  & 1600\texttimes{}8
    & \makecell[l]{Photolithography \\ RIE\\ lift-off}
    & 4\texttimes{}4
    & 139 mS                & x  \\
    \addlinespace
    
    
    EEG rat signals
    & 3 \textmu m           & 70\texttimes{}20
    & \makecell[l]{Photolithography \\ RIE\\ lift-off}
    & 3\texttimes{}5
    & 1.1 mS                & x   \\
    \addlinespace
    
    
    ECG         & $\sim$ 4 \textmu m    &  8\texttimes{}2
    & \makecell[l]{Photolithography \\ RIE\\ lift-off}
    & 5\texttimes{}5
    & 0.26 mS               & x  \\
    \addlinespace
    
    
    EEG action potential
    &  $\sim$ 1 \textmu m  &  20\texttimes{}25
    & \makecell[l]{Photolithography \\ RIE\\ lift-off}
    & 4\texttimes{}4
    & 2 mS                  &  x \\
    \addlinespace
    
    
    ECoG       & $\sim$ 4 \textmu m    & 15\texttimes{}6
    & \makecell[l]{Photolithography \\ RIE\\ lift-off}
    &  N/A  &     0.9 mS        &  x   \\
    \addlinespace
    
    
    EMG         &  2 \textmu m          &  5\texttimes{} 2
    & \makecell[l]{Photolithography \\ RIE\\ lift-off}
    &  5\texttimes{}5
    &   1.6 mS              & x \\
    
        Heart ECG recordings
    & 2.6 \textmu m         & 10\texttimes{}10
    & \makecell[l]{Photolithography \\ RIE\\ lift-off}
    & 4 \texttimes{}4
    & 1 mS                  & \textbf{x}    \\
    \addlinespace
    
    
    ECoG        & $\sim$ 1.3 \textmu m  & 1600\texttimes{}8
    & \makecell[l]{Photolithography \\ RIE\\ lift-off}
    & 4\texttimes{}4
    & 139 mS                & x  \\
    \addlinespace
    
    
    EEG rat signals
    & 3 \textmu m           & 70\texttimes{}20
    & \makecell[l]{Photolithography \\ RIE\\ lift-off}
    & 3\texttimes{}5
    & 1.1 mS                & x   \\
    \addlinespace
    
    
    ECG         & $\sim$ 4 \textmu m    &  8\texttimes{}2
    & \makecell[l]{Photolithography \\ RIE\\ lift-off}
    & 5\texttimes{}5
    & 0.26 mS               & x  \\
    \addlinespace
    
    
    
    \bottomrule
    
    
    \caption{OECTs for biophysical signal sensing}
    \label{Table: OECT biophysical sensing}
\end{longtable}%

但是,它不在页面宽度内。有人能帮我解决这个问题吗?

答案1

我看不出使用longtable环境的充分理由。我会使用嵌入在环境中的tabularx环境(目标宽度为) 。我还允许在 7 列中的 5 列中自动换行,以使表格适合文本块的宽度。我还会将重复元素(例如第 2 列和第 6 列中的测量单位)放置在标题中,主要是为了帮助整理表格的外观。\textwidthtable

在此处输入图片描述

\documentclass{article} % or some other suitable document class

\usepackage{tabularx} % for 'tabularx' environment
\usepackage{ragged2e} % for '\RaggedRight' and '\Centering' macro
\newcolumntype{L}{>{\RaggedRight\hspace{0pt}}X}
\newcolumntype{C}{>{\Centering\hspace{0pt}}X}
\usepackage{siunitx}  % for '\unit' macro
\usepackage{booktabs} % for well-spaced horizontal rules

\hyphenation{trans-con-duct-ance photo-lith-og-raphy}

\begin{document}
\begin{table}
\setlength\tabcolsep{2.5pt}  % default: 6pt
\begin{tabularx}{\textwidth}{@{} L CCCcCc @{}}    
\toprule

    Monitoring 
    & Thickness (\unit{\micro\meter})
    & Channel Dim.\ (W\texttimes L) \unit{\micro\meter}
    & Fabrication Technique 
    & Array size
    & Transconductance (mS)
    & Ref. \\

\midrule 
    
    Heart ECG recordings
    & 2.6 
    & $10\times10$
    & Photolithography RIE lift-off
    & $4\times4$
    & 1 
    & x \\
    \addlinespace    
    
    ECoG        
    & ${\approx}1.3$ 
    & $1600\times8$
    & Photolithography RIE lift-off
    & $4\times4$
    & 139 
    & x \\
    \addlinespace
      
    EEG rat signals
    & 3 
    & $70\times20$
    & Photolithography RIE lift-off
    & $3\times5$
    & 1.1 
    & x \\
    \addlinespace
       
    ECG 
    & ${\approx}4$
    & $8\times2$
    & Photolithography RIE lift-off
    & $5\times5$
    & 0.26 
    & x \\
    \addlinespace
       
    EEG action potential
    & ${\approx}1$ 
    & $20\times25$
    & Photolithography RIE lift-off
    & $4\times4$
    & 2 
    & x \\
    \addlinespace
      
    ECoG 
    & ${\approx}4$ 
    & $15\times6$
    & Photolithography RIE lift-off
    & N/A 
    & 0.9 
    & x \\
    \addlinespace
    
    EMG 
    & 2 
    & $5\times2$
    & Photolithography RIE lift-off
    & $5\times5$
    & 1.6 
    & x \\
    \addlinespace
    
    Heart ECG recordings
    & 2.6 
    & $10\times10$
    & Photolithography RIE lift-off 
    & $4\times4$
    & 1 
    & x \\
    \addlinespace
    
    ECoG 
    & ${\approx}1.3$ 
    & $1600\times8$
    & Photolithography RIE lift-off
    & $4\times4$ 
    & 139 
    & x \\
    \addlinespace
    
    EEG rat signals
    & 3 
    & $70\times20$
    & Photolithography RIE lift-off
    & $3\times5$ 
    & 1.1 
    & x \\
    \addlinespace
       
    ECG 
    & ${\approx}4$ 
    & $8\times2$
    & Photolithography RIE lift-off
    & $5\times5$
    & 0.26 
    & x \\

\bottomrule
\end{tabularx}

\caption{OECTs for biophysical signal sensing}
\label{Table:OECTBiophysicalSensing}
\end{table}
\end{document}

相关内容