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

learn more… | top users | synonyms (1)

6
votes
1answer
153 views

Color RGB in LaTeX

Please, I'd like to use the blue color RGB (0,32,96) in LaTeX. How can I do this? I find this on the web: \definecolor{ultramarine}{rgb}{0.07, 0.04, 0.56} But it is not the right color I ...
2
votes
1answer
25 views

Colorful prebreak and postbreak tokens with listings package

I want to get colorful prebreak and postbreak tokens with listings package, but the following code doesn't work: \documentclass{article} \usepackage{xcolor,listings} \begin{document} ...
4
votes
2answers
72 views

Problems with pattern color

Why in the following MWE in all shapes the pattern color is as in the first one regardless that it is defined differently? %%%% pattern-color \documentclass[tikz,border=5mm]{standalone} ...
2
votes
1answer
30 views

How to change the color of TOC part font using tocloft

I have customised my toc using tocloft for everything from chapter down to subsection, but I cant work out how to change the color of the part font, how do you renew this command? I have read the ...
2
votes
2answers
84 views

How to change color?

How to change the colour of the ball in which the item numbers are written?. Help me please.
0
votes
0answers
21 views

Coloured box around page number extending to border of page

My documentclass is 'scrreprt' with the option 'twoside' I would like to put a coloured box around the page numbers that extends to the right or left border of the page, without changing the width of ...
2
votes
1answer
38 views

Beamer background and text

I have provided a minimal example of the output I have shown below: \documentclass [compress]{beamer} \newcommand\Fontvi{\fontsize{6}{7.2}\selectfont} \usepackage{remreset} \usepackage{textpos} ...
0
votes
0answers
10 views

Coloured cells in Tabular printing over table lines [duplicate]

I'm using Tabular and XColor to color some cells of a table, but some of the coloured cells are "printed above" the lines of the table (see attached image, which shows part of the table). How could I ...
3
votes
1answer
44 views

Color Mixing/Overlapping Mechanism

Ideally I would imagine that if I overlap the red, yellow, blue three glasses, then I would see more or less a black color in the overlapped region. However by doing this in LaTeX, it seems I was ...
2
votes
1answer
38 views

error: option clash for package xcolor

When trying to load I get the error message 'Option clash for package xcolor'. I have already understood that this is because other packages I loaded before also automatically load this package. All I ...
4
votes
2answers
88 views

tcolorbox incompatibe with color package?

I am trying to add a tcolorbox into my Xelatex document but it does not seem to work. I tracked the problem to the color package which if disabled produces the box. However I need to use the color ...
1
vote
1answer
76 views

Table of contents is red

The problem goes away in the minimal example I created if I remove this: \usepackage[colorlinks=true ,urlcolor=blue,urlbordercolor={0 1 1}]{hyperref} However, in my real document, I have links that ...
1
vote
1answer
44 views

Wrong string color in embedded code

My problem is that when I use the correct quotation marks ``'', lstset does not recognize strings in my code and thus does not color-code them. When I use standard double quotes "", the leading ...
2
votes
1answer
38 views

Adding a different colored line to each row of a table

It is possible to get colored \hlines with the example provided below. However, there are several issues with this implementation: It needs a \newcommand for every color, which then has to be used ...
0
votes
1answer
23 views

How to change the color of label after figure and table in the context?

I wanna write "Figure 1.1" in lyx. I can change the color of "figure" through text style>>customize, but the "1.1" always appears in black and I wanna have both of them in blue. How I can do ...
2
votes
1answer
33 views

Can I have a pgfgantt chart with different colors per bar?

I'm making a timeline for my thesis proposal using the pgfgantt package, and I'd like for each aim to use different coloured bars. Here's the current version. \documentclass[12pt]{article} ...
-1
votes
0answers
38 views

TeX maker output Pdf File error [closed]

In Texmaker, my output pdf file's some tex get less darker and some is proper darken text. Here is my file... \documentclass{article} \usepackage{tocloft} \usepackage{graphicx} \usepackage{array} ...
5
votes
4answers
160 views

How to change the background color within a page

I have a one page document like below. I would like the background color would be green, then I would like change it to yellow. Is it possible? \documentstyle{article} \begin{document} ...
1
vote
0answers
23 views

Color of dash gaps in tabular and dash endpoint alignment?

I am using the \usepackage[table]{xcolor} and the \rowcolors{...}{...}{...} command to get rowwise alternating background colors in my tables. Now i wanted to have dashed vertical lines and came ...
2
votes
1answer
25 views

I cannot control SolutionColor in exam \shadedsolution

I would like to choose solution color shading (green), and tried the following \documentclass[a4paper]{exam} \usepackage[utf8]{inputenc} \usepackage[T1]{fontenc} \usepackage[danish]{babel} ...
5
votes
1answer
84 views

color / xcolor bug – changing geometry

Can you reproduce this xcolor bug? \documentclass{article} \usepackage{xcolor} \begin{document} $X_{a}^{b}$\par $X_{\color{red}a}^{b}$ \end{document} pdfLaTex, LuaLaTex, XeLaTex, all create the ...
5
votes
2answers
251 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
24 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
48 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
20 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
24 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
176 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 ...
19
votes
1answer
240 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
47 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
44 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
63 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
58 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
91 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
29 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
52 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
286 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
34 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
49 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
242 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
151 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
71 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
89 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
51 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
177 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
85 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
129 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 ...
1
vote
1answer
40 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
34 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
57 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 ...