表格 - 对齐

表格 - 对齐

我无法对齐此表的内容。您能提供一些帮助吗?

在此处输入图片描述

 \begin{table}[]
    \centering
    \caption{\textcolor{red}{Laminates devised for in-plane (tension and compression) and mode-I interlaminar fracture toughness experiments. Non-crimp fabric blankets are indicated with parenthesis. The $\$$ sign means only one veil in the symmetry plane. Explicar y poner el capitulo correspondiente. Poner bonita}}
    \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{ILSS} & \multirow{3}{*}{$[(45\degree/0\degree)/(-45\degree/90\degree)]\textsubscript{4s}$} & Interlaminar shear strenght testing \\ \cmidrule(r){1-1} \cmidrule(r){3-3}
        LTHIN\textsubscript{IP} & & Tensile and compressive testing \\ \cmidrule(r){1-1} \cmidrule(r){3-3}
        LTHIN\textsubscript{LVI} & & Impact and quasi-static indentation testing \\ \midrule
        LTHIN\textsubscript{$G$\textsubscript{IC}}  & $[(45\degree/90\degree)/(-45\degree/0\degree)]\textsubscript{4s}$ & Mode-I interlaminar fracture toughness testing \\ \midrule
            LSTANDARD\textsubscript{ILSS} & \multirow{2}{*}{$[(45\degree/0\degree)/(-45\degree/90\degree)]\textsubscript{2s}$} & Interlaminar shear strenght testing \\ \cmidrule(r){1-1} \cmidrule(r){3-3}
        LSTANDARD\textsubscript{LVI} & & Impact and Quasi-static indentation testing \\ \midrule
            LV1\textsubscript{IP} and LV2\textsubscript{IP} & \multirow{2}{*}{$[$(45$\degree$/V$_i$/0$\degree$)/V$_i$/($-$45$\degree$/V$_i$/90$\degree$)/V$_i$$]$\textsubscript{4$\$$} ($i$ = 1,2)} & Tensile and compressive testing \\ \cmidrule(r){1-1} \cmidrule(r){3-3}
    LV1\textsubscript{LVI} and LV2\textsubscript{LVI} & & Impact and Quasi-static indentation testing \\ \midrule
            LV1\textsubscript{$G$\textsubscript{IC}} and LV2\textsubscript{$G$\textsubscript{IC}}   & $[$(45$\degree$/90$\degree$)/($-$45$\degree$/0$\degree$)/V$_i$$]$\textsubscript{6$\$$} ($i$ = 1,2) & Mode-I interlaminar fracture toughness testing \\ \bottomrule                        
    \end{tabularx}
\end{table}

答案1

像这样:

在此处输入图片描述

\documentclass[12pt,a4paper]{article}
\usepackage{booktabs, multirow, tabularx}
\newcolumntype{C}{>{\centering\arraybackslash}X}
\newcolumntype{L}{>{\raggedright\arraybackslash}X}
\usepackage{siunitx}
\usepackage[skip=1ex, 
            textfont={color=red}]{caption}

%---------------- show page layout. don't use in a real document!
\usepackage{showframe}
\renewcommand\ShowFrameLinethickness{0.15pt}
\renewcommand*\ShowFrameColor{\color{red}}
%---------------------------------------------------------------%

\begin{document}
    \begin{table}
\renewcommand\tabularxcolumn[1]{m{#1}}% valid local for tis table
\centering
\caption{Laminates devised for in-plane (tension and compression) and mode-I interlaminar fracture toughness experiments. Non-crimp fabric blankets are indicated with parenthesis. The $\$$ sign means only one veil in the symmetry plane. Explicar y poner el capitulo correspondiente. Poner bonita}
\label{table:notation}
\begin{tabularx}{\linewidth}{@{} l C L @{}}
    \toprule
Laminate    & \text{Stacking sequence} &          Purpose         \\
    \midrule
LTHIN\textsubscript{ILSS} 
    & \multirow{6}{=}{\centering
                      [(\SI{45}{\degree}/%
                        \SI{0}{\degree})/%
                       (\SI{-45}{\degree}/%
                        \SI{90}{\degree})]\textsubscript{4s}}
        & Interlaminar shear strenght testing               \\ 
    \cmidrule{1-1} \cmidrule{3-3}
LTHIN\textsubscript{IP} 
    &   & Tensile and compressive testing                   \\ 
    \cmidrule{1-1} \cmidrule{3-3}
LTHIN\textsubscript{LVI} 
    &   & Impact and quasi-static indentation testing       \\ 
    \midrule
LTHIN\textsubscript{$G$\textsubscript{IC}}  
    & 
                      [(\SI{45}{\degree}/%
                        \SI{90}{\degree}/%
                       (\SI{-45}{\degree}/
                        \SI{0}{\degree})]\textsubscript{4s}
        & Mode-I interlaminar fracture toughness testing    \\ 
    \midrule
LV1\textsubscript{IP} and LV2\textsubscript{IP} 
    &   \multirow{3.4}{=}{\centering
                        [(\SI{45}{\degree}/V$_i$/\SI{0}{\degree})/ 
                          V$_i$/(\SI{-45}{\degree}/%
                          V$_i$/\SI{90}{\degree})/%
                          V$_i$]\textsubscript{4\$} ($i = 1,2$)} 
        & Tensile and compressive testing               \\ 
    \cmidrule{1-1} \cmidrule{3-3}
LV1\textsubscript{LVI} and LV2\textsubscript{LVI}
    &   & Impact and Quasi-static indentation testing   \\ 
\end{tabularx}
    \end{table}
\end{document}

表格并不完整,但是它展示了如何解决您的所有要求(正如我所理解的那样)。对于有单位的值,我使用包siunitx,对于标题,我使用包caption。我还更改了列的宽度。我建议第二列和第三列的宽度相等。对于单元格中放不下的长序列,我可以将其分成三行

答案2

您很可能会生我的气,但我真的认为,尝试了解数学模式和文本模式各自的优点、在数学模式(相对于文本模式)下获取下标有多简单等等,将对您大有裨益。我保留所有这些内容不变,专注于multirows,我用软件包\multirowcells附带的 替换了它makecell

\documentclass{article}
\usepackage{tabularx}
\usepackage{booktabs}
\usepackage{multirow}
\usepackage{makecell}
%\usepackage{siunitx}
\def\degree{\ensuremath{{}^\circ}}
\usepackage{xcolor}
\begin{document}
\begin{table}[]
    \centering
    \caption{\textcolor{red}{Laminates devised for in-plane (tension and compression) and mode-I interlaminar fracture toughness experiments. Non-crimp fabric blankets are indicated with parenthesis. The $\$$ sign means only one veil in the symmetry plane. Explicar y poner el capitulo correspondiente. Poner bonita}}
    \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{ILSS} & 
        \multirowcell{3}[-5ex][l]{$[(45\degree/0\degree)/(-45\degree/90\degree)]\textsubscript{4s}$} 
        & Interlaminar shear strenght testing \\ \cmidrule(r){1-1} \cmidrule(r){3-3}
        LTHIN\textsubscript{IP} & & Tensile and compressive testing \\ \cmidrule(r){1-1} \cmidrule(r){3-3}
        LTHIN\textsubscript{LVI} & & Impact and quasi-static indentation testing \\ \midrule
        LTHIN\textsubscript{$G$\textsubscript{IC}}  & 
        \multirowcell{2}[-1ex][l]{$[(45\degree/90\degree)/(-45\degree/0\degree)]\textsubscript{4s}$}
        & Mode-I interlaminar fracture toughness testing \\ \midrule
            LSTANDARD\textsubscript{ILSS} & 
        \multirowcell{2}[-3ex][l]{$[(45\degree/0\degree)/(-45\degree/90\degree)]\textsubscript{2s}$} & Interlaminar shear strenght testing \\ \cmidrule(r){1-1} \cmidrule(r){3-3}
        LSTANDARD\textsubscript{LVI} & & Impact and Quasi-static indentation testing \\ \midrule
            LV1\textsubscript{IP} and LV2\textsubscript{IP} & 
        \multirowcell{3}[-3ex][l]{$[$(45$\degree$/V$_i$/0$\degree$)/V$_i$/($-$45$\degree$/V$_i$/90$\degree$)/
        \\ \quad V$_i]$\textsubscript{4$\$$} ($i$ = 1,2)} & Tensile and compressive testing \\ \cmidrule(r){1-1} \cmidrule(r){3-3}
    LV1\textsubscript{LVI} and LV2\textsubscript{LVI} & & Impact and Quasi-static indentation testing \\ \midrule
            LV1\textsubscript{$G$\textsubscript{IC}} and LV2\textsubscript{$G$\textsubscript{IC}}   & 
        \multirowcell{2}[-1ex][l]{$[$(45$\degree$/90$\degree$)/($-$45$\degree$/0$\degree$)/V$_i$$]$\textsubscript{6$\$$}
        \\ ($i$ = 1,2)} & Mode-I interlaminar fracture toughness testing \\ \bottomrule                        
    \end{tabularx}
\end{table}
\end{document}

在此处输入图片描述

请考虑在将来提供完整的可编译文档。在这里我只是快速编造了一些蹩脚的东西,\degree但我想说的是,除非它来自包,否则您不应该使用此名称的宏siunitx

相关内容