【Latex】设置空白行、字体颜色、特殊字符
1 设置空白行
以下为两种设置空白行的方法。
~\\
\\[行距] #例\\[3pt]
2 设置字体颜色
2.1 系统自定义颜色
使用方法:
\textcolor{颜色}
其中{颜色}中可以更换为{red/blue/green/black/white/cyan/magenta/yellow}其中一项
具体实验:
实验代码:
\textcolor{red}{color}
\textcolor{blue}{color}
\textcolor{yellow}{color}
\textcolor{green}{color}
实验结果:
2.2 使用RGB通道设置字体颜色
使用方法:
\textcolor[rgb]{r,g,b}{text} #取值范围为[0,1]
\textcolor[RGB]{R,G,B}{text} #取值范围为[0,255]
具体实验:
实验代码:
\textcolor[rgb]{0.2,0.1,0.5}{color}
\textcolor[RGB]{248,122,23}{color}
实验结果:
3 设置特殊字符
本文仅介绍#$%&{}_\这7个字符的输入。
\# ##
\$ #$
\% #%
\& #&
\{ #{
\} #}
\textbackslash #\
实验结果: