我正在为 IEEE 交易撰写一篇论文,其中我必须插入一个横向模式的表格,该表格将填满整个页面。但显然,表格占用了整个页面的空间。我使用了 showframe 包,默认情况下模板边距似乎不允许表格适合页面。有什么解决方法吗?或者有人可以建议我以横向模式插入 IEEE 论文表格的最佳方法是什么?
\documentclass[journal]{IEEEtran}
\usepackage{amsmath}
\usepackage{makecell}
\usepackage{tabularx}
\usepackage{color,colortbl}
\usepackage[table]{xcolor}
\usepackage{amssymb}
\usepackage[utf8]{inputenc}
\usepackage[T1]{fontenc}
\usepackage{showframe}
\usepackage{lscape}
\begin{document}
\clearpage
\thispagestyle{empty}
\begin{landscape}
\begin{table*}[h!]
\centering
\caption{Quality and Computational Time of Proposed CCI-based SDP Relaxation for Multi-Phase Networks for $R_{gnd}=1\Omega$}
\scriptsize
\renewcommand{\arraystretch}{1.3}
\begin{tabular}{|c|c|c|c|c|c|c|c|c|c|c|c|c|c|c|c|c|c|c|c|c|c|c|c|c|c|}
\hline
\multicolumn{26}{|c|}{\cellcolor{gray!50}\textbf{OF:1}}\\ \hline
\textbf{LMs}&\multicolumn{5}{c|}{{\thead{\textbf{MG}\\\textit{(LuB)}}}}&\multicolumn{5}{c|}{{\thead{\textbf{IT-37}\\\textit{(MuB)}}}}&\multicolumn{5}{c|}{{\thead{\textbf{IT-111}$^\dagger$\\\textit{(MuB)}}}}&\multicolumn{5}{c|}{{\thead{\textbf{Cigre}\\\textit{(HuB)}}}}&\multicolumn{5}{c|}{{\thead{\textbf{IEEE}\\\textit{(HuB)}}}}\\ \hline
&{\thead{EVR \\$|\lambda_2|/|\lambda_1| \times 10^{-5}$}}&OV&\multicolumn{3}{c|}{\% Optimality Gap}&{\thead{EVR \\$|\lambda_2|/|\lambda_1| \times 10^{-5}$}}&OV&\multicolumn{3}{c|}{\% Optimality Gap}&{\thead{EVR \\$|\lambda_2|/|\lambda_1| \times 10^{-5}$}}&OV&\multicolumn{3}{c|}{\% Optimality Gap}&{\thead{EVR \\$|\lambda_2|/|\lambda_1| \times 10^{-5}$}}&OV&\multicolumn{3}{c|}{\% Optimality Gap}&{\thead{EVR \\$|\lambda_2|/|\lambda_1| \times 10^{-5}$}}&OV&\multicolumn{3}{c|}{\% Optimality Gap}\\ \hline
\end{tabular}
% \begin{tablenotes}\scriptsize
% \centering
% \item LM: Load Model \hspace{1em} MG: Micro Grid \hspace{1em} \hspace{1em} IT: Italian \hspace{1em} $\dagger$: Memory Limit \hspace{1em} \\ \textit{LuB}: Lightly Unbalanced \hspace{1em} \textit{MuB}: Moderately Unbalanced \hspace{1em} \textit{HuB}: Highly Unbalanced
% \end{tablenotes}
\label{Table_3}
\end{table*}
\clearpage
\end{landscape}
\end{document}
答案1
一些建议:
加载提供 Times Roman 类型数学字体的字体包。(文本字体是 Times Roman 的克隆版。)
\% Optimality Gap
允许标题中有换行符为了节省更多空间,请将所有 替换
|\lambda_2|/|\lambda_1| \times
为|\lambda_2/\lambda_1| \cdot
。使用包
\SI
的宏siunitx
来排版科学单位(例如\ohm
)。
\documentclass[journal]{IEEEtran}
\usepackage{amsmath}
\usepackage{makecell}
\usepackage{tabularx}
%%\usepackage{color,colortbl}
\usepackage[table]{xcolor}
\usepackage{amssymb}
\usepackage[utf8]{inputenc}
\usepackage[T1]{fontenc}
%\usepackage{showframe}
%\usepackage{lscape}
\usepackage{rotating,siunitx} % <-- new
\sisetup{detect-all}
\usepackage{newtxmath}
\begin{document}
\begin{sidewaystable}
\scriptsize
\renewcommand{\arraystretch}{1.3}
\centering
\caption{Quality and Computational Time of Proposed CCI-based SDP Relaxation for Multi-Phase Networks for $R_{\mathrm{gnd}}=\SI{1}{\ohm}$}
\label{Table_3}
\begin{tabular}{|*{16}{c|}}
\hline
\multicolumn{16}{|c|}{\cellcolor{gray!50}\textbf{OF:1}}\\
\hline
\textbf{LMs}
&\multicolumn{3}{c|}{{\thead{\textbf{MG}\\\textit{(LuB)}}}}
&\multicolumn{3}{c|}{{\thead{\textbf{IT-37}\\\textit{(MuB)}}}}
&\multicolumn{3}{c|}{{\thead{\textbf{IT-111}$^\dagger$\\\textit{(MuB)}}}}
&\multicolumn{3}{c|}{{\thead{\textbf{Cigre}\\\textit{(HuB)}}}}
&\multicolumn{3}{c|}{{\thead{\textbf{IEEE}\\\textit{(HuB)}}}}\\
\hline
&{\thead{EVR \\ $|\lambda_2/\lambda_1|\cdot 10^{-5}$}}
&OV
&\thead{\% Optima-\\lity Gap}
&{\thead{EVR \\ $|\lambda_2/\lambda_1|\cdot 10^{-5}$}}
&OV
&\thead{\% Optima-\\lity Gap}
&{\thead{EVR \\ $|\lambda_2/\lambda_1|\cdot 10^{-5}$}}
&OV
&\thead{\% Optima-\\lity Gap}
&{\thead{EVR \\ $|\lambda_2/\lambda_1|\cdot 10^{-5}$}}
&OV
&\thead{\% Optima-\\lity Gap}
&{\thead{EVR \\ $|\lambda_2/\lambda_1|\cdot 10^{-5}$}}
&OV
&\thead{\% Optima-\\lity Gap}\\
\hline
\end{tabular}
% \begin{tablenotes}\scriptsize
% \centering
% \item LM: Load Model \hspace{1em} MG: Micro Grid \hspace{1em} \hspace{1em} IT: Italian \hspace{1em} $\dagger$: Memory Limit \hspace{1em} \\ \textit{LuB}: Lightly Unbalanced \hspace{1em} \textit{MuB}: Moderately Unbalanced \hspace{1em} \textit{HuB}: Highly Unbalanced
% \end{tablenotes}
\end{sidewaystable}
\end{document}
答案2
这不是最好的解决方案,但这适合页面。我假设您打算添加更多行。否则您应该使用 table 而不是 table*。
请勿弄乱出版物的页边距。
\documentclass[journal]{IEEEtran}
\usepackage{amsmath}
\usepackage{makecell}
\usepackage{tabularx}
\usepackage{color,colortbl}
\usepackage[table]{xcolor}
\usepackage{amssymb}
\usepackage[utf8]{inputenc}
\usepackage[T1]{fontenc}
\usepackage{showframe}
\usepackage{graphicx}
\begin{document}
\begin{table*}[p]
\rotatebox{90}{\begin{minipage}{\textheight}
\centering
\caption{Quality and Computational Time of Proposed CCI-based SDP Relaxation for Multi-Phase Networks for $R_{gnd}=1\Omega$}
\scriptsize
\renewcommand{\arraystretch}{1.3}
\resizebox{\textwidth}{!}{\begin{tabular}{|c|c|c|c|c|c|c|c|c|c|c|c|c|c|c|c|c|c|c|c|c|c|c|c|c|c|}
\hline
\multicolumn{26}{|c|}{\cellcolor{gray!50}\textbf{OF:1}}\\ \hline
\textbf{LMs}&\multicolumn{5}{c|}{{\thead{\textbf{MG}\\\textit{(LuB)}}}}&\multicolumn{5}{c|}{{\thead{\textbf{IT-37}\\\textit{(MuB)}}}}&\multicolumn{5}{c|}{{\thead{\textbf{IT-111}$^\dagger$\\\textit{(MuB)}}}}&\multicolumn{5}{c|}{{\thead{\textbf{Cigre}\\\textit{(HuB)}}}}&\multicolumn{5}{c|}{{\thead{\textbf{IEEE}\\\textit{(HuB)}}}}\\ \hline
&{\thead{EVR \\$|\lambda_2|/|\lambda_1| \times 10^{-5}$}}&OV&\multicolumn{3}{c|}{\% Optimality Gap}&{\thead{EVR \\$|\lambda_2|/|\lambda_1| \times 10^{-5}$}}&OV&\multicolumn{3}{c|}{\% Optimality Gap}&{\thead{EVR \\$|\lambda_2|/|\lambda_1| \times 10^{-5}$}}&OV&\multicolumn{3}{c|}{\% Optimality Gap}&{\thead{EVR \\$|\lambda_2|/|\lambda_1| \times 10^{-5}$}}&OV&\multicolumn{3}{c|}{\% Optimality Gap}&{\thead{EVR \\$|\lambda_2|/|\lambda_1| \times 10^{-5}$}}&OV&\multicolumn{3}{c|}{\% Optimality Gap}\\ \hline
\end{tabular}}
% \begin{tablenotes}\scriptsize
% \centering
% \item LM: Load Model \hspace{1em} MG: Micro Grid \hspace{1em} \hspace{1em} IT: Italian \hspace{1em} $\dagger$: Memory Limit \hspace{1em} \\ \textit{LuB}: Lightly Unbalanced \hspace{1em} \textit{MuB}: Moderately Unbalanced \hspace{1em} \textit{HuB}: Highly Unbalanced
% \end{tablenotes}
\label{Table_3}
\end{minipage}}
\end{table*}
\end{document}