当前位置:网站首页>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。
边栏推荐
- Brief introduction to the curriculum differences of colleges and universities at different levels of machine human major -ros1/ros2-
- A 27-year-old without a diploma, wants to work hard on self-study programming, and has the opportunity to become a programmer?
- Distributed system basic (V) protocol (I)
- It is necessary to understand these characteristics in translating subtitles of film and television dramas
- SQL Server manager studio(SSMS)安装教程
- 自动化测试环境配置
- [English] Grammar remodeling: the core framework of English Learning -- English rabbit learning notes (1)
- [ 英語 ] 語法重塑 之 動詞分類 —— 英語兔學習筆記(2)
- LeetCode每日一题(1997. First Day Where You Have Been in All the Rooms)
- 红蓝对抗之流量加密(Openssl加密传输、MSF流量加密、CS修改profile进行流量加密)
猜你喜欢

Lesson 7 tensorflow realizes convolutional neural network

Use shortcut LNK online CS

What are the characteristics of trademark translation and how to translate it?

(practice C language every day) reverse linked list II

My creation anniversary

Today's summer solstice

On the first day of clock in, click to open a surprise, and the switch statement is explained in detail

LeetCode 731. My schedule II

Defense (greed), FBI tree (binary tree)

Transfert des paramètres de la barre d'adresse de la page de liste basée sur jeecg - boot
随机推荐
26岁从财务转行软件测试,4年沉淀我已经是25k的测开工程师...
金融德语翻译,北京专业的翻译公司
[English] Verb Classification of grammatical reconstruction -- English rabbit learning notes (2)
Reflex WMS中阶系列3:显示已发货可换组
LeetCode每日一题(1870. Minimum Speed to Arrive on Time)
The ECU of 21 Audi q5l 45tfsi brushes is upgraded to master special adjustment, and the horsepower is safely and stably increased to 305 horsepower
Chinese English comparison: you can do this Best of luck
The internationalization of domestic games is inseparable from professional translation companies
钓鱼&文件名反转&office远程模板
Simple query cost estimation
[unity] how to export FBX in untiy
Day 239/300 注册密码长度为8~14个字母数字以及标点符号至少包含2种校验
LeetCode 729. My schedule I
端午节快乐Wish Dragon Boat Festival is happy
How do programmers remember code and programming language?
ML之shap:基于adult人口普查收入二分类预测数据集(预测年收入是否超过50k)利用Shap值对XGBoost模型实现可解释性案例之详细攻略
P5706 [deep foundation 2. Example 8] redistributing fat house water -- February 13, 2022
E-book CHM online CS
Leetcode - 152 product maximum subarray
今日夏至 Today‘s summer solstice