当前位置: 首页 > news >正文

LaTeX基础使用

LaTeX文档基本格式

• 正确的文档类别声明
• 标题、作者和日期
• 章节和小节
• 基本段落格式
• 简单的项目符号列表

\documentclass[UTF8]{ctexart}  % 中文支持(若只需要英文,可换成 article;也可用其他文档类如 report/book 等)
\usepackage{amsmath} % 数学公式支持(按需加载宏包)
\usepackage{enumerate} % 列表环境增强(按需)
\usepackage{graphicx} % 用于包含图片的宏包
\usepackage{amsfonts}  % 或者 amssymb,两者选其一即可(黑板字体)
\usepackage{esdiff} % 偏导数
\usepackage{physics} % 提供物理数学等常用命令

要调用的包,类似于头文件

% 自定义命令
\newcommand{\bbR}{\mathbb{R}}
%\newcommand{\expectation}[1]{\mathbb{E}[#1]}
\newcommand{\expectation}[1]{\mathbb{E}\left[#1\right]}

自定义文件,最后一部分要用到作用相当于给长命令其一个别名。

% 标题、作者、日期
\title{Research on Image Classification Algorithms Based on Deep Learning}
\author{盛家明(sheng jiaming)}
\date{\today}

文档部分,给出标题作者日期

\begin{document}\maketitle % 生成标题、作者、日期% section 和 subsection 示例\section{Section 2}\subsection{Introduction}In the era of rapid development of big data and artificial intelligence, deep learning technology has achieved breakthrough progress in many fields such as computer vision and natural language processing. As a fundamental and critical task in computer vision, image classification aims to categorize input images into predefined classes, holding extensive application prospects in scenarios like security surveillance, medical diagnosis, and autonomous driving.\parThis section will briefly review the limitations of traditional image classification methods and introduce the advantages and challenges of deep learning in this field.\par

渲染效果:
在这里插入图片描述
无序列表

	\begin{itemize}\item \textbf{Automatic feature learning}:CNNs can automatically learn hierarchical feature representations from raw pixels without the need for manually designing complex feature extraction pipelines.\item \textbf{End-to-end training}:The entire classification system can directly map from input images to output category labels, avoiding the error propagation between modules in traditional pipelines.\item \textbf{Large-scale data adaptation capability}:With the public release of large-scale annotated datasets such as ImageNet, deep networks can be adequately trained on large samples, thereby learning more discriminative features.\end{itemize}

渲染效果
在这里插入图片描述

数学公式

数学公式的渲染可以参考工具书上的渲染样例进行修改。

对齐的公式

	\begin{align*}f(x) &= x^2 + 2x + 1 \\g(x) &= \int f(x) \, dx = \frac{1}{3}x^3 + x^2 + x + C \\\lim_{x \to \infty} \frac{f(x)}{g(x)} &= 0\end{align*}

渲染结果:
在这里插入图片描述

图表

	\begin{center}  % 让表格居中\begin{tabular}{|c|c|c|}  % {|c|c|c|} 表示三列,居中对齐,列与列之间用竖线分隔\hline  % 表格的横线Subject & Score & Grade \\  % 表头行\hlineMath    & 95    & A     \\  % 第一行数据\hlineScience & 87    & B+    \\  % 第二行数据\hlineHistory & 92    & A-    \\  % 第三行数据\hline\end{tabular}\end{center}

渲染结果
在这里插入图片描述

图片

案例

	\begin{figure}[h!] % [h!]表示尽量将图片放在当前位置(here)\centering % 图片居中\includegraphics[width=0.5\textwidth]{"C:/Users/comic/Pictures/Snipaste_2025-09-14_21-54-15.png"} % 插入图片,这里使用的是LaTeX自带的示例图片,你需要替换为自己的图片路径和文件名\caption{这是一个示例图片} % 图片标题\label{fig:example} % 图片的标签,用于在正文中引用\end{figure}

可以自行更换图片路径,修改插入图片

自定义命令

	% 使用自定义命令黑板粗体实数集: $\bbR$偏导数: $\pdv{f}{x}$期望值: $\expectation{X}$

由于在头文件位置预先设置了自定义命令,这里只是简单的调用。
渲染结果:
在这里插入图片描述

http://www.dtcms.com/a/560593.html

相关文章:

  • 【Linux】基础指令(4):基础指令热键shell运行原理
  • [Dify 实战] 搭建企业内网知识库系统:Dify 自托管部署全攻略
  • LVS 负载
  • NFS服务器的搭建
  • 【高并发服务器】十三、TcpServer服务器管理模块
  • 15.套接字和标准I/O
  • Linux TcpSocket编程
  • 怎么可以在百度发布信息seo won jin
  • TensorFlow深度学习实战——自定义图神经网络层
  • 车陂手机网站开发学校网站群建设必要
  • 【Elasticsearch入门到落地】18、Elasticsearch实战:Java API详解高亮、排序与分页
  • Java Web学习 第1篇前端基石HTML 入门与核心概念解析
  • Kafka4.1.0 队列模式尝鲜
  • transformer记录一(输入步骤讲解)
  • 做生存分析的网站有哪些网站背景怎么弄
  • Tomcat 新手避坑指南:环境配置 + 启动问题 + 乱码解决全流程
  • 整理、分类、总结与介绍Vue前端开发日常常用的第三方库/框架/插件-收藏
  • 第九天~在Arxml中定义一对XCP-PDU用于测量标定
  • Tomcat 配置问题速查表
  • 第九天~AUTOSAR网络管理NM-PDU详解:在Arxml中定义唤醒节点的NM-PDU
  • 在centos 7上配置FIP服务器的详细教程!!!
  • 做网站三网多少钱wordpress 贴吧主题
  • 无锡网站建设营销型诸城公司做网站
  • 【Docker】容器网络探索(二):实战理解 host 网络
  • 《数据结构风云》:二叉树遍历的底层思维>递归与迭代的双重视角
  • Java EE初阶 --多线程2
  • 论文精读(七):结合大语言模型和领域知识库的证券规则规约方法
  • Linux shell sed 命令基础
  • 选 Redis Stream 还是传统 MQ?队列选型全攻略(适用场景、优缺点与实践建议)
  • 【JVM】详解 Java内存模型(JMM)