Latex学习笔记
插入图片
\usepackage{graphics} %首先调用宏(一种处理图片的集合操作)
\begin{figure}[htbp] %figure*表示整页占用
\centering %图片居中
\includegraphics[scale=0.7]{IEICE/figure1.pdf} %scale表示图片的缩放比例
\caption{For visually similar confusable images, the background can provide a complementary aid to image classification to some extent. }
%图片下的文字
\label{Registration} %标签,为后面引用做引用
\end{figure} %整页占用时末尾figure也要加*
htbp的意思
h here 当前位置;将图形放置在 正文文本中给出该图形环境的地方。如果本页所剩的页面不够, 这一参数将不起作用。
t top 顶部;将图形放置在页面的顶部。
b bottom 底部;将图形放置在页面的底部。
p page 浮动页;将图形放置在一只允许有浮动对象的页面上。
指定图片大小:
\includegraphics[width=90mm,height=60mm]{figure.eps}
设定图片长宽,图片高度会自动缩放。
\includegraphics[width=\textwidth]{figure.eps}
设定图片宽度为文本宽度。
\includegraphics[width=0.75\textwidth]{figure.eps}
设定图片宽度为文本宽度的0.75倍
\includegraphics[scale=1]{figure.eps}
设定图片与原文件比例为1。
\includegraphics[angle=90]{figure.eps}
将图片旋转90度
插入表格
\begin{table*}[htb]
\caption{Accuracy in Stanford Dogs, Stanford Cars, CUB-200 dataset}
\label{tab:table1} %表格的引用标签
\begin{center} %表格居中
\setlength{\tabcolsep}{3.5mm}{ %表格的缩放比列
\begin{tabular}{ccccccc} %表格共有七列
\hline %下划线
\multirow{3}{*}{Model} &\multicolumn{6}{c}{5-way Accuracy(\%)}\\
\cline{2-7}
&\multicolumn{2}{c}{Stanford Dogs}&\multicolumn{2}{c}{Stanford Cars}&\multicolumn{2}{c}{CUB-200}\\
&1-shot &5-shot &1-shot &5-shot &1-shot &5-shot\\
\hline
k-NN&26.14 &43.14 &3.50 &34.45 &25.81 &45.34\\
NBNN& 31.42& 42.17& 28.18& 3.27& 35.29& 47.97\\
Matching Network& 35.80& 47.50& 4.80& 4.70& 45.30& 59.50\\
Prototypical Networks& 37.59& 48.19& 40.90& 2.93& 37.36& 45.28\\
FSGNN& 4.98& 2.27& 5.85& 71.25& 1.83& 3.69\\
DN4 & 45.73& 66.33& 61.51& 89.60& 3.15& 81.90\\
Our Proposed Model& \textbf{5.36}& \textbf{7.84}& \textbf{7.68}& \textbf{3.93}& \textbf{61.60}& \textbf{82.19}\\