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

learn more… | top users | synonyms (1)

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
447 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
932 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
4k 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? ...
7
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
683 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?
67
votes
3answers
23k 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 ...
7
votes
1answer
2k 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 ...
12
votes
2answers
4k 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 ...
16
votes
2answers
9k 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, ...
73
votes
2answers
6k 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, ...
5
votes
2answers
2k 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 ...
7
votes
1answer
2k 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) ...
4
votes
1answer
689 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
504 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
409 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
4k 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
994 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]{ ...
6
votes
2answers
494 views

FancyHeader (Mis-)placement

I'm using the following settings for fancyhdr in a two-page book-derived documentclass: \pagestyle{fancy} \fancyhf{} \fancyhead[LO]{\sffamily \footnotesize \rightmark} \fancyhead[RE]{\sffamily ...
1
vote
1answer
767 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 ...
33
votes
1answer
30k 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?
401
votes
7answers
125k 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?
11
votes
2answers
5k 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
2k 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 ...
10
votes
1answer
1k 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 ...