在overleaf上看了那個(gè)30minutes的教程拧烦,自己使用TexStudio軟件測(cè)了一遍
% 文章類型,article/book/report 不同的類型有細(xì)微差異
% 存在部分標(biāo)簽不能跨類型使用
\documentclass[12pt, a4paper]{article}
% 頁(yè)面布局脱篙,采用A4紙,a4paper/letterpaper/...
\usepackage[a4paper, total={6in, 8in}]{geometry}
% 編碼,默認(rèn)utf-8
\usepackage[utf8]{inputenc}
% 導(dǎo)入外部包,部分函數(shù)要導(dǎo)入相應(yīng)包才能使用
\usepackage{graphicx}
% 標(biāo)題
\title{My First Document Demo}
% 作者
\author{Tao \thanks{funded by the Overleaf team}}
% 日期
\date{Oct 2019}
%以上的信息統(tǒng)稱為preamble站故,序言
\begin{document}
% 設(shè)置了title,才能使用maketitle,表示將標(biāo)題信息打印
\maketitle
% 摘要
\begin{abstract}
This is a simple paragraph at the beginning of the
document. A brief introduction about the main subject.
\end{abstract}
% 正文
First document. This is a simple example, with no extra parameters or packages included.
%\chapter{First Chapter}霞篡,要文章類型是book,才能使用的標(biāo)簽
% 章節(jié)
\section{section one}
% 換行要留一個(gè)空格,或者在最后加上\\ ,否則不會(huì)換行
% 加粗端逼、斜體朗兵、下劃線標(biāo)簽
Some of the \textbf{greatest}
discoveries in \textit{science}
were made by \underline{accidents}
\section{section two}
Some of the greatest \emph{discoveries} in science were made by accidents
\textit{Some of the greatest \emph{discoveries} in science were made by accidents}
% 子章節(jié)標(biāo)簽
\subsection{First Subsection}
\textbf{Some of the greatest \emph{discoveries} in science were made by accident.}
There is a photo demo, as you can see in the figure \ref{fig:wlop-},also you can see in the page \pageref{fig:wlop-}.
Now, there are some order demo:
% 無(wú)序list標(biāo)簽
\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}
% 有序list標(biāo)簽
\begin{enumerate}
\item This is the first entry in our list
\item The list numbers increase with each entry we add
\end{enumerate}
% 數(shù)學(xué)符號(hào)使用$$
In physics, the mass-energy equivalence is stated
by the equation $E=mc^2$, discovered in 1905 by Albert Einstein.
The mass-energy equivalence is described by the famous equation
% 占用一行
\[ E=mc^2 \]
discovered in 1905 by Albert Einstein.
In natural units ($c = 1$), the formula expresses the identity
% 占用1行并顯示等式序號(hào)
\begin{equation}
E=m
\end{equation}
\begin{equation}
E=mc^2
\end{equation}
% 下標(biāo)和上標(biāo)
Subscripts in math mode are written as $a_b$ and superscripts are written as $a^b$. These can be combined an nested to write expressions such as
\[ T^{i_1 i_2 \dots i_p}_{j_1 j_2 \dots j_q} = T(x^{i_1},\dots,x^{i_p},e_{j_1},\dots,e_{j_q}) \]
We write integrals using $\int$ and fractions using $\frac{a}$. Limits are placed on integrals using superscripts and subscripts:
\[ \int_0^1 \frac{1}{e^x} = \frac{e-1}{e} \]
% 插入圖片顶滩,以及給圖片加上說(shuō)明信息余掖,標(biāo)簽
\begin{figure}
\centering
\includegraphics[width=0.7\linewidth]{C:/Users/Penger/Pictures/WLOP-賽麗亞}
\caption{this is a \textbf{caption} demo}
\label{fig:wlop-}
\end{figure}
% 希臘字母大小寫表示
Lower case Greek letters are written as $\omega$ $\delta$ etc. while upper case Greek letters are written as $\Omega$ $\Delta$.
Mathematical operators are prefixed with a backslash as $\sin(\beta)$, $\cos(\alpha)$, $\log(x)$ etc.
% 表格表示1
\begin{center}
\begin{tabular}{ c r l }
cell1 & cell2 & cell3 \\
cell4 & cell5 & cell6 \\
cell7 & cell8 & cell9
\end{tabular}
\end{center}
%表格表示2
\begin{center}
\begin{tabular}{ |c| r| l| }
\hline
cell1 & cell2 & cell3 \\
cell4 & cell5 & cell6 \\
\hline
cell7 & cell8 & cell9\\
\hline
\end{tabular}
\end{center}
%表格表示3
\begin{center}
\begin{tabular}{||c c c c||}
\hline
Col1 & Col2 & Col2 & Col3 \\ [0.5ex]
\hline\hline
1 & 6 & 87837 & 787 \\
\hline
2 & 7 & 78 & 5415 \\
\hline
3 & 545 & 778 & 7507 \\
\hline
4 & 545 & 18744 & 7560 \\
\hline
5 & 88 & 788 & 6344 \\ [1ex]
\hline
\end{tabular}
\end{center}
Table \ref{table:data} is an example of referenced \LaTeX{} elements.
% 表格表示4
\begin{table}[h!]
\centering
\begin{tabular}{||c c c c||}
\hline
Col1 & Col2 & Col2 & Col3 \\ [0.5ex]
\hline\hline
1 & 6 & 87837 & 787 \\
2 & 7 & 78 & 5415 \\
3 & 545 & 778 & 7507 \\
4 & 545 & 18744 & 7560 \\
5 & 88 & 788 & 6344 \\ [1ex]
\hline
\end{tabular}
\caption{Table to test captions and labels}
\label{table:data}
\end{table}
\end{document}