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

learn more… | top users | synonyms (1)

3
votes
1answer
456 views

Color box with outline but some difference

\begin{boxedlaw}{6.4in} \colorbox[HTML]{F8E0E0}{ \begin{minipage}[c]{380px} \begin{center} \begine{verbatim} \# define LM_ENCA 18 //Port0 \# define LM_ENCB 17 //...
2
votes
1answer
1k views

Highlight changes in a specific entry of a reference list created with biblatex

I would like to highlight changes in a specific entry (or even a part of the entry) of a reference list created with biblatex, e.g., by changing the font color to red. (Unfortunately such a feature is ...
8
votes
1answer
669 views

Inconsistent appearance of white \hline on black background

Are there known issues with the appearance of white text on black background? When I use several \hline in a table I get different appearances for the lines. It could appear as normal or weak or ...
3
votes
1answer
640 views

How to make a line of text in a slightly different color (light gray in my case) in XeLaTeX

I Like to add an informal footnote to my document, containing web addresses. Some of the text is to be de-emphasized using gray text. How do I do that for a line or a word in XeLaTeX?
10
votes
1answer
1k views

white text on black background in entire table

I am looking for a way have white text on black background in the PDF output of PDFLaTeX applied to a document containing a basic table with dividing lines and some colored links. Using \usepackage{...
4
votes
2answers
6k views

Is there a nice color scheme generator for beamer(poster)?

There are plenty of palette generators for the web, e.g., Color Scheme Designer . Among other stuff it can export schemes in XML. Is there a nice XSLT to convert it into STY file that I'd use with ...
2
votes
1answer
6k views

Warsaw theme - Frame title bar covers top infolines

I'm making a presentation using Warsaw theme, but with infolines at the top of every frame. The problem is that \frametitle command makes the title bar to cover part of the top infolines bar, as you ...
29
votes
2answers
10k views

Option clash with xcolor and TikZ

I want to draw some coloured circles, so I loaded tikz in my preamble. However, now xcolor is telling me that it has an "option clash". How should I fix this? \documentclass{article} \usepackage{tikz}...
9
votes
2answers
2k views

Avoid addition of spaces when using colorbox in equations

Colorbox adds some spaces when I use it in equations. E.g. in \documentclass[12pt]{article} \usepackage{xcolor} \begin{document} \colorbox{yellow}{${a^2}+b^2=c^2$} \colorbox{yellow}{$\colorbox{blue}...
19
votes
1answer
2k views

Retrieve the color definition in HTML

I need to build a table of this type: STUFF | COLOR | PICTURE | COLOR DEFINITION To retrieve the color definition, I tried to use \extractcolorspecs expecting that the third argument { color-cmd ...
4
votes
1answer
1k views

Change paragraph font and background color

I'm submitting a project that involves blocks of code. I figured a nice way to present it by be that paragraphs of code are black text on a light gray background, in courier font. I'm wondering if ...
6
votes
3answers
5k views

How to set a background color of figure environment?

Currently I've this situation: \newenvironment{inline}[2]{ \begin{figure}[h!] \caption{#1}\label{#2} \vspace{10pt}% }{ \end{figure} } How can I set a background color to whole content, ...
7
votes
3answers
1k views

Different background colors for lstinline

In the following code, I've decided to use the code from Colored background in inline listings so as to redefine \verb to have the possibility to use colors for the text and the background of the ...
6
votes
3answers
931 views

New paragraph style for newbie

This question may have already been asked, but with all of my searching, I couldn’t find it. I am new to LaTeX and after a few rough starts, I am finding my way. I am using this tool to create ...
63
votes
1answer
42k views

options for appearance of links in hyperref

If I use \usepackage[colorlinks]{hyperref} I get colored links for \cite (not good for printing or even viewing) but table of content looks fine. If I use \usepackage[colorlinks=false]{...
5
votes
3answers
655 views

Is it possible to define a multicolumn environment with a background colour

EDIT: I should have given a MWE based on memoir (which I am using) where the inner and outer margins are initially different. I would like the margins to be the same in that new environment. (Inner ...
11
votes
1answer
3k views

Coloured equation number (without changing colour of reference using hyperref)

I am working on a file where I am using the package hyperref so that the references to equations are linked and coloured. Here is a MWE: \documentclass{article} \usepackage{amsmath} \usepackage{...
10
votes
2answers
3k views

Table with colored rows alternating every n rows

I'd like to create a table where the background color of the rows changes every n>1 rows. I have seen in wikibooks how alternate rows can have different colors and I have looked at one xcolor ...
60
votes
2answers
109k views

color only a cell of a table [duplicate]

Possible Duplicate: Color merged and regular cells in a table individually I tried to color only a cell of my table but I don't know how do it. I found the method to color an entire row.How ...
4
votes
1answer
1k views

Avoid comment style for URLs in code listings

I using the following settings for code listings. \usepackage{listings} \usepackage{textcomp} \lstset{language=Java, keywordstyle=\color{RoyalBlue}, basicstyle=\scriptsize\ttfamily, ...
16
votes
2answers
12k views

How to change white background of an included PDF to transparent

I have an external 100 pages PDF document (not created by pdflatex) that I \includegraphics page-wise into a beamer presentation. The external PDF document employs white as page color, but I need the ...
20
votes
4answers
8k views

How to colour multiple paragraphs?

I have a set of commands in my document's preamble that look like this: \newcommand{\nathaniel}[1]{\textcolor{blue}{[#1]}} \newcommand{\anotherAuthor}[1]{\textcolor{darkgreen}{[#1]}} They are to ...
3
votes
0answers
1k views

lstlisting: how to color numbers in code [duplicate]

Possible Duplicates: How can I change the color of digits when using the listings package? Listings package: How can I format all numbers? How to color digits with the listings package How ...
9
votes
1answer
9k views

How do I replace Warsaw black to someting else, like color theme beaver does?

The Warsaw theme uses black for the left half of top and bottom bars, and blue for the right half. Theme color beaver replaces these two colors with two shades of gray. How can I do the same within my ...
5
votes
1answer
637 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
724 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
202 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 \...
30
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
642 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
765 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} \...
13
votes
1answer
915 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
11k 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
498 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
627 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
402 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
359 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
19k 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 ...