latex]
.sty宏包不存在的问题
CTex安装后会自动安装好各种依赖包,
因此,先安装好CTex,再安装TexStudio;
图
图包
% 引入图包
\usepackage{graphicx}
% 使得图描述居中
\usepackage{caption}
% 多行或多列的图
\usepackage{subfigure}
正常的图
% figure加* 实现跨栏显示图片
\begin{figure*}[!t]
\centering
% Requires \usepackage{graphicx}
\includegraphics[scale=0.6]{./image/SFnet.png}
\centering
\caption{Our SFnet framework. Input Best is the selected duide image, and Input Test is the image to be predicted.}
% label中的内容作为‘引子’在正文中引用 正文中的用法:\ref{fig:SFnet_framework}
\label{fig:SFnet_framework}
\end{figure*}
多行多列的图
\begin{figure}[htbp]
\centering
\subfigure[]{
\begin{minipage}[t]{4cm}
\centering
\includegraphics[width=1.5in]{./image/select00.png}
%\caption{fig1}
\end{minipage}%
}%
\subfigure[]{
\begin{minipage}[t]{4cm}
\centering
\includegraphics[width=1.5in]{./image/select01.png}
%\caption{fig2}
\end{minipage}%
}%
% 换行
\quad
\subfigure[]{
\begin{minipage}[t]{4cm}
\centering
\includegraphics[width=1.5in]{./image/select10.png}
%\caption{fig2}
\end{minipage}
}%
\subfigure[]{
\begin{minipage}[t]{4cm}
\centering
\includegraphics[width=1.5in]{./image/select11.png}
%\caption{fig2}
\end{minipage}
}%
\quad
\subfigure[]{
\begin{minipage}[t]{4cm}
\centering
\includegraphics[width=1.5in]{./image/select20.png}
%\caption{fig2}
\end{minipage}
}%
\subfigure[]{
\begin{minipage}[t]{4cm}
\centering
\includegraphics[width=1.5in]{./image/select21.png}
%\caption{fig2}
\end{minipage}
}%
\quad
\subfigure[]{
\begin{minipage}[t]{4cm}
\centering
\includegraphics[width=1.5in]{./image/select30.png}
%\caption{fig2}
\end{minipage}
}%
\subfigure[]{
\begin{minipage}[t]{4cm}
\centering
\includegraphics[width=1.5in]{./image/select31.png}
%\caption{fig2}
\end{minipage}
}%
\centering
\caption{Imagse selected by the selection module. (a) The first image to be predicted. (b) Corresponding the selected guide image for (a). (c) The second image to be predicted. (d) Corresponding the selected guide image for (c). (e) The third image to be predicted. (f) Corresponding the selected guide image for (e). (g) The fourth image to be predicted. (h) Corresponding the selected guide image for (g). }
\label{fig:selected_images}
\end{figure}
#一个subfigure中可以添加多个\includegraphics[width=1.5in]{./image/select00.png}
\begin{figure}[htbp]
\centering
\subfigure[]{
\begin{minipage}[t]{2.7cm}
\centering
\includegraphics[width=1in]{./image/select00.png}\vspace{7pt}
\includegraphics[width=1in]{./image/select10.png}\vspace{7pt}
\includegraphics[width=1in]{./image/select20.png}\vspace{7pt}
\includegraphics[width=1in]{./image/select30.png}\vspace{7pt}
%\caption{fig1}
\end{minipage}%
}%
\subfigure[]{
\begin{minipage}[t]{2.7cm}
\centering
\includegraphics[width=1in]{./image/select01.png}\vspace{7pt}
\includegraphics[width=1in]{./image/select11.png}\vspace{7pt}
\includegraphics[width=1in]{./image/select21.png}\vspace{7pt}
\includegraphics[width=1in]{./image/select31.png}\vspace{7pt}
%\caption{fig2}
\end{minipage}%
}%
\subfigure[]{
\begin{minipage}[t]{2.7cm}
\centering
\includegraphics[width=1in]{./image/select02.png}\vspace{7pt}
\includegraphics[width=1in]{./image/select12.png}\vspace{7pt}
\includegraphics[width=1in]{./image/select22.png}\vspace{7pt}
\includegraphics[width=1in]{./image/select32.png}\vspace{7pt}
%\caption{fig2}
\end{minipage}%
}%
% \quad
\centering
\caption{Imagse selected by the selection module. The first column is the image to be predicted. The second column is the selected guide image. The third column is an image that is not selected as the guide image.}
\label{fig:selected_images}
\end{figure}