说明: 记录两种LATEX配置方案及一些使用笔记。
下载CTEX套装(自带MixTex和winEdit编辑器),什么配置都不用,可以下载Sumatra PDF使用双向搜索。
1.使用Sublime Tex作为编辑器,搭配Sumarta PDF, MixTex(推荐,这样在sublime中不用修改配置)或者TexLive。
下载并安装Sublime Tex,下载并安装package control(下载地址)
2.安装好package control后重启sublime tex,’preference–>package control’打开package control,选择install package,安装LatexTools,ConvertToUTF8(建议),
Markdowm Preview(建议)。
3.配置LATEX,如果电脑上已经安装了CTEX或着MixTex,则不需要配置,可直接对.tex文档进行编译,编译方式为CTRL+B,文件夹中需要包含.tex文件,.bib(如果参考文献使用bibtex),存放图片的文件夹等;如果电脑上装的是TexLive,则需要配置,配置方法将1)中的参考教程或百度。
\usepackage{stmaryrd}
\usepackage{mathabx}
\begin{document}
...
400 $\times$ 400 %显示为400 x 400
...
\end{document}
%illustration:
%the essential item needed in the{}:author,title,journal,year copy the bibtex from google scholar and fix the name of the items above.
%cite: insert \bibliographystyle{ieeetr} and \bibliography{ref} where you want to show references (after \begin{document}).
%cite the refs typically in the Introduction section by typing \cite{name},e.g. \cite{Sivic03}
%ref1:http://www.douban.com/group/topic/14743204/
%ref2:http://www.cnblogs.com/longdouhzt/archive/2012/06/21/2557965.html
%ref3:http://www.michaelshell.org/tex/ieeetran/bibtex/
%编译的时候注意:先L-B-L-L-dvips-dvi-pdf
ctrl + "="
编译步骤(适用于CTEX套装,或者说winEdit):L-->B-->L-->L--dvips-->pspdf
%%单图显示\usepackage{graphicx}
%\begin{figure}[t]
% \centering
% % Requires \usepackage{graphicx}
% \includegraphics[width=.4\textwidth]{Figures/Confustion_Matrix/cm_compared}
% \caption{Experiment results of SAT-4 dataset.Frome top to button: 1)Training and testing accuracy. 2)Training and testing Loss}\label{Confusion_Matrices_Compared}
%\end{figure}
%
%\begin{figure}[t]
% \centering
% % Requires \usepackage{graphicx}
% \includegraphics[width=.4\textwidth]{Figures/Confustion_Matrix/cm_RSSCN7}
% \caption{Experiment results of SAT-6 dataset.Frome top to button: 1)Training and testing accuracy. 2)Training and testing Loss}\label{Confusion_Matrices_Ours}
%\end{figure}
%多子图竖排 \usepackage{subfigure}
\begin{figure}
\centering
\subfigure[Confusion Matrix - Zou\cite{zou2015deep}]{
\begin{minipage}[b]{0.33\textwidth}
\includegraphics[width=\textwidth]{Figures/Confustion_Matrix/cm_compared}
\end{minipage}
}
\subfigure[Confusion Matrix - Ours]{
\begin{minipage}[b]{0.33\textwidth}
\includegraphics[width=\textwidth]{Figures/Confustion_Matrix/cm_RSSCN7_R}
\end{minipage}
}
\caption{Comparison of the confusion matrices of the experimental results on the RSSCN7 dataset, from top to bottom: (a) the result of Zou\cite{zou2015deep}, (b) the result of ours.}
\end{figure}
%%%多子图横排使用\usepackage{graphicx} \usepackage{subfig}
%\begin{figure*}[!t]
%\centering
%\subfloat[Accuracy - SAT-4]{\includegraphics[width=0.4\textwidth]{Figures/Acc_Loss/SAT-4_RGB_Accu.eps}
%\label{Acc_SAT-4}}
%\hfil
%\subfloat[Loss - SAT-4]{\includegraphics[width=0.4\textwidth]{Figures/Acc_Loss/SAT-4_RGB_Loss.eps}
%\label{Loss_SAT-4}}
%\caption{Accuracy Loss - SAT-4}
%\label{Accuracy_Loss_SAT-4}
%\end{figure*}
%
%\begin{figure*}[!t]
%\centering
%\subfloat[Accuracy - SAT-6]{\includegraphics[width=0.4\textwidth]{Figures/Acc_Loss/SAT-6_RGB_Accu.eps}
%\label{Acc_SAT-6}}
%\hfil
%\subfloat[Loss - SAT-6]{\includegraphics[width=0.4\textwidth]{Figures/Acc_Loss/SAT-6_RGB_Loss.eps}
%\label{Loss_SAT-6}}
%\caption{Accuracy Loss - SAT-6}
%\label{Accuracy_Loss_SAT-6}
%\end{figure*}
%
%\begin{figure*}[!t]
%\centering
%\subfloat[Confusion Matrix - SAT-4]{\includegraphics[width=0.4\textwidth]{Figures/Confustion_Matrix/cm_SAT-4.eps}
%\label{CM_SAT-4}}
%\hfil
%\subfloat[Confusion Matrix - SAT-6]{\includegraphics[width=0.4\textwidth]{Figures/Confustion_Matrix/cm_SAT-6.eps}
%\label{CM_SAT-6}}
%\caption{Confusion Matrices}
%\label{Confusion_Matrices}
%\end{figure*}
%%%多子图单列竖排,使用\usepackage{graphicx} \usepackage{subfigure}
\begin{figure}[placement]
body of the figure
\caption{figure title}
\end{figure}
Figures are objects that are not part of the normal text, and are usually "floated" to a convenient place, like the top of a page. Figures will not be split between two pages.
The optional argument [placement] determines where LaTeX will try to place your figure. There are four places where LaTeX can possibly put a float:
h Here - at the position in the text where the figure environment appears.
t Top - at the top of a text page.
b Bottom - at the bottom of a text page.
p Page of floats - on a separate float page, which is a page containing no text, only floats.
The standard report and article styles use the default placement tbp.