LaTex Introduction 基础介绍

这篇博客介绍了LaTex的基本用法,包括简单的例子、分段元素和包的使用。通过`commandname{option}`指令,创建文档类如article、book,并展示了如何隐藏页面编号。文章还讨论了LaTex的sectioning元素,用于组织文章的逻辑结构,并详细讲解了equation包的使用,以及如何通过amsmath包去除方程式编号。此外,还提到了LaTex包的功能,如支持图片、链接和引用管理。

LaTex: Intro

Simple Example

Instructions: “\commandname{option}”

\documentclass{article}
\begin{document}
  Hello World!
\end{document}

An environment is simply an area of your document where certain typesetting rules apply.

Documentclass: article, book…

We can remove it, by telling LaTeX to hide the page number for our first page. This can be done by adding the \pagenumbering{gobble} command and then changing it back to \pagenumbering{arabic} on the next page numbers. {roman} for roman numbers.

\documentclass{article}

\title{My first document}
\date{2013-09-01}
\author{John Doe}

\begin{document}
  \pagenumbering{gobble}
  \maketitle
  \newpage
  \pagenumbering{arabic}

  Hello World!
\end{document}

Sectioning elements

Structure article into logical units

\section{SectionName}
Content
\subsection{}
\subsubsection{}

\paragraph{}
\subparagraph{}

Package

Package: equation

\documentclass{article}

\begin{document}

\begin{equation}
  f(x) = x^2
\end{equation}

\end{document}

Including package

LaTex doesn’t allow removing numbering of equations, so we use the package amsmath.

\documentclass{article}

\usepackage{amsmath}

\begin{document}

\begin{equation*}
  f(x) = x^2
\end{equation*}

Packages add features such as support for pictures, links and bibliography

Reference

https://www.latex-tutorial.com/tutorials/

评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

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

抵扣说明:

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

余额充值