Typora字体设置颜色的解决方案

1.开启使用内联公式

文件——偏好设置(Ctrl+逗号)——Markdown——勾选“内联公式”——重启Typora

image

2.输入公式代码设置颜色

输入,然后在这两个$之间输入公式。

如:

image

直接在typora里输入:

$\textcolor{Magenta}{洋红色} $:设置颜色为$\textcolor{RedOrange}{橙红色} $,设置字体颜色为$\textcolor{Blue}{蓝色} $。数学公式里各元素也能分别设置颜色:$ \textcolor{red}{\int_a^b}\textcolor{blue}{f(x)}\textcolor{green}{dx}\textcolor{brown}{=c}$

文本颜色设置公式:

颜色公式代码大全:

$\textcolor{GreenYellow}{GreenYellow} $$\textcolor{Yellow}{Yellow}$$\textcolor{Goldenrod}{Goldenrod} $$\textcolor{Dandelion}{Dandelion}$$\textcolor{Apricot}{Apricot} $$\textcolor{Peach}{Peach}$$\textcolor{Melon}{Melon} $$\textcolor{YellowOrange}{YellowOrange}$$\textcolor{Orange}{Orange} $$\textcolor{BurntOrange}{BurntOrange}$$\textcolor{Bittersweet}{Bittersweet}$$\textcolor{RedOrange}{RedOrange} $$\textcolor{Mahogany}{Mahogany}$$\textcolor{Maroon}{Maroon} $$\textcolor{BrickRed}{BrickRed}$$\textcolor{Red}{Red} $$\textcolor{OrangeRed}{OrangeRed}$$\textcolor{RubineRed}{RubineRed}$$\textcolor{WildStrawberry}{WildStrawberry}$$\textcolor{Salmon}{Salmon}$$\textcolor{CarnationPink}{CarnationPink}$$\textcolor{Magenta}{Magenta} $$\textcolor{VioletRed}{VioletRed}$$\textcolor{Rhodamine}{Rhodamine} $$\textcolor{Mulberry}{Mulberry}$$\textcolor{RedViolet}{RedViolet} $$\textcolor{Fuchsia}{Fuchsia}$$\textcolor{Lavender}{Lavender} $$\textcolor{Thistle}{Thistle}$$\textcolor{Orchid}{Orchid} $$\textcolor{DarkOrchid}{DarkOrchid}$$\textcolor{Purple}{Purple} $$\textcolor{Plum}{Plum}$$\textcolor{Violet}{Violet} $$\textcolor{RoyalPurple}{RoyalPurple}$$\textcolor{BlueViolet}{BlueViolet}$$\textcolor{Periwinkle}{Periwinkle}$$\textcolor{CadetBlue}{CadetBlue}$$\textcolor{CornflowerBlue}{CornflowerBlue}$$\textcolor{MidnightBlue}{MidnightBlue}$$\textcolor{NavyBlue}{NavyBlue} $$\textcolor{RoyalBlue}{RoyalBlue}$$\textcolor{Blue}{Blue} $$\textcolor{Cerulean}{Cerulean}$$\textcolor{Cyan}{Cyan} $$\textcolor{ProcessBlue}{ProcessBlue}$$\textcolor{SkyBlue}{SkyBlue} $$\textcolor{Turquoise}{Turquoise}$$\textcolor{TealBlue}{TealBlue} $$\textcolor{Aquamarine}{Aquamarine}$$\textcolor{BlueGreen}{BlueGreen} $$\textcolor{Emerald}{Emerald}$$\textcolor{JungleGreen}{JungleGreen}$$\textcolor{SeaGreen}{SeaGreen} $$\textcolor{Green}{Green}$$\textcolor{ForestGreen}{ForestGreen}$$\textcolor{PineGreen}{PineGreen} $$\textcolor{LimeGreen}{LimeGreen}$$\textcolor{YellowGreen}{YellowGreen}$$\textcolor{SpringGreen}{SpringGreen}$$\textcolor{OliveGreen}{OliveGreen}$$\textcolor{RawSienna}{RawSienna} $$\textcolor{Sepia}{Sepia}$$\textcolor{Brown}{Brown} $$\textcolor{Tan}{Tan}$$\textcolor{Gray}{Gray} $$\textcolor{Black}{Black}$

你可能感兴趣的:(Typora字体设置颜色的解决方案)