当前位置:网站首页>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。
边栏推荐
- Engineering organisms containing artificial metalloenzymes perform unnatural biosynthesis
- 商标翻译有什么特点,如何翻译?
- Biomedical localization translation services
- 我的创作纪念日
- Difference between backtracking and recursion
- How effective is the Chinese-English translation of international economic and trade contracts
- 女生学软件测试难不难 入门门槛低,学起来还是比较简单的
- Changes in the number of words in English papers translated into Chinese
- L'Ia dans les nuages rend la recherche géoscientifique plus facile
- Basic commands of MySQL
猜你喜欢
端午节快乐Wish Dragon Boat Festival is happy
Fedora/rehl installation semanage
Leetcode daily question (971. flip binary tree to match preorder traversal)
Engineering organisms containing artificial metalloenzymes perform unnatural biosynthesis
LeetCode 732. My schedule III
My daily learning records / learning methods
Bitcoinwin (BCW): 借贷平台Celsius隐瞒亏损3.5万枚ETH 或资不抵债
26岁从财务转行软件测试,4年沉淀我已经是25k的测开工程师...
Phishing & filename inversion & Office remote template
翻译公司证件盖章的价格是多少
随机推荐
Luogu p2141 abacus mental arithmetic test
Cobalt Strike特征修改
L'Ia dans les nuages rend la recherche géoscientifique plus facile
关于新冠疫情,常用的英文单词、语句有哪些?
How much is it to translate Chinese into English for one minute?
The registration password of day 239/300 is 8~14 alphanumeric and punctuation, and at least 2 checks are included
Biomedical English contract translation, characteristics of Vocabulary Translation
LeetCode 732. My schedule III
Tms320c665x + Xilinx artix7 DSP + FPGA high speed core board
Redis Foundation
How much is the price for the seal of the certificate
MySQL high frequency interview 20 questions, necessary (important)
Office-DOC加载宏-上线CS
26岁从财务转行软件测试,4年沉淀我已经是25k的测开工程师...
同事上了个厕所,我帮产品妹子轻松完成BI数据产品顺便得到奶茶奖励
CS passed (cdn+ certificate) PowerShell online detailed version
It is necessary to understand these characteristics in translating subtitles of film and television dramas
LeetCode每日一题(971. Flip Binary Tree To Match Preorder Traversal)
生物医学本地化翻译服务
Wish Dragon Boat Festival is happy