<?xml version="1.0"?>
<feed xmlns="http://www.w3.org/2005/Atom" xml:lang="zh-Hans-CN">
	<id>https://wiki.riguz.com/index.php?action=history&amp;feed=atom&amp;title=Latex_chapter_and_paragraph</id>
	<title>Latex chapter and paragraph - 版本历史</title>
	<link rel="self" type="application/atom+xml" href="https://wiki.riguz.com/index.php?action=history&amp;feed=atom&amp;title=Latex_chapter_and_paragraph"/>
	<link rel="alternate" type="text/html" href="https://wiki.riguz.com/index.php?title=Latex_chapter_and_paragraph&amp;action=history"/>
	<updated>2026-06-02T21:39:04Z</updated>
	<subtitle>本wiki上该页面的版本历史</subtitle>
	<generator>MediaWiki 1.42.3</generator>
	<entry>
		<id>https://wiki.riguz.com/index.php?title=Latex_chapter_and_paragraph&amp;diff=3852&amp;oldid=prev</id>
		<title>Riguz：​/* 图表目录 */</title>
		<link rel="alternate" type="text/html" href="https://wiki.riguz.com/index.php?title=Latex_chapter_and_paragraph&amp;diff=3852&amp;oldid=prev"/>
		<updated>2023-12-19T11:35:43Z</updated>

		<summary type="html">&lt;p&gt;&lt;span dir=&quot;auto&quot;&gt;&lt;span class=&quot;autocomment&quot;&gt;图表目录&lt;/span&gt;&lt;/span&gt;&lt;/p&gt;
&lt;table style=&quot;background-color: #fff; color: #202122;&quot; data-mw=&quot;interface&quot;&gt;
				&lt;col class=&quot;diff-marker&quot; /&gt;
				&lt;col class=&quot;diff-content&quot; /&gt;
				&lt;col class=&quot;diff-marker&quot; /&gt;
				&lt;col class=&quot;diff-content&quot; /&gt;
				&lt;tr class=&quot;diff-title&quot; lang=&quot;zh-Hans-CN&quot;&gt;
				&lt;td colspan=&quot;2&quot; style=&quot;background-color: #fff; color: #202122; text-align: center;&quot;&gt;←上一版本&lt;/td&gt;
				&lt;td colspan=&quot;2&quot; style=&quot;background-color: #fff; color: #202122; text-align: center;&quot;&gt;2023年12月19日 (二) 11:35的版本&lt;/td&gt;
				&lt;/tr&gt;&lt;tr&gt;&lt;td colspan=&quot;2&quot; class=&quot;diff-lineno&quot; id=&quot;mw-diff-left-l119&quot;&gt;第119行：&lt;/td&gt;
&lt;td colspan=&quot;2&quot; class=&quot;diff-lineno&quot;&gt;第119行：&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;* [http://yakeworld.myesci.com/node/1397 xelatex中文换行]&lt;/div&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;* [http://yakeworld.myesci.com/node/1397 xelatex中文换行]&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;* [https://www.ntg.nl/doc/biemesderfer/ltxcrib.pdf LATEX Command Summary]&lt;/div&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;* [https://www.ntg.nl/doc/biemesderfer/ltxcrib.pdf LATEX Command Summary]&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td colspan=&quot;2&quot; class=&quot;diff-side-deleted&quot;&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot; data-marker=&quot;+&quot;&gt;&lt;/td&gt;&lt;td style=&quot;color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #a3d3ff; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;&lt;ins style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;&lt;/ins&gt;&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td colspan=&quot;2&quot; class=&quot;diff-side-deleted&quot;&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot; data-marker=&quot;+&quot;&gt;&lt;/td&gt;&lt;td style=&quot;color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #a3d3ff; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;&lt;ins style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;[[Category:LaTeX]]&lt;/ins&gt;&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;/table&gt;</summary>
		<author><name>Riguz</name></author>
	</entry>
	<entry>
		<id>https://wiki.riguz.com/index.php?title=Latex_chapter_and_paragraph&amp;diff=3779&amp;oldid=prev</id>
		<title>Riguz：​Riguz移动页面Blog:LaTeX(1)：章节和段落至Latex chapter and paragraph，不留重定向</title>
		<link rel="alternate" type="text/html" href="https://wiki.riguz.com/index.php?title=Latex_chapter_and_paragraph&amp;diff=3779&amp;oldid=prev"/>
		<updated>2023-12-19T05:59:17Z</updated>

		<summary type="html">&lt;p&gt;Riguz移动页面&lt;a href=&quot;/index.php?title=Blog:LaTeX(1)%EF%BC%9A%E7%AB%A0%E8%8A%82%E5%92%8C%E6%AE%B5%E8%90%BD&amp;amp;action=edit&amp;amp;redlink=1&quot; class=&quot;new&quot; title=&quot;Blog:LaTeX(1)：章节和段落（页面不存在）&quot;&gt;Blog:LaTeX(1)：章节和段落&lt;/a&gt;至&lt;a href=&quot;/Latex_chapter_and_paragraph&quot; title=&quot;Latex chapter and paragraph&quot;&gt;Latex chapter and paragraph&lt;/a&gt;，不留重定向&lt;/p&gt;
&lt;table style=&quot;background-color: #fff; color: #202122;&quot; data-mw=&quot;interface&quot;&gt;
				&lt;tr class=&quot;diff-title&quot; lang=&quot;zh-Hans-CN&quot;&gt;
				&lt;td colspan=&quot;1&quot; style=&quot;background-color: #fff; color: #202122; text-align: center;&quot;&gt;←上一版本&lt;/td&gt;
				&lt;td colspan=&quot;1&quot; style=&quot;background-color: #fff; color: #202122; text-align: center;&quot;&gt;2023年12月19日 (二) 05:59的版本&lt;/td&gt;
				&lt;/tr&gt;&lt;tr&gt;&lt;td colspan=&quot;2&quot; class=&quot;diff-notice&quot; lang=&quot;zh-Hans-CN&quot;&gt;&lt;div class=&quot;mw-diff-empty&quot;&gt;（没有差异）&lt;/div&gt;
&lt;/td&gt;&lt;/tr&gt;&lt;/table&gt;</summary>
		<author><name>Riguz</name></author>
	</entry>
	<entry>
		<id>https://wiki.riguz.com/index.php?title=Latex_chapter_and_paragraph&amp;diff=2455&amp;oldid=prev</id>
		<title>imported&gt;Riguz：​LaTeX适用于学术论文等的写作，在这类文章中一个很重要的部分就是段落和章节了。回想起当年使用Word写作的时候调整标题是何等的痛苦，那么在LaTeX中是怎样设置段落和章节的呢？</title>
		<link rel="alternate" type="text/html" href="https://wiki.riguz.com/index.php?title=Latex_chapter_and_paragraph&amp;diff=2455&amp;oldid=prev"/>
		<updated>2020-02-07T00:00:00Z</updated>

		<summary type="html">&lt;p&gt;LaTeX适用于学术论文等的写作，在这类文章中一个很重要的部分就是段落和章节了。回想起当年使用Word写作的时候调整标题是何等的痛苦，那么在LaTeX中是怎样设置段落和章节的呢？&lt;/p&gt;
&lt;p&gt;&lt;b&gt;新页面&lt;/b&gt;&lt;/p&gt;&lt;div&gt;&lt;br /&gt;
LaTeX适用于学术论文等的写作，在这类文章中一个很重要的部分就是段落和章节了。回想起当年使用Word写作的时候调整标题是何等的痛苦，那么在LaTeX中是怎样设置段落和章节的呢？&lt;br /&gt;
&lt;br /&gt;
= 标题=&lt;br /&gt;
&lt;br /&gt;
通过下面的命令可以生成一个默认的标题：&lt;br /&gt;
&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;latex&amp;quot;&amp;gt;&lt;br /&gt;
\title{一种新型冠状病毒的防治方法}&lt;br /&gt;
\author{Dr. Riguz}&lt;br /&gt;
\date{2020-02-07}&lt;br /&gt;
&lt;br /&gt;
\maketitle % 生成标题页&lt;br /&gt;
\newpage   % 分页&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
这样效果如下：&lt;br /&gt;
&lt;br /&gt;
&amp;lt;img src=&amp;quot;/images/Latex-title.png&amp;quot; style=&amp;quot;width:400px&amp;quot;&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
= LaTeX段落层次=&lt;br /&gt;
LaTeX中可以分成如下的几个部分：&lt;br /&gt;
&lt;br /&gt;
* section：一级标题&lt;br /&gt;
* subsection：二级标题&lt;br /&gt;
* subsubsection：三级标题&lt;br /&gt;
* paragraph：段落&lt;br /&gt;
* subpragraph：二级段落&lt;br /&gt;
&lt;br /&gt;
下面是一个例子：&lt;br /&gt;
&lt;br /&gt;
&amp;lt;img src=&amp;quot;/images/Latex-sections.png&amp;quot; style=&amp;quot;width:400px&amp;quot;&amp;gt;&lt;br /&gt;
&lt;br /&gt;
对应的代码如下，非常简洁：&lt;br /&gt;
&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;latex&amp;quot;&amp;gt;&lt;br /&gt;
\section{背景}&lt;br /&gt;
首先简要介绍一下这个项目的背景。&lt;br /&gt;
\subsection{冠状病毒简介}&lt;br /&gt;
冠状病毒是一个大型病毒家族，包括引起普通感冒的病毒以及严重急性呼吸综合征冠状病毒和中东呼吸综合征冠状病毒。这一新病毒暂时命名为2019新型冠状病毒（2019-nCoV）。&lt;br /&gt;
\subsection{现有的防治方法}&lt;br /&gt;
\subsubsection{居家隔离法}&lt;br /&gt;
待在家里不出门。&lt;br /&gt;
\subsubsection{自我安慰法}&lt;br /&gt;
反正也死不了。&lt;br /&gt;
\section{新的防治方法}&lt;br /&gt;
实在编不下去了：&lt;br /&gt;
\paragraph{气功}&lt;br /&gt;
是一种中华民族祖传的神功。气功又可以分为两种：&lt;br /&gt;
\subparagraph{硬气功}&lt;br /&gt;
可以开山断石，金钟罩铁布衫。&lt;br /&gt;
\subparagraph{内功}&lt;br /&gt;
可以运行体内的真气激发一种神奇的力量运行于经络之上。&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
&lt;br /&gt;
= 生成目录=&lt;br /&gt;
== 目录==&lt;br /&gt;
想要生成目录页特别简单，一个命令就可以搞定：&lt;br /&gt;
&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;latex&amp;quot;&amp;gt;&lt;br /&gt;
\tableofcontents&lt;br /&gt;
\newpage&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;img src=&amp;quot;/images/Latex-contents.png&amp;quot; style=&amp;quot;width:400px&amp;quot;&amp;gt;&lt;br /&gt;
&lt;br /&gt;
== 自定义级别==&lt;br /&gt;
&lt;br /&gt;
如果在生成目录的时候，只希望生成到特定的级别，可以这样设置：&lt;br /&gt;
&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;latex&amp;quot;&amp;gt;&lt;br /&gt;
\setcounter{tocdepth}{2}&lt;br /&gt;
\tableofcontents&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
&lt;br /&gt;
这样生成的目录就只会到`subsection`级别。当然这样设置的话会对所有的内容生效，如果只是希望对某个章节生效怎么办呢？&lt;br /&gt;
&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;latex&amp;quot;&amp;gt;&lt;br /&gt;
\addtocontents{toc}{\setcounter{tocdepth}{1}}&lt;br /&gt;
\section{背景}&lt;br /&gt;
&lt;br /&gt;
% ...&lt;br /&gt;
\addtocontents{toc}{\setcounter{tocdepth}{3}}&lt;br /&gt;
\section{新的防治方法}&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
可以像上面这样，在需要设置的章节之前设置，然后再其他地方恢复默认级别。&lt;br /&gt;
&lt;br /&gt;
== 行距==&lt;br /&gt;
如果希望调整行距，可以使用&lt;br /&gt;
&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;latex&amp;quot;&amp;gt;&lt;br /&gt;
\doublespacing&lt;br /&gt;
\tableofcontents&lt;br /&gt;
\newpage&lt;br /&gt;
\singlespacing&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
&lt;br /&gt;
单倍行距：&lt;br /&gt;
&lt;br /&gt;
&amp;lt;img src=&amp;quot;/images/Latex-singlespacing.png&amp;quot; style=&amp;quot;width:400px&amp;quot;&amp;gt;&lt;br /&gt;
&lt;br /&gt;
双倍行距：&lt;br /&gt;
&lt;br /&gt;
&amp;lt;img src=&amp;quot;/images/Latex-doublespacing.png&amp;quot; style=&amp;quot;width:400px&amp;quot;&amp;gt;&lt;br /&gt;
&lt;br /&gt;
== 图表目录==&lt;br /&gt;
另外，如果想对图表生成目录，可以采用：&lt;br /&gt;
&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;latex&amp;quot;&amp;gt;&lt;br /&gt;
\begin{appendix}&lt;br /&gt;
	\listoffigures&lt;br /&gt;
	\listoftables&lt;br /&gt;
\end{appendix}	&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
&lt;br /&gt;
参考：&lt;br /&gt;
&lt;br /&gt;
* [https://www.latex-tutorial.com/tutorials/sections/ Using LaTeX paragraphs and sections]&lt;br /&gt;
* [http://yakeworld.myesci.com/node/1397 xelatex中文换行]&lt;br /&gt;
* [https://www.ntg.nl/doc/biemesderfer/ltxcrib.pdf LATEX Command Summary]&lt;/div&gt;</summary>
		<author><name>imported&gt;Riguz</name></author>
	</entry>
</feed>