Learn LaTeX in ten minutes
Create a basic article template
\documentclass[11pt]{article}
\begin{document}
This is a simple example.
\end{document}
Adding a title, author and date
\title{My First \LaTeX{} Article}
\author{Siqing Mu}
\date{2019-07-26}
这时候我们发现刚添加的信息并没有显示出来,这是怎么回事? 现在我们使用 \maketitle 将上面的信息打印到文档中。
\maketitle
Sections
\section{First Section}
This is the first section.
\subsection{First Subsection}
This is the first subsection.
\subsection{Second Subsection}
This is the second subsection.
\subsection{Third Subsection}
This is the third subsection.
\section{Second Section}
This is the Second section.
\subsection{First Subsection}
This is the first subsection.
\subsection{Second Subsection}
This is the second subsection.
\subsection{Third Subsection}
This is the third subsection.
\section{Third Section}
This is the third section.
\subsection{First Subsection}
This is the first subsection.
\subsection{Second Subsection}
This is the second subsection.
\subsection{Third Subsection}
This is the third subsection.
\section*{Unnumbered Section}
This is the unnumbered section.
注意看最后一个,通过 \section*{} 中包含星号,使得节编号禁用。
Adding a Table of Contents
\tableofcontents
Create tables
\section{table}
\begin{center}
\begin{tabular}{|c|c|c|c|c|c|}
\hline
cell & cell & cell & cell & cell & cell \\
\hline
cell & cell & cell & cell & cell & cell \\
\hline
cell & cell & cell & cell & cell & cell\\
\hline
\end{tabular}
\end{center}
Support Chinese Typeset
\usepackage{ctex}
\usepackage{xeCJK}
Bold, italics and underlining
Some of the \textbf{greatest}
discoveries in \underline{science}
were made by \textbf{\textit{accident}}.
Create lists
unordered lists
\begin{itemize}
\item The individual entries are indicated with a black dot, a so-called bullet.
\item The text in the entries may be of any length.
\end{itemize}
ordered lists
\begin{enumerate}
\item This is the first entry in our list
\item The list numbers increase with each entry we add
\end{enumerate}
Adding images
指定包和图片路径
\usepackage{graphicx}
\graphicspath{ {Pictures/} }
引入图片及设置宽高并保证纵横比,或根据比例缩放
\includegraphics[width=6cm,height=3cm,keepaspectratio]{image.jpg}
\includegraphics[width=\textwidth]{image.jpg}
\includegraphics[scale=0.25]{image.jpg}
也可以用如下形式引入图片
\begin{figure}
\centering
\includegraphics[width=8cm]{Plot}
\caption{My amazing figure}
\end{figure}
Source Download
Reference
- https://www.overleaf.com/learn/latex/Learn_LaTeX_in_30_minutes
- http://www.hanlindong.com/2017/latex-on-mac/
- http://liuchengxu.org/blog-cn/posts/quick-latex/
- https://www.latex-tutorial.com/
- https://www.whoishostingthis.com/resources/tex-latex/
- https://www.kronto.org/thesis/index.html
- https://www.ctan.org/
- https://www.andy-roberts.net/writing/latex/
- http://www-h.eng.cam.ac.uk/help/tpl/textprocessing/
- https://www.andy-roberts.net/writing/latex/tables
Comments:
Email questions, comments, and corrections to hi@smartisan.dev.
Submissions may appear publicly on this website, unless requested otherwise in your email.