我需要一些帮助来让我的桌子恢复正常。我已经尝试了很多方法,但都无济于事。
我得到下表:
\begin{tabu}{X[2,l,m]|X[1,c,m]|X[2,c,m]|X[1,c,m]|X[1,c,m]|X[1,c,m]}
\multicolumn{6}{c}{\bfseries Wholesale markets} \\\hline
\multicolumn2{l|}{\textbf{Terminology}} & \textbf{Tot. Volume Traded} & \textbf{DR Access \& Participation} & \hspace{0pt}\textbf{Aggregated DR Accepted} & \hspace{0pt}\textbf{Aggregated generation} \\\hline
\multicolumn2{l|}{EPEX Spot Day Ahead} & \SI{235}{\tera\watt\hour} (2016) & \ding{51} & \ding{51} & \ding{51} \\\hline
\multicolumn2{l|}{EPEX Spot Intraday} & \SI{41}{\tera\watt\hour} (2016) & \ding{51} & \ding{51} & \ding{51} \\\hline
\multicolumn{6}{c}{\bfseries Balancing and ancillary services} \\\hline
\rowfont{\bfseries} \multicolumn2{l|}{Terminology} & Tot. Capacity Contracted & DR Access \& Participation & \hspace{0pt}Aggregated DR Accepted & \hspace{0pt}Aggregated generation \\\hline
Primary control reserve & +/-- & \SI{830}{\mega\watt} & \ding{51} & \ding{51} & \ding{51}\\\hline
\multirow{2}{=}{Secondary control reserve} & SCR + & \SI{1976}{\mega\watt} & \ding{51} & \ding{51} & \ding{51}\\\cline{2-6}
& SCR -- & \SI{1907}{\mega\watt} & \ding{51} & \ding{51} & \ding{51}\\\hline
\multirow{2}{=}{Minute reserve} & MR + & \SI{1850}{\mega\watt} & \ding{51} & \ding{51} & \ding{51}\\\cline{2-6}
& MR -- & \SI{1654}{\mega\watt} & \ding{51} & \ding{51} & \ding{51}\\\hline
\multicolumn{2}{m{\dimexpr 3\tabucolX+2\tabcolsep+\arrayrulewidth\relax}|}{Immediately interruptible loads (SOL) --- AbLaV} & \SI{750}{\mega\watt} & \ding{51} & \ding{51} & DR only programme \\\hline
\multicolumn{2}{m{\dimexpr 3\tabucolX+2\tabcolsep+\arrayrulewidth\relax}|}{Quickly interruptible loads (SNL) --- AbLaV} & \SI{750}{\mega\watt} & \ding{51} & \ding{51} & DR only programme \\\hline
\multicolumn{2}{m{\dimexpr 3\tabucolX+2\tabcolsep+\arrayrulewidth\relax}|}{\multirow{2}{=}{Re-dispatch (Winter reserve)}} & 2016/17: \SI{8300}{\mega\watt} & \multirow{2}{=}{\hfill\ding{55}\hfill} & \multirow{2}{=}{\hfill\ding{55}\hfill} & \multirow{2}{=}{\hfill\ding{55}\hfill} \\
\multicolumn{2}{m{\dimexpr 3\tabucolX+2\tabcolsep+\arrayrulewidth\relax}|}{} & 2017/18: \SI{7000}{\mega\watt} & & &\\\hline
\multicolumn{2}{m{\dimexpr 3\tabucolX+2\tabcolsep+\arrayrulewidth\relax}|}{Capacity Reserve} & \SI{2000}{\mega\watt} for October 2018 --- September 2020 & \ding{55} & \ding{55} & \ding{55} \\
\end{tabu}
当我编译它时(据我所知所需的包:siunitx,pifont,multirow,tabu)我得到以下结果:
问题是一些单元格内容高于其单元格,我在图像中用红色标记。
答案1
您可以设置其值\tabulinesep
:
\documentclass{article}
\usepackage{siunitx, pifont, multirow, tabu}
\begin{document}
\tabulinesep =4pt
\begin{tabu}{X[2,l,m]|X[1,c,m]|X[2,c,m] |X[1,c,m]|X[1,c,m]|X[1,c,m]}
\multicolumn{6}{c}{\bfseries Wholesale markets} \\\hline
\multicolumn2{l|}{\textbf{Terminology}} & \textbf{Tot. Volume Traded} & \textbf{DR Access \& Participation} & \hspace{0pt}\textbf{Aggregated DR Accepted} & \hspace{0pt}\textbf{Aggregated generation} \\\hline
\multicolumn2{l|}{EPEX Spot Day Ahead} & \SI{235}{\tera\watt\hour} (2016) & \ding{51} & \ding{51} & \ding{51} \\\hline
\multicolumn2{l|}{EPEX Spot Intraday} & \SI{41}{\tera\watt\hour} (2016) & \ding{51} & \ding{51} & \ding{51} \\\hline
\multicolumn{6}{c}{\bfseries Balancing and ancillary services} \\\hline
\rowfont{\bfseries} \multicolumn2{l|}{Terminology} & Tot. Capacity Contracted & DR Access \& Participation & \hspace{0pt}Aggregated DR Accepted & \hspace{0pt}Aggregated generation \\\hline
Primary control reserve & +/-- & \SI{830}{\mega\watt} & \ding{51} & \ding{51} & \ding{51}\\\hline
\multirow{2}{=}{Secondary control reserve} & SCR + & \SI{1976}{\mega\watt} & \ding{51} & \ding{51} & \ding{51}\\\cline{2-6}
& SCR -- & \SI{1907}{\mega\watt} & \ding{51} & \ding{51} & \ding{51}\\\hline
\multirow{2}{=}{Minute reserve} & MR + & \SI{1850}{\mega\watt} & \ding{51} & \ding{51} & \ding{51}\\\cline{2-6}
& MR -- & \SI{1654}{\mega\watt} & \ding{51} & \ding{51} & \ding{51}\\\hline
\multicolumn{2}{m{\dimexpr 3\tabucolX+2\tabcolsep+\arrayrulewidth\relax}|}{Immediately interruptible loads (SOL) --- AbLaV} & \SI{750}{\mega\watt} & \ding{51} & \ding{51} & DR only programme \\\hline
\multicolumn{2}{m{\dimexpr 3\tabucolX+2\tabcolsep+\arrayrulewidth\relax}|}{Quickly interruptible loads (SNL) --- AbLaV} & \SI{750}{\mega\watt} & \ding{51} & \ding{51} & DR only programme \\\hline
\multicolumn{2}{m{\dimexpr 3\tabucolX+2\tabcolsep+\arrayrulewidth\relax}|}{\multirow{2}{=}{Re-dispatch (Winter reserve)}} & 2016/17: \SI{8300}{\mega\watt} & \multirow{2}{=}{\hfill\ding{55}\hfill} & \multirow{2}{=}{\hfill\ding{55}\hfill} & \multirow{2}{=}{\hfill\ding{55}\hfill} \\
\multicolumn{2}{m{\dimexpr 3\tabucolX+2\tabcolsep+\arrayrulewidth\relax}|}{} & 2017/18: \SI{7000}{\mega\watt} & & &\\\hline
\multicolumn{2}{m{\dimexpr 3\tabucolX+2\tabcolsep+\arrayrulewidth\relax}|}{Capacity Reserve} & \SI{2000}{\mega\watt} for October 2018 --- September 2020 & \ding{55} & \ding{55} & \ding{55} \\
\end{tabu}
\end{document}