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

learn more… | top users | synonyms (1)

23
votes
3answers
3k 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 ...
36
votes
4answers
2k 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 ...
6
votes
3answers
7k views

Setting background colour for part of a page

I am designing a business card using the memoir class and hints given here and am trying out various background effects. Specifically, I would like to change the background for the last third of the ...
9
votes
2answers
2k views

How do I backcolor in verbatim?

I have some code I want to typeset as verbatim (lstlisting would be ok as well) - but I want to highlight some parts of it via a different background color, i.e. something like this: \begin{verbatim} ...
12
votes
2answers
4k views

Conflict between color, graphicx and libertine

Compiling the following with pdflatex (TeXLive 2009/Debian on Ubuntu 10.04 "Lucid Lynx") \documentclass{article} \usepackage{ifpdf} \ifpdf \usepackage[T1]{fontenc} \usepackage{libertine} % ...
1
vote
1answer
641 views

Using Sweave to include lattice graphics - issues with colour

I am using Sweave and the R package nlme: when including lattice graphics, (encapsulated in the print() command), the .eps files that are generated are all in black and white. The original graphic, ...
17
votes
1answer
7k views

Coloring columns in a table with colortbl and booktabs

I have created a rather complicated table with some columns that I want to color. For the table, I chose the booktabs and tabularx packages. For coloring the columns, I use colortbl. The problem that ...
6
votes
3answers
415 views

Adding colour to table cells when decimals are aligned with arrays and {.} used in the column definition

I've got a table (below) that aligns the decimal points of my data - I wish to highlight a value (2 adjacent cells), however this leaves a white space where the decimal point is! If I increase the ...
4
votes
2answers
3k views

Custom itemize environment which takes color as argument

Using beamer, I would like to change the color of the itemize bullet according to a passed argument, something like \begin{myitemize} \item[red] no \item[green] yes \end{myitemize} Is ...
6
votes
1answer
3k views

Apply gradient (shading) background to algorithm listing

Background A number of source files are included within floating algorithm boxes. The source files are PNG images with a transparent background. The document is edited using LyX. Problem The source ...
10
votes
2answers
2k views

Fill the left 1/3 of the title page with color?

This is my first time to try and write documentation by using LaTeX. The generated PDF is quite impressive, but there is one thing I have no idea of how to do it: I would like to have the left 1/3 of ...
11
votes
2answers
9k views

Section and subsection colors using titlesec

Im trying to alter the colors on my section, subsection and subsubsection. I do so using the titlesec page: \titleformat*{\section}{\Large\bfseries\sffamily\color{red}} ...
3
votes
1answer
2k views

Colored chapter titles with the quotchap package

I already changed the chapter numbers using \definecolor{chaptergrey}{} But there must be some way to change the chapter titles also. Someone knows how?
4
votes
1answer
1k views

Change font colour of bringhurst chapterstyle in memoir

I would like to change the colour of chapter titles in bringhurst chapterstyle. The following should work, but apparantly I have misunderstood something and am not able to get it to work, and would ...
8
votes
3answers
11k views

Colored fancy boxes

I am trying to produce some fancy boxes. I have found the fancybox package that does the boxes I want. What I can't find now is: How do I change their background color? I would also like to make the ...
101
votes
1answer
10k 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 ...
14
votes
2answers
12k views

Changing style of alert environment in beamer

I would like to specify a background color in the alert environment. I can, for example, use \setbeamercolor{alerted text}{fg=blue} to change the colour of the alterted text to blue, but this ...
5
votes
2answers
206 views

How do I capture the existing color of a group?

My question is a follow-up of my answer to this question Color underline a formula My answer would have been much better, if I could save the color of the text and then restore it. Is it possible ...
19
votes
5answers
8k views

Color underline a formula

I want to underline different parts of a formula with different colors. What is the best possible option? Soul seems only to provide one color per document.
1
vote
1answer
1k views

New command to insert a couple of red XXX as placeholder?

I seem to misunderstand the documentation, as \newcommand\ph{\textcolor{red}{XXX}} causes pdflatex to halt. I'm not sure if this is the error: ! Argument of \sf@@subfloat has an extra }. And I ...
15
votes
2answers
4k views

Color merged and regular cells in a table individually

In a LaTeX table with merged cells, how can I color each cell with a different color? %% LyX 1.6.7 created this file. For more info, see http://www.lyx.org/. %% Do not edit unless you really know ...
0
votes
1answer
806 views

Colors that work well with beamer color scheme albatross

Is there a color scheme made using \definecolor that defines colors that work well with the beamer color scheme albatross?
2
votes
1answer
2k views

In beamer use colors that are already defined in a given color scheme

I'm using a table with alternating colors in beamer. Is there a way to base the colors I use on the palette that is already defined? In this way if I switch color themes the colors should still go ...
13
votes
2answers
5k views

Use xcolor for colored tables in a beamer slide

How can I use a table with alternately colored rows like this in a beamer slide? There seems to be a conflict with beamer and xcolor. I am using LyX too, bonus marks for something that works well in ...
8
votes
2answers
2k views

Border on page's edge

How can I make a black border close to pages edge ?
20
votes
2answers
1k 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 ...
8
votes
3answers
1k views

How to prevent Beamer from changing the normal text color when I change the footnote color?

When I change the footnote color in Beamer using \setbeamercolor{footnote}{fg=blue}, I end up also inadvertently changing the normal text color on all other slides. To make things even stranger, the ...
3
votes
2answers
2k views

Change the color of numberings in inline itemization

\begin{inparaenum}[1)] \item number one item \item number two item \item number three item \end{inparaenum} Is it possible to change the color of the number, When I use ...
29
votes
2answers
31k views

Change the background color of a frame in Beamer

How can I change the background color of one frame in my Beamer document? I tried doing \begin{frame} \setbeamercolor{background canvas}{bg=violet} % frame contents here \end{frame} but it ...
11
votes
1answer
23k views

Changing color and bullets in Beamer's table of contents

Does anyone know how to change the color scheme and/or bullets used in Beamer's table of contents (without changing the overall structure color or theme)? Unfortunately, the following doesn't work: ...
3
votes
2answers
824 views

Is there an \arrayrulecolor-like command to change the rule color of \fbox?

The question has been written above.
5
votes
1answer
2k views

How to redefine the color of table rules without interfering the content of its cell?

I attempted to change the rule color of my table to red. Unfortunately, the content in the table cell also got interfered as shown in the following figure. The margin frame rules also became red which ...
6
votes
3answers
2k views

How to set a certain color (other than white) to margin areas?

I want to set a certain color to the margin areas (which is the region outside the content box of \textwidth by \textheight but inside the paper of course :-) ). How to change this from within the ...
15
votes
3answers
12k views

Height of colorbox

I'm trying to "highlight" two parts of a sentence by using a \colorbox like so: \colorbox{red}{This is} \colorbox{blue}{a great sentence.} The problem is that in the second part the height colorbox ...
6
votes
2answers
5k views

TOC Section & Subsection coloring

Is it possible to create a TOC with section headings in one color and subsection headings in different color. \tableofcontents \setcounter{tocdepth}{2} I am using above lines to create TOC, do I ...
3
votes
1answer
4k views

beamer: How to change border size of beamercolorbox?

Is it possible to style a border of a "beamercolorbox"? Like in the theme Szeged, but with ONE thin line above the footer instead of the two thick lines.
23
votes
1answer
2k 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?
5
votes
1answer
449 views

Change colour depending on counter

I have some text that I want to change colour depending on the current state of a counter. But I can't get this file to compile. (This is obviously simplified, since the texcolour command is actually ...
3
votes
3answers
941 views

Pale text in PDF viewer

I have some problems with output text color in Acrobat Reader. I have to send my work to other people and I can't change their viewers. Text looks like (in Russian): I'm using MikTeX 2.9 and ...
6
votes
2answers
207 views

Just save colored pages of a document?

How can I just save the colored pages of a document? I want to print the colored pages on another printer...
8
votes
1answer
5k views

Coloring arrows in \xymatrix

Is there a way to color certain (but not all) arrows using \xymatrix? I wish the following ignorant attempt would work!! \usepackage{xypic,color} \begin{document} \[ \xymatrix { ...
10
votes
1answer
6k views

Relative padding of a minipage's paragraph

Background Created a custom command for rendering quotations (epigraphs). Problem The text in the following image has no space at the border: The word "and" is flush with the right margin. Code ...
1
vote
1answer
3k views

change font color in a lstset [closed]

Hi I need put java code to latex. I use \lstset and \begin{lstlisting}. I need change color of font in SOME part of code. How I can do this? Help pls
4
votes
1answer
2k views

Change float background colour

Background Including images within Algorithm floats. The images are trimmed to size automatically by a batch file. Problem In the following portion of the PDF, Listing 1.1 has a lot of space to the ...
20
votes
2answers
7k 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 ...
4
votes
1answer
2k views

Adding color to the footnote mark in Beamer

I'd like to change the color of a footnote, both the text and the mark in a presentation I'm preparing using beamer. The example I give below works in article but not in beamer...any ideas why not? ...
8
votes
2answers
2k views

How to highlight operators and brackets in a C listing?

How can I apply a certain style to C (or, well, any other programming language) operators? So that when I write \begin{lstlistings}[language=C++] int i = 0; if(i > 1) { // do ...
5
votes
1answer
686 views

Background color of cells in ConTeXt

I'd like to set the background colors for cells to indicate their relations. How can I do this in ConTeXt?
69
votes
3answers
24k 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 ...
14
votes
2answers
5k views

Multiple colour themes in one beamer presentation

I'm preparing a single seminar talk on three more-or-less unrelated results. In order to visually separate these results, I wanted to give each one a different (custom) colour theme for the ...