Latex document structure

to sum up

 

\section{} A title
\subsection{} Subheadings
\subsubsection{} Three title
Blank line For dividing paragraphs (while the original document structure more clearly)
Blank line Used to separate command and text
\\ For line breaks
\through Also used to wrap
\chapter{} Chapter Outline
\tableofcentonts Build directory

 

(A) for the packages Ctex document structure

1. Description

\ Section {} a title

\ Subsection {} subheadings

\ Subsubsection {} three title

Note: In the Ctex packages, all titles are aligned to the left, not four title

2. Source Code

\documentclass{article}
\usepackage{ctex}

\title{LaTeX从入门到精通}
\author{abc}
\date{\today}

\begin{document}
	\maketitle
	
	\section{引言}
	闪烁着它那微微星光,不如阳光般灿烂却如花儿般如痴如醉
	% 空行用于分割段落,\\只是换行,
	
	空行用于分割段落,空行用于分割段落,空行用于分割段落,空行用于分割段落,空行用于分割段落,空行用于分割段落,
	\\只是换行,只是换行,只是换行,只是换行,只是换行,只是换行,只是换行,只是换行,
	
	
	
	% \par 也可以进行换行,注意命令与文字之间用空格间隔
	\par par也可以进行换行,注意命令与文字之间用空格间隔par 也可以进行换行,注意命令与文字之间用空格间隔par 也可以进行换行,注意命令与文字之间用空格间隔
	
	% 一般为了文章的分段清晰,采用空行来实现
	\section{实验方法}
	\section{实验结果}
	\subsection{数据}
	\subsection{图表}
	\subsubsection{实验条件}
	\subsubsection{实验过程}
	\section{结论}
	\section{致谢}
	
\end{document}

3. The output effect

 

4. Skills

Blank line: for dividing the paragraph (while the original document structure more clearly)

Blank lines: for dividing the command and text

\\: for wrapping

\ Par: also used to wrap

(B) the document structure for ctexart

1. Description

Command and ctex packages consistent, it shows there are some differences:

A title ctexart is centered, but can be changed by other commands. (Specific changes, please see ctex instruction manual)

2. Source Code

\documentclass{ctexart}
% \usepackage{ctex}

\title{LaTeX从入门到精通}
\author{abc}
\date{\today}

\begin{document}
	\maketitle
	
	\section{引言}
	闪烁着它那微微星光,不如阳光般灿烂却如花儿般如痴如醉
	% 空行用于分割段落,\\只是换行,
	
	空行用于分割段落,空行用于分割段落,空行用于分割段落,空行用于分割段落,空行用于分割段落,空行用于分割段落,
	\\只是换行,只是换行,只是换行,只是换行,只是换行,只是换行,只是换行,只是换行,
	
	
	
	% \par 也可以进行换行,注意命令与文字之间用空格间隔
	\par par也可以进行换行,注意命令与文字之间用空格间隔par 也可以进行换行,注意命令与文字之间用空格间隔par 也可以进行换行,注意命令与文字之间用空格间隔
	
	% 一般为了文章的分段清晰,采用空行来实现
	\section{实验方法}
	\section{实验结果}
	\subsection{数据}
	\subsection{图表}
	\subsubsection{实验条件}
	\subsubsection{实验过程}
	\section{结论}
	\section{致谢}
	
\end{document}

3. The output effect

 

 

(C) document structure for ctexbook

1. Description

Command and almost ctex packages, some slight differences:

  1. Add the \ chapter {}: Chapter Outline
  2. subsubsection {}: three headings fail.
  3. \ Tableofcentonts: generating a table of contents (note that the first row at the begin {document})

2. Source Code

\documentclass{ctexbook}
% \usepackage{ctex}

\title{LaTeX15集从入门到精通}
\author{2038145339 }
\date{March 2019}

\begin{document}
	%产生文章的目录
	\tableofcontents
	\maketitle
	
	\chapter{绪论}
	\section{引言}

	\section{实验方法}
	
	\chapter{内容}
	\section{实验结果}
	\subsection{数据}
	\subsection{图表}
	% subsubsection 此时不起作用
	\subsubsection{实验条件}
	\subsubsection{实验过程}
	
	\chapter{结尾}
	\section{结论}
	\section{致谢}
	
	
\end{document}

3. The output effect

 

 



 

Published 118 original articles · won praise 63 · views 40000 +

Guess you like

Origin blog.csdn.net/qq_42185999/article/details/104204349