【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}{backgroundcolor}{text}:给文字绘制指定框颜色和背景色的矩形框。 【3】列表...
frame=shadowbox, % 为代码块添加阴影框 rulesepcolor=\color{red!20!green!20!blue!20}, % 阴影框颜色 escapeinside=``, % 允许在代码块中使用 LaTeX 命令 xleftmargin=2em, xrightmargin=2em, aboveskip=1em, % 设置代码块的边距 framexleftmargin=2em % 阴影框左边距 backgroundcolor=\color{lightg...
方法1:首先加载background背景宏包,然后设置背景的可选参数如透明度、缩放系数与旋转⻆度,再提供背景输出的信息,这里可使用\includegraphics也可以用TiKZ绘制,根据个人情况而决定; \usepackage{background} %加载 background 宏包\definecolor{cover}{RGB}{...
instance, you can change to orange the background of\colorbox{BurntOrange}{this text} and then continue typing.\end{document} There are a few changes in this example compared to the one presented in theintroduction. First, the command to import thecolorpackage has two additional parameters: u...
color,mode,lang,amsthm,tcolorbox,titlestyle,cite,ctex,listings,base,math,scheme,toc,esint,chinese...
\node[rectangle,fill=#1,draw=#2,rounded corners=1pt,inner sep=1pt] at (0,0){\color{#3}...
commentstyle =\color{green!100}, % 注释颜色 stringstyle = \color{red!100}, % 字符串颜色 frame = shadowbox, % 用(带影子效果)方框框住代码块 showspaces = false, % 不显示空格 columns = fixed, % 字间距固定 %escapeinside={<@}{@>} % 特殊自定分隔符:<@可以自己加颜色@> ...
修改边框到内容的距离:\setlength{\fboxsep}{1cm},同样将此句做为tex语句加在box的前面,之后要返回默认值3pt:\setlength{\fboxrule}{3pt} 设置边框阴影大小:\setlength{\shadowsize}{4pt},默认值是4pt 设置背景颜色(当然前提是选择了shaded background):\definecolor{shadowcolor}{cmyk}{0.5,0.1,0.5} ...
\colorbox{yellow}{$\displaystyle \frac{a}{b}$} ab或者您可以使用 Bbox扩展 来替换\colorbox命令,详见下条2.7.3。2.7.3 用Bbox扩展设置背景颜色 Setting background color with BboxBbox扩展是一款自定义宏包,如需使用请在公式页面右上角【设置】处勾选后使用。 具体用法如下:...
{ForestGreen} \item First item \item Second item \end{itemize} \noindent {\color{RubineRed} \rule{\linewidth}{0.5mm} } The background colour of some text can also be \textcolor{red}{easily} set. For instance, you can change to orange the background of \colorbox{BurntOrange}{this ...