其他分享
首页 > 其他分享> > 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}

标签:LaTex,commands,语法,part,subsection,report,document,subparagraph
来源: https://www.cnblogs.com/jyyofficial/p/15417474.html