【2.4】xcolor包提供的命令(command): 【2.4.1】\color{color}:设置主颜色; 【2.4.2】\textcolor{color}{text}:设置文字颜色; 【2.4.3】\pagecolor{color}:设置页面背景色; 【2.4.4】\nopagecolor:去除背景颜色; 【2.4.5】\colorbox{color}{text}:设置文字的背景色; 【2.4.6】\ fcolorbox{framecolor}...
then the command\color{blue}sets thebluecolour for the current block of text. In this case for theitemizeenvironment. The colour of a second block of text, delimited by { and }, is set toredwith the command\color{red}, then a 0.5mm-thick horizontal ruler is inserted by\rule{\linewidth...
the colour to use and the text whose colour is changed. In the example the word easily is printed in red \colorbox{BurntOrange}{this text} Changes the background colour of the text passed as second parameter. In the ...
小型大写 \textsc{} {\scshape } 字体形状的设置有两种方式:字体命令和字体声明。 \documentclass{article} \usepackage{ctex} \begin{document} %字体命令方式如下,从左到右为直立、斜体、伪斜体、小型大写 \textup{Upright Shape} \textit{Italic Shape} \textsl{Slanted Shape} \textsc{Small Caps Shape} ...
切换颜色,\color[<color-mode>]{},或 \color{<color-name>} 自定义颜色名称,\definecolor{⟨color-name⟩}{⟨color-mode⟩}{⟨code⟩} 输入带颜色的文本可以用类似\textbf的命令:\textcolor[⟨color-mode⟩]{⟨code⟩}{⟨text⟩,或 \textcolor{⟨color-name⟩}{⟨text⟩} 构造一...
\textcolor[⟨color-mode⟩]{⟨code⟩}{⟨text⟩} \textcolor{⟨color-name⟩}{⟨text⟩} 使用示例: 文字用\textcolor{red}{红色}强调 3、 使用超链接 3.1 hyperref 宏包 hyperref 宏包涉及的链接遍布 LaTeX的每一个角落——目录、引用、脚注、索引、参考文献等等都被封装成超链接。但这也使得...
环境信息 操作系统:CentOS 7.6.1810 go版本:1.12 vim版本:7.4.1099 准备工具 确保vim、git、wget这三个工具已安装; 一次操作完成设置 执行以下命令即可完成go语法高亮设置: mkdir -p ~/.vim/autoload \ && mkdir -p ~/.vim/plugged \ && cd ~/.vim/plugged \ && git clone https://github.com...
在文本环境中可以使用\colorbox{options}{text}来调用背景颜色命令,第一个参数为颜色,第二个颜色为文本内容。例如:\colorbox{yellow}{Thistext} $$ \colorbox{yellow}{Thistext} $$注意: 若需要在数学环境中使用\colorbox{}{},请在第二个参数内加入$\displaystyle + 公式$,例如:...
Use of color when typesetting text or math was not part of the original design of TeX; instead, use/application of color was delegated to external “drivers” which converted TeX’s original output file format (DVI) into PostScript or PDF. In order for color to work, driver-specific instru...
这次趁着这个机会正好来系统了解一下,除了要系统的理解日志框架大多数知识外,我们还要学习一个非常关键...