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}

作者:AuroraKelsey

出处:https://www.cnblogs.com/AuroraKelsey/p/18540718

版权:本作品采用「署名-非商业性使用-相同方式共享 4.0 国际」许可协议进行许可。

posted @   AuroraKelsey  阅读(5)  评论(0编辑  收藏  举报
相关博文:
阅读排行:
· 震惊!C++程序真的从main开始吗?99%的程序员都答错了
· 【硬核科普】Trae如何「偷看」你的代码?零基础破解AI编程运行原理
· 单元测试从入门到精通
· 上周热点回顾(3.3-3.9)
· winform 绘制太阳,地球,月球 运作规律
more_horiz
keyboard_arrow_up dark_mode palette
选择主题
menu
点击右上角即可分享
微信分享提示