表格文本超出列

表格文本超出列

我希望“超出列宽”这句话位于相应的列内。有什么建议吗?理想情况下,这应该适用于较长的句子(达到既定的列宽后,句子会跳到下一行)。

在此处输入图片描述

\begin{table}
    \setlength\belowcaptionskip{\abovecaptionskip}
    \setlength\abovecaptionskip{0pt}
    \centering
    \caption{tabular}

    \begin{tabular}{*{6}{c} }
        \toprule
        Reference         & Laminate      & Veil      & $\bar{c}$  & $G$\textsubscript{IC}  vs.{}    & $G$\textsubscript{IIC} vs.{}  \\
        &        &        &    & baseline     &  baseline \\
        \midrule
        \mr{Kuwata \cite{Kuwata2011, Kuwata2011a}} & Carbon/epoxy & \mr{CoPA} & \mr{0.39} & \mr{} & \mr{Out of column width} \\
        &   Carbon/vynil ester     &        &        &        &   \\
        Barjasteh \cite{Barjasteh2017} & Carbon/benzoxazine & PA12 & 0.72 &  &    \\ 
        Saz-Orozco \cite{Saz-Orozco2015}    & Glass/vynil ester  & PA66 & 0.76 &  &  \\ 
        O'Donovan \cite{ODonovan2014}   & Glass/polyester & PA66 & 0.76 &  &   \\ 
        Ram\'irez \cite{Ramirez2015}    & Carbon/epoxy & PEEK & 0.76 &  &   \\ 
        Ni \cite{Ni2015}    & Carbon/epoxy & Aramid & 0.94 &  &   \\ 
        Nash \cite{Nash2015a,Nash2016a} & Carbon/benzoxazine & PA & 1.65 &  &   \\ 
        \mr{Kuwata \cite{Kuwata2011, Kuwata2011a}} & Carbon/epoxy & \mr{CoPE} & \mr{1.77} & \mr{} & \mr{} \\
        &   Carbon/vynil ester     &        &        &        &   \\
        Wong \cite{Wong2017}    & Carbon/epoxy & Kevlar & 1.92 &  &   \\ 
        Fitzmaurize \cite{Fitzmaurice2016}  & Glass/polyester & PET & 2.03 &  &   \\ 
        Saz-Orozco \cite{Saz-Orozco2015}    & Glass/vynil ester & PET & 0.96 &  &   \\ 
        \mr{Beylergil \cite{Beylergil2018}} & \mr{Carbon/epoxy} & \mr{PA66} & 0.96 & \mr{} & \mr{} \\
        &       &        &    2.80    &        &   \\
        \mr{Ram\'irez \cite{Ramirez2015}} & \mr{Carbon/epoxy} & \mr{PPS} & 0.68 up to 3.43 &  & \mr{} \\
        &       &        &    0.49 up to 2.40   &        &   \\  
        \bottomrule
    \end{tabular}
\end{table}

答案1

嗯,您给出的代码片段无法编译,因为我们不知道命令的定义\mr,我们也没有您使用的 bib 文件,也没有您用来构建参考书目的代码......

经过一番猜测,我使用了以下代码

\documentclass{article}

\usepackage{booktabs}
\usepackage{showframe} % <==============================================
\newcommand{\mr}{} % <==================================================

\begin{document}
\begin{table} 
\setlength\belowcaptionskip{\abovecaptionskip} 
\setlength\abovecaptionskip{0pt} 
\centering 
\tiny % <===============================================================
\caption{tabular}
\begin{tabular}{*{5}{c}p{2cm}} % <======================================
    \toprule
    Reference         & Laminate      & Veil      & $\bar{c}$  & $G$\textsubscript{IC}  vs.{}    & $G$\textsubscript{IIC} vs.{}  \\
    &        &        &    & baseline     &  baseline \\
    \midrule
    \mr{Kuwata \cite{Kuwata2011, Kuwata2011a}} & Carbon/epoxy & \mr{CoPA} & \mr{0.39} & \mr{} & \mr{Out of column width} \\
    &   Carbon/vynil ester     &        &        &        &   \\
    Barjasteh \cite{Barjasteh2017} & Carbon/benzoxazine & PA12 & 0.72 &  &    \\ 
    Saz-Orozco \cite{Saz-Orozco2015}    & Glass/vynil ester  & PA66 & 0.76 &  &  \\ 
    O'Donovan \cite{ODonovan2014}   & Glass/polyester & PA66 & 0.76 &  &   \\ 
    Ram\'irez \cite{Ramirez2015}    & Carbon/epoxy & PEEK & 0.76 &  &   \\ 
    Ni \cite{Ni2015}    & Carbon/epoxy & Aramid & 0.94 &  &   \\ 
    Nash \cite{Nash2015a,Nash2016a} & Carbon/benzoxazine & PA & 1.65 &  &   \\ 
    \mr{Kuwata \cite{Kuwata2011, Kuwata2011a}} & Carbon/epoxy & \mr{CoPE} & \mr{1.77} & \mr{} & \mr{} \\
    &   Carbon/vynil ester     &        &        &        &   \\
    Wong \cite{Wong2017}    & Carbon/epoxy & Kevlar & 1.92 &  &   \\ 
    Fitzmaurize \cite{Fitzmaurice2016}  & Glass/polyester & PET & 2.03 &  &   \\ 
    Saz-Orozco \cite{Saz-Orozco2015}    & Glass/vynil ester & PET & 0.96 &  &   \\ 
    \mr{Beylergil \cite{Beylergil2018}} & \mr{Carbon/epoxy} & \mr{PA66} & 0.96 & \mr{} & \mr{} \\
    &       &        &    2.80    &        &   \\
    \mr{Ram\'irez \cite{Ramirez2015}} & \mr{Carbon/epoxy} & \mr{PPS} & 0.68 up to 3.43 &  & \mr{} \\
    &       &        &    0.49 up to 2.40   &        &   \\  
    \bottomrule
\end{tabular}

\end{table}
\end{document}

导致

在此处输入图片描述

请注意,我曾经\tiny使用过较小的字体,并且p{2cm}如果需要的话,2厘米后就会在列中换行...

该包showframe用于可视化打字区域和边距......

相关内容