latex学习
格式
首先\documentclass[UTF8]{ctexart}
….(宏包)
\begin{document}
……
\end{document}
行内要用$$括起来 行间要用$$$$括起来
公式对齐 不同的环境语法不同 eqnarray是&=&;align是&=
分段函数 cases环境 使用& 对齐 \\换行
矩阵 array begin后面加{ccc}表示格式 需要$$$$和自己加括号
要表示带省略号的矩阵 用pmatrix环境
表格 数字表格即矩阵加|,带汉字的要使用tabular环境。表格的横线为\hline
插图 \includegraphics[scale=] [width=][height=*]{.png}
或使用\figure环境
\begin{figure}[H]
\centering
% Requires \usepackage{graphicx}
\includegraphics[width=12pt]{.png}\
\caption{图1}
\end{figure}
正文部分
- \textbf{}加粗
- \textit{}斜体
- underline 下划线
章节
1 | |
图片
1 | |
列表
1 | |
公式
1 | |
表 格
1 | |
1 | |
latex学习
https://brtulien.github.io/2023/08/02/latex学习/