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

learn more… | top users | synonyms (1)

15
votes
2answers
3k 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 ...
2
votes
1answer
1k 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? ...
4
votes
2answers
1k 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
611 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?
41
votes
3answers
12k 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 ...
10
votes
2answers
4k 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 ...
6
votes
1answer
1k views

Fading a path in TikZ

I want to draw a path/plot in TikZ whose shade depends on the coordinate. For example, I want say something like \draw[color=black!\x] plot coordinates{ coord1 ... coord100}; i.e. the shade of the ...
8
votes
2answers
3k views

How do I make sure that \pageref{LastPage} doesn't get colored like the other links identified by hyperref?

I am using hyperref together with lastpage. My problem is that \pageref{LastPage} gets the same color as the links identified with hyperref. I want it to be just the ordinary color (e.g. black) Allow ...
14
votes
2answers
4k views

How do I specify color in RGB using \hypersetup in hyperref?

How do I specify color in RGB using \hypersetup in hyperref? I know that this is the right way to do it with color names: \hypersetup{colorlinks,breaklinks, urlcolor=Maroon, ...
62
votes
2answers
4k 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, ...
4
votes
2answers
1k views

Beamer: Emphasize a part of a slide

I am using Beamer to create presentations. I know that it is possible to use environments like Theorem, Definition and so on: \begin{Teorem} Great theorem \end{Theorem} It appears in the box of ...
6
votes
1answer
992 views

Creating environments with different colours and sizes

At the top of my lecture notes I define the following environments: %Student copy \newenvironment{Notes}{\LARGE\color{white}} %My copy (uncomment out "%" below) ...
3
votes
1answer
440 views

fontspec and \color

Compiling the following example (with xelatex or lualatex), I would expect to get violet letters abc: \documentclass{article} \usepackage{xcolor} \usepackage{fontspec} \setmainfont{Verdana} ...
4
votes
1answer
345 views

Colors Not Rendering Correctly

After invoking the 'color' package with the command \usepackage[pdftex]{color} I defined a new color using CMYK values. More specifically, I set \definecolor{mybluegray}{cmyk}{.33,.11,.01,0} ...
1
vote
1answer
344 views

Moving a framed environment to the left

I want to move the following remark environment, which nicely splits over pages :), towards the left so that it is not centered anymore. I have been unsuccessfully trying for a while: would you please ...
5
votes
2answers
3k views

How to use the color package with dvips option together with the graphicx package?

I have a problem with the bounding box of my graphics. Example 1 below, where I only include a PNG image works fine. Example 2 below, where I also have \usepackage[dvips]{color} in order to include ...
11
votes
2answers
949 views

\color after inline section colors the section title

In the following document, the subsection title gets colored red. Why does this happen? \documentclass{article} \usepackage{color} \newcommand{\comment}[1]{{\color{red}#1}} \begin{document} ...
8
votes
5answers
1k views

Seamless background of subfigure bodies, but not captions

I have 3 sub-figures: \begin{figure} \subfloat[Apple]{ \includegraphics{apple} } \subfloat[Orange]{ \includegraphics{orange} } \subfloat[Cherry]{ ...
5
votes
2answers
446 views

FancyHeader (Mis-)Placement

Greetings, I'm using the following settings for fancyhdr in a two-page book-derived documentclass: \pagestyle{fancy} \fancyhf{} \fancyhead[LO]{\sffamily \footnotesize \rightmark} ...
1
vote
1answer
687 views

Tikz: Strange color change. [duplicate]

Possible Duplicate: Using opacity in TikZ causes strange rendering in Acrobat. This is a nice pice of TikZ for typesetting Go boards (gobans). \documentclass{standalone} \usepackage{tikz} ...
8
votes
3answers
2k views

Single-spaced multi-line marginalia

When writing papers, I like to keep track of notes, thoughts and to do's inside the documents. I'd love to have tiny coloured multi-line marginalia. So far I used sth like ...
27
votes
1answer
21k 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?
229
votes
7answers
54k 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?
8
votes
2answers
2k views

How can I change the colour of my document's section numbering?

I know how to change the colour of a section name using for example \section{\color{Red} Foobar} but that still leaves the section number in black. Is there any way to change the colour of the ...
14
votes
3answers
1k 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 ...
9
votes
1answer
699 views

Alpha channel in colortbl

I'm using the colortbl package to color table cells. I've combined this w/ the xcolor package to define my own colors. However, it appears that xcolor does not support transparency. I saw the ...