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

learn more… | top users | synonyms (1)

5
votes
1answer
634 views

How to make a multicolored table of contents?

I'm trying to change the colors of the table of contents in a Beamer presentation, like Changing color and bullets in Beamer's table of contents except that I would like to make the "bullet" for ...
17
votes
2answers
2k 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 ...
7
votes
2answers
13k views

(TikZ or xcolor) lighten color

I am plotting some simple stuff using TikZ like circles and lines. They are colored. I know the color I want to plot with but would like create a new color that is a lighter version of the old. ...
7
votes
1answer
722 views

LuaTeX colored boxes with rounded corners

What is the simplest way to make coloured boxes with rounded corners in luatex? With xelatex I used pstricks and it was simple, but with luatex it is not working.
12
votes
2answers
2k views

soul: broken highlighting with xcolor when using \selectcolormodel

I try to highlight text using the soul package. But I experience problems if I use it in combinations with the xcolor command selectcolormodel, only spaces are highlighted as shown in the MWE: \...
3
votes
3answers
2k views

Color text without color package?

I'm about to submit an article for publication, and I need to color some label text that I'm overlaying on my figures with the overpic package/environment (some labels need to be white to be readable ...
10
votes
1answer
201 views

Is there a way to color (only real) math in pdflatex?

I'd like to change the color of all math in my document. I understand that several packages and some engines provide support for changing the color of all math, and I understand that something like \...
29
votes
2answers
14k 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 ...
2
votes
0answers
629 views

Removing spaces between colored rows [closed]

I have a small tex document below, and I have tried various methods to remove the white spaces between rows, but haven't had any luck yet. Thanks! Here's the document: \documentclass[a4paper,...
5
votes
2answers
1k views

Siunitx: how to deal with invalid numerical input '-'?

Thanks to you all, I found siunitx for decimal alignment. However, some of the columns in my correlation matrix don't have any numbers and have "-" instead. siunitx gives me an error about invalid ...
0
votes
1answer
761 views

Change the background color in the title

I need to set the background color in my definition of the title but I don't know how I can do. I have the next definition: \pretitle{\vspace{-90pt} \begin{flushleft} \HorRule \fontsize{20}{20} \...
12
votes
1answer
893 views

How does changing colour affect spacing?

In the following example, the space after the red equation is much larger than the space after the black one. \documentclass[12pt]{article} \usepackage{xcolor} \begin{document} \[ a = b \] The quick ...
12
votes
1answer
4k views

Remove keywords from code 'listings'

I tried to customize a code listing to support some pseudo-code format that suited me best. It was easy to add keywords using otherkeywords or morekeywords, but the opposite, the deletekeywords did ...
16
votes
2answers
14k views

Changing color of default enumeration

To my surprise, I've had trouble finding red themes, and used the beamer theme matrix to find CambridgeUS. I've changed the itemized bullets to match, but I can't seem to make the enumerations red. ...
16
votes
2answers
10k views

How to highlight important parts (with a gray background)

In the below link http://www.math.uiowa.edu/~goodman/algebrabook.dir/bookmt.pdf the author highlights anything which is important using a greyish color background. For example, if you see ...
10
votes
3answers
496 views

How to color just the `\vec` symbol?

How do I color only the vector symbol in \vec f? I'm using beamer, so xcolor is already loaded. Extra "points" to an answer that also explains how to fish..and not only gives me the fish. Thanks!
14
votes
3answers
21k views

Change border color of \fbox [duplicate]

Possible Duplicate: Is there an \arrayrulecolor-like command to change the rule color of \fbox? I'm using an \fbox to have a border around a minipage. \fbox{ \begin{minipage}{0.25\textwidth} ...
1
vote
1answer
352 views

Different default color for each font in ConTeXt

Is there a way to specify the color along with the font name when using simplefonts? At the moment, I use the following to setup my default fonts. \usemodule[simplefonts] \setmainfont[Ubuntu] \...
11
votes
1answer
1k views

Error when using colour in \author

I am getting an error when I try to use \color{} in the the author field with beamer, even though the file compiles and I get the the words I want coloured in the author field. This is the error ...
10
votes
2answers
2k views

Creating pdf with inverted colors using pdflatex (like white on black etc)

Is there a simple way of a creating PDF with inverted colours? A partial solution would be just changing font to white and making the background black. Is there simple "full" solution of inverting ...
3
votes
2answers
621 views

catoptions causes option clash with xcolor

Look at the following example: \documentclass{scrartcl} \usepackage{filecontents} \begin{filecontents}{my1.sty} \RequirePackage{xcolor} \RequirePackage{catoptions} \end{filecontents} \begin{...
5
votes
1answer
2k views

How to put color gradient to “Desired Text Only”

I was looking to apply a color gradient to some text (i.e. Chapter / section headings) and I searched through the Internet but was unable to find a minimum working example. Is it something that can be ...
3
votes
1answer
400 views

problem with scrpage2 and coloured borders

I'm trying to do this \usepackage{scrpage2} \usepackage{tikz} \usetikzlibrary{shapes,arrows} \usetikzlibrary{calc} %\usetikzlibrary{intersections} %\tikzset{variable/.default=} \newcommand{\...
1
vote
0answers
358 views

Matching raster graphics and PS colors [closed]

I have a need to match colors in the originaly raster EPS graphics and background color. Relevant parts of the code: \usepackage[dvipsnames,prologue,table]{pstricks} \usepackage{pst-text} \usepackage{...
17
votes
3answers
18k views

How to specify transparent colors?

What options are there to specify transparent colors, say the background in the example below? I thought xcolor would be able to do this but I can not find any reference to "alpha" or "transparency" ...
5
votes
0answers
83 views

Can a CMYK PDF be hacked or converted to duotone? [duplicate]

Possible Duplicate: duotone PDF files with lualatex I have CMYK PDF files compiled with lualatex, but the publisher requires duotone. I've seen some cool tricks about manipulating the colour ...
13
votes
1answer
696 views

duotone PDF files with lualatex

How to provide duotone PDF files for publishers who require it? I have a document with images (graphicx \includegraphics), TikZ diagrams, compiled with lualatex. So, if I understand it right, there ...
4
votes
2answers
834 views

Nested labeled colored boxes with TikZ

I need nested boxes, as they are shown in this question, but colored ones. I tried both solutions. Using shapes.multipart I totally failed when tried to generate the nodeparts by a foreach command. ...
5
votes
1answer
3k views

Color \ , [], {} and / in listings environment

I tried to color a source code listing as follows. I would like the \ to be the same color as the word that follows for example: \documentclass in red including "\" \usepackage in blue including "\" ...
3
votes
1answer
1k views

White horizontal lines in lstlisting

I'm having the following problem: I'm using the listings package to render what is supposed to look like a teminal screenshot. But the background colour is striped. In my other code snippets the ...
5
votes
1answer
8k views

Color - How to make a few letters in an equation have color [duplicate]

Possible Duplicate: How to color math symbols? I have an equation: y = 2x + 3. How would I make the 2x red in equation mode in beamer?
11
votes
2answers
2k views

How to change color of some particular environment for entire document

I want to change color of particular environment in document. For example wherever I found verbatim environment or equation environment appears in my tex file. With some global settings, I want to ...
29
votes
7answers
2k 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 \...
4
votes
1answer
2k views

Adding a highlight to \texttt blocks

I'm trying the add a grey highlight to the \texttt command to essentially achieve the same effect as the code blocks on here. This is something I attempted to do when I first started writing my ...
9
votes
1answer
1k views

Can \usepackage{color} and \input tikz work together in Plain TeX/eplain?

I use Plain TeX and Eplain. In my document I'm using both the color and url packages inside the \beginpackages..\endpackages block. Just now I tried adding \input tikz.tex (as the TikZ manual states) ...
7
votes
1answer
6k views

Colored strings by listings package

I'm trying to type my C++ homework by LaTeX in order to prepare it as a pdf file. I want to have my keywords in blue, my numbers in violet and my strings in reddish brown. I could do the two first by ...
2
votes
1answer
979 views

Draw red box around verse

This is a follow-up question to: How to center a verse horizontally I am using the solution given by @Herbert. Is there a way to put a color box around selected few verses I desire?
3
votes
1answer
721 views

Filling complex figures with color

I wonder if there is any method available in LaTeX to fill complex figures. There are few methods for filling figures: even-odd rule algorithm, winding number algorithm. According to these algorithms, ...
2
votes
1answer
817 views

Filling polygons with color

Is there any good tutorial/approach in LaTeX for drawing polygons filled with color? EDIT: I would like to use pdfLaTeX interpreter
5
votes
2answers
804 views

Colored text with dcolumn

I want to typeset a table where certain numbers are going to appear red. In order to achieve the correct alignment I am using the dcolumn package. The problem is that the parsing that dcolumn does, ...
0
votes
1answer
272 views

Different color display between Adobe Reader and Yap

Today I have been realized some drawings for my scientific article using PGF. After converting the DVI to the PDF file I have noticed that my grid which has been supposed to be gray was somewhat ...
5
votes
2answers
1k views

PGF/TikZ Clipping & Drawing: How to customize lines?

I have gotten some undesirable behavior with PGF/TikZ related to clipping and drawing paths with different color, say gray. So I tried with no success to exchange between \clip[draw=gray], \draw[clip,...
4
votes
1answer
1k views

Setting colour of beamer itemize bullet depending on alert mode

I know how to globally set the colour of beamer's itemize bullets. I've defined my own symbols for them and I'd like to colour them in \alert mode. (At the moment only the colour of the text changes, ...
5
votes
1answer
1k views

How to avoid \cellcolor overflowing when changing the space in the column?

I reduced the space in the columns through the use of @{} in the column type: \newcolumntype{M}{@{}c@{}} The problem is that, when I combined this with the \cellcolor command, it overflows into the ...
31
votes
3answers
3k 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 ...
35
votes
5answers
26k 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 ...
3
votes
1answer
1k views

Using “listings” package to colorize the source code of ANTLR grammar file?

I use listings package in my diploma thesis for source code. Besides the mainstream languages like Java and C# I also need to include the sources of the language grammars (.g) which are pure mark-up ...
23
votes
1answer
1k views

Defining a Color using another

I know how to define a color using \definecolor with literals to describe the color. How can I define a color using an already defined color? In other words: How can I make a color accessible under ...
10
votes
3answers
2k views

Tikz fit-library vs fill (overlaying nested node colors)

I am trying to figure out the best way of nesting tikz nodes having a different background color. I would like the "inner" nodes to "win" concerning the background color. Currently the "outer" node ("...
6
votes
2answers
7k views

Beamer title font color

I would like to use the title color of my beamer presentation (some kind of blue) to write some inline text with the same color. Therefore I want to know the color definition. Is there a command for ...