LaTeX学习
https://www.latexstudio.net/LearnLaTeX/lesson/01.html
层级
LaTeX 可以将文档分成好几个层级:
\chapter (启用它需要 \documentclass{book} 或者 \documentclass{report})
\section
\subsection
\subsubsection
有序列表和无序列表
enumerate有序
itemize无序
\begin{enumerate}
\item First thing
\item Second thing
\begin{itemize}
\item A sub-thing
\item Another sub-thing
\end{itemize}
\item Third thing
\end{enumerate}
图表
\begin{figure}[H]
\centering
\includegraphics[width=1\textwidth]{myimage}
\caption{Here is my image}
\label{image-myimage}
\end{figure}
H强制这里
t 表示放在在页面顶端;b 表示放在在页面的底端;p 表示另起一页放置图表。你也可以添加一个 ! 参数来强制放在参数指定的位置
\centering 将图片放置在页面的中央。如果没有该命令会默认左对齐
公式
数学公式对齐
\begin{eqnarray}
a & = & b + c \\
& = & y - z
\end{eqnarray}
带标号的
\begin{lstlisting}
<Huawei>system-view
[Huawei]sysname lkxR1
\end{lstlisting}
不带标号
\begin{verbatim}
<Huawei>system-view
[Huawei]sysname lkxR1
\end{verbatim}

浙公网安备 33010602011771号