当前位置:网站首页>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.
边栏推荐
- 【服务器数据恢复】IBM服务器raid5两块硬盘离线数据恢复案例
- Use shortcut LNK online CS
- 从autojs到冰狐智能辅助的心里历程
- Leetcode daily question (1870. minimum speed to arrive on time)
- 《从0到1:CTFer成长之路》书籍配套题目(周更)
- Reflex WMS中阶系列3:显示已发货可换组
- [unity] how to export FBX in untiy
- Brief introduction to the curriculum differences of colleges and universities at different levels of machine human major -ros1/ros2-
- When my colleague went to the bathroom, I helped my product sister easily complete the BI data product and got a milk tea reward
- MySQL high frequency interview 20 questions, necessary (important)
猜你喜欢

【刷题】怎么样才能正确的迎接面试?

Office doc add in - Online CS

Bitcoinwin (BCW): 借贷平台Celsius隐瞒亏损3.5万枚ETH 或资不抵债

Blue Bridge Cup zero Foundation National Championship - day 20

LeetCode - 152 乘积最大子数组

UWA Pipeline 2.2.1 版本更新说明

How much is it to translate Chinese into English for one minute?

Fedora/REHL 安装 semanage

Brief introduction to the curriculum differences of colleges and universities at different levels of machine human major -ros1/ros2-

The internationalization of domestic games is inseparable from professional translation companies
随机推荐
Office-DOC加载宏-上线CS
SSO process analysis
Call, apply, bind rewrite, easy to understand with comments
PCL realizes frame selection and clipping point cloud
女生学软件测试难不难 入门门槛低,学起来还是比较简单的
How to do a good job in financial literature translation?
26岁从财务转行软件测试,4年沉淀我已经是25k的测开工程师...
In English translation of papers, how to do a good translation?
MySQL high frequency interview 20 questions, necessary (important)
中青看点阅读新闻
成功解决TypeError: data type ‘category‘ not understood
SSO流程分析
[brush questions] how can we correctly meet the interview?
Day 239/300 注册密码长度为8~14个字母数字以及标点符号至少包含2种校验
Database basics exercise part 2
[ 英语 ] 语法重塑 之 英语学习的核心框架 —— 英语兔学习笔记(1)
The registration password of day 239/300 is 8~14 alphanumeric and punctuation, and at least 2 checks are included
机器人类专业不同层次院校课程差异性简述-ROS1/ROS2-
Apache DolphinScheduler源码分析(超详细)
A method to measure the similarity of time series: from Euclidean distance to DTW and its variants