当前位置:网站首页>Latex文字加颜色的三种办法
Latex文字加颜色的三种办法
2022-07-06 06:36:00 【计算机视觉-Archer】
1 组合red、green和blue的值合成我们想要的颜色
\usepackage{color}
\textcolor[rgb]{r,g,b}{text}
其中{r,g,b}代表red、green和blue三种颜色的组合,取值范围为[0-1]
\textcolor[rgb]{0.5,0.6,0.7}{AIAS编程有道}、
\textcolor[rgb]{0.5,0.8,0.7}{AIAS编程有道}、
\textcolor[rgb]{0.1,0.8,0.9}{AIAS编程有道}
2 组合red、green和blue的值合成我们想要的颜色
\textcolor[RGB]{R,G,B}{text}
其中{R,G,B}代表red、green和blue三种颜色的组合,取值范围为[0-255]
\textcolor[RGB]{18,220,168}{AIAS编程有道}、
\textcolor[RGB]{202,12,22}{AIAS编程有道}、
\textcolor[RGB]{1,8,9}{AIAS编程有道}
3.直接使用定义好的颜色
\usepackage{color}
\textcolor{red/blue/green/black/white/cyan/magenta/yellow}{text}
其中textcolor{...}中包含的是系统定义好的颜色
示范
\textcolor{red}{AIAS编程有道}、
\textcolor{blue}{AIAS编程有道}、
\textcolor{yellow}{AIAS编程有道}、
————————————————
版权声明:本文为CSDN博主「科皮子菊」的原创文章,遵循CC 4.0 BY-SA版权协议,转载请附上原文出处链接及本声明。
原文链接:https://blog.csdn.net/meiqi0538/article/details/105978246
4 自定义一种颜色,直接调用
自定义方式1:
\definecolor{ColorName}{rgb}{r,g,b}
这时r/g/b的定义域就在[0-1],可参考方法2。
\definecolor{ColorName}{RGB}{R,G,B}
这时R/G/B的定义域就在[0-255],可参考方法2。
这里为颜色定义了名称ColorName,下面可以直接调用这个颜色方案即可。
调用方式:\textcolor{ColorName}{text}。操作方式可参考方法2。
边栏推荐
- Grouping convolution and DW convolution, residuals and inverted residuals, bottleneck and linearbottleneck
- [unity] how to export FBX in untiy
- Data security -- 13 -- data security lifecycle management
- 我的创作纪念日
- 万丈高楼平地起,每个API皆根基
- Delete external table source data
- Advanced MySQL: Basics (1-4 Lectures)
- Lecture 8: 1602 LCD (Guo Tianxiang)
- 商标翻译有什么特点,如何翻译?
- pymongo获取一列数据
猜你喜欢

云上有AI,让地球科学研究更省力

Is it difficult for girls to learn software testing? The threshold for entry is low, and learning is relatively simple

Office-DOC加载宏-上线CS
![[brush questions] how can we correctly meet the interview?](/img/89/a5b874ba4db97fbb3d330af59c387a.png)
[brush questions] how can we correctly meet the interview?

电子书-CHM-上线CS

端午节快乐Wish Dragon Boat Festival is happy

Pallet management in SAP SD delivery process

MySQL5.72. MSI installation failed

Leetcode - 152 product maximum subarray
![[English] Grammar remodeling: the core framework of English Learning -- English rabbit learning notes (1)](/img/02/41dcdcc6e8f12d76b9c1ef838af97d.png)
[English] Grammar remodeling: the core framework of English Learning -- English rabbit learning notes (1)
随机推荐
Advanced MySQL: Basics (1-4 Lectures)
Day 246/300 ssh连接提示“REMOTE HOST IDENTIFICATION HAS CHANGED! ”
Data security -- 13 -- data security lifecycle management
女生学软件测试难不难 入门门槛低,学起来还是比较简单的
Basic commands of MySQL
My creation anniversary
Apache DolphinScheduler源码分析(超详细)
[ 英语 ] 语法重塑 之 动词分类 —— 英语兔学习笔记(2)
商标翻译有什么特点,如何翻译?
Biomedical English contract translation, characteristics of Vocabulary Translation
钓鱼&文件名反转&office远程模板
LeetCode 729. My schedule I
Leetcode - 152 product maximum subarray
机器人类专业不同层次院校课程差异性简述-ROS1/ROS2-
机器学习植物叶片识别
(practice C language every day) reverse linked list II
Monotonic stack
成功解决TypeError: data type ‘category‘ not understood
My daily learning records / learning methods
Distributed system basic (V) protocol (I)