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

learn more… | top users | synonyms (1)

3
votes
1answer
379 views

Customize TOC (colors) of classicthesis

I am using classicthesis as a template for my thesis. The thing is that I want to put a different color for the chapters on the table of contents. Example: CONTENTS 1 Introduction (on color ...
7
votes
1answer
2k views

change color of pgfplot bar plot

I want to plot two bar plots next to each other. This works without a problem. However both use the first color defined in a pre or selfdefined colorseries. I tried to modify the color manually in the ...
3
votes
1answer
270 views

Table with small circles on each intersection/corner

I'm a LyX user and have a small question - How do I incorporate to my a document a table consists only of the numbers {0,1}, with borders between the cells, and with small colored circles on the ...
4
votes
2answers
141 views

How can I set the color of an \sbox / \usebox?

In the following code, I want to produce a coloured shape, for example a \rule{1em}{1em}. If I use the \rule as is, it works as expected. However, putting it in an \sbox somehow breaks colouring and I ...
4
votes
4answers
232 views

coloring every chapter name in the document

My question is directly related to post-processing using authoring packages like etoolbox for instance. I've included the package as follow : \usepackage{etoolbox} what i try to do is to prepend ...
5
votes
1answer
138 views

color an entry in the list of figures

I have a command that prints an image and will be used inside a certain environment. First I run a test if the file exists and is a valid image file (see this question for the definition of ...
6
votes
2answers
2k views

coloring the page numbers in the table of contents

I try to color the page numbers of my table of contents. I'm using the package hyperref along with the options : \hypersetup{ colorlinks, linkcolor=wine-stain % custom color } Here's the ...
10
votes
3answers
346 views

How to “bubble in”/color fill an item counter ((A),(B),(C),…) in an enumerated list

I'm trying to make an answer explanation guide for a test where the correct answer is "bubbled in". I've tried using the enumitem package and tikz as shown in this post (Enumerated list with blue ...
1
vote
0answers
117 views

Lyx : change cross reference color [duplicate]

When i make a refference to a figure , the text appears black. How can i change cross reference's default black color to blye or cyan ? I had the same issue with citations but i figured it out with ...
6
votes
1answer
1k views

LaTeX Error: Option clash for package xcolor, even If I put listings before

\usepackage{amsmath} \usepackage{array} \usepackage{booktabs} \usepackage[draft]{pgf} \usepackage{listings} \usepackage[usenames,dvipsnames]{xcolor} I want to use a color ...
19
votes
1answer
438 views

Strange disappearing colored rules in beamer

I have received a booktabs bug report of \cmidrules that disappear when coloured rules are used inside beamer (together with colortbl). The problem can be illustrated with the following simple code ...
5
votes
1answer
915 views

Multiple different meta for marker color and marker size

How do I set the color of a marker with one meta column in a table AND its size with another meta column? So in this minimal working example, how can I set the marker size with 'w1' and the color ...
9
votes
1answer
11k views

Further customize color of hyperref links

I have tried to find a way to customize how internal links are colored, but I don't yet have the expertise in finding and redefining commands. In the LaTeX example below, I describe how I would like ...
7
votes
1answer
150 views

How to change only the color of curly brace made by \underbrace but keep the content color remain unchanged?

I have to set globally the color of every math to blue. However, if I need to annotate an expression by using \underbrace, the curly brace must be in black (for example). The following are my MWE and ...
10
votes
1answer
421 views

Interaction of \boldmath and \not

It seems that using \boldmath (or \bm) along with the \not does not quite work so well. Here is an example using \not\subseteq and \not\le where the line representing negation does not stretch ...
4
votes
2answers
3k views

Define a color for \title, \address and \phone commands of a CV

How can I define colors for a moderncv LaTeX file, for the following commands? \address \title \phone \mail
5
votes
1answer
537 views

White space between columns using \rowcolor{somecolor}

I have been using \rowcolor{color} command and I have noticed that there is always some white space between one cell and the next one in the row. Here is my code: ...
1
vote
1answer
114 views

TikZ plot leaves empty space when using a predefined color (reopen)

This is a reopening of a question previously asked here that was closed with an incomplete answer. The problem is that using \definecolor in tikz picture leaves an empty space that causes ...
3
votes
2answers
124 views

Why does xcolor not like \fbox (or vice versa)?

This document would not compile and a rather cryptic ! Illegal unit of measure (pt inserted) pops up. Here's the MnWE: \documentclass{article} \usepackage{xcolor} \renewcommand{\fboxrule}{0.9pt} ...
3
votes
1answer
1k views

How do I change the background color of a footer in beamer

I know just enough about beamer to be a danger to myself. I am trying to change the color of a footer in Boadilla and am struggling. First, I have declared \usecolortheme[named=black]{structure} ...
6
votes
1answer
894 views

pgfplots: color a (3D) surf using arbitrary RGB colors

I would like to color a surf using arbitrary RGB colors (unlike this question, which just colors the surf using the colormap). In this minimal example (which plots the x+y function), I would like the ...
2
votes
0answers
84 views

What is the default saturation for a beamerposter HTML colour? [closed]

I'm making a poster using beamerposter, with a background defined by a html colour code 682860. I am drawing my pictures in Inkscape, filling the background of the picture with the same colour code. ...
1
vote
0answers
419 views

“Package xcolor error” shows up when a child doc has an embedded pdf [closed]

I am working on LyX Version 1.6.9. While compiling ClassicThesis, I receive the following error message: package xcolor error: undefined color 'Blue'/'Maroon'/'Black' etc This only happens when ...
2
votes
2answers
127 views

coloring keywords in the whole document

Is there a way to color keywords into a document? For instance, I want all the occurrences of a given word to appear in red in the whole document. something like : ...
0
votes
1answer
65 views

how can I predefine the color of multicolumns?

I'm trying to use multicolum. In my table all the columns have a predefined color which will be overwritten by multicolum. So my question is how can I define own or some more custom multicolumn ...
6
votes
2answers
187 views

How to color diacritical marks?

I would like to have the diacritical marks stand out visually by being colored differently. For example, can I have â in which the circumflex is in red, and the 'a' is in black? When I use ...
4
votes
1answer
784 views

Change font color of multiple rows in a table

I found the following post to change the font color of a single row in a table: How to color the font of a single row in a table? My row is a long table with 70 rows and for about 25 the I want to ...
3
votes
1answer
116 views

coloring text in a dcolumn aligned cell of a table

I need to color some text red (not color the cell background) in cell in a table to highlight it. The numbers in the column are aligned on the decimal using the dcolumn package. The problem is that ...
2
votes
1answer
320 views

How do I change the color of one axis in pgfplots?

I know how to change the color for all axis in pgfplots: \begin{axis}[blue] \end{axis} This makes all four edges of the plot blue. Another example is there: PGFPlots: Change the color of axis lines ...
4
votes
2answers
951 views

Set color to output from verbatim

I want to show the output from verbatim in blue color. I have this: \newcommand{\blockcode}[1]{\ttfamily\small#1} {\blockcode \begin{verbatim} alias vi="vim" \end{verbatim}} which works fine. ...
5
votes
1answer
3k views

Changing the color of \alert command in Beamer

Is it possible to change the color of \alert command in beamer. See, it is not the alertblock! For example, I would like to change to color yellow, because the standard color is red, and my background ...
5
votes
1answer
175 views

Underscore should not force mathmode in macro

When trying to color words in arabic (transliteration), LaTeX wants me to be in mathmode (Missing $ inserted.), as there is an underscore in the transliteration. This is of course completely wrong as ...
4
votes
1answer
3k views

Change color of itemize in beamer alertblock

How can I change the color of bullets in an itemize list within an alertblock in beamer? I use \setbeamercolor{itemize item}{<color>} to set the color of the bullets throughout the ...
9
votes
1answer
610 views

Heatmap of a triangular matrix (or a sparse matrix)

So let me first of all shamelessly steal heatmap code from this answer to Drawing heatmaps using TikZ \documentclass{standalone} \usepackage{colortbl} \usepackage{pgfplots} \usepackage{pgfplotstable} ...
2
votes
1answer
606 views

How do I change text color? [duplicate]

Possible Duplicate: How to change color for a block of texts? Wanting to change the text on the contacts frame from black to white. \documentclass[T]{beamer} ...
4
votes
1answer
1k views

How do I change the color of the author text in the Title (first) frame?

\documentclass[T]{beamer} \usetheme{Frankfurt} \usecolortheme{orchid} \usefonttheme{structuresmallcapsserif} \usefonttheme{serif} \usepackage{multicol} \usepackage{graphicx} \title{Example ...
10
votes
2answers
471 views

How to generate n points over a circumference and choose label and color

I would like to place n points over a circumference like Figure 3 of this file. I'd choose the label to be assigned to each vertex and color and I'd like to have the code in TikZ-pgf.
2
votes
1answer
748 views

change the color of an align environment

regarding this documentation ftp://ftp.dante.de/pub/tex/info/math/voss/mathCol/mathCol.pdf it should be easy to change the color of an align environment like this: \documentclass{article} ...
4
votes
1answer
839 views

Device Independent color

I am validating the following latex document with The 3-Heights™ PDF Validator Online Tool \documentclass{article} \usepackage[margin=1in]{geometry} \usepackage[rgb]{xcolor} \begin{document} ...
2
votes
2answers
535 views

Framed floats and background colors for captions

i wanted to edit my floats. Found the package floatrow and got the desired frames easily for them. Now i would like to add a backgroundcolor to the captions. The problem is that the \parbox, i ...
3
votes
1answer
220 views

Style Parcolumns vertical bar

How can I style the vertical bar in parcolumns that appears when using rulebetween=true? I am trying to do something similar to what you can do with \vrule like the below: ...
12
votes
1answer
374 views

Highlighting chunks of text spiral

I use the code provided in this question to draw a text spiral and now I want to highlight each chunk separated with a comma in a different color. Is there a way to achieve that? ...
3
votes
1answer
136 views

increase length of a \node option and change its color

I would like to increase the vertical length of a node in a way that it can also stretch outside of my image. Moreover, I need to choose different color for each line. \documentclass{article} ...
3
votes
1answer
305 views

Custom vertical page border

I wanted to have a vertical colored bar running on all my pages, to the left of the page, in between the beginning of the sheet and the beginning of the text. Something like: |\| text | |\| text ...
4
votes
1answer
374 views

wrapping inline long lines and adding background color

Objective I'm trying to achieve the following output. Here's the code I used to produce it. I had to hack it \begin{document} \begin{description} \item In ...
4
votes
1answer
551 views

page background color for Part

I want to set the background color specifically for the page created for each "Part" section in my document (e.g. Part I xxx, Part II xxxx). I am using the book document class. Solutions for setting ...
18
votes
2answers
35k views

How do I color table columns and rows?

I've found question How do I fill table cells with a background color?, but the link to the documentation isn't helping me at all. I'd like to know how to color a table column given my column code, ...
2
votes
1answer
611 views

How to customize color for TOC, LOF and LOT in {article} class while using {tocloft}?

I have a document using article class (please not ask me why don't use report class). The article has TOC, LOF, LOT and Nomenclature. The MWE: \documentclass[12pt,a4paper,twoside] {article} ...
2
votes
1answer
189 views

custom color for handout

I want to print text I put in \only{TEXT} in another color, so I will spot my personal notes faster in the talk. What command do I need for this, please? I was thinking about creating a new command ...
1
vote
1answer
2k views

Problem with rowcolor in tables

Please help me. I have a problem with this table. I have other tables in my document, but rowcolor worked fine. Particularly, this code of my table has something wrong. I want the header colored with ...