美文网首页
11 基本格式

11 基本格式

作者: 亦是旅人呐 | 来源:发表于2021-10-08 00:09 被阅读0次

现在,我们将学习如何编写摘要,以及如何将LaTeX文档格式化为不同的章节、章节和段落。

摘要

在科学文献中,通常会包含论文主题的简要概述。在LaTeX中有一个抽象的环境。抽象环境将文本以一种特殊的格式放在文档的顶部。

\begin{document}

\begin{abstract}
This is a simple paragraph at the beginning of the 
document. A brief introduction about the main subject.
\end{abstract}
\end{document}

段落与断行

\begin{document}

\begin{abstract}
This is a simple paragraph at the beginning of the 
document. A brief introduction about the main subject.
\end{abstract}
 
Now that we have written our abstract, we can begin writing our first paragraph.
 
This line will start a second Paragraph.
\end{document}

在书写文档内容时,如果你需要开始一个新的段落,你必须按两次“Enter”键(插入双空行)。注意LaTeX会自动缩进段落。
要开始一个新行,而不是实际开始一个新段落,请插入一个换行点(换行不缩进),这可以通过\(如示例中的双反斜杠)或\newline命令来完成。

需要注意的是,不要使用多个\或\newline来“模拟”间隔较大的段落,因为这可能会干扰LaTeX的排版算法。推荐的方法是使用双空行来创建没有任何\的新段落,然后将\useppackage {parskip}添加到序言中。


章节

组织文档的命令因文档类型的不同而不同,最简单的组织形式是分段,在所有格式中都可用。

\chapter{First Chapter}

\section{Introduction}

This is the first section.

Lorem  ipsum  dolor  sit  amet,  consectetuer  adipiscing  
elit.   Etiam  lobortisfacilisis sem.  Nullam nec mi et 
neque pharetra sollicitudin.  Praesent imperdietmi nec ante. 
Donec ullamcorper, felis non sodales...

\section{Second Section}

Lorem ipsum dolor sit amet, consectetuer adipiscing elit.  
Etiam lobortis facilisissem.  Nullam nec mi et neque pharetra 
sollicitudin.  Praesent imperdiet mi necante...

\subsection{First Subsection}
Praesent imperdietmi nec ante. Donec ullamcorper, felis non sodales...

\section*{Unnumbered Section}
Lorem ipsum dolor sit amet, consectetuer adipiscing elit.  
Etiam lobortis facilisissem

命令\section{}标记一个新section的开始,在大括号内设置标题。Section编号是自动的,可以通过在Section命令中包含一个作为\Section{}来禁用。我们也可以有\subsub{},实际上也有\subsubsection {}。基本的深度级别如下:

-1  \part{part}
0   \chapter{chapter}
1   \section{section}
2   \subsection{subsection}
3   \subsubsection{subsubsection}
4   \paragraph{paragraph}
5   \subparagraph{subparagraph}

请注意,\part和\chapter只在报告和书籍文档类中可用。

有关文档结构的更完整的讨论,请参阅article about sections and chapters.


相关文章

  • 11 基本格式

    现在,我们将学习如何编写摘要,以及如何将LaTeX文档格式化为不同的章节、章节和段落。 摘要 在科学文献中,通常会...

  • 打扮漂亮点总不会错!

    条件格式 第六节 11月22日 一、基本用法 - 突出显示单元格规则 数据~条件格式~突出显示~大于3000~自定...

  • 2-Ps基础(文件基本操作)

    文件基本操作 1-文件格式(PSD格式) Ps:基本格式为PSD格式(源文件,包含多个图层) 常用格式:jpg(压...

  • HTML基本格式

    1.编写HTML的步骤: 新建一个文本文档 利用记事本打开 编写HTML代码 保存文件并修改文件的扩展名为.htm...

  • js基本格式

    1数值类型image.png 2.布尔值image.png 3.强制类型转换image.png 4.转换成Numb...

  • java基本格式

  • MIPS指令集与简要分析

    R格式指令 基本格式 指令 算数类指令 逻辑类指令 位移类指令 跳转指令 I格式指令 基本格式 指令 算数指令 逻...

  • JavaScript-循环语句

    while循环 基本格式 for循环 基本格式 所有for语句都可以转成while语句 do...while循环 ...

  • 3.HTML主要标签部分

    1.HTML基本文档格式— 标记 2.HTML基本文档格式— 标记 3.HTML基...

  • HTML基础

    基本格式 这是编写HTML的基本格式,代表着文档类型, 代表着文件所用语言, 代表网...

网友评论

      本文标题:11 基本格式

      本文链接:https://www.haomeiwen.com/subject/vxuzgltx.html