采用 IEEE 系统期刊格式;
我正在尝试插入一个很宽的表格/图形,因此它将占据一整列。
\documentclass[lettersize,journal]{IEEEtran}
\usepackage{tabularx}
\usepackage{lipsum,graphicx}
\begin{document}
\lipsum[1-7]
\onecolumn
\begin{tabularx}{\textwidth}{|X|X|X|X|}
\hline
\multicolumn{4}{|c|}{\textcolor{red}{\textbf{LUL }}} \\
\hline
\centering\arraybackslash Title & \centering\arraybackslash Overview & \centering\arraybackslash Advantage(s) & \centering\arraybackslash Disadvantage(s) \\
\hline
Duis leo. & Sed fringilla mauris sit amet nibh. Donec sodales sagittis magna & Sed fringilla mauris sit amet nibh. Donec sodales sagittis magna & Sed fringilla mauris sit amet nibh. Donec sodales sagittis magna \\ \hline
Duis leo. & Sed fringilla mauris sit amet nibh. Donec sodales sagittis magna & Sed fringilla mauris sit amet nibh. Donec sodales sagittis magna & Sed fringilla mauris sit amet nibh. Donec sodales sagittis magna \\ \hline Duis leo. & Sed fringilla mauris sit amet nibh. Donec sodales sagittis magna & Sed fringilla mauris sit amet nibh. Donec sodales sagittis magna & Sed fringilla mauris sit amet nibh. Donec sodales sagittis magna \\ \hline Duis leo. & Sed fringilla mauris sit amet nibh. Donec sodales sagittis magna & Sed fringilla mauris sit amet nibh. Donec sodales sagittis magna & Sed fringilla mauris sit amet nibh. Donec sodales sagittis magna \\ \hline Duis leo. & Sed fringilla mauris sit amet nibh. Donec sodales sagittis magna & Sed fringilla mauris sit amet nibh. Donec sodales sagittis magna & Sed fringilla mauris sit amet nibh. Donec sodales sagittis magna \\ \hline Duis leo. & Sed fringilla mauris sit amet nibh. Donec sodales sagittis magna & Sed fringilla mauris sit amet nibh. Donec sodales sagittis magna & Sed fringilla mauris sit amet nibh. Donec sodales sagittis magna \\ \hline
\end{tabularx}
\twocolumn
\lipsum[1-2]
\end{document}
但是,使用 \onecolumn 开关后再使用 \twocolumn 开关会导致以下问题;
图表/表格留下了很多空间,如附图中我突出显示的红色圆圈所示,这不利于展示,我的导师也不接受。我有什么办法可以填补这个空白吗?
最好是通过接下来的文本后表格/图表?
答案1
\onecolumn
和\twocolumn
是强制分页符,因此如果使用它们,您必须“手动”移动文本。这就是 LaTeX 提供浮动表格的原因。
\documentclass[lettersize,journal]{IEEEtran}
\usepackage{float}
\usepackage{cite}
\usepackage{amsmath,amssymb,amsfonts}
\usepackage{algorithmic}
\usepackage[ruled]{algorithm2e} % allows algorithms to be displayed PROPERLY, so use with algorithmic package
\usepackage{graphicx}
\usepackage{textcomp}
\usepackage{pstricks}
\usepackage{calc}
\usepackage{ifthen}
\usepackage{msc}
\usepackage{tabularx}
\usepackage{newtxtext,newtxmath} % this pkg allowed words inside msc diagrams to be bold !
\usepackage{afterpage}
\usepackage{rotating}
\usepackage{array}
\usepackage{xcolor}
\usepackage{cuted}
\usepackage{wrapfig}
\usepackage{graphicx}
% \usepackage{lmodern,babel,adjustbox,booktabs,multirow}
\usepackage{lipsum,graphicx}
\usepackage{cuted}
\begin{document}
\lipsum[1-7]
\begin{table*}
\begin{tabularx}{\textwidth}{|X|X|X|X|}
\hline
\multicolumn{4}{|c|}{\textcolor{red}{\textbf{LUL }}} \\
\hline
\centering\arraybackslash Title & \centering\arraybackslash Overview & \centering\arraybackslash Advantage(s) & \centering\arraybackslash Disadvantage(s) \\
\hline
Duis leo. & Sed fringilla mauris sit amet nibh. Donec sodales sagittis magna & Sed fringilla mauris sit amet nibh. Donec sodales sagittis magna & Sed fringilla mauris sit amet nibh. Donec sodales sagittis magna \\ \hline
Duis leo. & Sed fringilla mauris sit amet nibh. Donec sodales sagittis magna & Sed fringilla mauris sit amet nibh. Donec sodales sagittis magna & Sed fringilla mauris sit amet nibh. Donec sodales sagittis magna \\ \hline Duis leo. & Sed fringilla mauris sit amet nibh. Donec sodales sagittis magna & Sed fringilla mauris sit amet nibh. Donec sodales sagittis magna & Sed fringilla mauris sit amet nibh. Donec sodales sagittis magna \\ \hline Duis leo. & Sed fringilla mauris sit amet nibh. Donec sodales sagittis magna & Sed fringilla mauris sit amet nibh. Donec sodales sagittis magna & Sed fringilla mauris sit amet nibh. Donec sodales sagittis magna \\ \hline Duis leo. & Sed fringilla mauris sit amet nibh. Donec sodales sagittis magna & Sed fringilla mauris sit amet nibh. Donec sodales sagittis magna & Sed fringilla mauris sit amet nibh. Donec sodales sagittis magna \\ \hline Duis leo. & Sed fringilla mauris sit amet nibh. Donec sodales sagittis magna & Sed fringilla mauris sit amet nibh. Donec sodales sagittis magna & Sed fringilla mauris sit amet nibh. Donec sodales sagittis magna \\ \hline
\end{tabularx}
\end{table*}
\lipsum
\lipsum
\end{document}