Latex语法
中文编码
| |
| \usepackage{xeCJK} |
| \xeCJKsetup{CJKmath=true} |
引用
| |
| \usepackage{hyperref} |
| \hypersetup{hypertex=true, |
| colorlinks=true, |
| linkcolor=red, |
| anchorcolor=red, |
| citecolor=red} |
| |
| \ref{<tab:tab-name>} |
图片
| |
| \usepackage{graphicx} |
| \usepackage{subfigure} |
| \usepackage{float} |
| |
| |
| \begin{figure}[H] |
| \centering |
| \includegraphics[width=6cm]{images/xxx.jpg} |
| \caption{some description.} |
| \label{fig:xxx} |
| \end{figure} |
| |
| |
| \begin{figure}[H] |
| \subfigure[subfig1]{ |
| \includegraphics[width=6cm]{images/preparation1.png} |
| } |
| \subfigure[subfig2]{ |
| \includegraphics[width=6cm]{images/preparation2.png} |
| } |
| \caption{Randomly generated 3D points and the true convex hull are labeled with different styles of dots.} |
| \end{figure} |
width=xxxcm
width=0.8\linewidth
代码块
| \usepackage{listing} |
| \usepackage{algorithm} |
| \usepackage{minted} |
| |
| \begin{listing}[htb] |
| \caption{Load OBJ file} |
| \label{code:1} |
| \begin{minted}{python3} |
| def load_obj(obj_path): |
| """Load .obj file""" |
| vertices = [] |
| faces = [] |
| with open(obj_path, "r") as f: |
| lines = f.readlines() |
| for line in lines: |
| line_split = line.strip().split(' ') |
| if line_split[0] in ['v', 'f']: |
| if line_split[0] == 'v': |
| vertices.append([float(v) for v in line_split[1:]]) |
| elif line_split[0] == 'f': |
| faces.append([int(f) - 1 for f in line_split[1:]]) |
| return vertices, faces |
| \end{minted} |
| \end{listing} |
无序列表
| \begin{itemize} |
| \item xxxx |
| \item xxxx |
| \end{itemize} |
有序列表
| \begin{enumerate} |
| \item xxxx |
| \item xxxx |
| \end{enumerate} |
附录
| \begin{document} |
| |
| \appendix |
| \section{Appendix A} |
| \label{app:app-A} # 引用 |
| 附录A中的内容 |
| \section{Appendix B} |
| 附录B中的内容 |
| |
| \end{document} |
【推荐】国内首个AI IDE,深度理解中文开发场景,立即下载体验Trae
【推荐】编程新体验,更懂你的AI,立即体验豆包MarsCode编程助手
【推荐】抖音旗下AI助手豆包,你的智能百科全书,全免费不限次数
【推荐】轻量又高性能的 SSH 工具 IShell:AI 加持,快人一步
· winform 绘制太阳,地球,月球 运作规律
· 震惊!C++程序真的从main开始吗?99%的程序员都答错了
· AI与.NET技术实操系列(五):向量存储与相似性搜索在 .NET 中的实现
· 【硬核科普】Trae如何「偷看」你的代码?零基础破解AI编程运行原理
· 超详细:普通电脑也行Windows部署deepseek R1训练数据并当服务器共享给他人