Latex常用编辑语法

2017-11-08  本文已影响87人  Crystalajj

数学字符

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}

未完待续...

上一篇 下一篇

猜你喜欢

热点阅读