latex 常见用法与希腊字母

作者: Python高效编程 | 来源:发表于2019-01-28 21:37 被阅读13次

希腊字母

latex 中希腊字母要使用$$符号包围起来。

大写字母,在小写字母 latex 形式的基础之上,首字母大写。

小写字母 大写字母 latex(小写)
\alpha A \alpha(\Alpha)
\beta B \beta
\tau T \tau
\gamma Γ \gamma
\delta Δ \delta
\epsilon E \epsilon
\nu N \nu
\zeta Z \zeta
\omicron O \omicron
\pi Π \pi
\rho R \rho
\sigma Σ \sigma
\eta H \eta
\theta Θ \theta
\iota I \iota
\kappa K \kappa
\lambda Λ \lambda
\mu M \mu
\upsilon Υ \upsilon
\omega Ω \omega
\phi Φ \phi
\chi X \chi
\psi Ψ \psi

段落符号

\\用来表示换行

print('hello') \\
print('ok')

输出结果为:
print('hello') \\ print('ok')

~\\ 用于输出一段空行

\indent 首行缩进

\noindent 取消首行缩进

运算符

\le 或者 \leq 代表 \leq

\ge 或者 \geq 代表 \geq

\rightarrow 代表 \rightarrow

\infty 代表 \infty

\in 代表 \in

\text{I’m ok} 代表文本内容 :\text{I'm ok}, 否则文本之间没有空格: I'm ok

\subset 代表 \subset

\subseteq 代表 \subseteq​

\supset 代表 \supset​

\supseteq 代表 \supseteq

\times 代表 \times

\cdot 代表 \cdot​ (点乘)

\sqrt 代表 \sqrt{5}

分式

\frac{分子}{分母}用来表示分式:

如 \frac{1}{1 + a}:\frac{1}{1 + a}​

章节

\section{title} 大括号中 title 注明一级章节的标题

\subsection{title} 二级章节

\subsubsection{title} 三级章节

公式

启用 equation 环境,就不需要 $ 符号,公式末尾会标注序号。

\begin{equation}

\eta_i = \frac{1}{L_i + d_i + D_i}

\end{equation}

示例如下:
\begin{equation} \eta_i = \frac{1}{L_i + d_i + D_i} \end{equation}
带有大括号的公式块

  • 带序号

\begin{equation}

|x| = \left {

\begin{array}{cc}

-x & \text{if } x < 0, \\

0 & \text{if } x = 0, \\

x & \text{if } x > 0.

\end{array} \right .

\end{equation}

输出:
$$
\begin{equation}

|x| = \left {

\begin{array}{cc}

-x & \text{if } x < 0, \\

0 & \text{if } x = 0, \\

x & \text{if } x > 0.

\end{array} \right .

\end{equation}
$$

  • 不带序号

\[

|x| = \left {

\begin{array}{cc}

-x & \text{if } x < 0, \\

0 & \text{if } x = 0, \\

x, &\text{if } x > 0.

\end{array} \right .

\]

公式换行

\begin{equation}

\begin{aligned}

\nu_{\rho} = \nu_{0}(\epsilon A + \theta B + \gamma) \\

A = 1.32 - 0.82ln(\rho) \\

B = 3.0 - 0.76\rho

\end{aligned}

\end{equation}

插入表格

\begin{tabular}{|l|l|l|}

\hline

m&Number of ants \\

\hline

V&Node set \\

\hline

\end{tabular}

Python高效编程

其中:

格式 说明
l/c/r 表示单元格中的内容左对齐/居中/右对齐,单元格个数不得超过列格式 l,c,r 的总数,但可以少于这个总数
| 绘制竖线{|||}
\hline 绘制横线
\\ 换行符
& 表示单元格之间内容的分割

插入图片

\begin{figure}[htbp]

\small

\centering

\includegraphics[width=12cm]{1.png} \\

\caption{Simulation}

\end{figure}

在 tex 文件所在文件夹中新建 figures 文件夹,将待插入图片移动到 figures 文件夹中。1.png 即为待插入图片的名称。其中,\includegraphics[width = 12 cm]中[]中的参数决定了插入图片的大小。

相关文章

  • latex 常见用法与希腊字母

    希腊字母 latex 中希腊字母要使用$$符号包围起来。 大写字母,在小写字母 latex 形式的基础之上,首字母...

  • Latex

    1 希腊字母 字母LaTex字母LaTex\alpha\xi\beta\pi\gamma\rho\delta\si...

  • Latex数学公式、希腊字母命令对照表

    使用Latex表示希腊字母 希腊字母命令大写字母命令\alpha\beta\gamma\Gamma\delta\D...

  • Latex希腊字母与常用数学符号对照表

    希腊字母 小写大写latexαA\alphaβB\betaγΓ\gammaδΔ\deltaϵE\epsilonζZ...

  • 2020-02-06

    Latex常用公式整理 目录 常用 常用数学公式 常用希腊字母 说明:博客园中的Latex编辑是以

  • LaTex希腊字母 (Greek in LaTex)

    问题: LaTex 中只有数学模式内置了希腊字母字体,比如μ,只能在$\mu$模式下使用斜体,此外xeLaTex编...

  • latex 希腊字母表

  • latex中的希腊字母

    看着表格中的内容,我只能说请看这里吧 希腊字母,我们从小学开始认识它,但对它的读音我依旧靠蒙(说蒙真的感觉好羞愧啊...

  • Latex 常见错误

    You might wish to put this between a pair of '{}'指代不明确的部分...

  • latex写作相关

    写英文论文的时候,遇到了一些关于latex的问题,记录了一些有帮助的blog Latex较全面的用法[https:...

网友评论

    本文标题:latex 常见用法与希腊字母

    本文链接:https://www.haomeiwen.com/subject/epmzjqtx.html