• Latex学习(1)——latex中的字体颜色


    格式:

    \textcolor{color}{text}

    例子:
    \textcolor{white}{白色}\
    \textcolor{linen}{亚麻色}\​
    \textcolor{black}{黑色}\
    \textcolor{grey}{灰色}\
    \textcolor{lightgrey}{浅灰色}\
    \textcolor{darkgrey}{深灰色}\​
    \textcolor{red}{红色}\
    \textcolor{crimson}{深红色}\
    \textcolor{darkred}{暗红色}\
    \textcolor{brown}{褐色}\
    \textcolor{maroon}{褐红色}\
    \textcolor{salmon}{鲑红色}\
    \textcolor{pink}{粉色}\
    \textcolor{coral}{珊瑚色}\
    \textcolor{orangered}{橙红色}\
    \textcolor{orange}{橙色}\
    ​\textcolor{blue}{蓝色}\
    \textcolor{skyblue}{天蓝色}\
    \textcolor{aquamarine}{海蓝色}\
    \textcolor{navy}{深蓝色}\​
    \textcolor{green}{绿色}\
    \textcolor{darkgreen}{深绿色}\
    \textcolor{seagreen}{海绿色}\
    \textcolor{springgreen}{春绿色}\
    \textcolor{forestgreen}{森林绿色}\
    \textcolor{greenyellow}{绿黄色}\
    \textcolor{yellowgreen}{黄绿色}\
    ​\textcolor{yellow}{黄色}\
    \textcolor{khaki}{卡其色}\
    \textcolor{gold}{金色}\
    \textcolor{beige}{米黄色}\
    ​\textcolor{olive}{橄榄色}\
    \textcolor{purple}{紫色}\
    \textcolor{indigo}{靛青色}\
    \textcolor{plum}{紫红色}\
    \textcolor{violet}{紫罗兰色}\
    \textcolor{blueviolet}{蓝紫色}\
    \textcolor{magenta}{洋红色}\
    ​\textcolor{cyan}{青色}\
    \textcolor{turquoise}{青绿色}\
    \textcolor{teal}{蓝绿色}\
    \textcolor{tan}{棕褐色}\
    效果如下:
    白色 亚麻色 ​ 黑色 灰色 浅灰色 深灰色 ​ 红色 深红色 暗红色 褐色 褐红色 鲑红色 粉色 珊瑚色 橙红色 橙色 ​ 蓝色 天蓝色 海蓝色 深蓝色 ​ 绿色 深绿色 海绿色 春绿色 森林绿色 绿黄色 黄绿色 ​ 黄色 卡其色 金色 米黄色 ​ 橄榄色 紫色 靛青色 紫红色 紫罗兰色 蓝紫色 洋红色 ​ 青色 青绿色 蓝绿色 棕褐色 ​ \textcolor{white}{白色}\\\textcolor{linen}{亚麻色}\\​\textcolor{black}{黑色}\\\textcolor{grey}{灰色}\\\textcolor{lightgrey}{浅灰色}\\\textcolor{darkgrey}{深灰色}\\​\textcolor{red}{红色}\\\textcolor{crimson}{深红色}\\\textcolor{darkred}{暗红色}\\\textcolor{brown}{褐色}\\\textcolor{maroon}{褐红色}\\\textcolor{salmon}{鲑红色}\\\textcolor{pink}{粉色}\\\textcolor{coral}{珊瑚色}\\\textcolor{orangered}{橙红色}\\\textcolor{orange}{橙色}\\​\textcolor{blue}{蓝色}\\\textcolor{skyblue}{天蓝色}\\\textcolor{aquamarine}{海蓝色}\\\textcolor{navy}{深蓝色}\\​\textcolor{green}{绿色}\\\textcolor{darkgreen}{深绿色}\\\textcolor{seagreen}{海绿色}\\\textcolor{springgreen}{春绿色}\\\textcolor{forestgreen}{森林绿色}\\\textcolor{greenyellow}{绿黄色}\\\textcolor{yellowgreen}{黄绿色}\\​\textcolor{yellow}{黄色}\\\textcolor{khaki}{卡其色}\\\textcolor{gold}{金色}\\\textcolor{beige}{米黄色}\\​\textcolor{olive}{橄榄色}\\\textcolor{purple}{紫色}\\\textcolor{indigo}{靛青色}\\\textcolor{plum}{紫红色}\\\textcolor{violet}{紫罗兰色}\\\textcolor{blueviolet}{蓝紫色}\\\textcolor{magenta}{洋红色}\\​\textcolor{cyan}{青色}\\\textcolor{turquoise}{青绿色}\\\textcolor{teal}{蓝绿色}\\\textcolor{tan}{棕褐色}\\​ 白色亚麻色黑色灰色浅灰色深灰色红色深红色暗红色褐色褐红色鲑红色粉色珊瑚色橙红色橙色蓝色天蓝色海蓝色深蓝色绿色深绿色海绿色春绿色森林绿色绿黄色黄绿色黄色卡其色金色米黄色橄榄色紫色靛青色紫红色紫罗兰色蓝紫色洋红色青色青绿色蓝绿色棕褐色
    自定义颜色

    \textcolor[rgb]{0.25, 0.5, 0.75}{自定义颜色1}\
    \textcolor[rgb]{0.75, 0.5, 0.25}{自定义颜色2}\
    效果如下:
    在这里插入图片描述

  • 相关阅读:
    Qt5开发从入门到精通——第六篇三节( 图像与图片——双缓冲机制)
    Java反射、注解、枚举
    机器学习 day39(决策树和神经网络的比较)
    openAI发布基于ChatGPT的AI绘画模型DALL·E3,话说stable-diffusion还香吗?
    记录使用layui弹窗实现签名、签字
    BGP高级特性——4字节AS号
    KDZD绝缘油介质损耗电阻率测试仪特点
    稳了,我用 Python 可视化分析和预测了 2022 年 FIFA 世界杯
    Vue2 之 Vuex - 状态管理
    安全漏洞-linux漏洞修复命令
  • 原文地址:https://blog.csdn.net/m0_46275020/article/details/126534852