LeTex笔记


字体

希腊字母

a. 小写 (Lower Case)

语法效果语法效果语法效果语法效果
\alpha α \alpha α\beta β \beta β\gamma γ \gamma γ\delta δ \delta δ
\epsilon ϵ \epsilon ϵ\zeta ζ \zeta ζ\eta η \eta η\theta θ \theta θ
\lambda λ \lambda λ\mu μ \mu μ\nu ν \nu ν\xi ξ \xi ξ
\pi π \pi π\rho ρ \rho ρ\sigma σ \sigma σ\tau τ \tau τ
\phi ϕ \phi ϕ\chi χ \chi χ\psi ψ \psi ψ\omega ω \omega ω

b. 大写 (Upper Case)

语法效果语法效果语法效果语法效果
\Alpha A \Alpha A\Beta B \Beta B\Gamma Γ \Gamma Γ\Delta Δ \Delta Δ
\Epsilon E \Epsilon E\Zeta Z \Zeta Z\Eta H \Eta H\Theta Θ \Theta Θ
\Lambda Λ \Lambda Λ\Mu M \Mu M\Nu N \Nu N\Xi Ξ \Xi Ξ
\Pi Π \Pi Π\Rho P \Rho P\Sigma Σ \Sigma Σ\Tau T \Tau T
\Phi Φ \Phi Φ\Chi X \Chi X\Psi Ψ \Psi Ψ\Omega Ω \Omega Ω

字体变形/色

作用语法示例
未变形字体ABCabc123 A B C a b c 123 ABCabc123 ABCabc123
斜粗体\boldsymbol{} A B C a b c 123 \boldsymbol{ABCabc123} ABCabc123
黑板粗体\mathbb{} A B C \mathbb{ABC} ABC
正粗体\mathbf{} A B C a b c 123 \mathbf{ABCabc123} ABCabc123
斜体数字\mathit{} A B C a b c 123 \mathit{ABCabc123} ABCabc123
罗马体\mathrm{} or \mbox or \operatorname{} A B C a b c 123 \mathrm{ABCabc123} ABCabc123
手写体\mathcal{} A B C 123 \mathcal{ABC123} ABC123
变色{\color{red} Content} C o n t e n t {\color{red} Content} Content

函数 (functions)

函数定义


函数定义符号

语法效果语法效果语法效果
\max max ⁡ L \max L maxL\min min ⁡ L \min L minL\inf inf ⁡ L \inf L infL
\exp exp ⁡ L \exp L expL\sup sup ⁡ L \sup L supL\in ∈ \in
\lg lg ⁡ L \lg L lgL\log x log ⁡ x \log x logx\log_a x log ⁡ a x \log_a x logax
\dim dim ⁡ L \dim L dimL\lim_{t \to n}T lim ⁡ t → n T \lim_{t\to n}T limtnT\arg x arg ⁡ x \arg x argx
\deg x deg ⁡ x \deg x degx\det x det ⁡ x \det x detx\hom hom ⁡ \hom hom

字母上标

语法效果语法效果语法效果
\tilde x ~ \tilde {x} x~\bar x ˉ \bar{x} xˉ\hat x ^ \hat{x} x^
\check x ˇ \check{x} xˇ\dot x ˙ \dot{x} x˙\ddot x ¨ \ddot {x} x¨
\overline x ‾ \overline{x} x\acute x ˊ \acute{x} xˊ\grave x ˋ \grave{x} xˋ

三角函数

语法效果语法效果语法效果
\sin sin ⁡ \sin sin\cos cos ⁡ \cos cos\tan tan ⁡ \tan tan
\arcsin arcsin ⁡ \arcsin arcsin\arccos arccos ⁡ \arccos arccos\arctan arctan ⁡ \arctan arctan

表格

子表格(subtable)

Condition: \usepackage{subfigure}
format

	\begin{table}
		\caption{$Table\_Name$}
		\centering
		
		\subtable[sub-name1]
		{
			\begin{tabular}{||c||c|c||}
				\hline \hline
				a & b & c \\
				\hline \hline	 	
			\end{tabular} 
			\label{Table1}
		}
		
		\subtable[sub-name2]
		{        
			\begin{tabular}{||c||c|c||}
				\hline \hline		
				A & B & C \\
				\hline \hline
%				\multicolumn{2}{p{251pt}}{m $=$ meter.}
			\end{tabular}
			\label{Table2}
		}
	\end{table}

单栏表格

Format

	\begin{table*}
	
	\end{table*}

图片


单栏图片

Format

	\begin{figure*}
	
	\end{figure*}

并列图片

Format

	\begin{figure}[tp]
		%	\vspace{-0.2cm}
		\centering
		\begin{minipage}[t]{0.49 \linewidth}
			\centering
			\includegraphics[width=4.35cm]{err._vs._ratio_2.png}
			\caption{x_name vs. y_name.}
			\label{label1}
		\end{minipage}
		%		\vspace{-0.2cm}
		\begin{minipage}[t]{0.49 \linewidth}
			\centering
			\includegraphics[width=4.35cm]{xxx.png}
			\caption{x_name vs. y_name.}
			\label{label2}
		\end{minipage}
	\end{figure} 

算法

Condition: \usepackage[ruled]{algorithm2e}

Format

	\begin{algorithm}[h]
		\caption{ Name Algorithm} \label{Algorithm_xxx}
		\LinesNumbered
		\KwIn{Inputting Parameters.} 	
		\KwOut{Outputting Parameters.}
		
		\uIf{condition1}
		{context;}	
		\uElseIf{condition2}
		{context;}	
		\Else
		{context}
		
		\While{condition}
		{context}
		
		$k \gets 1$ ;\\
		
		\Repeat{$k==\mathcal{N}_{max}$ or $\Delta \mathbf{x}_t^{k+1} \leq \delta \ $ }
		{
			$k \gets k + 1 $ ; \\
		}
		
		\Return Outputting Parameters
		
	\end{algorithm}

评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值