1 两张表格并排
\begin{minipage}{\textwidth}
\begin{minipage}[t]{0.45\textwidth}
\centering
\makeatletter\def\@captype{table}\makeatother\caption{表格标题1}
\begin{tabular}{cccc}
表格内容
\end{tabular}
\end{minipage}
\begin{minipage}[t]{0.45\textwidth}
\centering
\makeatletter\def\@captype{table}\makeatother\caption{表格标题2}
\begin{tabular}{cccc}
表格内容
\end{tabular}
\end{minipage}
\end{minipage}
2 大段注释
\usepackage{verbatim}
注释:
\begin{comment}
多
行
注
释
内
容
\end{comment}
3 双栏图表占两列,加*即可
\begin{table*}[]
\begin{tabular}{lrrrrrrrrrrrrrrr}
\toprule
...
\bottomrule
\end{tabular}
\caption{Booktabs table}
\label{tab:booktabs}
\end{table*}
4 修改表格的整体大小
usepackage{graphicx}
如果要在外面加table,就这么用
\begin{table}
\caption{表格标题}
\scalebox{0.9}{
\begin{tabular}
……
\end{tabular}}
\end{table}
5 表格单元格文字竖排
使用graphicx提供的\rotatebox{90}{}
\documentclass{article}
\usepackage{graphicx}
\begin{document}
\begin{tabular}{|l|c|}\hline
\rotatebox{90}{some rotated text} & \rotatebox{90}{some rotated text}\\\hline
some text & some text\\ \hline
\end{tabular}
\end{document}
6 Single-Column Double-Spaced format
% 单栏
\documentclass[journal,onecolumn]{IEEEtran}
%变成双倍行距
\usepackage{setspace}
\doublespacing
7 双栏和单栏相互转化
双栏:\documentclass[journal,11pt,draftclsnofoot,onecolumn]{IEEEtran}
单栏:\documentclass[journal,11pt,draftclsnofoot,twocolumn]{IEEEtran}
8 表格旋转90 + 两列并排
用 \begin{sidewaystable*}[] ... \end{sidewaystable*} 旋转表格
在sidewaystable包裹中使用minipage, 两个表的间隔用\vspace{15mm}调整
\begin{sidewaystable*}[] %表格横过来
\begin{minipage}[t]{0.50\textwidth} %两列
\centering
\scalebox{0.7}{ %表格尺寸调整
\begin{tabular}{lrrr}
\end{tabular}}
\caption{This is caption1. }
\label{tab:label}
\vspace{15mm} %调整纵向距离
\end{minipage}
\begin{minipage}[t]{0.50\textwidth} %两列
\centering
\scalebox{0.7}{ %表格尺寸调整
\begin{tabular}{lrrr}
\end{tabular}}
\caption{This is caption1. }
\label{tab:label}
\vspace{15mm} %调整纵向距离
\end{minipage}
\end{sidewaystable*}
9 双倍行距
% 正文开始之前添加包
\usepackage{setspace} % double space
\doublespacing
10 添加行数
% 正文开始之前添加包
\usepackage{lineno}
\begin{document}
\linenumbers % begin line numbering
% 巴拉巴拉内容
\nolinenumbers % end line numbering