表格,小细节

表格,小细节

在此处输入图片描述您能否帮我将蓝色框(见图)拆分到下一行,以便表格变窄?非常感谢您的帮助!

\begin{table}[]
    \centering
    \caption{Terminology of the laminates for in-plane (tensile and compressive) and mode-I interlaminar fracture toughness testing. \textcolor{red}{pequeño formateo}}
    \label{table:notation}
    \resizebox{\textwidth}{!}{\begin{tabular}{@{}lll@{}}
        \toprule
        Laminate    & Stacking sequence &          Purpose         \\ \midrule
        LTHIN\textsubscript{IP} & $[(45\degree/0\degree)/(-45\degree/90\degree)]_{4s}$ & \multirow{3}{*}{In-plane testing} \\ \cmidrule(r){1-2}
        LV1\textsubscript{IP}   & $[$(45$\degree$/V\textsubscript{1}/0$\degree$)/V\textsubscript{1}/($-$45$\degree$/V\textsubscript{1}/90$\degree$)/V\textsubscript{1}$]$\textsubscript{4s} &                   \\ \cmidrule(r){1-2}
        LV2\textsubscript{IP}   & $[$(45$\degree$/V\textsubscript{2}/0$\degree$)/V\textsubscript{2}/($-$45$\degree$/V\textsubscript{2}/90$\degree$)/V\textsubscript{2}$]$\textsubscript{4s} &                   \\ \midrule
        LTHIN\textsubscript{$G$\textsubscript{IC}}  & $[(45\degree/90\degree)/(-45\degree/0\degree)]_{6s}$ & \multirow{3}{*}{Mode-I fracture toughness testing} \\ \cmidrule(r){1-2}
        LV1\textsubscript{$G$\textsubscript{IC}}    & $[(45\degree/90\degree)/(-45\degree/0\degree)]_{6s}$/V\textsubscript{1}/$[(45\degree/90\degree)/(-45\degree/0\degree)]_{6s}$ &                   \\ \cmidrule(r){1-2}
        LV2\textsubscript{$G$\textsubscript{IC}}    & $[(45\degree/90\degree)/(-45\degree/0\degree)]_{6s}$/V\textsubscript{2}/$[(45\degree/90\degree)/(-45\degree/0\degree)]_{6s}$ &                   \\ \bottomrule
    \end{tabular}}
\end{table}

答案1

  • 请始终提供 mwe(最小工作示例),一个以 开头的完整的小文档\documentclass{...},其中包含必要的前言、已加载的软件包和针对您的问题定义的新命令、文档正文并以 结尾\end{document}。这样,您将帮助我们帮助您(准备 mwe 可以帮助您自己寻找解决方案)
  • 您的问题可以通过使用第二列的列类型来解决,该列类型可以将单元格的内容按原样p{<widt>}Xtabularx包中分成更多行
  • tabularx我尝试从您的代码片段中重建我使用和打包的mwe siunitx。在此我尝试修复您的代码中的错误(但其中也很容易迷失):

    \documentclass{article}
     \usepackage[skip=1ex]{caption}
    \usepackage{xcolor}
    \usepackage{booktabs, multirow, tabularx}             
    \newcolumntype{L}{>{\raggedright\arraybackslash}X}  % <---
    \usepackage{siunitx}                                % <---
    
    %---------------- show page layout. don't use in a real document!
    \usepackage{showframe}
    \renewcommand\ShowFrameLinethickness{0.15pt}
    \renewcommand*\ShowFrameColor{\color{red}}
    %---------------------------------------------------------------%
    \begin{document}
        \begin{table}[htb]
        \centering
        \caption{Terminology of the laminates for in-plane (tensile and compressive) and mode-I interlaminar fracture toughness testing. \textcolor{red}{pequeño formateo}}
        \label{table:notation}
    \begin{tabularx}{\linewidth}{@{} l 
                                >{\hsize=0.65\hsize}X % <---
                                >{\hsize=0.35\hsize}X % <---
                                @{}}
        \toprule
    Laminate    & Stacking sequence &          Purpose                  \\ \midrule
    LTHIN\textsubscript{IP}
        & [(\SI{45}{\degree}/\SI{0}{\degree})/%
          $(\SI{-45}{\degree}/\SI{90}{\degree})]_{4s}$
            & \multirow{3.5}{=}{In-plane testing}                         \\ \cmidrule(r){1-2}
    LV1\textsubscript{IP}
        & [(\SI{45}{\degree}/V\textsubscript{1}/\SI{0}{\degree})/%
          V\textsubscript{1}/(\SI{-45}{\degree}/%
          V\textsubscript{1}/\SI{90}{\degree})/%
          V\textsubscript{1}]\textsubscript{4s} &                       \\ \cmidrule(r){1-2}
    LV2\textsubscript{IP}
        & [(\SI{45}{\degree}/V\textsubscript{2}/\SI{0}{\degree})/%
          V\textsubscript{2}/%
          (\SI{-45}{\degree}/V\textsubscript{2}/9\SI{0}{\degree})/%
          V\textsubscript{2}$]$\textsubscript{4s} &                     \\ \midrule
    LTHIN\textsubscript{$G_{\mathrm{IC}}$}
        & [(\SI{45}{\degree}/\SI{90}{\degree})/%
          $(\SI{-45}{\degree}/\SI{0}{\degree})]_{6s}$
            & \multirow{5}{=}{Mode-I fracture toughness testing}        \\ \cmidrule(r){1-2}
    LV1\textsubscript{$G_{\mathrm{IC}}$}
        & [(\SI{45}{\degree}/\SI{90}{\degree})/%
          (\SI{-45}{\degree}/\SI{0}{\degree})]$_{6s}$/%
          V\textsubscript{1}/\newline
          [(\SI{45}{\degree}/\SI{90}{\degree})/%
           (\SI{-45}{\degree}/\SI{0}{\degree})]$_{6s}$
          &                 \\ \cmidrule(r){1-2}
    LV2\textsubscript{$G_{\mathrm{IC}}$}
        & [(\SI{45}{\degree}/9\SI{0}{\degree})/%
           (-\SI{45}{\degree}/\SI{0}{\degree})]$_{6s}$/%
          V\textsubscript{2}/\newline
          [(\SI{45}{\degree}/\SI{0}{\degree})/(-\SI{45}{\degree}/
          \SI{0}{\degree})]$_{6s}$ &                   \\
        \bottomrule
    \end{tabularx}
        \end{table}
    \end{document}
    

在此处输入图片描述

(红线表示文字边框)

相关内容