当前位置:网站首页>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.
边栏推荐
- SQL Server manager studio(SSMS)安装教程
- Lesson 7 tensorflow realizes convolutional neural network
- 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
- 机器人类专业不同层次院校课程差异性简述-ROS1/ROS2-
- Huawei equipment configuration ospf-bgp linkage
- 【Hot100】739. 每日溫度
- 编译,连接 -- 笔记 -2
- Attributeerror successfully resolved: can only use cat accessor with a ‘category‘ dtype
- Leetcode daily question (971. flip binary tree to match preorder traversal)
- Embed UE4 program into QT interface display
猜你喜欢
[English] Grammar remodeling: the core framework of English Learning -- English rabbit learning notes (1)
Attributeerror: can 't get attribute' sppf 'on < module' models. Common 'from' / home / yolov5 / Models / comm
In English translation of papers, how to do a good translation?
18.多级页表与快表
Bitcoinwin (BCW): the lending platform Celsius conceals losses of 35000 eth or insolvency
How to do a good job in financial literature translation?
Office-DOC加载宏-上线CS
UWA Pipeline 2.2.1 版本更新说明
顶测分享:想转行,这些问题一定要考虑清楚!
Introduction and underlying analysis of regular expressions
随机推荐
基于购买行为数据对超市顾客进行市场细分(RFM模型)
Data security -- 13 -- data security lifecycle management
从autojs到冰狐智能辅助的心里历程
How much is it to translate Chinese into English for one minute?
接口自动化测试框架:Pytest+Allure+Excel
Lesson 7 tensorflow realizes convolutional neural network
成功解决TypeError: data type ‘category‘ not understood
ML之shap:基于adult人口普查收入二分类预测数据集(预测年收入是否超过50k)利用Shap值对XGBoost模型实现可解释性案例之详细攻略
雲上有AI,讓地球科學研究更省力
AttributeError: Can‘t get attribute ‘SPPF‘ on <module ‘models. common‘ from ‘/home/yolov5/models/comm
Database basics exercise part 2
E-book CHM online CS
LeetCode每日一题(1870. Minimum Speed to Arrive on Time)
Apache DolphinScheduler源码分析(超详细)
MySQL high frequency interview 20 questions, necessary (important)
Number of query fields
How effective is the Chinese-English translation of international economic and trade contracts
Simple use of MySQL database: add, delete, modify and query
Practical guidance for interface automation testing (Part I): what preparations should be made for interface automation
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