Latex常用编辑语法

数学字符

Note: \qquad 为tab空格,在$ $之间敲入数学字符,若在数学公式编辑环境下可以省略$符。

image.png

image.png
image.png
image.png
image.png
image.png
image.png
image.png
image.png
image.png
image.png

更多符号见这里

数学公式

  • 数学公式居中编辑
\begin{eqnarray}
input your equation
\end{eqnarray}
  • 数学公式等号对齐(带公式编号)
\begin{eqnarray}
XXXX &=& YYYYY //
(可有可无) &=& ZZZZ
\end{eqnarray}

矩阵

$\left(
\begin{array}{cc}   #这里cc是指个数
input your contents & input your contents \\
input your contents & input your contents \\
\end{array}
\right)$

表格

  • 样式一
\begin{table}
\centering
\begin{tabular}{l|r}
Item & Quantity \\\hline
Widgets & 42 \\
Gadgets & 13
\end{tabular}
\caption{\label{tab:widgets}An example table.}
\end{table}
表格示例
  • 样式二
\begin{table}[!hbp]
\centering
\begin{tabular}{ccccccc}
\hline
original score & 1 & 2 & 3 & 4 & 5 & 6 \\
\hline
modified score & -4 & -2 & -1 & 1 & 2 & 4 \\
\hline
\end{tabular}
\caption{transformation of rating score}
\end{table}
表格示例

图片

\begin{figure}
\centering
\includegraphics[width=0.3\textwidth]{frog.jpg}
\caption{\label{fig:frog}This frog was uploaded via the project menu.}
\end{figure}
图片示例

排版

  • 圆圈分段提示符
\begin{itemize}
\item input your contents
\item input your contents
\end{itemize}
  • 带数字的分段提示符
\begin{enumerate}
\item input your contents
\item input your contents
\end{itemize}

未完待续...

最后编辑于
©著作权归作者所有,转载或内容合作请联系作者
平台声明:文章内容(如有图片或视频亦包括在内)由作者上传并发布,文章内容仅代表作者本人观点,简书系信息发布平台,仅提供信息存储服务。

推荐阅读更多精彩内容