{color} is about using color in (La)TeX documents. Popular packages are color and xcolor.
121
votes
7answers
25k views
Remove ugly borders around clickable cross-references and hyperlinks
I know that I can use hyperref to make cross-references and hyperlinks clickable. That makes the clickable areas outlined in fluorescent green, however. How can I make the green boxes go away?
63
votes
1answer
4k views
PDF colour model and LaTeX
(Strictly speaking, this is a question about XeLaTeX and the xcolor package but I’m assuming that the issue is actually with the color model of PDF.)
I’m having the problem that colours in my PDF ...
58
votes
2answers
2k views
Is there a way to have coloured hyperref hyperlinks in the PDF, but have them print “as if” they were black?
I like having my hyperref hyperlinks a different colour, so it's obvious that they are links. But when I print a copy of the PDF, I don't want the links to be coloured, because you can't click them, ...
42
votes
3answers
7k views
Block quote with big quotation marks
How can I create a block quote enviroment with big quotation marks similar to the Cquote Template of Wikipedia?
Additionally it would be nice to place both quotation marks and quote in a colored box ...
36
votes
1answer
1k views
Creating a zebra effect using listings
This question led to a new package:
lstlinebgrd (lstaddons bundle)
Friends, consider the following example using the listings package:
\documentclass{article}
\usepackage[T1]{fontenc}
...
35
votes
4answers
2k views
Does anybody know a good source of (free) ornaments, decorations, frames, backgrounds etc.?
I'd like to prepare a "fancy" typographical project, more interesting visually than a "boring" black-on-white text. I'm not very talented at drawing, though, so I'd like to ask about a place to find ...
31
votes
3answers
2k views
Detecting all pages which contain color
In an larger LaTeX document there are often only some pages with color content (mainly figures) and the remaining ones are only black and white.
Because printing costs for color pages are much higher ...
29
votes
3answers
6k views
How to create alternating rows in a table?
Sometimes you can see in books tables, that have alternating background color for rows in a table to support readability. How I can achieve this with LaTeX?
And yes, I could put macros \odd and \even ...
29
votes
2answers
615 views
How to color the characters in LaTeX2e logo?
I want to get the LaTeX2e logo but with each character having a different color. I know that \LaTeXe produces the logo, but how do I give a color to each character?
27
votes
2answers
740 views
Partially coloring cell background to fake histogram
Excel has a cool feature called "data bar" conditional formatting that allows the user to partially fill a cell background to create histograms based on cell contents. Here is a screen clip example ...
25
votes
4answers
599 views
How to change color of edge of characters? [duplicate]
Possible Duplicate:
Outlined characters
There are many ways how to change whole character color. I want edge color to be different from body color of character. How to do it?
It is ...
24
votes
7answers
770 views
How to replace a large block of text by an empty block of the same size?
I know there exists the \phantom command, but does it work on large blocks of text (containing several paragraphs or even several pages)?
What I want is to have some commands, call them \hide and ...
23
votes
2answers
989 views
Gradient color in one cell of a table
I'm trying to create a tabular and I'm facing the following small issue.
I would like to make the background of one cell a gradient color. Is it easy to do that in LaTeX? And if so, how to do it?
23
votes
2answers
970 views
Parametrize shading in table through TikZ
I wanted to do some shading in a table according to its values. For example, if you see the table below:
a b c d
a 90 10 0 0
b 0 80 10 10
c 0 0 95 5
d 0 10 5 85
I want to ...
22
votes
4answers
760 views
Coloring combining characters without changing color of a base character
Problem
I am trying to find out is there a good way to paint combining characters without changing the color of the base character they are combined with. My actual problem case is to make some ...
21
votes
1answer
16k views
How do I fill table cells with a background color?
I'd like to fill the cells of a table with a background color. How can this be done?
20
votes
3answers
4k views
How to highlight an entire paragraph?
I'd like to highlight paragraphs such that the highlight color appears as one whole rectangle underlying the entire paragraph. I have looked around but nothing gives me the desired effect so far.
For ...
20
votes
2answers
3k views
How do I make sure images are CMYK?
I am submitting a paper to a conference in a few days and just noticed they require all images to be in CMYK color space. Is there a quick easy way to check if they are?
And if they are not, is ...
20
votes
1answer
307 views
When to use the xcolor package instead of the color package?
Can someone explain when to use the xcolor package instead of the color package?
Unless you are creating your own specific colors, the differences between the packages seem to be fairly superficial. ...
19
votes
4answers
4k views
What colors are good to use for graphs and figures in scientific publications that print well in black and white?
This question is not TeX specific. When creating scientific documents with graphs and figures, what colors are good to use such that they help the reader understand the figure but will also print well ...
19
votes
1answer
802 views
How to color just the wave produced by the ulem package
I am using \uwave{Some text here} to put a wave like emphasis under the text. Is it possible to change the color of only the wave and leave the text black?
19
votes
2answers
842 views
How can I put a coloured outline around fraction lines?
I use the contour package to put thick white outlines around labels in graphs, so they remain readable above the grid lines without taking up too much space.
Unfortunately, the package is not able to ...
19
votes
2answers
360 views
Pros and cons: pdflatex+gs vs gs+pdflatex
I need to be producing two versions of documents I deal with: colour and grayscale. Of course the real issue are images. I'm not the author of the documents nor the images, I'm only the typesetter.
...
18
votes
5answers
689 views
typesetting different characters with different colors in a DNA sequence
I have created a macro which I used to format DNA sequences, as they should be in the monospaced font and uppercased:
\newcommand{\DNA}[1]{\texttt{\uppercase{#1}}}
Now I have a column with some ...
18
votes
2answers
5k views
How can I have colored and underlined links with hyperref?
I would like the internal hyperlinks generated by hyperref to be colored and underlined.
Reading some of the package documentation, I know that these \hypersetup keys exist:
colorlinks: when ...
18
votes
1answer
573 views
Caption parbox 6.0 pt too wide
For my listings, I use this caption setup:
\usepackage{caption}
\DeclareCaptionFont{white}{\color{white}}
\DeclareCaptionFormat{listing}{\colorbox{gray}{\parbox{\textwidth}{#1#2#3}}}
...
18
votes
1answer
218 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 ...
17
votes
1answer
739 views
Is it possible to use spot colors in TikZ graphics?
Using ConTeXt and Metapost, it is fairly easy to define spot colors and use them in an image:
\starttext
\definecolor[MyRed][c=0,m=1,y=1,k=0]
\definespotcolor[RedSpot][MyRed][p=1,e=MyRed]
...
17
votes
2answers
289 views
If a letter is white on white background, does a printer see it?
In preparation for press printing, I would like to produce a version of a document for printing a glossy varnish layer, where all the text is "missing", but the images and other elements are at the ...
16
votes
3answers
1k views
Can I have the \overfullrule rule colored in pdfLaTeX?
I know that I can use \overfullrule=5pt to get overfull lines marked with a black marker. I am using pdfLaTeX. Is there a way I can get this marker or something similar in magenta instead?
16
votes
2answers
17k views
color only a cell of a table [duplicate]
Possible Duplicate:
Color merged and regular cells in a table individually
I tried to color only a cell of my table but I don't know how do it. I found the method to color an entire row.How ...
16
votes
3answers
9k views
How to specify a fill color in RGB format in a node in tikzpicture?
I am just trying to get a rounded corner box with some text in it. The text color will be white and the box will be filled with a particular color.
The preamble includes:
\usepackage{tikz}
...
16
votes
1answer
18k views
How to change color for a block of texts?
I am editing a LaTeX paper with Emacs. Sometimes, just for myself, I want to make a block of texts less obvious (or less important to see). Instead of totally hide them, I still want them to be there. ...
15
votes
2answers
2k views
Why does \color{blue} differ from \color{Blue}?
\documentclass[dvipsnames]{article}
\usepackage{xcolor}
\begin{document}
{\color{Blue}\bf Blue} versus {\color{blue}\bf blue}.
\end{document}
Why does one of them differ from ...
15
votes
1answer
289 views
xcolor black isn't black enough
I'm making a poster (using baposter) where I wish to include some microscopy images. To make the fluorescent signals stand out better, I changed the background of that cell to "pitchblack", which I ...
15
votes
2answers
6k views
beamer: change individual bullet color for pros and cons list
Is there a "nice" way to change the color of individual bullet points?
For example imagine a list like this:
\begin{itemize}
\item A
\begin{itemize}
\item pro 1
\item con 1
\item pro ...
15
votes
2answers
655 views
Coloring chapters and sections with respect to parts
I am using the book document class and I want to produce a document with several parts, chapters, sections, sections and subsections. I would like to make it easier for the reader by coloring ...
15
votes
1answer
8k views
How to color math symbols?
One can use the command such as \textcolor[rgb]{1.00,0.00,0.00}{boundary} to color the word "boundary" in a document.
Here is my question:
How to color the math symbols in $$? For example, can one ...
15
votes
2answers
399 views
Best practice for hyperref link colours?
I'm using the hyperref package with the option colorlinks=true. However, I'm not happy with the default link colours: for instance, citation links appear in a flamboyantly bright green that hurts my ...
15
votes
1answer
417 views
Retrieve the color definition in HTML
I need to build a table of this type:
STUFF | COLOR | PICTURE | COLOR DEFINITION
To retrieve the color definition, I tried to use \extractcolorspecs expecting that the third argument { color-cmd ...
14
votes
2answers
2k views
Option clash with xcolor and TikZ
I want to draw some coloured circles, so I loaded tikz in my preamble. However, now xcolor is telling me that it has an "option clash". How should I fix this?
\documentclass{article}
...
14
votes
2answers
599 views
Can I alias a color?
I would like to define some colors and then define some aliases to them. For instance, if I define the following color:
\definecolor{MyColorA}{rgb}{0.1,0.2,0.3}
and then want to define an alias ...
14
votes
3answers
1k views
How to draw text-anchored tikz line below text instead of above?
I wish to mark several pairs of from/to anchor locations in text, and use tikz to draw lines between these. The anchors are not in absolute page locations; the text determines where the endpoints of ...
14
votes
2answers
1k views
Option cmyk for xcolor package does not produce a CMYK PDF
I am trying to produce a CMYK PDF file to pass onto a printshop.
When I use the [cmyk] option for the xcolor package, the colours in the resulting PDF do look muted and less vibrant as is the case ...
14
votes
3answers
764 views
Can I change the font and colour of a letter permanently?
For my lectures, I like to colour the symbols in the equations to make it easier to follow what's going on - a bit like syntax highlighting. So all vector spaces are one colour, all sets another, e ...
14
votes
2answers
220 views
Creating my first command
I want to create a command that will format code in a certain way. In this case I want code to be italic and red. So instead of doing \textcolor{red}{\textit code} I want to make a function, if you ...
14
votes
1answer
321 views
Tables: Colouring odd/even mixed up
I have a huge document (around 100 pages) and a lot of tables in it. I used
\usepackage[table]{xcolor}
\definecolor{lightblue}{rgb}{0.93,0.95,1.0}
\rowcolors{1}{white}{lightblue} % odd = white, even ...
14
votes
1answer
149 views
Why does a color meant for the first typeset line *only* (with package magaz) affect the *entire* document?
I am trying to make a nice layout that gives a different style to the first line in a section using the package magaz. All examples I have seen feature some variation of small caps
{\scshape text}
or ...
14
votes
1answer
222 views
How to divide document for black and color printing?
Most of my document is black text, but there is a color figure here and there. I would like to print the text on a black and white printer, and the figures on a color printer. I know i could just ...
13
votes
4answers
598 views
Color the faces of a graph
I want to modify the image (see code below)
by shading in the regions formed by the dashed lines that contain a black dot. The goal is to obtain something like
How can I shade these regions?
...

