1. 程式人生 > 其它 >LaTex 語法

LaTex 語法

在VScode中閱讀體驗更佳~ \documentstyle{article}%document{}規定文件型別,包括article,letter,report,book四種類型 %\usepackage[options]{package}引入的巨集包 \title{My first Latex document} \author{Yuying Jiang} \date{17/10/2021} \begin{document} \maketitle No more Latex please 對於會議和期刊的文章,使用的類別通常是article和letter類;對於學位論文,用 report或是book型別。但是建議使用report類。此外使用簡報時,會用到slide,不過 slide不是標準的文件類,而是一個environment。 Available document structure commands:
%Book: \part{}, \chapter{}, \section{}, \subsection{}, \subsubsection{}, \paragraph{}, \subparagraph{}.
%Report: \part{}, \chapter{}, \section{}, \subsection{}, \subsubsection{}, \paragraph{}, \subparagraph{}.
%Article: \part{}, \section{}, \subsection{}, \subsubsection{}, \paragraph{}, \subparagraph{}.
%Letter: A letter does not know the same structuring commands as other formats, but more specific commands like \signature{}, \address{}, \opening{} and \closing{}.
Except \part{}, all structuring commands build a hierarchy. They have a standard formating and numeration.
%簡單的規則: (1)空格:Latex中不起作用 (2)換行:“\\”或者“\newline” (3)分段:“\par”或者空出一行 (4)換頁:“\newpage”或者“\clearpage” %(5)特殊控制字元如:¥#&{}^~則在前方加轉義“\” 西文字元轉換表: rm 羅馬字型 \it 義大利字型 \bf 黑體 \sl 傾斜體 \sf 等線體 \sc 小體大寫字母 \tt 打字機字型 \mit 數學斜體
常見數學公式排版命令: (1)行中數學公式狀態命令: \begin{math} x²+y²=z² \end{math} (2)獨立數學公式狀態命令: \begin{displaymath} \cos²\alpha + \sin²\beta =1 \end{displaymath} \end{document}