LATEX入门讲义报告.pptxVIP

  • 13
  • 0
  • 约8.72千字
  • 约 43页
  • 2016-11-28 发布于湖北
  • 举报
2015-10-13;系统和编辑器;主要内容;文字编辑;LaTex语句 LATEX源文件的每一行称作一条语句(statement)。 语句可以分为:命令(command)、数据(data)和注释(comment) 1. 命令: 普通命令:以\起 始,只有一行,标准形式为\命令名[可选参数]{不可省参数},当括号中有多个参数时要用逗号(半角)隔开。 例:\documentclass{article} 环境:包含一对起始声明和结尾声明,一般有多行,前后呼应。 例:\begin{document} Hello! \end{document} 2. 数据:即普通内容 例:\begin{document} Hello! \end{document} 3. 注释:用 % 引出,它在编译过程中被忽略,主要是方便自己操作。 例:%hello.tex; \documentclass[options]{class} %文档类声明 \usepackage[options]{package} %引入宏包 ... \begin{document} %正文 ... \end{document};文档结构 latex源文件的结构分三大部分,依次为:文档类声明、序言、正文。 1. 文档类声明:用来指定文档??类型; 例:\documentclass{article} 常用的文档类(documentclass)有三种:article、report、book,一般常用的是 article 2. 序言(preamble): 位于\documentclass{article} 之后,正文之前,用来完成一些特殊任务,比如引入宏包,定义命令,设置环境等; 3. 正文: 文档的实际内容,是\begin{document}和\end{document}之间 的部分 。 ;文字编辑具体应用 标题、摘要、目录、文章结构 特殊符号 数学公式插入 排版;1. 标题、摘要、目录、文章结构 标题信息 …… \title{My First \LaTeX{} article} % 括号中为标题内容 \author{your name} % 署名 \begin{document} \maketitle % 显示标题,以下为文本区 …… 摘要 \begin{abstract} ... \end{abstract} % 摘要环境;插入目录 \tableofcontents % 生成整个文档的目录 \setcounter{tocdepth}{2} % 目录层次,括号中表示显示的小标题层次,如果不设置,latex会使用默认值 层次 \section{…} % 一级标题,括号为标题内容 \subsection{...} % 二级标题 \subsubsection{...} % 三级标题 …… \paragraph{…} % 段落 \subparagraph{…} % 二级段落;例2: \documentclass{article} \author{your name} \title{My First \LaTeX{} article} \begin{document} \maketitle \begin{abstract} This is abstract. This is abstract. This is abstract. This is abstract. This is abstract. This is abstract. \end{abstract} % 摘要环境 \tableofcontents % 生成整个文档的目录 \setcounter{tocdepth}{2} Hello! This is my first \LaTeX{} article. \section{First Section} This is the first section \subsection{First subsection} This is the first subsection. \subsection

文档评论(0)

1亿VIP精品文档

相关文档