当前位置:网站首页>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。
边栏推荐
- How much is it to translate Chinese into English for one minute?
- 机器学习植物叶片识别
- LeetCode 1200. Minimum absolute difference
- Luogu p2089 roast chicken
- Cobalt Strike特征修改
- [brush questions] how can we correctly meet the interview?
- 云服务器 AccessKey 密钥泄露利用
- Chinese English comparison: you can do this Best of luck
- Tms320c665x + Xilinx artix7 DSP + FPGA high speed core board
- Address bar parameter transmission of list page based on jeecg-boot
猜你喜欢

What are the characteristics of trademark translation and how to translate it?

Summary of leetcode's dynamic programming 4

My seven years with NLP

Office-DOC加载宏-上线CS

What are the commonly used English words and sentences about COVID-19?

翻译生物医学说明书,英译中怎样效果佳

How to translate biomedical instructions in English

Advanced MySQL: Basics (1-4 Lectures)

LeetCode 729. My schedule I

Tms320c665x + Xilinx artix7 DSP + FPGA high speed core board
随机推荐
机器学习植物叶片识别
MySQL5.72.msi安装失败
接口自动化测试实践指导(上):接口自动化需要做哪些准备工作
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 729. My schedule I
【软件测试进阶第1步】自动化测试基础知识
Classification des verbes reconstruits grammaticalement - - English Rabbit Learning notes (2)
Reflex WMS medium level series 3: display shipped replaceable groups
Address bar parameter transmission of list page based on jeecg-boot
一文读懂简单查询代价估算
Is it difficult for girls to learn software testing? The threshold for entry is low, and learning is relatively simple
基於JEECG-BOOT的list頁面的地址欄參數傳遞
Distributed system basic (V) protocol (I)
UniPro甘特图“初体验”:关注细节背后的多场景探索
红蓝对抗之流量加密(Openssl加密传输、MSF流量加密、CS修改profile进行流量加密)
Day 246/300 ssh连接提示“REMOTE HOST IDENTIFICATION HAS CHANGED! ”
A 27-year-old without a diploma, wants to work hard on self-study programming, and has the opportunity to become a programmer?
Thesis abstract translation, multilingual pure human translation
专业论文翻译,英文摘要如何写比较好
Lesson 7 tensorflow realizes convolutional neural network