Questions tagged [color]

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

Filter by
Sorted by
Tagged with
1078 votes
8 answers
510k 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?
Vebjorn Ljosa's user avatar
33 votes
3 answers
14k 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} ...
user avatar
273 votes
3 answers
323k 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]{hyperref} ...
Maesumi's user avatar
  • 8,877
116 votes
4 answers
102k views

How can I make internal links both colored and underlined?

I would like the internal hyperlinks generated by hyperref to be colored and underlined. Reading some of the package documentation, I know that these \hypersetup keys exist: colorlinks: when true, ...
Matthew Leingang's user avatar
199 votes
2 answers
334k views

How to color math symbols?

One can use the command such as \textcolor[rgb]{1.00,0.00,0.00}{boundary} to color the word "boundary" in a document. Here is my question: How to color the math symbols in $$? For example, can one ...
user avatar
149 votes
2 answers
158k views

Option clash for package xcolor

I'm writing a report, and have a rather large table in my appendix. I'd like to emphasize some specific values by coloring some single cells. I'm trying to do it with xcolor. But receiving the error: ...
Malthe Eisum's user avatar
  • 2,839
43 votes
5 answers
12k 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 shade ...
adn's user avatar
  • 10.9k
9 votes
2 answers
4k views

Adobe Reader and xcolor within a table breaks the line render

I'm using the xcolor package to colour the top row in a table. This is displayed properly using PDF viewers such as Preview or Skim (Mac). But using Adobe Reader 10.1.3 (either Windows or Mac) doesn't ...
Rich Race's user avatar
23 votes
1 answer
10k views

pdftooltip from pdfcomment package: Using LaTeX code in tooltip

I work as a Physics teacher and I am writing a "Problem-Solution-Book" with hyperlinks from problems to solutions and backreferencing -- all of it works pretty good. Now I wanted to introduce ...
user avatar
62 votes
4 answers
77k views

Can \includegraphics be used to change an image color?

I'm including a number of PDF images in my document using \includegraphics. I'm wondering if there's a way for LaTeX to adjust their color profile, hopefully the same way it can flip images upside ...
Mittenchops's user avatar
95 votes
6 answers
40k 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 ...
Emerson's user avatar
  • 3,450
40 votes
7 answers
33k views

Matrix change row or column background

I have a matrix shown below. I would like to have the whole row green rather than only the cells. How can I do that? \begin{equation}\label{eq:appendrow} \newcommand\x{\times} \newcommand\y{\...
SkyWalker's user avatar
  • 1,887
142 votes
7 answers
83k 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 ...
Mnementh's user avatar
  • 4,107
131 votes
2 answers
18k views

PDF colour model and LaTeX

(Strictly speaking, this is a question about XeLaTeX and the xcolor package but I’m assuming that the issue is actually with the color model of PDF.) I’m having the problem that colours in my PDF don’...
Konrad Rudolph's user avatar
56 votes
2 answers
28k 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}...
Ariel's user avatar
  • 1,559
23 votes
5 answers
21k views

Giving headlines a background color spanning across the entire typearea

I posted this at stackoverflow and got redirected here. This does indeed look like a better place to ask. I would like to decorate my headlines (section, subsection, etc.) by adding a background ...
Bananguin's user avatar
  • 2,524
99 votes
4 answers
329k views

How do I color table columns?

I've found question How do I fill table cells with a background color?, but the link to the documentation isn't helping me at all. I'd like to know how to color a table column given my column code, ...
Mirrana's user avatar
  • 2,551
66 votes
3 answers
62k views

How to change the background color only for the current page?

How can I change the background color only for the current page? I found that I can change the color with \pagecolor{color} but that unfortunately changes the color for all pages after this command. ...
Peter Krumins's user avatar
41 votes
5 answers
7k views

How to shade text in different colors?

I need a single character in two colors. Figuring I could use the shadings library of TikZ, I followed the manual (section 23.4.1, the TikZ example): \documentclass{article} \usepackage{tikz} \...
Raphael's user avatar
  • 5,843
20 votes
2 answers
2k views

Color changes cell height in tabular

The following code shows that a \color{red} command increases the height of a tabular cell. I want to use a switch, not a command as \textcolor{red}{text}. \documentclass{article} \usepackage{xcolor}...
Matthias Pospiech's user avatar
20 votes
1 answer
5k views

Listings package: How can I format all numbers?

I want to highlight all the numbers appearing in an input code of a certain program by, for example, coloring them. By numbers I mean integer, rational and floating point numbers. I am trying with the ...
Rafa Gallego's user avatar
24 votes
1 answer
13k views

Colors and legend in groupplots/barplot

In order to compare three items I use the groupplot command. For each item I have n different criteria to compare. Is it possible to set the color for each criteria itself? Meaning the first bar in ...
Lorzen's user avatar
  • 1,191
18 votes
2 answers
6k 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: \...
ejoerns's user avatar
  • 1,801
11 votes
5 answers
4k views

Create a box using the tcolorbox package or any other? (image)

I would like to make a box like the figure below. Can you assist me with text code using tcolorbox? Thanks
phymath's user avatar
  • 323
60 votes
3 answers
44k views

How to highlight an entire paragraph?

I'd like to highlight paragraphs such that the highlight color appears as one whole rectangle underlying the entire paragraph. I have looked around but nothing gives me the desired effect so far. For ...
ceiling cat's user avatar
  • 2,137
58 votes
4 answers
13k views

Does anybody know a good source of (free) ornaments, decorations, frames, backgrounds etc.?

I'd like to prepare a "fancy" typographical project, more interesting visually than a "boring" black-on-white text. I'm not very talented at drawing, though, so I'd like to ask about a place to find (...
mbork's user avatar
  • 13.3k
35 votes
7 answers
5k 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 \...
digital-Ink's user avatar
  • 2,973
27 votes
2 answers
4k views

Coloring a black and white PDF graphic

I have a graphic in PDF format (originally converted from an SVG) that is monochromatic (black on white). Is it possible using TikZ or PSTricks but not (Illustrator or Inkscape) to include this image ...
Hooked's user avatar
  • 4,006
25 votes
5 answers
15k views

Are there an easy way to coloring tables depending on the value in each cell?

I viewed in this post Conditional format for correlation table a solution to my question, but... Are there any easier way (or alternative) to do this using colors? Thank you. ------------------ ...
Mika Ike's user avatar
  • 3,631
23 votes
2 answers
15k views

Coloring digits with the listings package

I'm trying to typeset some python code, and I would like integer literals to be highlighted. I've come up, after about two hours of fighting with the documentation and various other questions here and ...
Clément's user avatar
  • 3,984
20 votes
1 answer
18k views

Colored symbols

First of all, I apologize if this is a repetitive question. I searched, but couldn't find it. I was wondering if I can change the color of symbols in latex. For example \ast always give me a black ...
N Nik's user avatar
  • 3,589
21 votes
2 answers
13k views

Change color in finished pdf file

Suppose I have a finished PDF file, say a figure generated from some software, where the ink is black. I would include it in a document. Suppose I want to include it in a beamer presentation with ...
Vinh Nguyen's user avatar
  • 1,331
17 votes
1 answer
7k views

How can I change the color of digits when using the listings package?

I'm using the listings package and was already able to modify the color of the keywords and almost all elements I was interested in. The only thing that remains is the color of the digits. I'd like to ...
Nanoc's user avatar
  • 171
17 votes
3 answers
3k 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 ...
Andrew Stacey's user avatar
16 votes
1 answer
3k 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 ...
Ian Thompson's user avatar
  • 42.1k
56 votes
1 answer
5k views

Creating a zebra effect using listings

This question led to a new package: lstlinebgrd (lstaddons bundle) Friends, consider the following example using the listings package: \documentclass{article} \usepackage[T1]{fontenc} \usepackage{...
Paulo Cereda's user avatar
  • 43.8k
22 votes
3 answers
35k views

How to color the font of a single row in a table?

I have a table and I want to make the font color red for just one row (not the background). How do I do that? Here's my table: \begin{tabular}{ l | l l l l } & 1 & 2 & 3 & 4 ...
Eddy's user avatar
  • 1,845
19 votes
6 answers
6k views

LaTeX Tables: Cell value color based on its sign / conditional cell color

I've a long LaTeX document with many tables. Now I want to show negative values in cell in red color. I wonder how to do globally. My MWE is below: \documentclass{article} \begin{document} \begin{...
MYaseen208's user avatar
  • 8,515
150 votes
4 answers
294k views

How to specify a fill color in RGB format in a node in tikzpicture?

I am just trying to get a rounded corner box with some text in it. The text color will be white and the box will be filled with a particular color. The preamble includes: \usepackage{tikz} \...
deshmukh's user avatar
  • 1,501
122 votes
3 answers
186k views

How to use different colors for different \href commands?

I have two different \href{}{} links and I want each to be a different color. In the example below they will both be blue, how can I make each link have a different color? \documentclass{article} \...
makhlaghi's user avatar
  • 1,822
89 votes
3 answers
122k views

Change the background color of a frame in Beamer

How can I change the background color of one frame in my Beamer document? I tried doing \begin{frame} \setbeamercolor{background canvas}{bg=violet} % frame contents here \end{frame} but it ...
Sophie Alpert's user avatar
28 votes
3 answers
15k 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 ...
YuppieNetworking's user avatar
26 votes
2 answers
4k views

How do I get different colors for math and for text?

I want to include something in my LaTeX article that will make all mathematical formulae appear in black, while all text (including everything inside \text{}s in the middle of mathematical formulae) ...
John Gowers's user avatar
14 votes
2 answers
3k views

Why is the start row of \rowcolors ignored in tabularx?

Seems like \rowcolors when used for a {tabularx} doesn’t work properly: The specific number of the first row to be colored is ignored. This is not the case for a normal {tabular}. In both tables the ...
Tobi's user avatar
  • 55.2k
13 votes
4 answers
6k views

Inkscape → PDF → includegraphics → XeLaTeX → changed colors

I have an SVG file, which I have made/edited with Inkscape. I want to include this image in my thesis. The svg file is here: http://brussense.be/temp/theSVG.svg (because Inkscape uses a non-standard ...
Matthias's user avatar
  • 4,021
13 votes
1 answer
2k views

wrapping inline long lines and adding background color

Objective I'm trying to achieve the following output. Here's the code I used to produce it. I had to hack it \begin{document} \begin{description} \item In \texttt{./build/org.eclipse.cdt....
Spundun's user avatar
  • 339
7 votes
1 answer
4k views

Rounded corner colored box around figure

I'm trying to get Rounded corner grey-colored box around figures. One solution would be to use \usepackage{float} \floatstyle{boxed} \restylefloat{figure} but this results in black box around a ...
boy's user avatar
  • 1,515
331 votes
4 answers
947k views

How to change color for a block of texts?

I am editing a LaTeX paper with Emacs. Sometimes I want to make a block of texts less obvious (or less important to see). Instead of totally hiding them, they should still be there. Is there an easy ...
SoftTimur's user avatar
  • 19.2k
162 votes
2 answers
412k 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 could ...
Mazzy's user avatar
  • 7,532
97 votes
5 answers
10k 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, ...
Seamus's user avatar
  • 72.1k

1
2 3 4 5
24