Latex入门 (一) 提纲的编写

本文详细介绍了如何使用 LaTeX 编写文档,包括注释、声明、正文的创建,以及公式、图片的插入。通过实例展示了 LaTeX 命令和环境的用法,如 maketitle 显示标题,egin{equation}

摘要生成于 C知道 ,由 DeepSeek-R1 满血版支持, 前往体验 >

一 注释的编写

% the comment

二 声明

\docmmentclass[UTF8]{ctexart} 
% 申明文档的类型是中文,UTF8编码
\title{the title}
\author{of course myself}
\data{the date or \today}
% if you use the \today it will show the date of today
\bibliographystyle{plain}
% the type of the literature

三 正文

我们要去声明一个正文的环境,在这个环境内输出我们的正文,在这个docment中能够输出上面我们的title\maketitle

\begin{document}
% the main content
\end{document}

Latex命令:

 latex命令的宏格式为

\command
% with no parameter
% for example \maketitle it can show the title above
\command<arg1><arg2><argn>
% with n parameters
\command[opt]<arg1>...<argn> 
% with optional parameters

Latex环境:

 环境的一般格式为

\begin{<env name>}
\end{<env name>}

 有一些的环境需要在环境中去进行声明

\newtheorm{thm}{定理}
%定义了一个hm的环境

公式的书写:

 在普通的情况下可以使用$$就可以得到很简单的公式显示,不过这种公式只是内联公式or行内公式

\begin{equation}
    a(b+c) = ab + ac
\end{equation}

图片的导入:

 由于插图的功能不是由Latex的内核直接提供的,而是由graphicx宏包提供的,要使用graphic宏包的功能,需要在源文件的导言区使用\usepackage{graphicx}去引入宏包

 随后在我们的正文中就可以使用\includegraphics{}去导入我们的图片,the type of the file can be pdf, png, jpg, jpeg…

评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值