{color} is about using color in (La)TeX documents. Popular packages are color and xcolor.

learn more… | top users | synonyms (1)

1
vote
1answer
45 views

Change Style of the Letterhead in Koma Script scrlttr2

I am using the scrlttr2 class of Koma Script and I would like to use a different color for the letterhead, which contains my address on the top of the page. Is there a simple way to apply the command ...
1
vote
1answer
70 views

not showing define colour

\documentclass[10pt]{article} \usepackage{array, xcolor,graphicx} \usepackage[margin=3cm]{geometry} \usepackage{hyperref} \title{\bfseries\textbf\textit\underline{Anum Naeem Nagra}} \author{anaumnagra@...
1
vote
1answer
72 views

How to improve text readability on noisy, colorful background?

I have a noisy, colorful background, and I am writing text into it. The problem is that depending on the background color, part of the text is difficult to read. This is a TeXified question of this ...
1
vote
1answer
49 views

New environment special colored box

I would like to construct a new environment that I can call like: \begin{Box}{*Title of Box*} ** Text ** ** Math equations ** \end{Box} It shall have the following properties: The box ...
5
votes
2answers
134 views

Tikz fill color

At the moment I'm using this command in the preamble to fill the color of the specified row with grey: row 2/.style={ nodes={fill=gray!10} } Unfortunately I have to write this ...
5
votes
2answers
67 views

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 ...
1
vote
0answers
38 views

Color aliases in lecturer.tex

It is my understanding that lecturer.tex uses its own strategy to manage named colors, but I would like to manage my own color palettes, so that I can just "switch" them; so, I would need an "alias" ...
4
votes
1answer
50 views

alternate row colors for only some columns

I'd like alternating row colors for only specific columns (and in a perfect world, also only a subset of rows), with a table using multirow and multicolumn. I've found that putting \rowcolor{COLOR} ...
2
votes
2answers
93 views

How to use colors from a pgfplots colormap in pie chart?

I like the pie chart from http://www.texample.net/tikz/examples/pie-chart/, but it's in grey color. Then I found the modified version to add colors by "Sigur" here:How to give different color to each ...
4
votes
1answer
57 views

Misplaced noalign when using rowcolor

I am trying to create a table with colored rows and colored hrules between the rows, but I am getting a "Misplaced \noalign. \rowcolor" error. The following example reproduces this problem: \...
3
votes
1answer
49 views

How to color just the section numbers in the Toc in the tufte-book class?

This is a follow-up question to How to color section numbers in the TOC? How to adopt the answers in the link above to work in the tufte-book class? here is my MWE: \documentclass[notoc,...
4
votes
2answers
95 views

How to color section numbers in the TOC?

In the following MWE, how can I color just section numbers in the TOC? \documentclass[a4paper]{book} \usepackage{color} \makeatletter \renewcommand*\l@section{\@dottedtocline{1}{0em}{2.3em}} \...
6
votes
1answer
41 views

Beamer color doesn't match

I am trying to get the color R0, G130, B202 into beamer. It should look like this: But the following Beamer document: \documentclass{beamer} \definecolor{PMSProcessBlue}{rgb}{0,130,202} \...
4
votes
1answer
56 views

How to make a layout with colored boxes around sections

I am trying to reproduce the following layout with latex: Is there any package or document class made for such a layout? The example is made in word using tables. But I think using tables in latex ...
0
votes
0answers
22 views

Coloring citations in the text

(possible duplicate) hi, i try to color my citations using hyperref package. here is my preamble: \usepackage{geometry} \usepackage{setspace,scrextend,sectsty,microtype,endnotes,xcolor} \usepackage{...
2
votes
1answer
52 views

How to color an semiplane delimited by one axis?

In my code below I made an complex plane with the real axis and imaginary axis CODE: \documentclass{article} \usepackage[brazilian]{babel} \usepackage{tikz} \begin{document} \begin{...
0
votes
1answer
58 views

Annotate row and column highlighted in one table with different color by Tikzmark in Beamer

I found example for row only here: Annotate the table row highlighted by Tikzmark in Beamer Also found example for column only here: Annotate the table column highlighted by Tikzmark in Beamer but ...
0
votes
1answer
62 views

Set color of \emph{} in beamer

How can I set the color of the \emph{}-tag in beamer? I tried something like \setbeamercolor{emph}{fg=red} inside of beamercolortheme.sty but it had no effect.
3
votes
1answer
30 views

How to increase background color of a node to input text

Obviously I need a background color for the rightsided text. Code is from the Tantau manual, p.45. It's a riddle for me at the time. Something wrong with the node which keeps the text? For any answer ...
4
votes
2answers
41 views

Single character keywords/operators with no spaces with listings package

I want to add a very simple macro language to listings. It uses single-letter keywords/operators, with no whitespace between. I can't see how to make keywords that don't require some kind of separator ...
5
votes
5answers
159 views

How to style href's (underlined and coloured) throughout the document

Let's take the following MWE: \documentclass{article} \usepackage{hyperref,xcolor} \begin{document} \href{http://any-URL}{\color{blue}{\underline{Some URL}}} \end{document} Let's assume I would ...
5
votes
1answer
93 views

Beamer: How to use “beamercolor” in a tikz picture

How might it be possible to change the font color of a tikzpicture element to the value of a particular beamercolor, e.g. block title?-- For example: \documentclass{beamer} \usepackage{tikz} \begin{...
1
vote
1answer
72 views

How can I color one cell of a table using a tikzpicture?

I want to draw a table, and color one cell in another color. As I'm not that experienced in latex, I found this example: \usepackage{tikz} \usetikzlibrary{calc,matrix} \usepackage{amsthm} \usepackage{...
0
votes
3answers
48 views

LaTex - Change color of section

I want to change the color of a single section, and that color must not be changed in Table of Contents. \subsubsection{{\color{red} Embedded Design}} This is the code I used, but the color will ...
0
votes
0answers
33 views

Column color overwrites hline in array

Please help. Why does color column overwrite just the second \hline? How do I rewrite it? \begin{document} $$P=\left[ \begin{array}{>{\columncolor{red}}c>{\columncolor{red}}c>{\columncolor{...
2
votes
1answer
40 views

Overwrite point meta value after explicit definition

I want do some surface/mesh plots in pgfplots with a kind of logarithmic axis for positive and negative values. This is sometimes called a symlog colormap transformation, i.e. a logarithmic axis for ...
0
votes
0answers
12 views

How to read a beamer color from the theme? [duplicate]

I want to put some tikz drawings into my beamer slides. I would like to colour the things in the tikz drawing the same as other things in the slide. For example, I want to fill in a box with the ...
1
vote
1answer
56 views

Beamer - numerating theorems and color of block

Why won't it numerate my newly defined theorem block. And can i change the color of the block? \documentclass{beamer} \newtheorem{teorem}{Teorem}[section] \newtheorem{definicija}{Definicija}[section] ...
0
votes
1answer
52 views

Specify Color for autoref Without Affecting Other Document Links

I am creating a document to be used by people not familiar with TeX. I am using the autoref command throughout the document to refer to tables, figures, etc. I would like to clearly signal to my ...
0
votes
0answers
30 views

Change font background color in custom url command

I want to change the background color of a custom url command. I did not find how to. For now I use : \DeclareUrlCommand\myCustomUrl{\def\UrlFont{\ttfamily\color{green}}} But this only change the ...
4
votes
1answer
58 views

Choose color based on value for Kpi reporting

I trying to make a report containing colored spheres that should be wrapped in a command and updated dynamically. I have defined af colored sphere that receives a color, a value and a text. The color ...
1
vote
1answer
41 views

change the color of the footer in the first page of the fancy

I am using this to change the color of the headers and footer of the chapter pages in the fancy page style, which I got from another post. \usepackage{etoolbox} \makeatletter \...
17
votes
3answers
583 views

Why does xcolor lighten a color when mixed

I'm trying to create a smooth gradient between cyan and blue connecting two shapes, one drawn in cyan and one in blue. For that I use a simple mix of the two colors in a \foreach loop. However, in ...
1
vote
0answers
20 views

Colouring in-line text within verbatim environment

I wish colour some selected text within the verbatim environment. These texts may not occupy a whole line, but rather be a small part of a line. An illustration is given below. Say for example, in ...
0
votes
2answers
96 views

Customized table

How can I create a table like the following? \begin {table}[H] \caption {Table Title} \label{tab:title} \begin{center} \begin{tabular}{|c|c|c|c|} \hline \multirow{2}{*}{A} & \multicolumn{3}{c|}{...
3
votes
1answer
108 views

Transparent table cell color

I have a simple table \documentclass{article} \usepackage[table]{xcolor} \usepackage{adjustbox} \usepackage{booktabs} \begin{document} \begin{table} \rowcolors{2}{}{gray!10} \centering \begin{...
1
vote
1answer
59 views

Asymptote (XeLaTeX): Use custom-defined colors/Call drawing functions from external file

I'm quite new to Asymptote, although it's great to manipulate vector graphics within LaTeX. Specifically, I'm using XeLaTeX. What I'm trying to do is to change the color of a vector graphic to ...
3
votes
0answers
27 views

How to change this to color map? [duplicate]

Sorry if this question is too basic. I have the following, \documentclass[tikz]{standalone} \usepackage{pgfplots, filecontents} \begin{filecontents*}{h.dat} 0 0 0.0659197583889 1 0 0....
1
vote
1answer
63 views

LyX: How to change color of an individual Shaded Background Box?

I can change it globally by going to Document -> Settings -> Colors: Shaded boxes. However, what if I want different boxes to have different colors? For example, in my case, by default I set the ...
3
votes
1answer
48 views

Command for both bold and colored text

Every time I want a bold text, I want it colored blue. Currently, I am using: \textcolor{blue}{\textbf{some bold and colored text}} To save time, I can define a command to do both at once. How can ...
1
vote
1answer
78 views

How to mimic cards generated by passwordcard.org?

Assuming we have generated contents of card (i.e. excluding top header row and left indexing column) , for eg. with some pseudo-random generator script. How to render such to mimic the look of one ...
3
votes
1answer
90 views

Create a chapter with different style, using Tufte book

I'm finishing a book using Tufte-Style Book (b5paper,twoside,justified). I just arrived at the last chapter (10th) and want it to be different from the previous 9, as it contains different information ...
0
votes
0answers
28 views

citation color and table color of contents are unusual when using MacTex2015

when I use "latexmk -xelatex thesis.tex" to compile thesis.tex, the process always be paused twice with the messages below: (/usr/local/texlive/2015/texmf-dist/tex/latex/trimspaces/trimspaces.sty)) (/...
2
votes
1answer
98 views

Color correspondance in tikz and pyplot

I draw a graph with pyplot, which I save in pdf format. I then want to draw a line with the same color in tikz, however colors mismatch. I get this result: I create my graph with: #!/usr/bin/env ...
1
vote
1answer
37 views

insert small colored box to the left of a moderncv subsection without using \hspace

I have this code: \documentclass{moderncv} \usepackage{fontspec} \firstname{test} \familyname{test} \moderncvstyle{casual} \moderncvcolor{blue} \newcommand{\colsubsection}[1]{\subsection{\hspace{-...
1
vote
1answer
19 views

Incompatibility with align and table option in xcolor?

Let's see this MWE, painfully reduced from an institution template. It chokes on the align environment, unless I comment out the table option in the xcolor package. I would like to understand why... ...
2
votes
1answer
23 views

Setting background color to text in ConTeXt (Mark IV)

I need to highlight some text in ConTeXt to get something like this: Concerning background colors, all I've found in the manual is some example with \framed command, which is inappropriate to me ...
1
vote
1answer
27 views

! Package xcolor Error: Undefined color `RED'. Only affecting one chapter [duplicate]

I am using the document class book and this error started popping up, It is only affecting one chapter, the others I can use the colour red fine. The line is: \section{\color{red}Section Title} ...
0
votes
0answers
62 views

Latex lstlisting: stringstyle not working

I defined my own language Drools and I want that the words between "" have the color red. I used stringstyle to do that but this doesn't work. Am I forgetting something because I couldn't find any ...
2
votes
2answers
64 views

Macro: compatibility of 1) Auto-colorization & 2) Auto-counter-and-title-to-label

This question is about asking to have the following 2 "workflows" (if you permit me to call them as such) to be able to coexist together in 1 Tex document: Workflow Auto-colorization (≅ User Mico'...