Latex排版---图篇、表格竖排排列,各自拥有不同的caption、label

Latex排版

让图片与表格竖向排列,各自拥有不同的caption、label。

其中figure也可以替换为table

captionof{args1}{args2}第一个参数表示为图片还是表格设置caption第二个参数是caption的内容。


\begin{figure}
	\centering
	\begin{minipage}{0.4\textwidth}
			\centering
			\includegraphics[width=220pt,height=120pt]{image/ground_truth_Indiana.eps}
			\captionof{figure}{Ground-truth map of the Indian Pines data set (16 land cover classes).} \label{fig:ground_truth_Indiana}
			\
	\end{minipage}
	\begin{minipage}{0.4\textwidth}
		\
		\captionof{table}{LAND COVER CLASSES WITH THE NUMBER OF SAMPLES
			FOR THE INDIAN PINES DATA SET}
		\begin{tabular}{lll}
			\toprule
			Class & Land Cover Type & No. of Samples \\
			\midrule
			C1 & Soybean-Steel-Towers 1 & 95 \\
			C2 & Hay-windrowed 2 & 489 \\
			C3 & Corn-min Till & 834 \\
			C4 & Soybean-no Till & 968 \\
			C5 & Alfalfa & 54 \\
			C6 & Soybean-clean Till & 614 \\
			C7 & Grass/Pasture & 479 \\
			C8 & Woods & 1294 \\
			C9 & Buildings-Grass-Trees-Drives & 380 \\
			C10 & Grass-pasture-mowed & 26 \\
			C11 & Corn & 234 \\ 
			C12 & Oats & 20 \\ 
			C13 & Corn-no Till & 1434 \\ 
			C14 & Soybean-min Till & 2468 \\
			C15 & Grass/Trees & 747 \\
			C16 & Wheat & 212 \\
			& Total & 10366 \\
			\bottomrule
		\end{tabular}\label{tab:land_over_Indiana}
	\end{minipage}
\end{figure}

你可能感兴趣的:(Latex写作)