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

725

被折叠的 条评论
为什么被折叠?



