typora字体与字体颜色

字体

基本格式:\字体信息{内容}

罗马体\rm

\rm{罗马体abc}>>\(\rm{罗马体abc}\)

意大利体\it

\it{意大利体}>>\(\it{意大利体}\)

等线体

\sf{等线体abc}>>\(\sf{等线体abc}\)

打字机体\tt

\tt{打字机体} >>$\tt{打字机体} $

花体\cal

\cal{花体abc}>>\(\cal{花体abc}\)

数学斜体

\mit{数学斜体abc}>>\(\mit{数学斜体abc}\)

手写体\scr

\scr{手写体abc}>>\(\scr{手写体abc}\)

颜色

color{颜色}{文字}异或是color{#RGB}{文字}

silver

\(\color{silver}{silversilver}\)

maroon

\(\color{maroon}{maroonmaroon}\)

yellow

\(\color{yellow}{yellowyellow}\)

olive

\(\color{olive}{oliveolive}\)

teal

\(\color{teal}{tealteal}\)

blue

\(\color{blue}{blueblue}\)

purple

\(\color{purple}{purplepurple}\)>>\color{purple}{purplepurple}

grey

\(\color{grey}{greygrey}\)>>\color{grey}{greygrey}

white

\(\color{white}{whitewhite}\)>>\color{white}{whitewhite}

red

\(\color{red}{redred}\)

lime

\(\color{lime}{limelime}\)

green

\(\color{green}{greengreen}\)

auqa

\(\color{auqa}{auqaauqa}\)

\(\color{navy}{navynavy}\)

fuchsia

\(\color{fuchsia}{fuchsiafuchsia}\)

black

\(\color{black}{blackblack}\)

数学标识

左下标

\sideset{a}{b}a和b分别是左右标
a和b都可以用_或者^来表示是上标还是下标
\sideset{_1}{^2}A
显示效果如下:

\[\sideset{_1}{^2}A \]

左上标

\sideset{a}{b}a和b分别是左右标
a和b都可以用_或者^来表示是上标还是下标
\sideset{1}{2}A
显示效果如下:

\[\sideset{^1}{^2}A \]

头上带点

\dot a + \dot b

\[\dot a + \dot b \]

矢量-头上带箭头

\vec{矢量内容}

\vec{a}+\vec{b}

\[\vec{a}+\vec{b} \]

拔、均值

\overline{内容}

\overline{x}

\[\overline{x} \]

省略号

1 + 2 + \dots + 100

\[1 + 2 + \dots + 100 \]

空格

用\ 来表示

a\ b

\[a\ b \]

文本

基本格式是 \text {内容}

f(n)= \begin{cases}
n/2, & \text{if $n$ is even} \\
3n+1, & \text{if $n$ is odd} \\
\end{cases}

\[f(n)= \begin{cases} n/2, & \text{if $n$ is even} \\ 3n+1, & \text{if $n$ is odd} \\ \end{cases} \]

注意在text里面,普通标记都不再有效,比如

\text{\sqrt{2x+2}}

\[\text{\sqrt{2x+2}} \]

\text{$\sqrt{2x+2}$}

\[\text{$\sqrt{2x+2}$} \]

参考:


大神一号

大神二号

大神三号

大神四号

大神五号

大神六号

大神七号

大神八号

大神九号

posted @ 2020-08-02 22:53  HuangB2ydjm  阅读(2104)  评论(0编辑  收藏  举报