Overleaf 版本LaTeX 7天入門(第六天)

今天現(xiàn)在我們來研究如何編寫摘要以及如何將文檔格式化為不同的章節(jié),分節(jié)和段落,詳細(xì)的內(nèi)容參考overleaf官網(wǎng)。

概要

在科學(xué)文獻(xiàn)中,通常會在摘要部分里面簡述論文的主要內(nèi)容。在latex中有針對摘要部分設(shè)計(jì)的環(huán)境。摘要環(huán)境會將文本以特殊格式放在文檔頂部。

\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}

編寫文檔內(nèi)容時,如果需要開始新段落,則必須按兩次 “Enter” 鍵(以插入雙空行)。注意,Latex 會自動縮進(jìn)段落。要在不開始新段落的情況下開始新行,請插入一個 換行點(diǎn),可以通過 \\(在示例中為雙反斜杠)或 \newline 命令來完成。

注意不要使用多個 \\\newlines 來 “模擬” 段落之間具有較大間距,因?yàn)檫@可能會干擾 LATE?X 的排版算法。推薦的方法是繼續(xù)使用雙空行來創(chuàng)建沒有任何 \\ 的新段落,然后將 \usepackage{parskip} 添加到序言中。你可以在這篇有關(guān) 段落和換行 的文章中找到更多信息。

章節(jié)和分段

用來組織文檔的命令因文檔類型而異,最簡單的組織形式是分節(jié),它對所有文檔格式均可用。

\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{} 標(biāo)記一個新分節(jié)的開始,在大括號內(nèi)設(shè)置標(biāo)題。分節(jié)編號是自動的,也可以通過在命令中加一個 * 來禁用編號,像這樣:\section*{}。我們也可以有 \subsection{},甚至 \subsubsection{}。下面列出了基本的標(biāo)題深度級別:
請注意,\part\chapter 僅在 report 和 book 類中可用。有關(guān)文檔結(jié)構(gòu)的更完整討論,請參閱 這篇文章。
明天講解如何創(chuàng)建表格,對表格進(jìn)行標(biāo)題、標(biāo)簽和引用。

最后編輯于
?著作權(quán)歸作者所有,轉(zhuǎn)載或內(nèi)容合作請聯(lián)系作者
【社區(qū)內(nèi)容提示】社區(qū)部分內(nèi)容疑似由AI輔助生成,瀏覽時請結(jié)合常識與多方信息審慎甄別。
平臺聲明:文章內(nèi)容(如有圖片或視頻亦包括在內(nèi))由作者上傳并發(fā)布,文章內(nèi)容僅代表作者本人觀點(diǎn),簡書系信息發(fā)布平臺,僅提供信息存儲服務(wù)。
禁止轉(zhuǎn)載,如需轉(zhuǎn)載請通過簡信或評論聯(lián)系作者。

相關(guān)閱讀更多精彩內(nèi)容

友情鏈接更多精彩內(nèi)容