Typora设置文字颜色和自适应宽度 梦里梦外; 2024-03-23 10:33 14阅读 0赞 ## Typora设置文字颜色 ## Typora本身并不支持选择颜色进行内容的设置,但可以使用其现有的功能实现对文本内容进行颜色的设置,此处以使用内联公式方式进行颜色字体的设置。 #### 1.设置 #### 文件-偏好设置,选择Markdown,勾选Markdown扩展语法下的内联公式,然后重启Typora. #### 2.使用 #### 文本颜色设置公式: $\textcolor{颜色名}{文字内容} $ 示例:绿色 - `$\textcolor{green}{绿色的文字内容} $`,效果如下: 3.颜色公式代码表 1 $\textcolor{ GreenYellow}{ GreenYellow} $ 2 $\textcolor{ Yellow}{ Yellow}$ 3 $\textcolor{ Goldenrod}{ Goldenrod} $ 4 $\textcolor{ Dandelion}{ Dandelion}$ 5 $\textcolor{ Apricot}{ Apricot} $ 6 $\textcolor{ Peach}{ Peach}$ 7 $\textcolor{ Melon}{ Melon} $ 8 $\textcolor{ YellowOrange}{ YellowOrange}$ 9 $\textcolor{ Orange}{ Orange} $ 10 $\textcolor{ BurntOrange}{ BurntOrange}$ 11 $\textcolor{ Bittersweet}{ Bittersweet}$ 12 $\textcolor{ RedOrange}{ RedOrange} $ 13 $\textcolor{ Mahogany}{ Mahogany}$ 14 $\textcolor{ Maroon}{ Maroon} $ 15 $\textcolor{ BrickRed}{ BrickRed}$ 16 $\textcolor{ Red}{ Red} $ 17 $\textcolor{ OrangeRed}{ OrangeRed}$ 18 $\textcolor{ RubineRed}{ RubineRed}$ 19 $\textcolor{ WildStrawberry}{ WildStrawberry}$ 20 $\textcolor{ Salmon}{ Salmon}$ 21 $\textcolor{ CarnationPink}{ CarnationPink}$ 22 $\textcolor{ Magenta}{ Magenta} $ 23 $\textcolor{ VioletRed}{ VioletRed}$ 24 $\textcolor{ Rhodamine}{ Rhodamine} $ 25 $\textcolor{ Mulberry}{ Mulberry}$ 26 $\textcolor{ RedViolet}{ RedViolet} $ 27 $\textcolor{ Fuchsia}{ Fuchsia}$ 28 $\textcolor{ Lavender}{ Lavender} $ 29 $\textcolor{ Thistle}{ Thistle}$ 30 $\textcolor{ Orchid}{ Orchid} $ 31 $\textcolor{ DarkOrchid}{ DarkOrchid}$ 32 $\textcolor{ Purple}{ Purple} $ 33 $\textcolor{ Plum}{ Plum}$ 34 $\textcolor{ Violet}{ Violet} $ 35 $\textcolor{ RoyalPurple}{ RoyalPurple}$ 36 $\textcolor{ BlueViolet}{ BlueViolet}$ 37 $\textcolor{ Periwinkle}{ Periwinkle}$ 38 $\textcolor{ CadetBlue}{ CadetBlue}$ 39 $\textcolor{ CornflowerBlue}{ CornflowerBlue}$ 40 $\textcolor{ MidnightBlue}{ MidnightBlue}$ 41 $\textcolor{ NavyBlue}{ NavyBlue} $ 42 $\textcolor{ RoyalBlue}{ RoyalBlue}$ 43 $\textcolor{ Blue}{ Blue} $ 44 $\textcolor{ Cerulean}{ Cerulean}$ 45 $\textcolor{ Cyan}{ Cyan} $ 46 $\textcolor{ ProcessBlue}{ ProcessBlue}$ 47 $\textcolor{ SkyBlue}{ SkyBlue} $ 48 $\textcolor{ Turquoise}{ Turquoise}$ 49 $\textcolor{ TealBlue}{ TealBlue} $ 50 $\textcolor{ Aquamarine}{ Aquamarine}$ 51 $\textcolor{ BlueGreen}{ BlueGreen} $ 52 $\textcolor{ Emerald}{ Emerald}$ 53 $\textcolor{ JungleGreen}{ JungleGreen}$ 54 $\textcolor{ SeaGreen}{ SeaGreen} $ 55 $\textcolor{ Green}{ Green}$ 56 $\textcolor{ ForestGreen}{ ForestGreen}$ 57 $\textcolor{ PineGreen}{ PineGreen} $ 58 $\textcolor{ LimeGreen}{ LimeGreen}$ 59 $\textcolor{ YellowGreen}{ YellowGreen}$ 60 $\textcolor{ SpringGreen}{ SpringGreen}$ 61 $\textcolor{ OliveGreen}{ OliveGreen}$ 62 $\textcolor{ RawSienna}{ RawSienna} $ 63 $\textcolor{ Sepia}{ Sepia}$ 64 $\textcolor{ Brown}{ Brown} $ 65 $\textcolor{ Tan}{ Tan}$ 66 $\textcolor{ Gray}{ Gray} $ 67 $\textcolor{ Black}{ Black}$ ## 设置Typora自适应宽度 ## #### 1、问题 #### Typora在最大化窗口后,书写区域没有跟随最大化,还处于中间位置,不太人性化 ![在这里插入图片描述][b558642b4d3f4ab5aa08e00917d5ee33.png] #### 2、调整Typora书写区域为自适应宽度 #### 打开Typora——>文件——>偏好设置——>外观——>打开主题文件夹——>打开github.css(默认使用的这个主题,若换了主题则打开对应的文件 ![在这里插入图片描述][50aa5addcfbd4c839d10e650d670f967.png] #### 4、保存并重启 #### 重启后最大化窗口,会发现书写区域变大了 ![在这里插入图片描述][a7ab7a7040224072823029f6616d4eaa.png] [b558642b4d3f4ab5aa08e00917d5ee33.png]: https://image.dandelioncloud.cn/pgy_files/images/2024/03/23/352a2f307bef49f3b9c68262f1b9c89d.png [50aa5addcfbd4c839d10e650d670f967.png]: https://image.dandelioncloud.cn/pgy_files/images/2024/03/23/0731c47d241d4a6fa457f1db2c6a1d1d.png [a7ab7a7040224072823029f6616d4eaa.png]: https://image.dandelioncloud.cn/pgy_files/images/2024/03/23/27d9406ba5064206b64ef5572772f749.png
还没有评论,来说两句吧...