欢迎您访问程序员文章站本站旨在为大家提供分享程序员计算机编程知识!
您现在的位置是: 首页  >  互联网

Markdown整理备忘(二)-- 字母字体及颜色

程序员文章站 2024-01-10 15:07:55
常见字体数字字体标记字体名词LaTex代码例子效果rm或mathrm罗马体$\rm{0123456789}$或$\mathrm{0123456789}$0123456789\rm{0123456789}0123456789bf或mathbf黑体$\bf{0123456789}$或$\mathbf{0123456790}$0123456789\bf{......

希腊字母

序号 中文名称 大写 LaTex代码 小写 LaTex代码 异体 LaTex代码
1 阿尔法 A \Alpha A $\Alpha$ α \alpha α $\alpha$ - -
2 贝塔 B \Beta B $\Beta$ β \beta β $\beta$ - -
3 伽马 Γ \Gamma Γ $\Gamma$ γ \gamma γ $\gamma$ - -
4 德尔塔 Δ \Delta Δ $\Delta$ δ \delta δ $\delta$ - -
5 伊普西隆 E \Epsilon E $\Epsilon$ ϵ \epsilon ϵ $\epsilon$ ε \varepsilon ε $\varepsilon$
6 泽塔 Z \Zeta Z $\Zeta$ ζ \zeta ζ $\zeta$ - -
7 伊塔 H \Eta H $\Eta$ η \eta η $\eta$ - -
8 西塔 Θ \Theta Θ $\Theta$ θ \theta θ $\theta$ ϑ \vartheta ϑ $\vartheta$
9 约塔 I \Iota I $\Iota$ ι \iota ι $\iota$ - -
10 卡帕 K \Kappa K $\Kappa$ κ \kappa κ $\kappa$ ϰ \varkappa ϰ $\varkappa$
11 兰姆达 Λ \Lambda Λ $\Lambda$ λ \lambda λ $\lambda$ - -
12 M \Mu M $\Mu$ μ \mu μ $\mu$ - -
13 N \Nu N $\Nu$ ν \nu ν $\nu$ - -
14 克西 Ξ \Xi Ξ $\Xi$ ξ \xi ξ $xi$ - -
15 欧米克隆 O \Omicron O $\Omicron$ ο \omicron ο $\omicron$ - -
16 Π \Pi Π $\Pi$ π \pi π $pi$ ϖ \varpi ϖ $\varpi$
17 R \Rho R $\Rho$ ρ \rho ρ $\rho$ ϱ \varrho ϱ $\varrho$
18 西格玛 Σ \Sigma Σ $\Sigma$ σ \sigma σ $\sigma$ ς \varsigma ς $\varsigma$
19 T \Tau T $\Tau$ τ \tau τ $\tau$ - -
20 宇普西隆 Υ \Upsilon Υ $\Upsilon$ υ \upsilon υ $\upsilon$ - -
21 弗爱 Φ \Phi Φ $\Phi$ ϕ \phi ϕ $\phi$ φ \varphi φ $\varphi$
22 X \Chi X $\Chi$ χ \chi χ $\chi$ - -
23 普赛 Ψ \Psi Ψ $\Psi$ ψ \psi ψ $\psi$ - -
24 欧米伽 Ω \Omega Ω $\Omega$ ω \omega ω $\omega$ - -

希伯来字母

LaTex代码 希伯来字母
$\aleph$ ℵ \aleph
$\beth$ ℶ \beth
$\gimel$ ℷ \gimel
$\daleth$ ℸ \daleth

只支持这四个希伯来字母

常见字体

数字

字体标记 字体名词 LaTex代码 例子效果
rm或mathrm 罗马体 $\rm{0123456789}$$\mathrm{0123456789}$ 0123456789 \rm{0123456789} 0123456789
bf或mathbf 黑体 $\bf{0123456789}$$\mathbf{0123456790}$ 0123456789 \bf{0123456789} 0123456789
boldsymbol 粗体 $\boldsymbol{0123456789}$ 0123456789 \boldsymbol{0123456789} 0123456789
Bbb或mathbb 黑板粗体字 $\Bbb{0123456789}$$\mathbb{0123456789}$ 0123456789 \Bbb{0123456789} 0123456789
it或mathit 意大利体 $\it{0123456789}$$\mathit{0123456789}$ 0123456789 \it{0123456789} 0123456789
frak或mathfrak Fraktur字(一种德国字体) $\frak{0123456789}$$\mathfrak{0123456789}$ 0123456789 \frak{0123456789} 0123456789
mathcal 花体字 $\mathcal{0123456789}$ 0123456789 \mathcal{0123456789} 0123456789
sf 等线体 $\sf{0123456789}$ 0123456789 \sf{0123456789} 0123456789
tt 打字机字体 $\tt{0123456789}$ 0123456789 \tt{0123456789} 0123456789

小写英文字母

字体标记 字体名词 LaTex代码 例子效果
rm
或mathrm
罗马体 $\rm{abcdefghijklmnopqrstuvwxyz}$
$\mathrm{abcdefghijklmnopqrstuvwxyz}$
a b c d e f g h i j k l m n o p q r s t u v w x y z \rm{abcdefghijklmnopqrstuvwxyz} abcdefghijklmnopqrstuvwxyz
bf
或mathbf
黑体 $\bf{abcdefghijklmnopqrstuvwxyz}$
$\mathbf{abcdefghijklmnopqrstuvwxyz}$
a b c d e f g h i j k l m n o p q r s t u v w x y z \bf{abcdefghijklmnopqrstuvwxyz} abcdefghijklmnopqrstuvwxyz
boldsymbol 粗体 $\boldsymbol{abcdefghijklmnopqrstuvwxyz}$ a b c d e f g h i j k l m n o p q r s t u v w x y z \boldsymbol{abcdefghijklmnopqrstuvwxyz} abcdefghijklmnopqrstuvwxyz
Bbb
或mathbb
黑板粗体字 $\Bbb{abcdefghijklmnopqrstuvwxyz}$
$\mathbb{abcdefghijklmnopqrstuvwxyz}$
a b c d e f g h i j k l m n o p q r s t u v w x y z \mathbb{abcdefghijklmnopqrstuvwxyz} abcdefghijklmnopqrstuvwxyz
it
或mathit
意大利体 $\it{abcdefghijklmnopqrstuvwxyz}$
$\mathit{abcdefghijklmnopqrstuvwxyz}$
a b c d e f g h i j k l m n o p q r s t u v w x y z \it{abcdefghijklmnopqrstuvwxyz} abcdefghijklmnopqrstuvwxyz
frak
或mathfrak
Fraktur字(一种德国字体) $\frak{abcdefghijklmnopqrstuvwxyz}$
$\mathfrak{abcdefghijklmnopqrstuvwxyz}$
a b c d e f g h i j k l m n o p q r s t u v w x y z \frak{abcdefghijklmnopqrstuvwxyz} abcdefghijklmnopqrstuvwxyz
mathcal 花体字 $\mathcal{abcdefghijklmnopqrstuvwxyz}$ a b c d e f g h i j k l m n o p q r s t u v w x y z \mathcal{abcdefghijklmnopqrstuvwxyz} abcdefghijklmnopqrstuvwxyz
sf 等线体 $\sf{abcdefghijklmnopqrstuvwxyz}$ a b c d e f g h i j k l m n o p q r s t u v w x y z \sf{abcdefghijklmnopqrstuvwxyz} abcdefghijklmnopqrstuvwxyz
tt 打字机字体 $\tt{abcdefghijklmnopqrstuvwxyz}$ a b c d e f g h i j k l m n o p q r s t u v w x y z \tt{abcdefghijklmnopqrstuvwxyz} abcdefghijklmnopqrstuvwxyz

大写英文字母

字体标记 字体名词 LaTex代码 例子效果
rm
或mathrm
罗马体 $\rm{ABCDEFGHIJKLMNOPQRSTUVWXYZ}$
$\mathrm{ABCDEFGHIJKLMNOPQRSTUVWXYZ}$
A B C D E F G H I J K L M N O P Q R S T U V W X Y Z \rm{ABCDEFGHIJKLMNOPQRSTUVWXYZ} ABCDEFGHIJKLMNOPQRSTUVWXYZ
bf
或mathbf
黑体 $\bf{ABCDEFGHIJKLMNOPQRSTUVWXYZ}$
$\mathbf{ABCDEFGHIJKLMNOPQRSTUVWXYZ}$
A B C D E F G H I J K L M N O P Q R S T U V W X Y Z \bf{ABCDEFGHIJKLMNOPQRSTUVWXYZ} ABCDEFGHIJKLMNOPQRSTUVWXYZ
boldsymbol 粗体 $\boldsymbol{ABCDEFGHIJKLMNOPQRSTUVWXYZ}$ A B C D E F G H I J K L M N O P Q R S T U V W X Y Z \boldsymbol{ABCDEFGHIJKLMNOPQRSTUVWXYZ} ABCDEFGHIJKLMNOPQRSTUVWXYZ
Bbb
或mathbb
黑板粗体字 $\Bbb{ABCDEFGHIJKLMNOPQRSTUVWXYZ}$
$\mathbb{ABCDEFGHIJKLMNOPQRSTUVWXYZ}$
A B C D E F G H I J K L M N O P Q R S T U V W X Y Z \mathbb{ABCDEFGHIJKLMNOPQRSTUVWXYZ} ABCDEFGHIJKLMNOPQRSTUVWXYZ
it
或mathit
意大利体 $\it{ABCDEFGHIJKLMNOPQRSTUVWXYZ}$
$\mathit{ABCDEFGHIJKLMNOPQRSTUVWXYZ}$
A B C D E F G H I J K L M N O P Q R S T U V W X Y Z \it{ABCDEFGHIJKLMNOPQRSTUVWXYZ} ABCDEFGHIJKLMNOPQRSTUVWXYZ
frak
或mathfrak
Fraktur字(一种德国字体) $\frak{ABCDEFGHIJKLMNOPQRSTUVWXYZ}$
$\mathfrak{ABCDEFGHIJKLMNOPQRSTUVWXYZ}$
A B C D E F G H I J K L M N O P Q R S T U V W X Y Z \frak{ABCDEFGHIJKLMNOPQRSTUVWXYZ} ABCDEFGHIJKLMNOPQRSTUVWXYZ
mathcal 花体字 $\mathcal{ABCDEFGHIJKLMNOPQRSTUVWXYZ}$ A B C D E F G H I J K L M N O P Q R S T U V W X Y Z \mathcal{ABCDEFGHIJKLMNOPQRSTUVWXYZ} ABCDEFGHIJKLMNOPQRSTUVWXYZ
sf 等线体 $\sf{ABCDEFGHIJKLMNOPQRSTUVWXYZ}$ A B C D E F G H I J K L M N O P Q R S T U V W X Y Z \sf{ABCDEFGHIJKLMNOPQRSTUVWXYZ} ABCDEFGHIJKLMNOPQRSTUVWXYZ
tt 打字机字体 $\tt{ABCDEFGHIJKLMNOPQRSTUVWXYZ}$ A B C D E F G H I J K L M N O P Q R S T U V W X Y Z \tt{ABCDEFGHIJKLMNOPQRSTUVWXYZ} ABCDEFGHIJKLMNOPQRSTUVWXYZ

[注]:CSDN的Markdown编辑器中,各种LaTex字体标记对中文字符没有效果

字体颜色

语法

  • 字体颜色︰{\color{色调}表达式}
  • 背景颜色︰{\pagecolor{色调}表达式}
    ︰输入时颜色第一个字母必需以大写输入
    eg:
    ${\color{Blue}x^2}+{\color{Brown}2x} -{\color{OliveGreen}1}$
    x 2 + 2 x − 1 {\color{Blue}x^2}+{\color{Brown}2x} - {\color{OliveGreen}1} x2+2x1
    $x_{\color{Red}{1,2}}=\frac{-b\pm\sqrt{{\color{Red}{b^2-4ac}}}}{2a}$
    x 1 , 2 = − b ± b 2 − 4 a c 2 a x_{\color{Red}{1,2}}=\frac{-b\pm\sqrt{{\color{Red}{b^2-4ac}}}}{2a} x1,2=2ab±b24ac
色调表(Colors supported)
\color{Red}{Red} R e d \color{Red}{Red} Red \color{Dandelion}{Dandelion} D a n d e l i o n \color{Dandelion}{Dandelion} Dandelion
\color{Tan}{Tan} T a n \color{Tan}{Tan} Tan \color{RedViolet}{RedViolet} R e d V i o l e t \color{RedViolet}{RedViolet} RedViolet
\color{Blue}{Blue} B l u e \color{Blue}{Blue} Blue \color{RubineRed}{RubineRed} R u b i n e R e d \color{RubineRed}{RubineRed} RubineRed
\color{Cyan}{Cyan} C y a n \color{Cyan}{Cyan} Cyan \color{BlueGreen}{BlueGreen} B l u e G r e e n \color{BlueGreen}{BlueGreen} BlueGreen
\color{Gray}{Gray} G r a y \color{Gray}{Gray} Gray \color{CadetBlue}{CadetBlue} C a d e t B l u e \color{CadetBlue}{CadetBlue} CadetBlue
\color{Plum}{Plum} P l u m \color{Plum}{Plum} Plum \color{Goldenrod}{Goldenrod} G o l d e n r o d \color{Goldenrod}{Goldenrod} Goldenrod
\color{Black}{Black} B l a c k \color{Black}{Black} Black \color{LimeGreen}{LimeGreen} L i m e G r e e n \color{LimeGreen}{LimeGreen} LimeGreen
\color{White}{White} W h i t e \color{White}{White} White \color{OrangeRed}{OrangeRed} O r a n g e R e d \color{OrangeRed}{OrangeRed} OrangeRed
\color{Brown}{Brown} B r o w n \color{Brown}{Brown} Brown \color{PineGreen}{PineGreen} P i n e G r e e n \color{PineGreen}{PineGreen} PineGreen
\color{Green}{Green} G r e e n \color{Green}{Green} Green \color{RawSienna}{RawSienna} R a w S i e n n a \color{RawSienna}{RawSienna} RawSienna
\color{Melon}{Melon} M e l o n \color{Melon}{Melon} Melon \color{RedOrange}{RedOrange} R e d O r a n g e \color{RedOrange}{RedOrange} RedOrange
\color{Peach}{Peach} P e a c h \color{Peach}{Peach} Peach \color{Rhodamine}{Rhodamine} R h o d a m i n e \color{Rhodamine}{Rhodamine} Rhodamine
\color{Sepia}{Sepia} S e p i a \color{Sepia}{Sepia} Sepia \color{RoyalBlue}{RoyalBlue} R o y a l B l u e \color{RoyalBlue}{RoyalBlue} RoyalBlue
\color{Orange}{Orange} O r a n g e \color{Orange}{Orange} Orange \color{Turquoise}{Turquoise} T u r q u o i s e \color{Turquoise}{Turquoise} Turquoise
\color{Purple}{Purple} P u r p l e \color{Purple}{Purple} Purple \color{VioletRed}{VioletRed} V i o l e t R e d \color{VioletRed}{VioletRed} VioletRed
\color{Maroon}{Maroon} M a r o o n \color{Maroon}{Maroon} Maroon \color{Periwinkle}{Periwinkle} P e r i w i n k l e \color{Periwinkle}{Periwinkle} Periwinkle
\color{Orchid}{Orchid} O r c h i d \color{Orchid}{Orchid} Orchid \color{Aquamarine}{Aquamarine} A q u a m a r i n e \color{Aquamarine}{Aquamarine} Aquamarine
\color{Salmon}{Salmon} S a l m o n \color{Salmon}{Salmon} Salmon \color{BlueViolet}{BlueViolet} B l u e V i o l e t \color{BlueViolet}{BlueViolet} BlueViolet
\color{Violet}{Violet} V i o l e t \color{Violet}{Violet} Violet \color{DarkOrchid}{DarkOrchid} D a r k O r c h i d \color{DarkOrchid}{DarkOrchid} DarkOrchid
\color{Yellow}{Yellow} Y e l l o w \color{Yellow}{Yellow} Yellow \color{OliveGreen}{OliveGreen} O l i v e G r e e n \color{OliveGreen}{OliveGreen} OliveGreen
\color{Fuchsia}{Fuchsia} F u c h s i a \color{Fuchsia}{Fuchsia} Fuchsia \color{GreenYellow}{GreenYellow} G r e e n Y e l l o w \color{GreenYellow}{GreenYellow} GreenYellow
\color{Magenta}{Magenta} M a g e n t a \color{Magenta}{Magenta} Magenta \color{Bittersweet}{Bittersweet} B i t t e r s w e e t \color{Bittersweet}{Bittersweet} Bittersweet
\color{SkyBlue}{SkyBlue} S k y B l u e \color{SkyBlue}{SkyBlue} SkyBlue \color{BurntOrange}{BurntOrange} B u r n t O r a n g e \color{BurntOrange}{BurntOrange} BurntOrange
\color{Thistle}{Thistle} T h i s t l e \color{Thistle}{Thistle} Thistle \color{ForestGreen}{ForestGreen} F o r e s t G r e e n \color{ForestGreen}{ForestGreen} ForestGreen
\color{Apricot}{Apricot} A p r i c o t \color{Apricot}{Apricot} Apricot \color{JungleGreen}{JungleGreen} J u n g l e G r e e n \color{JungleGreen}{JungleGreen} JungleGreen
\color{Emerald}{Emerald} E m e r a l d \color{Emerald}{Emerald} Emerald \color{ProcessBlue}{ProcessBlue} P r o c e s s B l u e \color{ProcessBlue}{ProcessBlue} ProcessBlue
\color{BrickRed}{BrickRed} B r i c k R e d \color{BrickRed}{BrickRed} BrickRed \color{RoyalPurple}{RoyalPurple} R o y a l P u r p l e \color{RoyalPurple}{RoyalPurple} RoyalPurple
\color{Cerulean}{Cerulean} C e r u l e a n \color{Cerulean}{Cerulean} Cerulean \color{SpringGreen}{SpringGreen} S p r i n g G r e e n \color{SpringGreen}{SpringGreen} SpringGreen
\color{Lavender}{Lavender} L a v e n d e r \color{Lavender}{Lavender} Lavender \color{YellowGreen}{YellowGreen} Y e l l o w G r e e n \color{YellowGreen}{YellowGreen} YellowGreen
\color{Mahogany}{Mahogany} M a h o g a n y \color{Mahogany}{Mahogany} Mahogany \color{MidnightBlue}{MidnightBlue} M i d n i g h t B l u e \color{MidnightBlue}{MidnightBlue} MidnightBlue
\color{Mulberry}{Mulberry} M u l b e r r y \color{Mulberry}{Mulberry} Mulberry \color{YellowOrange}{YellowOrange} Y e l l o w O r a n g e \color{YellowOrange}{YellowOrange} YellowOrange
\color{NavyBlue}{NavyBlue} N a v y B l u e \color{NavyBlue}{NavyBlue} NavyBlue \color{CarnationPink}{CarnationPink} C a r n a t i o n P i n k \color{CarnationPink}{CarnationPink} CarnationPink
\color{SeaGreen}{SeaGreen} S e a G r e e n \color{SeaGreen}{SeaGreen} SeaGreen \color{CornflowerBlue}{CornflowerBlue} C o r n f l o w e r B l u e \color{CornflowerBlue}{CornflowerBlue} CornflowerBlue
\color{TealBlue}{TealBlue} T e a l B l u e \color{TealBlue}{TealBlue} TealBlue \color{WildStrawberry}{WildStrawberry} W i l d S t r a w b e r r y \color{WildStrawberry}{WildStrawberry} WildStrawberry

本文地址:https://blog.csdn.net/xxliu_csdn/article/details/85926227

相关标签: 工具 Markdown