在 tabularx 环境中更改列宽度并难以使表格出现在我想要的位置

在 tabularx 环境中更改列宽度并难以使表格出现在我想要的位置

我正在尝试加宽标题为“应用程序”的列,以便表格整体变矮,而且尽管在 {table*} 命令旁边放置了 h、t、b、! 等参数,我也在更改表格显示位置时遇到了麻烦(现在它总是出现在下一页)。以下是代码:

\setlength{\extrarowheight}{4pt}
\begin{table*}[h!]
 \caption{COMPARISON OF SUITABILITY OF SELECT ESS TO PROVIDE SHORT TERM GRID FUNCTIONS}
\label{my-label}
\begin{threeparttable}
\begin{tabularx}{\textwidth}{@{}l*{20}{C}c@{}}
\toprule
\multirow{Service Category}    & \multirow{Application} & \multirow{Discharge Duration} & \multicolumn{5}{c}{Energy Storage System} \\
[-\normalbaselineskip]
\cmidrule{4-8} 
{} & {} & {} & Sodium-sulfur Battery & Lithium-ion Battery & Flywheel & SMES  & Supercapacitors \\ 
\midrule
\multirow{Generation} & Inertia Provision\tnote{1} & \textless10s & - & - & + & + & + \\ 
& Primary and Fast Frequency Response\tnote{2} & up to 30s & - & - & + & + & + \\ 
& Frequency Regulation & up to 15-20 minutes & + & + & + & + & + \\ 
& Contingency Reserves & up to 1 hour & - & + & - & - & - \\
& Ramping & minutes to hours & - & + & - & - & - \\
& Voltage Support & 15 minutes to 1 hour & + & + & + & + & +\\
& Renewable Grid Integration(short duration) & 10 seconds to 15 minutes & - & + & + & + & + \\
Transmission/Distribution & Transmission Support & 2-5 seconds & - & - & + & + & + \\
\multirow{End-user} & Power Quality Support & 10 seconds to 1 minute & + & - &  + & + & + \\
& Uninterruptible Power Supply & seconds to hours & - & + & + & + & + \\
Resilience & Backup power \& Outage Ride Through & 5 minutes to 1 hour & + & - & - & + & - \\
\bottomrule
\end{tabularx}
    \begin{tablenotes}
     \item[1] Proposed
     \item[2] Proposed
    \end{tablenotes}
    \end{threeparttable} 
\end{table*}

这是现在的表格

图像现在的样子

非常感谢大家的帮助!

答案1

看看下面的表格设计是否可以接受:

\documentclass[twocolumn]{article}
\usepackage{booktabs, makecell, multirow, tabularx, threeparttable}
\newcolumntype{C}[1]{>{\centering\arraybackslash\hsize=#1\hsize}X}
\newcolumntype{L}[1]{>{\raggedright\arraybackslash\hsize=#1\hsize}X}
\usepackage[skip=1ex, font=sc]{caption}
\usepackage[version=4]{mhchem}
\usepackage{siunitx}

\begin{document}
\begin{table*}[h!]
 \caption{Comparison of suitability of select ess to provide short term grid functions}
\label{my-label}
    \setlength{\extrarowheight}{3pt}
    \setlength\tabcolsep{3pt}
    \begin{threeparttable}
\begin{tabularx}{\textwidth}{@{} L{1} L{1.6} L{0.8} *{6}{C{0.6}} @{}}
    \toprule
\multirow{3}{=}{Service Category}    
    & \multirow{3}{=}{Application} 
        & \multirow{3}{=}{Discharge Duration} 
            & \multicolumn{5}{c}{Energy Storage System} \\
\cmidrule{4-8}
    &   &   & \ce{Na}-\ce{S} Battery\tnote{[a]}
                & \ce{Li}-ion Battery\tnote{[b]} 
                    & Flywheel 
                        & SMES  
                            & Super C\tnote{[c]}                  \\
\midrule
\multirow[t]{3}{=}{Generation} 
    & Inertia Provision\tnote{1} 
        & \SI{<10}{s}               & - & - & + & + & + \\
    & Primary and Fast Frequency Response\tnote{2} 
        & up to \SI{30}{s}          & - & - & + & + & + \\
    & Frequency Regulation 
        & \SIrange{15}{20}{min}       
                                    & + & + & + & + & + \\
    & Contingency Reserves          
        & up to \SI{1}{h}           & - & + & - & - & - \\
    & Ramping 
        & minutes to hours          & - & + & - & - & - \\
    & Voltage Support 
        & \SIrange{15}{60}{min}     & + & + & + & + & + \\
    & Renewable Grid Integration (short duration) 
        & \SI{10}{s} to \SI{15}{min}& - & + & + & + & + \\
    \addlinespace
\multirow[t]{2}{=}{Transmission/ Distribution}
    & Transmission Support 
        & \SIrange{2}{5}{s}         & - & - & + & + & + \\
    &   &                           &   &   &   &   &   \\
\multirow[t]{3}{=}{End-user} 
    & Power Quality Support 
        & 10 seconds to 1 minute    & + & - & + & + & + \\
    & Uninterruptible Power Supply 
        & seconds to hours          & - & + & + & + & + \\
Resilience 
    & Backup power \& Outage Ride Through 
        & \SIrange{5}{60}{min}      & + & - & - & + & - \\
    \bottomrule
\end{tabularx}
    \begin{tablenotes}[para]
     \item[{[a]}] Sodium–sulfur battery
     \item[{[b]}] Lithium-ion battery 
     \item[{[c]}] Supercapacitors\par
     \item[1] Proposed
     \item[2] Proposed
    \end{tablenotes}
    \end{threeparttable}
\end{table*}
\end{document}

在此处输入图片描述

相关内容