现在的位置: 首页 > 综合 > 正文

LaTex学习笔记

2018年06月10日 ⁄ 综合 ⁄ 共 2179字 ⁄ 字号 评论关闭

LaTex的Hello World


/documentclass{article}

 

/begin{document}

Hello World!

/end{document}

 


 

LaTex写论文的一般格式

/documentclass{article}

/begin{document}

 

%%% 题目 %%%

/title{An Introduction to LaTex}

/author{krrrr}

/maketitle

 

%%% 摘要 %%%

/begin{abstract}

In recently years, LaTex has been widely used in academic areas ...

/end{abstract}

 

%%% 小节 %%%

/section{Introduction}

Latex is a very powerful tool for text editing...

%%% 注脚 %%%

/footnote{MS Word is not as powerful as LaTex}

/section{Proposed Method}

The proposed method consists of the basic part and the extention part...

%%% 小小节 %%%

/subsection{The Algorithm}

this is the work flow of the proposed algorithm.

/paragraph{The method}

Here we present the method for ...

 

%%% 图片 %%%%

/begin{figure}[!htb]
  /centering
  /includegraphics[width=/linewidth]{images/sample_im.eps}
  /caption{Sample illustration.}

/label{fig:label1}
/end{figure}

 

Figure /ref{fig:label1} shows our result.

 

%%% 图片(全栏) %%%%

/begin{figure*}[!htb]
  /centering
  /includegraphics[width=/linewidth]{images/sample_im2.eps}
  /caption{Sample illustration.}
/end{figure*}

 

%%% 多个图片 %%%%

/begin{figure}[!b]
/centering
/begin{tabular}{@{/hspace{0mm}}c@{/hspace{0.5mm}}c}
/includegraphics[height=3cm]{images/img1.eps}&
/includegraphics[height=3cm]{images/img2.eps}//
(a) & (b)//
/end{tabular}
/caption{(a) image A
(b) image B
}
/label{fig:two images}
/end{figure}

 

/section{Conclusion}

In summary, Latex is an easy tool for text editing...

 

%%% 引用 %%%

/begin{thebibliography}{0}
/bibitem{rubbish} The rubbish book for Latex
/end{thebibliography}

 

/end{document}


LaTex中的字体控制

粗体

/textbf{Bold Face}

意大利体

/textit{Italic }

斜体

/textsl{slanted}

下划线

/underline{Is there a line below?}

强调

/emph{important notice}


label的一般缩写:

chap:
chapter
sec:
section
fig:
figure
tab:
table
eq:
equation
lst:
code listing

LaTex中的字体大小依次递增

 

/tiny -> /sriptsize -> /footnotesize -> /small -> /large -> /Large ->/LARGE -> /huge -> /Huge

 


 

LaTex中的文字位置关系控制

//或/newline新起一行

/par 新起一段

/newpage 新起一页

 


LaTex的数学公式形式为: $公式$

一些常用命令

分数/frac
上标^
下标_
分数/frac
求和/sum
大于或等于 /geq
包含于 /in
粗体 /mathbf
开方 /sqrt
向量 /vec /overrightarrow
积分 /int
空行 /, /quad /qquad
省略号 /ldots /cdots

 


 

ps2pdf使用方法:

ps2pdf -sPAPERSIZE=a4 /
-dMaxSubsetPct=100 -dCompatibilityLevel=1.3 /
-dSubsetFonts=true -dEmbedAllFonts=true /
-dAutoFilterColorImages=false /
-dAutoFilterGrayImages=false /
-dColorImageFilter=/FlateEncode /
-dGrayImageFilter=/FlateEncode /
-dMonoImageFilter=/FlateEncode /
paper.ps paper.pdf

 

抱歉!评论已关闭.