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

learn more… | top users | synonyms (1)

10
votes
1answer
8k views

Creating colorful plot using latex terminal of gnuplot?

Most output terminals of gnuplot draw different lines in a plot in different colors. I'm trying to create a plot inside my pdf document using gnuplot's latex terminal and the lines are only ...
2
votes
1answer
124 views

Tabular environment for specified width, bg and font colorings by row?

I'm looking for a tabular-type environment which will allow me to: Specify the total width (like tabular* or tabularx, tabulary) Allow an individual row to have a specific background color (like ...
4
votes
1answer
321 views

Can the font of chords be changed (“songs” package)?

In the songs package, it's possible change the font of chords? For example: Garamond font for lyrics and Computer Modern for chords? Or change the color of chords, for example: lyrics-black, ...
8
votes
2answers
79 views

Check equality between colors

Consider the following: \colorlet{mycolour1}{black} AND \colorlet{mycolour2}{black} How do I use a command like \ifthenelse{\equal{mycolour1}{mycolour2}}{TRUE}{FALSE} In other words, how can I ...
5
votes
1answer
1k views

Define colour transparency in relation to existing colour

Background Using ConTeXt to develop a nice theme where users can change the colour scheme, but still get the same "feeling" for the output, primary, secondary, and tertiary colours are defined. For ...
2
votes
1answer
230 views

change latex glossary page number color

In the glossary chapter, I want to change the page number color from black to blue. How to do that ? Is there an option in the \usepackage{glossaries} entry ? \usepackage{glossaries} ...
4
votes
1answer
446 views

How to avoid shading of connection bars in TikZ mindmap

I am trying very hard since a while to draw a mindmap where shading of connection bars is avoided and where the connection bar's color is specified by me. For instance, I would like to draw two green ...
5
votes
1answer
120 views

Weird problem with pdfpages and fbox

I'm trying to get a colored background for my page numbers, and it works okay - except when I want it to show on pdf pages (which is where it's most important). This also happens on the last page of ...
3
votes
1answer
251 views

TikZ - Why is the outer line of the grid way more bright than the grid itself?

Why does the outer line of the triangle grid (= the dark gray one) look so much more bright? It seems to get the same colour when I change draw=gray to draw=black, but that doesn't make much sense to ...
7
votes
1answer
460 views

Set margin background colour for all chapter pages

Problem The \setupbackgrounds macro has the ability to change the background colour of the margins, from the top of the page to the bottom: \setupbackgrounds[footer,header,text][rightmargin][ ...
3
votes
1answer
331 views

Change color of vertex outline in tkz-graph

Suppose I have the following graph: \documentclass[]{article} \usepackage[utf8]{inputenc} \usepackage[usenames,dvipsnames]{xcolor} \usepackage{fullpage} \usepackage[upright]{fourier} ...
2
votes
2answers
147 views

hiding equation with fcolorbox won't work

I'm learning some formulas and in order to hide them (=print white) within my pdf-document using fcolorbox. I tried to create some macro, here's my mwe: \documentclass[a4paper]{scrartcl} \nonstopmode ...
8
votes
2answers
833 views

center image when's bigger than textwidth

I have an image that is larger than the line width and I want to center it and I also want to have a colored frame around. I can get this two things done one at the time, but don't know how to achieve ...
4
votes
1answer
103 views

Customized tabular environment

we've quite often have to write tables in our CI layout (colors, borders, fonts, etc). At the moment we use the standard tabular environment with lots of extra instructions (in the environment ...
3
votes
1answer
421 views

Issue on pdf(La)TeX with named colors in dvipsnames

When compiled on pdfLaTeX, the following code (and MWE) returns a PostScript error message: \documentclass{article} \usepackage[dvipsnames]{xcolor} \usepackage{pstricks} ...
3
votes
1answer
364 views

Problems customizing listings captions

I'm trying to "decorate" source code with listings, but I'm getting some warnings and bad boxes when I compile my document. However the document compiles and looks like I want. I noticed the warning ...
2
votes
1answer
379 views

Alternate row colors (shade rows) in algorithmic environment?

In a tabular environment, one can achieve an alternating color of rows by using the rowcolors command like so: \documentclass[11pt,a4paper]{article} \usepackage[table]{xcolor} \begin{document} ...
6
votes
4answers
1k views

Color background of chapter headings

I'm trying to change the background color of the chapter headings. I'd like the full top part of the page, including top and right margins to turn gray until the titlerule. Currently they look like ...
2
votes
1answer
168 views

Changing reference text style

I'm trying to change the style of the text of the images reference. I want something like you see in textbooks, for example with the words (fig. 1.23) in bold, colored and maybe a different ...
3
votes
1answer
403 views

How to get horizontal black line when coloring cells?

I have the following table with an arrow showing the missing black horizontal black line: Here is the relevant code, I am wondering how do I get a black horizontal line where there is one missing? ...
3
votes
1answer
281 views

Color Text and BG of Verbatim, without affecting `fancyvrb` line numbers

The MWE below aims to color the text and background of a Verbatim environment. \documentclass{article} \usepackage{fancyvrb} \usepackage{color} \usepackage{calc} ...
6
votes
1answer
2k views

Change “FIGURE 1:” color, but not caption color

I would like to change the color of the "FIGURE 1:" portion of my caption to blue (including the number & colon), but I want the remainder of the caption to be black. I have tried the following in ...
0
votes
2answers
147 views

Example end mark fill

does anyone know how I could add fill to this end mark? It's currently a white box with a green border. I've bolded the part of the code where the problem is. \input{setup} \begin{document} ...
5
votes
2answers
299 views

How to make TikZ draw right child before left

I'm trying to make a tree with two different colors of edges, black and gray. This is my code: \documentclass{article} \usepackage{tikz} \usetikzlibrary{positioning,automata} ...
1
vote
1answer
130 views

Assigning different colors to numerical values below a certain parameter?

I'm relatively new to Latex so apologies for any stupidity upcoming. I'm trying to read a Matlab vector into a latex table with values ranging between 0 and 1. For the values less than 0.1, I want ...
2
votes
1answer
125 views

Is it possible to make the body text in a proof environment a bold red instead of black?

Is it possible (using ntheorem) to change the default text colour of the proof environment (of course black) to a boldface red? I am typesetting an Analysis book, and a friend and I are looking [for ...
6
votes
1answer
3k views

Change item and subitem text colour in beamer lists

I am using Montpellier theme for beamer presentation. I need to change the item and subitem text colors. I also need to make the subitem text italics. How do I do that?
4
votes
1answer
100 views

Alternatingly shading rows with @{}

I want to alternately shade the rows in my table. I am aware of How to alternately shade rows in a table and similar questions. However, as my table is long and needs to be aligned very neatly in ...
1
vote
0answers
191 views

floatfoot with ffigbox gives warning

I use a (I believe correct setup) of floatrow, to generate multiple subfigures, which uses \ffigbox and I would like to use \floatfoot to generate a longer text below the caption for the group of ...
6
votes
2answers
323 views

Changing arrow colour in smartdiagram

The smartdiagram package appears to have a default convention that an arrow in a circular diagram takes the colour of the destination block. Is there a way to choose instead the colour of the source ...
5
votes
2answers
561 views

How to set colored ruled margins for some pages?

How this can be done for ALL pages is explained in this thread: How to set colored ruled margins for different pages? But I would like to know if it is possible to color the margins only for some ...
8
votes
1answer
744 views

pgfplots sample colors from colorbar

I would like to get the color definition from a sample of colors in a pgfplots colormap using for example the RGB model. When I choose colormap/bluered with colorbar style={samples=10} I need to have ...
5
votes
2answers
177 views

Color Management with a Family of Curves

I am struggling with following fairly simple looking problem of plotting a family of curves. \documentclass[border=1mm]{standalone} \usepackage{pgfplotstable} \pgfplotsset{compat=1.8} ...
2
votes
1answer
165 views

printing colored borders of hyperref package (latex)

I Want to print the borders of hyperref package in LaTeX. Using the package \usepackage{hyperref}, in the pdf file, some borders (red, green, etc) appears. When the document is printed the borders ...
4
votes
1answer
778 views

XeTeX giving option clash error [duplicate]

I'm trying to clear a maddening error from this .tex file: % % Syllabus template for use with http://kjhealy.github.com/latex-custom-kjh % \documentclass[11pt,article,oneside]{memoir} %% ...
4
votes
1answer
722 views

Showing grid on top of plot fill with PGFplots?

I have a plot with a pass/fail metric, and wish to show this clearly by having to seperate colors in the plot. To make the data stand out, I have a background grid to the axis tick marks. However, ...
11
votes
3answers
312 views

Defining a macro for “real” colored delimiters

I recently looked up J. van Hoorn's question on How to color delimiters in Math Mode, and so I decided to test my LaTeX knowledge by trying to define a new appropriate command: ...
3
votes
0answers
617 views

Changing the colour of Beamer \titlepage using a .sty file

I've been looking for an answer everywhere to this, but so far, nothing seems to have worked. What I would like to do is change the background colour and font colour of the \titlepage command, but to ...
1
vote
1answer
1k views

Exact green color of example in Beamer

I'd would like to use the same green colour as in the example mode. Does it coincide with \definecolor{darkgreen}{rgb}{0,0.5,0}? Is it possible to use it without defining a new color? (Maybe using ...
1
vote
0answers
31 views

Citation colour vs parentheses colour [duplicate]

I have used Audrey's code to cite something of the form: \citet[p.~42]{smth}. This code is excelent if someone wants to have the parentheses affected as well. Now, I ask if it is possible to have the ...
13
votes
2answers
2k views

Tables with colored cells and dashed lines

I would like to draw a table with some colored cells and dashed horizontal lines. Here is my first attempt using the colortbl package and the arydshln package: \documentclass[12pt]{article} ...
5
votes
0answers
63 views

Different citation colour for page number [duplicate]

I try to cite a specific page in LaTeX using the following command: \cite[p.~42]{Friedberg1995}. I use colorlinks and I have set a blue colour for my citations. After the compilation takes place I ...
4
votes
2answers
731 views

Various \textcolor within lstlisting?

How can you set various words in your lstlisting to various text colors? For instance, I want the word "fail" to appear in red and the word "pass" in green. I have the feeling there should be some ...
17
votes
2answers
880 views

XeLaTeX and TikZ - how do I ensure my PDFs are using the CMYK color model?

The place I want to print my document at needs the PDF to be provided in CMYK. The document is mostly text, except for a few graphs and plots which are done in TikZ or pgfplots. As suggested in this ...
3
votes
1answer
323 views

How to create a table where one cell spans all the columns and the text wraps properly?

I need to create a table like this: table with two columns and width equal to width of the page; border around whole table; first row spanning two columns; with background color, bold font and ...
0
votes
1answer
141 views

Whitespace as wide as a character [duplicate]

I would like to produce whitespace as wide as a particular character. One trick I have figured out is to use {\color{white} x} (if for example this would produce whitespace as wide as the character x) ...
4
votes
1answer
625 views

Problem with compilation (color)

I have this code in LaTeX (the .cls file is HERE): \documentclass[thesis=B,czech]{FITthesis}[2012/06/26] \usepackage[utf8]{inputenc} \usepackage{graphicx} \usepackage{dirtree} ...
3
votes
1answer
480 views

Putting shade in part of a figure in `picture` environment

I was trying to draw the some diagram by using the picture environment. I want to put shade certain part of the figure, namely inside of the rectangle (with curved corners) created in the left hand ...
9
votes
2answers
5k views

Package xcolor Error: Undefined colors “Maroon”/“Royal Blue” when master has PDF included classicthesis 3.1

I am using classicthesis 3.1 in Lyx 2.0.6. When I include PDFs in the master document, I receive the following error: ! Package xcolor Error: Undefined color `Maroon'. See the xcolor package ...
4
votes
0answers
207 views

Latex - picture color and minted color

I'm using minted package. If logo (top-picture) contains green, code color change. \definecolor{codecolor}{RGB}{108,247,10} ...