当前位置:网站首页>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.
边栏推荐
- Erreur de type résolue avec succès: type de données « catégorie» non sous - jacente
- On the first day of clock in, click to open a surprise, and the switch statement is explained in detail
- MySQL high frequency interview 20 questions, necessary (important)
- 因高额网络费用,Arbitrum 奥德赛活动暂停,Nitro 发行迫在眉睫
- SQL Server manager studio(SSMS)安装教程
- 【刷题】怎么样才能正确的迎接面试?
- 基于购买行为数据对超市顾客进行市场细分(RFM模型)
- PCL realizes frame selection and clipping point cloud
- [Yu Yue education] Dunhuang Literature and art reference materials of Zhejiang Normal University
- Leetcode daily question (971. flip binary tree to match preorder traversal)
猜你喜欢
攻防世界 MISC中reverseMe简述
(practice C language every day) reverse linked list II
Practical guidance for interface automation testing (Part I): what preparations should be made for interface automation
Traffic encryption of red blue confrontation (OpenSSL encrypted transmission, MSF traffic encryption, CS modifying profile for traffic encryption)
How to convert flv file to MP4 file? A simple solution
Leetcode - 152 product maximum subarray
Office-DOC加载宏-上线CS
Introduction and underlying analysis of regular expressions
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
SAP SD发货流程中托盘的管理
随机推荐
Database basics exercise part 2
[hot100] 739. Température quotidienne
Delete external table source data
19.段页结合的实际内存管理
Apache dolphin scheduler source code analysis (super detailed)
Attributeerror successfully resolved: can only use cat accessor with a ‘category‘ dtype
BIO模型实现多人聊天
Monotonic stack
Practical guidance for interface automation testing (Part I): what preparations should be made for interface automation
ML之shap:基于adult人口普查收入二分类预测数据集(预测年收入是否超过50k)利用Shap值对XGBoost模型实现可解释性案例之详细攻略
前缀和数组系列
pymongo获取一列数据
Suspended else
Is it difficult for girls to learn software testing? The threshold for entry is low, and learning is relatively simple
Chapter 7 - thread pool of shared model
Machine learning plant leaf recognition
成功解决TypeError: data type ‘category‘ not understood
UniPro甘特图“初体验”:关注细节背后的多场景探索
Huawei equipment configuration ospf-bgp linkage
L'Ia dans les nuages rend la recherche géoscientifique plus facile