# Tag Info

8

If you are using pdflatex or lualatex, you can use the colorspace package: You can give the alternate colour in either RGB, CMYK, or Lab. However, I notice that colorspaceconverts the RGB values to CMYK, so maybe it's best to stick with CMYK or Lab alternate colours. (This is noted in the manual.) In fact I think it's definitely better not to use the RGB ...

6

A small variation of Sigur's answer: I define an environment instead of a macro (my idiosyncrasy: I find it better to read) and declare a new tag form which guarantees that the equation number is still printed in black. \documentclass{article} \usepackage[svgnames, x11names]{xcolor} \usepackage{empheq} % provided by mathtools, which is loaded by empheq \...

6

(works for non numbered only) You can apply the color to the whole environment simply using \color{} before it. But, make sure that the color changes apply only to the environment, so embrace everything with braces, that is, {\color{<color>}...} Off topic: I would not use those \left \right. MWE \documentclass{article} \usepackage[svgnames,...

4

Nesting multiple \ifstrequal is a pain. Here's a way with expl3 that avoids nesting. \documentclass{article} \usepackage{xparse,xcolor} \ExplSyntaxOn \NewDocumentCommand{\setupbibcolors}{m} { \cs_set_protected:Npn \bibitem ##1 { \color{ \str_case:nnF { ##1 } { #1 } { black } } \heba_bibitem:n { ##1 } } } \cs_set_eq:NN \heba_bibitem:n \...

3

You could add such a key. \documentclass{article} \usepackage{ctable} \makeatletter \define@key{suCT}{framefgcol}{\@dfltCTfgcolorcol#1=} \def\@dfltCTfgcolorcol#1={\colorlet{@dfltCTframefg}{#1}}% \def\@CTfgcolorcol#1={% \colorlet{@CTframefg}{#1}% \def\@CTfgactual{@CTframefg}} \define@key{CT}{framefgcol}{\@CTfgcolorcol#1=} \makeatother \definecolor{...

3

Here's a tikz solution that should get you started. \documentclass{article} \usepackage{tikz} \title{My Document Title} \author{My Name} \begin{document} \thispagestyle{empty} \makeatletter \begin{tikzpicture}[remember picture, overlay, inner sep=10mm, outer sep=0pt] \node[anchor=south west, inner sep=0pt] at (current page.south west) {\...

3

After you posted your MWE, I realised that the issue is not the missing \protect (in fact \color is defined as \protect\color␣ with a space in the macro name of the second \color and that one contains the actual code). The issue is that in book the page headers contain the upper cased chapter title using \MakeUppercase. That turns the colour into RED and ...

2

Your original code will work if you add an extra pair of {}: \documentclass{beamer} \AtBeginSection{ { \setbeamercolor{background canvas}{bg=yellow} \begin{frame} \frametitle{Table of Contents} \vfill \tableofcontents[currentsection] \vfill \end{frame} } } \begin{document} \section{This should be yellow} \begin{...

2

\documentclass{book} \usepackage{xcolor} \definecolor{newcolor}{cmyk}{1,.56,0,.03} % PANTONE 300 c % or ... % \definecolor{newcolor}{RGB}{0,94,184} % \definecolor{newcolor}{HTML}{005EB8} \begin{document} \textcolor{newcolor}{Sample text} \end{document}

2

Welcome to TeX.SE! Here is my solution to this interesting problem: \begin{filecontents*}{my-data.csv} x y z n1 n2 n3 0.0 0.0 0.0 0.0 0.0 0.0 1.0 0.0 0.0 1.0 0.0 0.0 0.0 1.0 0.0 0.0 1.0 0.0 1.0 1.0 1.0 0.0 0.0 1.0 \end{filecontents*} \documentclass[tikz, border=2mm]{standalone} \usepackage{xparse} \usepackage{pgfplots} \usepgfplotslibrary{...

2

Did you have something like that in mind? For the not-so-minimal working example (next time, please try to focus on the main problem), i put some of your settings in the overall groupplot command. However, what was missing in your code were simply the "colorbar sampled" and "point meta min/max" commands. BTW you need only one bar for your approach - so no ...

2

As soon as you load TikZ you have access to the pgf machinery which contains access to arrays and modulo functions. To cycle through the list of colors, \def\LstColors{"myBlue","myYellow","myBrown"} all you need to do is to say \pgfmathsetmacro{\mycolor}{{\LstColors}[Mod(\i-1,3)]} Full example: \documentclass{article} \usepackage{tikz} \definecolor{...

2

You can use simply \colorbox{your color}{your table} MWE: \documentclass{article} \usepackage{booktabs,xcolor} \begin{document} \begin{table} \caption{Foo}\centering \colorbox{green!20}{\begin{tabular}{cc} foo & baz\\ \midrule 11 & 12 \\ 13 & 14 \\ \end{tabular}} \end{table} \end{document} It could look better with some settings before of ...

2

The following MWE based on tcolorbox might serve as a starting point: \documentclass{article} \usepackage[most]{tcolorbox} \usepackage{booktabs} \newtcolorbox[blend into=tables]{mytable}[2][]{float=htb, halign=center, title={#2}, ...

1

Color can be set with the help of \smartdiagramset{set color list={blue!50,red!50,green!50,orange!50!red},} The MWE \documentclass{standalone} \usepackage{smartdiagram} \begin{document} \smartdiagramset{ set color list={blue!50,red!50,green!50,orange!50!red}, } \smartdiagram[descriptive diagram]{ {Set up,The set up operation consist of..}, {Run, {After ...

1

This defines a style change color, which takes an argument, some sort of critical value below which the text turns white. The essential piece in the code is \pgfplotsset{change nnc color/.code={% \pgfmathtruncatemacroFPU{\mysign}{ifthenelse(\pgfplotspointmeta-#1>0,1,0)}% \ifcase\mysign \pgfkeysalso{/tikz/text=white} \or \pgfkeysalso{/tikz/text=black} \...

1

Extracting some links from the comments, the following workaround seems to resolve the issue: I'm recording it here really as a "temporary" solution for anyone else who comes along, and note that this is essentially the same code as in the question here: Tikz patterns and cmyk color model It may well be that in other uses of pgf, the following code is not ...

1

Use % Defines the rSection environment for the large sections within the CV \newenvironment{rSection}[1]{ % 1 input argument - section name \sectionskip \color{green}\MakeUppercase{\bf #1} % Section title \sectionlineskip \hrule % Horizontal line \begin{list}{}{ % List for each individual item in the section \setlength{\leftmargin}{1.5em} % ...

1

Nesting multiple \ifstrequal as follows shouldn't be an issue. The basic syntax is \let\mybibitem\bibitem \renewcommand{\bibitem}[1]{% \ifstrequal{#1}{<BibtexKey1>}% {% % what happens if you key == <BibtexKey1> }% {% % what happens if it's another key % this is where you want to define your next `\...

Only top voted, non community-wiki answers of a minimum length are eligible