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

learn more… | top users | synonyms (1)

7
votes
2answers
2k views

How to draw the border of a node using late options

I want to create a series of rectangles, each with a different shade. The shade varies from white to black. I want to make the white (first) rectangle visible by drawing its border. My first step is ...
2
votes
1answer
202 views

Colorization and kerning problem with inline lists

The problem is as follows: I need to set an inline list with colored lowercase letters surrounded by black brackets. This is not so hard to achieve, but the problem is that kerning is lost in the ...
8
votes
1answer
2k views

Add colors that depend on chapters to the TOC

I'would like to add different colors in my TOC, depending on the chapter. I've a color for the header, section subsection of each chapter (red chapter one, blue chapter two etc...). With this code I ...
2
votes
1answer
421 views

How do I make the text in the following figure white and center the figure?

How do I make the text in the following figure white and center the figure? %% LyX 1.6.9 created this file. For more info, see http://www.lyx.org/. %% Do not edit unless you really know what you are ...
16
votes
4answers
4k views

Why can't I wrap \rowcolor in \only? (Beamer)

See the following minimal example: \documentclass[table]{beamer} \begin{document} \begin{frame}{Boo} \begin{table} \centering \small \begin{tabular}{rcc} \only<1>{\rowcolor{green}}Hey & 32....
5
votes
1answer
1k views

Page border coloured

How to create a coloured page border for a document using KOMA-Script scrbook class? Something like this: (image taken from the memoir tutorial)
3
votes
2answers
448 views

color package and float package collision

I'm writing a document and I wanted to colour some text parts. In the preamble I call float package and many others and it worked properly. until I called color package. Then LaTeX return errors at ...
16
votes
3answers
6k views

Use CSS-style color specifications in xcolor?

I have colors on my website #eff5f9 and #dfecf7. I would like to also use them in a latex document. Is there a way to use such hexadecimal specifications with xcolor? I've tried to read the xcolor ...
7
votes
3answers
3k views

Add colour to margin notes

I'm using LyX with XeTeX and the KOMA-script article class. I'm trying secsty and fontspec for the first time. I'm trying to do a unique layout with large outer margins. On some pages I will put key ...
19
votes
1answer
1k 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] \...
11
votes
4answers
3k views

How to color a region?

The following code \documentclass{article} \usepackage{tikz} \usetikzlibrary{intersections,positioning} \begin{document} \begin{tikzpicture}[radius=5] \draw (0,0) rectangle (5,5); \draw[name path=...
81
votes
2answers
168k 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. ...
63
votes
3answers
17k 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 ...
21
votes
5answers
1k 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 ...
5
votes
2answers
245 views

Colored sub and super-scripts are misaligned

The title basically describes the problem. Here is a minimal example: \documentclass{article} \usepackage{xcolor} \begin{document} $$X_{\color{red}{135}}^{\color{cyan}{345}}$$ \end{document} ...
3
votes
0answers
555 views

Recommendations for color palettes [closed]

To make my thesis look more consistent I would like to use a single color palette. I want to use it to prepare all drawings, charts etc. However, I could not find any resources with reasonable ...
23
votes
3answers
9k views

\includegraphics PDF, color problem

I'm using pdflatex, and use \includegraphics to include content of figures from PDF. PDF are exported from InkScape. \begin{figure} [!h] \centering \includegraphics[height=3cm]{fig/SUSAN.pdf} ...
11
votes
1answer
4k views

How to draw a double-color line with tikz

I would like to draw a rectangle with a double color border: the border should be a line dashed with two alternating colors (blue and red, for example). Is it possible?
2
votes
1answer
3k views

Background color in Verbatim

I've to use the yellow background for data values in the following code. \usepackage \begin{Verbatim}[commandchars=\\\{\}] \color{blue}DATA \color{black}Heart; \color{blue}INPUT \color{black}X Y @@; \...
11
votes
1answer
2k views

\cancel draws under thing being canceled

I'm trying to use \cancel from the cancel package to strike out some colored text but it is apparent that the diagonal line is drawn first so it doesn't do a very good job of canceling. Minimal ...
12
votes
2answers
2k views

Options and suggestions for hyperref font?

Background I am interested in finding and implementing a more aesthetically pleasing style for the hyperlinks in my document. I have read through the documentation, but I find both the colored text ...
3
votes
3answers
513 views

Incompatibility between the `footnote` and `xcolor` packages

The following code fails to build: \documentclass{book} \usepackage{footnote} \usepackage{xcolor} \begin{document} \chapter{My first chapter} \parbox{110mm}{ Here is a footnote\footnote{The ...
2
votes
2answers
2k views

Draw a rectangle

How to draw a highlighted box around a bulleted item.
7
votes
1answer
518 views

Problems with multi-page \lstlistings and \footnotes with the liuthesis document class

Using the liuthesis document class described at http://www.control.isy.liu.se/student/exjobb/liuthesis/liuthesis.html (download link: http://www.control.isy.liu.se/student/exjobb/liuthesis/liuthesis....
7
votes
3answers
2k views

amsthm environment and colorbox

I'd like to customize the amsthm command a little bit but I cannot find the relevant lines in the (undocumented?) .sty. How can I put a colorbox on the name of the environment \newtheoremstyle{...
9
votes
6answers
3k views

Set \strut height

I'm using quite a few \colorbox and \colorfbox in a document but they weren't sitting at the same heights (because some words contained g and this seemed to push the box down. The solution I found (...
2
votes
1answer
941 views

Two color line in gnuplot

Is there any way to plot a line graph where each series is plotted with two alternating colors? For example, say I was plotting the population of bees over time and I wanted the line to alternate ...
22
votes
3answers
15k views

beamer: change individual bullet color in itemize 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 ...
16
votes
2answers
11k views

Link formatting: colors, underlines in moderncv

Following the excellent advice in this site, I have started using moderncv for writing the new version of my CV. Unfortunately, after converting to PDF, my http links work (clicking on them leads to ...
7
votes
3answers
10k views

Change border color of a \boxed equation?

I recently asked this question. The solution worked for me but I have a problem. cropped images are as small as possible. I would like to have a gif that bounds to borders of box of the equation. so I ...
10
votes
4answers
2k views

How can I set the background color of the rows and columns of a matrix node in Tikz?

I have a matrix where some cells have nodes while others don't, with rows and columns of varying size depending on the biggest nodes in them. In this matrix, I would like to have the background of ...
7
votes
1answer
5k views

Color running over text in multirow column

I have a simple table with 2 multirow cells. However when I apply background color, it covers the lower portion of the multirow cells and cuts through the middle of my text entry which is obviously ...
5
votes
1answer
2k views

Preparing a beamer poster: how to create a border box?

I am preparing a poster with LaTeX using beamerposter, following the examples of the beamerposter site. In these examples, the title is themed with a background color. I would like to have the title ...
3
votes
1answer
423 views

Color running over the doublerule separator in a table

I want to draw a simple colored table with 4 columns. First row is a multicolumn row which spans columns one and two. There is one doublespace between columns 2 and 3. When i apply color (blue in this ...
1
vote
0answers
501 views

Problem with losing some table borders when using colors [duplicate]

Possible Duplicate: Is there a way to make standard LaTex PDF output look good on screen as well I'm trying to make colored rows in my table but for some reason table borders become invisible ...
5
votes
2answers
1k views

Figure environment not working with included file (extra } or forgotten endgroup)

I've spent hours on this issue. I hope someone can help me. I'm running into some kind of interference when I try to use the figure environment (Likewise for table, might be related to floats). I ...
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
644 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
8k 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
417 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}} \titleformat*{\subsection}{\...
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 ...