当前位置:网站首页>Three methods of adding color to latex text
Three methods of adding color to latex text
2022-07-06 06:52:00 【Computer vision Archer】
1 Combine red、green and blue The value of synthesizes the color we want
\usepackage{color}
\textcolor[rgb]{r,g,b}{text}
among {r,g,b} representative red、green and blue A combination of three colors , The value range is [0-1]
\textcolor[rgb]{0.5,0.6,0.7}{AIAS Programming has a way }、
\textcolor[rgb]{0.5,0.8,0.7}{AIAS Programming has a way }、
\textcolor[rgb]{0.1,0.8,0.9}{AIAS Programming has a way }
2 Combine red、green and blue The value of synthesizes the color we want
\textcolor[RGB]{R,G,B}{text}
among {R,G,B} representative red、green and blue A combination of three colors , The value range is [0-255]
\textcolor[RGB]{18,220,168}{AIAS Programming has a way }、
\textcolor[RGB]{202,12,22}{AIAS Programming has a way }、
\textcolor[RGB]{1,8,9}{AIAS Programming has a way }
3. Use defined colors directly
\usepackage{color}
\textcolor{red/blue/green/black/white/cyan/magenta/yellow}{text}
among textcolor{...} Contains the system defined colors
demonstration
\textcolor{red}{AIAS Programming has a way }、
\textcolor{blue}{AIAS Programming has a way }、
\textcolor{yellow}{AIAS Programming has a way }、
————————————————
Copyright notice : This paper is about CSDN Blogger 「 Coreopsis 」 The original article of , follow CC 4.0 BY-SA Copyright agreement , For reprint, please attach the original source link and this statement .
Link to the original text :https://blog.csdn.net/meiqi0538/article/details/105978246
4 Customize a color , Call directly
Custom method 1:
\definecolor{ColorName}{rgb}{r,g,b}
At this time r/g/b The domain of definition is [0-1], Reference method 2.
\definecolor{ColorName}{RGB}{R,G,B}
At this time R/G/B The domain of definition is [0-255], Reference method 2.
Here is the name defined for the color ColorName, Now you can call this color scheme directly .
Call mode :\textcolor{ColorName}{text}. Refer to the method for operation mode 2.
边栏推荐
- 一文读懂简单查询代价估算
- librosa音频处理教程
- Attributeerror: can 't get attribute' sppf 'on < module' models. Common 'from' / home / yolov5 / Models / comm
- AttributeError: Can‘t get attribute ‘SPPF‘ on <module ‘models. common‘ from ‘/home/yolov5/models/comm
- AttributeError: Can‘t get attribute ‘SPPF‘ on <module ‘models.common‘ from ‘/home/yolov5/models/comm
- AttributeError: Can‘t get attribute ‘SPPF‘ on <module ‘models.common‘ from ‘/home/yolov5/models/comm
- Is it difficult for girls to learn software testing? The threshold for entry is low, and learning is relatively simple
- Day 248/300 thoughts on how graduates find jobs
- Data security -- 13 -- data security lifecycle management
- hydra常用命令
猜你喜欢
SQL Server Manager studio (SSMS) installation tutorial
[English] Verb Classification of grammatical reconstruction -- English rabbit learning notes (2)
攻防世界 MISC中reverseMe简述
雲上有AI,讓地球科學研究更省力
My creation anniversary
指尖上的 NFT|在 G2 上评价 Ambire,有机会获得限量版收藏品
Database basics exercise part 2
kubernetes集群搭建Zabbix监控平台
Is it difficult for girls to learn software testing? The threshold for entry is low, and learning is relatively simple
18.多级页表与快表
随机推荐
Leetcode daily question (1997. first day where you have been in all the rooms)
After sharing the clone remote project, NPM install reports an error - CB () never called! This is an error with npm itself.
删除外部表源数据
Windows Server 2016 standard installing Oracle
Machine learning plant leaf recognition
On the first day of clock in, click to open a surprise, and the switch statement is explained in detail
Lesson 7 tensorflow realizes convolutional neural network
攻防世界 MISC中reverseMe简述
《从0到1:CTFer成长之路》书籍配套题目(周更)
同事上了个厕所,我帮产品妹子轻松完成BI数据产品顺便得到奶茶奖励
Reflex WMS中阶系列3:显示已发货可换组
【刷题】怎么样才能正确的迎接面试?
MySQL high frequency interview 20 questions, necessary (important)
雲上有AI,讓地球科學研究更省力
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
Leetcode - 152 product maximum subarray
SAP SD发货流程中托盘的管理
kubernetes集群搭建Zabbix监控平台
26岁从财务转行软件测试,4年沉淀我已经是25k的测开工程师...
Bitcoinwin (BCW): the lending platform Celsius conceals losses of 35000 eth or insolvency