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

learn more… | top users | synonyms (1)

5
votes
2answers
276 views

Change Color of Proof

I'm using the \begin{proof} of the amsthm package. And I want to change the color of everything in this environment. Currently, I use {\color{blue} \begin{proof} ... \end{proof}}. But I need to do ...
0
votes
0answers
34 views

Footline formatting - spacing and color of the shortitle

I am having trouble with the footline - I couldn't find the answer. How can I make the space between my name and affiliation (bottom left)? How do I change the color of "Introduction and ...
0
votes
2answers
55 views

how to change a colour of a specific word in a line?

Actually I want to change colour of specific word in a line in a presentation \documentclass{article} \usepackage{xcolor} \begin{document} \begin{frame} What I have here \begin{itemize} ...
3
votes
0answers
26 views

What is the best approach regarding .cfg files for the LaTeX graphics bundle?

The manual for the 'graphics' LaTeX bundle includes instructions for setting up the right conditions for the use of colour and the inclusion of graphics in documents. For example, on page 2, it says ...
0
votes
0answers
42 views

Missing files with color (graphics) and xcolor packages?

I've tried this in the preamble: \usepackage[usenames,dvipsnames,svgnames,table]{xcolor} Obtaining this a demand for: tex\latex\xcolor\svgnam.def I checked, it wasn't in the xcolor folder downloaded ...
4
votes
1answer
194 views

Is there a way to iterate over all defined colors without mentioning them again?

Situation Let's say I have defined some colors. I'd like to produce a test page that functions as a color-key for developers. Example The defined colors colora, colorb, and colorc should be ...
21
votes
1answer
291 views

How can I color parentheses depending on the nesting level (like emacs' rainbow-delimiters)?

Is it possible to have a custom setup for lstlistings for LISP-like languages and have matching parentheses coloured with a same colour taken from a palette? What I am looking for is something like ...
0
votes
1answer
103 views

LaTeX: chapter & section title (background) colour

I wanted to make my chapter and ((sub)sub)section titles as follows (compiling by XeTeX-ing): White chapter title on background RGB 10,30,96 (defined as "ugentblauw") (Sub(sub))section title RGB ...
3
votes
1answer
48 views

Making an environment with the same text color as the background

I am looking to type up some solutions to math problems. However, I do not want someone who just looks at the document to be able to see the solution; I want the students to be able to see the ...
0
votes
0answers
38 views

Pdf text looks faded both on screen and on paper [duplicate]

Looking at the pdf generated from the latex code (I am using texmaker) it looks faded with respect to other pdf files I am use to read. I mean, the words are not as dark as the ones on the other ...
6
votes
1answer
73 views

Wrong color with hsb color series in xelatex

I tried to use hsb color series provided by xcolor package in the following code: \documentclass{standalone} \usepackage[table]{xcolor} \begin{document} % example one ...
2
votes
1answer
62 views

Plots and chapterspecific colors

I have a color switching function that looks like this \definecolor{chap1}{RGB}{68, 114, 148} \definecolor{chap2}{RGB}{10,130,124} \definecolor{chap3}{RGB}{250,72,46} ...
3
votes
1answer
124 views

Background color across the entire textwidth for chapter headings - koma script

I have a very similar question to this old (and already answered) one: Giving headlines a background color spanning across the entire typearea However, the solutions provided there only work for ...
2
votes
1answer
33 views

Changing the color of a cell in a table

I used cellcolor to change the color of a cell in the table. But, for some strange reason, it doesnot color it completely. Why would that happen? Below is MWE: ...
3
votes
1answer
105 views

Coloring vs. adding a hatched pattern for table cells

I'm trying to come up with a nicely formatted work plan as a table, but the coloring of individual cells messes completely the row coloring of the table as the following code shows: ...
5
votes
3answers
345 views

How to define a CMYK color using values between 0 and 255

I would like to define my own CMYK colors in LaTeX. I know that it can be done with the \definecolor{my_color_name}{cmyk}{c,y,m,k} command, but here, values between 0and 1 are used. The problem is ...
1
vote
1answer
45 views

Generate new or change a line color with Postscript notation

I'd like to use \psset{linecolor = blue!\mapDFVtoColor} whereas \mapDFVtoColor is defined as something like \def\mapDFVtoColor{20 40 add 3.5 div} Here's a bit longer but condensed example ...
1
vote
0answers
51 views

Coloring single cells in tabular

I've for a while tried to color single cells in a tabular enviroment. So far, I've tried the following \documentclass{article} \usepackage[T1]{fontenc} \usepackage{lmodern} \usepackage{color, ...
13
votes
2answers
278 views

Recoloring math in an equation in Beamer

I have a presentation with the color for math changed to blue: \setbeamercolor{math text}{fg=black!15!blue} Everything looks nice, until I want to recolor part of an equation: \begin{align*} x\ ...
4
votes
3answers
215 views

Two parallel curved edges in Tikz (Or, one curved edge with two colors side-by-side)

I'm working on a series of (linguistic) diagrams in which nodes are connected by lines. Some lines need to bend to go around other nodes. Each diagram has 16 nodes and lots of lines (>50). ...
1
vote
2answers
261 views

Tikz poster block title colours

I'm trying to get a custom colour on the title part of a \block. The documentation is really dense and I can't quite get my head around it. So at the moment I have a \block that looks like just made ...
5
votes
1answer
119 views

Not colored digits after characters in lstlisting code

I am writing a LaTeX document with Verilog code and I would like to have colored digits in these occasions: simple digits (for example # 30) bus (for example [3:0]) binary or hex representation ...
5
votes
1answer
105 views

Construct colormap for iso / level surface in PGFplots

I am trying to construct a plot of a surface in 3d of which the color of the surface is dependent on the z coordinate. The difficult part is that I need the color to vary 'discretely', not ...
4
votes
1answer
194 views

How to style all instances of a certain word?

In my document I want to change the colour of every instance of the * character to red. How can I style every instance of a single word or character without interfering with the document's other ...
0
votes
1answer
102 views

Putting titles in color boxes [duplicate]

I'd like to know how I can a Chapter title into a color box and change the style and personalize it. The only thing I could do, at the moment, is... What I like to do is change the style of the ...
3
votes
1answer
132 views

two-coloured hyphenation

I want to teach a child reading German. For that purpose I want to produce texts in which the different syllables are marked in two different colours, a common technique to facilitate reading for slow ...
2
votes
1answer
49 views

Change the colour of citations in the Tufte book class

How can I change the colour used for margin citations in the Tufte book class to grey? I'd like for the citations to take a visual back-seat to margin notes and figure/table descriptions.
0
votes
0answers
44 views

xeCJK - CJK text colors for customized commands not changing as specified

I'm using the template Deedy-Resume to create my resume. English version works fine, however I'm not sure how to create a Chinese version properly. I used the package xeCJK. The fonts are rendered but ...
4
votes
1answer
69 views

How to handle a color key in pgfkeys

I'm trying to use pgfkeys to parse the arguments in a set of macros. I need to use some arguments for color. But, I get an error with the xcolor package saying that the key I defined is not a valid ...
0
votes
1answer
181 views

colorbox doesn't wrap the text correctly [duplicate]

There is a problem with using \colorbox command. As you can see in the example and its output, the statements in the \colorbox doesn't correctly wrapped. Is there any suggestion for that? ...
1
vote
1answer
72 views

TikZ is colored despite having \setupcolors[state=stop]

In the following MWE I get a red square, but I want it to be gray, as in the also provided LaTeX-document: % ConTeXt MWE \setupcolors[state=stop] \usemodule[tikz] \starttext ...
3
votes
1answer
74 views

How to change/add column background colors in Lyx? I can easily change/add colors of rows, but not columns

Bear with me, this isn't a duplicate question. I can successfully change the row color in tables using the instructions here: http://wiki.lyx.org/LyX/Tables (A similar question exists here: ...
0
votes
1answer
30 views

Unintended caption coloring

I do have a command, which prints out part of the text in different color. \newcommand{\indexit}[1]{\index{#1}{\sffamily\color{NavyBlue}#1}} It works fine, but if pagination breaks #1, and a ...
2
votes
1answer
62 views

Multiple underlines with multiple colors

I would like to highlight the text that corresponds to many persons. I think underline is a good highlighting method. But I can put only one color for the underline. \usepackage{soul,xcolor} ...
9
votes
3answers
304 views

One single colored letter inside \spacedallcaps

I want to change the color of a single letter inside a custom \spacedallcaps command. This command makes the specified text uppercase and changes the letter spacing. When I introduce a ...
3
votes
1answer
74 views

Colorbox with changes package

I am working with the changes package. Modifying the color of the changed passages works well with \colorlet command. Is it possible to create colorboxes (with yellow color) only around the changes ...
4
votes
1answer
331 views

Customize colors in beamer Madrid theme

I have been trying to customize color themes in Madrid beamer theme for slide sections. I have checked the beamercolorthemedefault.sty file looking for the properties I should change to do so, and I ...
1
vote
1answer
81 views

cell colour overlaps cell borders

This is a question that seems to be asked quite often so I apologise for the repetition. I looked in the answers already given and tried out several of them, but none seems to be the solution to my ...
0
votes
0answers
16 views

Why row color overlaps with row border [duplicate]

I am using the following latex code to highlight some row of a table useing rowcolor command. However the table borders in those rows are overwritten by the row color. Why is it happening? How can I ...
2
votes
0answers
31 views

Setting color text to improve eye movement from the of one line to the start of the next? [duplicate]

The web site http://www.beelinereader.com/ provides a chrome browser extension which colorizes paragraphs so that moving your eyes from one line to the next is much quicker than with just black ...
5
votes
2answers
82 views

Changing \eqref colors in Beamer

I want to change my equation reference color to \usebeamercolor[fg]{structure}. I use it as {\usebeamercolor[fg]{structure}\ref{eqn1}} but I want to make this as my default color and just use ...
3
votes
1answer
78 views

TikZ won't support HSB color model hsb in article document class

I'm trying to use the wave color model in a tikz picture using the document class article. When I do, I get the error message "Unsupported color model 'hsb'". Consider the code below. ...
9
votes
1answer
198 views

Creating a smooth gradient between two colors on an edge in TikZ

I'd like to have a two-colored edge between two nodes of different colors. I'm hoping to make the edge fade from one color into the other in an even way. The solution I've found so far is a bit ...
7
votes
4answers
904 views

Creating a rainbow color macro

I'm trying to draw a picture in tikz whose code is generated by another computer program. The program outputs hundreds of numbers in between 0 and 100, and I'd like to color objects in the picture on ...
4
votes
1answer
175 views

How to change the paper color(background color) in tikz class

How to change the paper color(background color) in tikz class kindly help me to change color \documentclass{scrartcl} \usepackage[usenames,x11names,dvipsnames,svgnames]{xcolor} ...
5
votes
2answers
194 views

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: ...
0
votes
0answers
29 views

Autocompletion colors in TexStudio

I am currently trying to customize my TexStudio editor to look a little bit more like what I'm used to from IntelliJ's Darcula theme. However I cannot find where I can change the colors during ...
2
votes
2answers
75 views

Bicolored font (main color and background)

I want to write some text on tikzpicture with bi-colored font: each character will be display in main color but each character will be doubled (like bold) with an other color. The result I want to ...
2
votes
1answer
140 views

Table with different colors removes vertical and horizontal lines

I have a table in my documentation, where i'm switching the rowcolor between white(default) and gray. Those rows, where the color is changed with \rowcolor{gray}, disabling the horizontal and vertical ...
4
votes
3answers
226 views

Simplest way to get a colored rectangle behind text? [duplicate]

I'd like to display a grey rectangle behind text, so that certain parts of the text are more recognisable. I will do this to highlight problems' body. I found various packages, like fancytooltips or ...