Articles of color

How to change the colour of a tag in align?

I’m having the following article: \documentclass{article} \usepackage{amsmath} \begin{document} \begin{align*} d(x, y) &= d(y, x) \tag{symmetry} \\ &\leq d(y, z) + d(z,x) \tag{triangle} \end{align*} \end{document} I’d now like to change the colour of all the tags – brackets included – in my document (in this case (symmetry) and (triangle)) to gray, instead of the standard black. […]

Color merge from RGB specification

With the xcolor package one can define colors in many ways for example, using standard names, \colorbox{red}{…} Merging colors \colorbox{red!25}{…} \colorbox{red!25!blue}{…} Or from the RGB or CYMK values \colorbox[rgb]{0.1,0.2,0.3}{…} Is it possible to combine inline the RGB and merging approaches? For example \colorbox[rgb]{0.1,0.2,0.3 ! 25}{…} %invalid code \colorbox{\color[rgb]{0.70,0.05,0.65}!25}{…} %also invalid To make a given RGB […]

Tikz: How to indicate/display overlapping lines

I have the following simple picture: Is there a way to better illustrate the small overlapping interall of LS and LD? I know I could define this area by another line for example and use different dashed version of red and green. But is there a best-practice for all cases of overlapping lines which for […]

Different colors for itemize in blocks and outside, in Beamer?

I would like to obtain what I describe in the following MWE, that is the itemize symbol should be black outside blocks; blue in normal blocks; red in alert blocks; green in example blocks. MWE: \documentclass{beamer} \begin{document} \begin{frame} \begin{itemize} \item Here in blue, I’d like it in black. \end{itemize} \begin{block}{A block} \begin{itemize} \item Here in […]

Add gradient to colorbox

Newby here. I found a great template for technical reports here . . Stylish Article I would like to change the background color of the abstract and section headings to a vertical gradient. The relevant section of code in the template appears to be here . . \renewcommand{\@maketitle}{% \twocolumn[{% \thispagestyle{empty}% \vskip-36pt% {\raggedleft\small\sffamily\bfseries\@JournalInfo\\\@Archive\par}% \vskip20pt% {\raggedright\color{color1}\sffamily\bfseries\fontsize{20}{25}\selectfont \@PaperTitle\par}% […]

LaTeX referencing colorful numbering

I have some silly questions on LaTeX use: In an article, how do I get colorful references like in the figure below? How do I reduce the built-in reference font size given below? How do I write multiple reference like fig(1) –> ref 5-8 ? If we write like as \cite{fahjhf1,hfafafa2, hafhad2, fhahgadfhd3} then output […]

How to change the color of itemized text using `\color<>{}` in Beamer?

I want to change the item text color in Beamer. I checked the Beamer User Guide and found the \color<>[]{} command in page 80. \color<2-3>[rgb]{1,0,0} This text is red on slides 2 and 3, otherwise black. Then I found an example which uses this command in the enumerate environment in the tutorial (page 15). \begin{enumerate}[A] […]

Colorbox does not linebreak

I’m new here, so I’m sorry for any mistakes or error in from my part. I am trying to make colored textboxes that refer to colored blocks in a figure. My problem is that the colored box does not linebreak at the end of the page. Does anyone know a way around it? (I don’t […]

Siunitx: how to deal with invalid numerical input '-'?

Thanks to you all, I found siunitx for decimal alignment. However, some of the columns in my correlation matrix don’t have any numbers and have “-” instead. siunitx gives me an error about invalid numerical input. How can I get around this? This is my code: \documentclass[6pt]{article} \usepackage[landscape, total={8.5in, 5.45in}, top=1.5in, bottom=1.25in, right=1. 25in, left=1.25in, […]

How to change a color of a specific citation?

I want most of my citation to be blue in color. So I used \usepackage{hyperref} \hypersetup{colorlinks,linkcolor={blue},citecolor={blue},urlcolor={red}} But I need some of my citation in a different color(say yellow). I tried {\color{yellow} \cite{eg} } to change the specific citation brutally but it doesn’t work. What should I do.