latex写论文

1.注释

多行同时注释  用 ctrl+Alt+Shift + 方向右

去除多行注释 用 ctrl+Alt+Shift + 方向左

2.文献引用

3.跨栏图表

加入星号

\begin{table*}[htbp]
\caption{PASCAL VOC2012}
\begin{center}
\begin{tabular}{|c|ccccccccccccccccccccc|c|}
\hline
\end{tabular}
\label{tab3}
\end{center}
\end{table*}

4. 表格纵向长度调整

\begin{table}[htbp]
\center

\caption{ Example}

 \resizebox{\textwidth}{12mm}{ %12可随机设置,调整到适合自己的大小为止

\begin{tabular}{lll}
\hline
Example&  Example&  Example\\
\hline
S1& Example&Example \\
S2& Example&ExampleExampleExampleExampleExample \\
\hline
\end{tabular}}%注意这里还有一个半括号
\end{table}

5.表格横向长度调整

\begin{table}[htbp]
\center

\caption{ Example}

\setlength{\tabcolsep}{7mm}{%7可随机设置,调整到适合自己的大小为止

\begin{tabular}{lll}
\hline
Example&  Example&  Example\\
\hline
S1& Example&Example \\
S2& Example&ExampleExampleExampleExampleExample \\
\hline
\end{tabular}}%注意这里还有一个半括号
\end{table}

6.对勾

$\surd$

7.表格线加粗

可以使用booktabs宏包

\usepackage{booktabs}

然后使用\toprule, \midrule, \bottomrule

8.三线表格的跨列跨行

首先加入宏包

\usepackage{multirow}

\begin{table*}[tbp]
\caption{Segmentation performance on the test sets of NYUDv2 datasets. Mean iou, the number of parameters, runtime($mean \pm std$)}
\begin{center}
\setlength{\tabcolsep}{2.5mm}{
\begin{tabular}{c | c c c c c c c c}
\toprule
\multirow{2}{*}{Model} & \multicolumn{2}{c}{mIoU} & \multicolumn{2}{c}{Params} & \multicolumn{2}{c}{FLOPs} & \multirow{2}{*}{Runtime(ms)} & \multirow{2}{*}{Frame(fps)}\\

\cmidrule(lr){2-3}\cmidrule(lr){4-5}\cmidrule(lr){6-7}
 & Single(\%) & Multi(\%) & Baseline & RefinementBlock & Baseline & RfinementBlock\\
\toprule
FCN16-s RGB-HHA & 34.0 & - & - & - & - & - & - & -\\
Context & 40.6 & - & - & - & - & - & - & -\\
RefineNet-Res50 & 42.5 & 43.8 & 23.5M & 75.6M & 24.9G & 260.3G & $54.18\pm0.46$ & 18.5 \\
RefineNet-Res101 & 43.6 & 44.7 & 42.5M & 75.6M & 47.8G & 260.3G & $60.25\pm0.53$ & 16.6\\
RefineNet-Res152 & - & 46.5 & 58.1M & 75.6M & 70.6G & 260.3G & $69.37\pm0.78$ & 14.4 \\

\hline
\textbf{CARNet-Res50}(ours) & 43.1 & 44.1 & 23.5M & 5.2M & 24.9G & 13.2G & $\textbf{9.91}\pm\textbf{1.71}$ & 100.9 \\
\textbf{CARNet-Res101}(ours) & 45.3 & 46.1 & 42.5M & 5.2M & 47.8G & 13.2G & $15.06\pm2.96$ & 66.4\\
\textbf{CARNet-Res152}(ours) & \textbf{46.6} & \textbf{47.6} & 58.1M & 5.2M & 70.6G & 13.2G & $20.15\pm3.02$ & 49.6\\
\hline
%\multicolumn{4}{l}{$^{\mathrm{a}}$Sample of a Table footnote.}
\end{tabular}}
\label{tab1}
\end{center}
\end{table*}

9.表头中的大写字母改为小写

加入宏包

\usepackage{etoolbox}
然后在文章前加入下面一段代码:

\makeatletter
\patchcmd{\@makecaption}
  {\scshape}
  {}
  {}
  {}
\makeatother

10.表格的名字TABLE变为Table

\def\tablename{Table}

11.彩色表格的制作

首先加入宏包

\usepackage{xcolor}
\usepackage{colortbl, booktabs}

\cellcolor{gray}{ 文字}

\rowcolor{gray}{文字}

\columncolor{gray}{文字}

改变色彩的色调

\cellcolor{gray!50}{ 文字}

\rowcolor{gray!40}{文字}

\columncolor{gray!30}{文字}

12.修改文献引用的颜色

不要直接使用\usepackage{hyperref},需要使用下面的方式引用hyperref就可以修改超链接、引用的颜色

\usepackage[colorlinks,
            linkcolor=blue,       %%修改此处为你想要的颜色
            anchorcolor=blue,  %%修改此处为你想要的颜色
            citecolor=blue,        %%修改此处为你想要的颜色,例如修改blue为red
            ]{hyperref
13.IEEE access里面插入图片的问题

\Figure[!t](topskip=0pt, botskip=0pt, midship=0pt)[width=3 in]{fig1.png}{biaoti}

14.Table,Figure 总是出现在最后一页.

加入宏包:

\usepackge{float}

\restylefloat{table}

\restylefloat{figure}

加入\usepackage{caption}去防止caption字体大小不一样

  • 0
    点赞
  • 3
    收藏
    觉得还不错? 一键收藏
  • 0
    评论

“相关推荐”对你有帮助么?

  • 非常没帮助
  • 没帮助
  • 一般
  • 有帮助
  • 非常有帮助
提交
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值