Notes on LATEX

Notes on LATEX

说明: 记录两种LATEX配置方案及一些使用笔记。

LATEX配置方案:

方案1:CTEX (WinEdit)+Sumartra PDF

下载CTEX套装(自带MixTex和winEdit编辑器),什么配置都不用,可以下载Sumatra PDF使用双向搜索。

方案2:MixTex+Sublime Tex+Sumartra 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)中的参考教程或百度。

参考教程

参考教程1
参考教程2

LATEX使用笔记:

使用乘号:

\usepackage{stmaryrd}
\usepackage{mathabx}

\begin{document}
	...
	400 $\times$ 400     %显示为400 x 400
	...
\end{document}

使用bibtex添加参考文献:

%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

winedit显示行号快捷键:

ctrl + "="

使用bibtex生成reference

编译步骤(适用于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.
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

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

抵扣说明:

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

余额充值