下午好。
在提出这个问题之前,我确实竭尽全力去了解我的例子中文本重叠的原因,但没有成功。
在查看了一些专门针对“文本重叠”的解决方案后,我稍微修改了一下代码,但没有帮助。原因很可能是我对多列,多行在 LaTex 中创建表格没有任何意义。
我的 LaTex 代码如下:
\documentclass[a4paper,conference]{IEEEtran}
\IEEEoverridecommandlockouts
\usepackage{cite}
\usepackage{amsmath,amssymb,amsfonts}
\usepackage{algorithmic}
\usepackage{graphicx}
\usepackage{multirow}
\usepackage{array,booktabs}
\usepackage[normalem]{ulem}
\begin{table}[htbp]
\newcolumntype{P}[1]{>{\centering\arraybackslash}p{#1}}
\setlength\extrarowheight{5pt}
\centering
\begin{tabular}{|P{0.1\linewidth}|P{0.1\linewidth}|P{0.1\linewidth}|P{0.2\linewidth}|P{0.2\linewidth}|}
\hline
\multicolumn{1}{|c|}{CASE} & \multicolumn{1}{c|}{CONTROL REQ'T} & \multicolumn{1}{c|}{WHAT IS ACHIEVED} & \multicolumn{1}{c|}{RATING INCREASE} & \multicolumn{1}{c|}{INCREASED RATING OF...} \\
\hline
\multirow{4}{*}{Capacitive de-energizing} & \multirow{4}{*}{Opening at optimum arcing time} & \multirow{4}{*}{Increased voltage withstand} & Increase of voltage rating & 1 step (e.g. 145 to 170 kV) \\
\cline{4-5}
& & & Higher rated frequency & 50 to 60 \\
\cline{4-5}
& & & Lower ambient temperature class & Lower ambient temperatures can be met (e.g. $-40^{\circ}C$ to $-50^{\circ}C$) on same type of CB \\
\cline{4-5}
& & & Higher capacitive switching class & Class C1 breaker can become class C2 breaker free of charge (except the cost for controller) \\
\hline
Filter bank switching & Opening at optimum arcing time & Increased voltage withstand & TRV withstand & Additional application of standard CB \\
\hline
Line energising & Optimum closing and re-closing & Reduced transients & With the combined use of line arresters and controllers ßmaller" breakers can be used & 1-2 voltage step(s) up-rating (300 kV CB to be used for 420 kV) \\
\hline
\multirow{2}{*}{Fault current interruption} & \multirow{2}{*}{Opening at optimum $T_{arc}$ } & \multirow{2}{*}{Increased $I_{SC}$ } & Increased current breaking (possible increased break time depending on speed of algorithms) & Approx. 10\%20\% depending on type of fault condition \\
\cline{4-5}
& & & Lower ambient temperature class & Lower ambient temperatures can be met (e.g. $-40^{\circ}C$ to $-50^{\circ}C$) on same type of CB \\
\hline
Missing current zero & Opening at optimum (delayed) time & Ability to interrupt highly offset currents & Current interruption & Successful interruption instead of unsuccessful \\
\hline
\end{tabular}
\end{table}
\end{document}
代码给出(可以看到表格与纸张的第二列重叠):
请有人告诉我:
到底是怎么回事?
我哪里犯错啦?
获取所需表格的最好、最优雅、最快捷的方法是什么?
谢谢。
答案1
这是表格的两个版本。如您所见,我不得不大幅减小字体大小,以便将表格压缩为一列。希望您同意,横跨两列的版本看起来要好得多:
\documentclass[a4paper,conference]{IEEEtran}
\IEEEoverridecommandlockouts
\usepackage{cite}
\usepackage{amsmath,amssymb,amsfonts}
\usepackage{algorithmic}
\usepackage{graphicx}
\usepackage{multirow}
\usepackage{array,booktabs}
\usepackage[normalem]{ulem}
\usepackage[english]{babel}
\usepackage{lipsum} % just for dummy text. Do not use in real document.
\usepackage{calc}
\usepackage{makecell}
\usepackage[column=0]{cellspace}
\setlength{\cellspacetoplimit}{4pt}
\setlength{\cellspacebottomlimit}{\cellspacetoplimit}
\addparagraphcolumntypes{P}
\usepackage{siunitx}
\begin{document}
\begin{table*}[htbp]
\newcolumntype{P}[1]{>{\raggedright\arraybackslash}p{#1-2\tabcolsep-\arrayrulewidth}}
\centering
\begin{tabular}{|P{0.125\linewidth}|
P{0.15\linewidth}|
P{0.125\linewidth}|
0{P{0.3\linewidth}}|
0{P{0.3\linewidth}}|}
\hline
\thead{CASE}
& \thead{CONTROL\\ REQ'T}
& \thead{WHAT IS\\ ACHIEVED}
& \thead{RATING INCREASE}
& \thead{INCREASED RATING OF...} \\
\hline
\multirow[t]{10}{=}{Capacitive de-energizing}
& \multirow[t]{10}{=}{Opening at optimum arcing time}
& \multirow[t]{10}{=}{Increased voltage withstand}
& Increase of voltage rating
& 1 step (e.g. 145 to 170 kV) \\
\cline{4-5}
&
&
& Higher rated frequency
& 50 to 60 \\
\cline{4-5}
&
&
& Lower ambient temperature class
& Lower ambient temperatures can be met (e.g. \SI{-40}{\degreeCelsius} to \SI{-50}{\degreeCelsius}) on same type of CB \\
\cline{4-5}
&
&
& Higher capacitive switching class
& Class C1 breaker can become class C2 breaker free of charge (except the cost for controller) \\
\hline
Filter bank switching
& Opening at optimum arcing time
& Increased voltage withstand
& TRV withstand
& Additional application of standard CB \\
\hline
Line energising
& Optimum closing and re-closing
& Reduced transients
& With the combined use of line arresters and controllers ßmaller" breakers can be used
& 1-2 voltage step(s) up-rating (\SI{300}{\kilo\volt} CB to be used for \SI{420}{\kilo\volt}) \\
\hline
Fault current interruption
& Opening at optimum $T_{arc}$
& Increased $I_{SC}$
& Increased current breaking (possible increased break time depending on speed of algorithms)
& Approx. 10\%20\% depending on type of fault condition \\
\cline{4-5}
&
&
& Lower ambient temperature class
& Lower ambient temperatures can be met (e.g. \SI{-40}{\degreeCelsius} to \SI{-50}{\degreeCelsius}) on same type of CB \\
\hline
Missing current zero
& Opening at optimum (delayed) time
& Ability to interrupt highly offset currents
& Current interruption
& Successful interruption instead of unsuccessful \\
\hline
\end{tabular}
\end{table*}
\lipsum \lipsum
\begin{table}[htbp]
\newcolumntype{P}[1]{>{\hspace{0pt}\raggedright\arraybackslash\hspace{0pt}}p{#1-2\tabcolsep-\arrayrulewidth}}
\centering
\footnotesize
\setlength{\tabcolsep}{4pt}
\renewcommand{\theadfont}{\tiny}
\begin{tabular}{|P{0.175\linewidth}|
P{0.2\linewidth}|
P{0.2\linewidth}|
0{P{0.225\linewidth}}|
0{P{0.2\linewidth}}|}
\hline
\thead{CASE}
& \thead{CONTROL\\ REQ'T}
& \thead{WHAT\\ IS\\ ACHIEVED}
& \thead{RATING\\ INCREASE}
& \thead{INCREASED\\ RATING\\ OF...} \\
\hline
\multirow[t]{10}{=}{\hspace{0pt}Capacitive de-energizing}
& \multirow[t]{10}{=}{Opening at optimum arcing time}
& \multirow[t]{10}{=}{Increased voltage withstand}
& Increase of voltage rating
& 1 step (e.g. 145 to 170 kV) \\
\cline{4-5}
&
&
& Higher rated frequency
& 50 to 60 \\
\cline{4-5}
&
&
& Lower ambient temperature class
& Lower ambient temperatures can be met (e.g. \SI{-40}{\degreeCelsius} to \SI{-50}{\degreeCelsius}) on same type of CB \\
\cline{4-5}
&
&
& Higher capacitive switching class
& Class C1 breaker can become class C2 breaker free of charge (except the cost for controller) \\
\hline
Filter bank switching
& Opening at optimum arcing time
& Increased voltage withstand
& TRV withstand
& Additional application of standard CB \\
\hline
Line energising
& Optimum closing and re-closing
& Reduced transients
& With the combined use of line arresters and controllers ßmaller" breakers can be used
& 1-2 voltage step(s) up-rating (\SI{300}{\kilo\volt} CB to be used for \SI{420}{\kilo\volt}) \\
\hline
Fault current interruption
& Opening at optimum $T_{arc}$
& Increased $I_{SC}$
& Increased current breaking (possible increased break time depending on speed of algorithms)
& Approx. 10\%20\% depending on type of fault condition \\
\cline{4-5}
&
&
& Lower ambient temperature class
& Lower ambient temperatures can be met (e.g. \SI{-40}{\degreeCelsius} to \SI{-50}{\degreeCelsius}) on same type of CB \\
\hline
Missing current zero
& Opening at optimum (delayed) time
& Ability to interrupt highly offset currents
& Current interruption
& Successful interruption instead of unsuccessful \\
\hline
\end{tabular}
\end{table}
\lipsum
\end{document}