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

learn more… | top users | synonyms (1)

11
votes
1answer
454 views

Using listings: “zebra effects” AND line numbers

I just made a code listing with a "zebra effect", just like here: Creating a zebra effect using listings But afterwards, the line numbers at the left side of the listing don't appear any more. This ...
11
votes
1answer
414 views

Changed all math text to red in beamer, now I can't make some math text black

When I try to make the checkmark black using the following code, it doesn't work; the checkmark shows up red. How do I make it black? \documentclass{beamer} \usepackage{amsmath, amsthm, amssymb, ...
11
votes
2answers
4k views

\hhline adds white line where no line is intended

In a table, containing colored cells, i want to have a \hline dividing only some cells, similar to \cline but compatible with coloring single cells with \cellcolor, which is possible by using \hhline ...
11
votes
1answer
788 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 ...
11
votes
2answers
2k views

Options and suggestions for hyperref font?

Background I am interested in finding and implementing a more aesthetically pleasing style for the hyperlinks in my document. I have read through the documentation, but I find both the colored text ...
11
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 ...
11
votes
1answer
437 views

How do I force tikz to use CMYK everywhere (also in shadings)?

I'm doing a poster with the baposter which uses tikz and at some point realized that some colors that should be identical are not. It turns out that tikz apparently resorts to RGB color space as soon ...
11
votes
1answer
2k views

\cancel draws under thing being canceled

I'm trying to use \cancel from the cancel package to strike out some colored text but it is apparent that the diagonal line is drawn first so it doesn't do a very good job of canceling. Minimal ...
11
votes
1answer
770 views

LaTeX color and ICC color profiles

I have a (pdf|Xe)LaTeX document and trying to keep it CMYK. For some documents, I use a certain color for it's elements, which is RGB #BDCDDA. As my final document should be using the Adobe CMYK ...
11
votes
2answers
956 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} ...
11
votes
1answer
7k views

Change text background within paragraph (with automatic linebreaks)

How do I change the text color as well as the text background color for e.g. a sentence within a paragraph? I know \textcolor for coloring the font and \colorbox for background coloring ...
11
votes
0answers
103 views

Text collage (word cloud) in LaTeX? [duplicate]

There are some automatic method (package, class, macro) in LaTeX to do a text collage similar to that showed in the image? If not, is would be possible without too much manual work?. The ...
10
votes
3answers
3k views

Table with TikZ

I should create a table like the one here as example. I think that the best way to do a table like this one is generate some labels and use them to colorize the nodes in order to make it more ...
10
votes
4answers
2k views

How to color a region?

The following code \documentclass{article} \usepackage{tikz} \usetikzlibrary{intersections,positioning} \begin{document} \begin{tikzpicture}[radius=5] \draw (0,0) rectangle (5,5); \draw[name ...
10
votes
2answers
318 views

make enumerated button in TikZ

Is it possible to make an enumerated button, similar to the ones shown in the figure below? I will be using them as pictures in an external document (not TeX).
10
votes
3answers
840 views

How can I ensure all teletype/monospaced text is in a certain color?

I'm trying to include some monospaced text, and I'd like it to be in a different color than the normal text. There will be several (read: hundreds) of instances of monospaced text, and I want it all ...
10
votes
2answers
1k views

Fill the left 1/3 of the title page with color?

This is my first time to try and write documentation by using LaTeX. The generated PDF is quite impressive, but there is one thing I have no idea of how to do it: I would like to have the left 1/3 of ...
10
votes
2answers
482 views

How to generate n points over a circumference and choose label and color

I would like to place n points over a circumference like Figure 3 of this file. I'd choose the label to be assigned to each vertex and color and I'd like to have the code in TikZ-pgf.
10
votes
3answers
364 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!
10
votes
2answers
2k views

Use CSS-style color specifications in xcolor?

I have colors on my website #eff5f9 and #dfecf7. I would like to also use them in a latex document. Is there a way to use such hexadecimal specifications with xcolor? I've tried to read the xcolor ...
10
votes
3answers
529 views

Filling in the area under a normal distribution curve [duplicate]

I'm trying to fill the area between the two $z$-scores but I'm not having any luck. Could someone please help me with this? \begin{tikzpicture} \begin{axis}[ no markers, domain=0:6, ...
10
votes
2answers
2k 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 ...
10
votes
2answers
1k 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: ...
10
votes
3answers
3k views

How to change the color of bullets in a list

How can I change the color of bullets in a book? \documentclass{book} \usepackage{pifont} \usepackage{xcolor} \definecolor{myblue}{RGB}{0,29,119} \begin{document} \begin{dinglist}{110} ...
10
votes
2answers
579 views

How can I change the text color in such a way that the effect transcends groups?

I'd like to have a command \globalred that makes all subsequent text red, even if the command is issued inside a group. For example, the output of the TeX file \documentclass{article} ...
10
votes
2answers
3k views

Color entire table

How do I get an entire table to get a background color. I dont mean the indivual cells but the entire table to get a gray shade. Something like this:
10
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 ...
10
votes
3answers
286 views

Defining a macro for “real” colored delimiters

I recently looked up J. van Hoorn's question on How to color delimiters in Math Mode, and so I decided to test my LaTeX knowledge by trying to define a new appropriate command: ...
10
votes
3answers
1k views

Enumerated text and formula with background color

I want to have an enumeration with text and formulas with a background color, but \colorbox does not work, here's my code: \documentclass{book} \usepackage{xcolor} \usepackage{shadethm} ...
10
votes
3answers
2k views

Recommended color for hyperlinks in a CV

I'm using the hyperref package, and I'm curious if there is a recommended color for hyperlinks. At the moment I am using urlcolor=BlueViolet which looks great onscreen, but when printed in b&w it ...
10
votes
3answers
353 views

How to “bubble in”/color fill an item counter ((A),(B),(C),…) in an enumerated list

I'm trying to make an answer explanation guide for a test where the correct answer is "bubbled in". I've tried using the enumitem package and tikz as shown in this post (Enumerated list with blue ...
10
votes
2answers
10k views

How to highlight table rows by colors in Beamer

I would like to highlight rows in tables, in rowwise, that is I would like to highlight row 1 in red, then make row 1 in black but row 2 in red, etc. How can I manage to do so in Beamer?
10
votes
1answer
975 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 ...
10
votes
1answer
625 views

Transparent shade using TikZ

I wonder whether it is possible to create a transparent shading effect (like the one below) without an exact specification of the fill color. This solution is good until I have to change the ...
10
votes
1answer
389 views

Shaded Multicols

Does anyone know how to shade the background and put a border around a multicol environment, where page breaks are needed. There is a couple of posts around, most notably, multicols within colorbox, ...
10
votes
2answers
1k 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 ...
10
votes
2answers
241 views

monochrome and pstricks

I am creating a file type images for presentation / written, I have been interested in the monochrome package xcolor, but by using it I have not obtained the expected results, check the documentation ...
10
votes
1answer
1k views

Glossary link's color

How can I change the color of glossary links when using glossaries along with hyperref? I just want to change glossary link colors not all links.
10
votes
1answer
349 views

Color box issue

Here is my MWE (minimal working example): \documentclass[]{article} \usepackage{fancyhdr} \usepackage{graphicx} \usepackage[usenames,dvipsnames]{color} \begin{document} \begin{center} ...
10
votes
2answers
1k views

Changing color in an eps file from within LaTeX

We have an EPS file with a logo in one color. Is it possible to somehow manipulate this color from within LaTeX? We need this logo in different colors for different series of one imprint. Edit: ...
10
votes
1answer
839 views

Why is it that coloring in soul in beamer is not visible

\documentclass{beamer} \usepackage{soul,color} \begin{document} \begin{frame} \hl{Hello World} \end{frame} \end{document} I process this with pdflatex and I do not see the expected highlight. ...
10
votes
1answer
427 views

Store black and white information in a generated pdf

Last time when I printed my thesis at a copy shop the nice girl asked me if my pdf has some kind of color information stored inside. She explained to me that their printers can detect black and white ...
10
votes
2answers
211 views

Two colors in one hyperlink

As usual writing a few documents. As one can see having too much color and gloss in a document is never good. Therefore having boxes, and a myriad of colors in the hyperlinks is a bad idea. I really ...
10
votes
1answer
2k views

A few words in a coloured/grey background box

How can I write a few words with a grey highlighting box in the background, as shown in the picture below ("TEXT 4")?
10
votes
1answer
1k views

How to use CMYK-Colors in the whole document

I found out, that my color laser printer prints graphics with gray color in RGB-Representation instead of using black (they are more red then gray). So it seems, that PDFLaTeX is creating ...
10
votes
1answer
588 views

Specific colour in equation links

In hyperref package, is it possible to specify a specific color for equation links different than other link colors ? Following are present color specifications that I am using for hyperref package ...
10
votes
1answer
2k views

On using beamer's colors in a Tikz picture

For once, my question is short and simple: How do I use a beamer defined color in a tikz picture. For instance, as beamer's documentation states, using beamer's colors is done as follows: This text ...
10
votes
1answer
1k 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 ...
10
votes
1answer
155 views

Use \cellcolor in \tabulary

The \cellcolor command from package colortbl doesn't seem to have any effect in a tabulary environment, though it works in tabular. Here is a minimal example: \documentclass[a4paper]{article} ...
10
votes
1answer
898 views

Add another color for a section in Friggeri Resume/CV

So I'm writing my CV using the friggery CV template. It looks like this: and can be found here: http://www.latextemplates.com/template/friggeri-resume-cv As you can see the sections all start ...