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

learn more… | top users | synonyms (1)

6
votes
1answer
44 views

How to specify a direct color in a tikz picture

I want to model gradients in TikZ for a paper covering color gradients. These are rather special, so a cannot rely on a TikZ shade alone. Thus, I want to model the gradient using consecutive TikZ ...
20
votes
3answers
5k 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. ...
4
votes
1answer
159 views
+50

biblatex style verbose, beamer and color in block

I use biblatex with citestyle=verbose inside beamer. With this style, the name of the author is automatically colored, and also the title. That is a nice feature ... except if you cite your a work ...
15
votes
1answer
560 views

XeLaTeX and TikZ - how do I ensure my PDFs are using the CMYK color model?

The place I want to print my document at needs the PDF to be provided in CMYK. The document is mostly text, except for a few graphs and plots which are done in TikZ or pgfplots. As suggested in this ...
19
votes
4answers
862 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} ...
3
votes
1answer
36 views

How to change the color of Table of Contents from red to black?

Now the color of Table of Contents is red, i want it be black color. I use hyperref \usepackage[colorlinks=true]{hyperref} if I change it to \usepackage{hyperref} or ...
3
votes
2answers
118 views

Is there any recolor feature for imported images in LaTeX?

Is there any feature in LaTeX to recolor a figure which is included in a LaTeX .tex file automatically like the feature which exists in programs like Word? It is a good feature, for instance the ...
6
votes
4answers
196 views

Highlight / color parts of text

LaTex newbie here. Currently using vim with solarized color scheme to edit .tex documents. When writing I often jump around to different parts of the document, leaving gaps behind to work on later. ...
7
votes
0answers
36 views

Adding color package destroys listing centering

I am using @egreg's answer to make listings centered: \documentclass[a4paper]{book} \usepackage[T1]{fontenc} \usepackage[ hang, small, it, hypcap=true ]{caption} \usepackage{fancyvrb} ...
3
votes
1answer
41 views

Setting background color of minipage without overflow

I would like to set a color to the leftmost minipage in the following code: \usepackage{xcolor} \fcolorbox{red}{gray}{ \begin{minipage}{0.33\textwidth} some text \end{minipage} } ...
2
votes
1answer
42 views

Fancy Table of Contents and Hyperref Set Up

I am using a code in tikz for a fancy table of contents and I want to apply certain settings on it using the hyperref package and the relevant command hyperrefsetup. I want to create the following ...
3
votes
1answer
36 views

Colored box for theorem with ntheorem

I would like to have every theorem with the same style to have the same colored box and to be able to configure the color. Like this : I tried to use the package ntheorem with the option framed and ...
4
votes
1answer
63 views

Broken layout of colored tables with new version of colortbl package

we're having trouble with the new version of the colortbl package which breaks our layout of colored tables. With the new version of the colortbl package (2012/02/13 v1.0a) the layout is utterly ...
0
votes
0answers
22 views

Texstudio and color scheme

I try to use texstudio for mac. How can i change the color scheme? I found this discussion Anyone willing to share his/her custom dark theme for TeXstudio?, but i do not know how use this color scheme ...
2
votes
1answer
3k views

Beamer: changing footline background color

I would like to make the footline color black and the text white. I found this: Beamer: Background Color for Footline but didn't understand how it applied to my example. \documentclass{beamer} ...
6
votes
2answers
65 views

Color depending on section number

I'm working on a document which is divided into chapters. Each chapter is divided into 4 sections. I would like to create a command that defines a color depending on the number of the section. I've ...
5
votes
1answer
49 views

Automatic cell colouring using cellcolor: Undefined Control Sequence

I am trying to produce a table, using tabularx, where the cells are coloured automatically depending upon their value. I want to use the \cellcolor command as it will fill the whole cell, rather than ...
16
votes
5answers
5k views

Color underline a formula

I want to underline different parts of a formula with different colors. What is the best possible option? Soul seems only to provide one color per document.
3
votes
2answers
457 views

\cellcolor command from colortbl package not working

I've been trying to colour single cells but it's not working. Here's a MWE: \documentclass{memoir} \usepackage[usenames,dvipsnames,svgnames,table]{xcolor} \begin{document} \begin{tabular}{|l|c|} ...
9
votes
3answers
229 views

Is it possible to give colors to big (automatic) parenthesis in math mode?

In the following code I can't make the right parenthesis to have arbitrary colors. \documentclass{article} \usepackage{amsmath} \usepackage{xcolor} \begin{document} \begin{equation} ...
4
votes
1answer
92 views

Last xe(la)tex colors text in white in some circumstances

Last xe(la)tex: XeTeX, Version 3.14159265-2.6-0.99991 (preloaded format=xelatex 2014.6.19) (the one shipped with TeX Live 2014) colors text in white in some circumstances: in the following MWE file ...
6
votes
1answer
56 views

How can I apply different styles to different classes of identifiers?

I am creating a custom style for the lstlisting package, with some custom colors for certain words. I am trying to define different "classes" of words, where each class has a certain property, like ...
4
votes
1answer
76 views

Add gradient to colorbox

Newby here. I found a great template for technical reports here . . http://www.latextemplates.com/template/stylish-article I would like to change the background color of the abstract and section ...
4
votes
1answer
28 views

Color behind numbers in lstlisting

Currently, my listings use this style : \definecolor{lstgrey}{RGB}{217, 217, 217} \definecolor{lstback}{RGB}{246, 246, 246} \newlength{\numberlengthnormal} ...
4
votes
2answers
72 views

Colorbox not working with longtable

I have some tables that I want to entirely color in light grey, but the same command lines that work for the tabular environment (see second table example) do not work for the longtable environment ...
4
votes
3answers
103 views

Adding background color to table cells in LyX

I'm doing some tables using LyX and I tried to set a color background in the cells , but I got this error: Undefined control sequence \rowcolor {cyan} & The control sequence at the end ...
4
votes
1answer
3k views

Set the width of a fcolorbox

Hi a very basic question I'm sure, but is there a way to tell \fcolorbox in xcolor to draw the box of a certain width. For example with \fbox I would do \documentclass{article} \usepackage{xcolor} ...
3
votes
2answers
107 views

How to highlight a path in Tikz with two different colours?

I have a small graph drawn in Tikz with two paths through it highlighted in different colours. However, these paths are going to share an arrow. What I would like is to highlight this arrow with both ...
4
votes
1answer
144 views

grouped bar colors in pgfplots

I have a simple grouped bar chart but would like to have all group bars the same color. Currently each bar in a group is colored, possibly because of the way I have used addplot. I've tried to use a ...
5
votes
1answer
449 views

Listing, zebra effect and broken lines

In Creating a zebra effect using listings, I've found one solution to produce a zebra effect for listing. Unfortunately, this only works if the lines are not broken. Is there a way to fix this? Here ...
2
votes
1answer
56 views

pgfplot: how to render 3dplot with colors black, white and gray

I my previous question, I rendered a 3d plot, but as I want to print my plots they should be in black, white or gray coloring format. How should I change the coloring scheme? ...
15
votes
5answers
8k views

How to draw a square of 1cm in LaTeX filled with color?

How to draw a square of 1cm in LaTeX filled with colour? I found mdframed and framebox does this, but there need to write text inside it. I just need to draw a box.
11
votes
2answers
250 views

How to color delimiters

I have some special delimiters that I want to add to a glossary, those get hyperlinks and colors etc. However when i want to use those delimiters, using \left, \right and \middle becomes impossible. I ...
3
votes
2answers
93 views

\llap mystery with TeX--XeT

Consider \documentclass{article} \usepackage{xecolor} % loads fontspec by default \setmainfont{Times New Roman} \begin{document} \fontsize{60}{70}\selectfont TEST\llap{\textxecolor{red}{TEST}} ...
2
votes
1answer
24 views

Problem with color in \part heading

Below is my code, where the myBox definition interferes with the color of the heading I define for my part style. Any ideas why the horizontal line in the \part heading becomes blue? I want it to be ...
2
votes
1answer
47 views

KOMA-Script: How to colour just the section numbers

I have added a splash of colour to my thesis and found it looked quite nice. The theme is: Chapter and Section headings are a dark blue, and the numbering is a brighter blue. I managed to do this for ...
16
votes
1answer
5k 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 ...
1
vote
1answer
26 views

Change footer and header background color for style simple in powerdot

I am using the style simple for creating slides with powerdot: \documentclass[style=simple]{powerdot} \begin{document} \begin{slide}{First slide} Hello world! \end{slide} \end{document} While ...
2
votes
0answers
43 views

Problem with framelines in tables

I am having a problem with LaTeX at the moment, which I seem completely incapable of solving. I am trying to create a simple table which has 4 columns and (should have in the end) 36 rows, including a ...
1
vote
0answers
78 views

Displaying authors in color bibtex

If I call a reference by \citet{xxx}, it appears in my document as Author [number], where the number appears in the color I defined in \hypersetup{citecolor=red} while Author and [] appear in black ...
1
vote
1answer
87 views

Color is not working properly with XeLaTeX RTL documents?

The following minimal example produced the desired results: \documentclass{article} \usepackage[usenames]{color} \begin{document} black {\color{red} red} black black \end{document} But the ...
0
votes
0answers
26 views

Ref using \hyperref[]{}, no color

I am using the hyperref package and are currently trying to reference using: \hyperref[label]{text and \ref{something}} The ref works fine, however, my other ref's (using eg. \ref{tab:no1}) are set ...
18
votes
2answers
414 views

Colored margin with vertical text

What I'd like to reproduce on LaTeX can be seen on the picture below. I am writing my master thesis (book style) and I'd like to add a colored margin on every page (on the right for the right pages ...
0
votes
0answers
35 views

Filling a cell of the table with color and preserving the border

I used \cellcolor{} to fill the cell of my table. However, the black borders of the cell disappears. The tex viewer shows borders, but I don't see the borders when I open as a pdf. Can you help me ...
1
vote
0answers
12 views

libpng warnings about sRGB profiles - determine which files are meant and disable warning [duplicate]

After some LaTeX or system updates, I get these new warnings for something that was typeset perfectly before: libpng warning: iCCP: Not recognizing known sRGB profile that has been edited Since ...
3
votes
2answers
96 views

Colored horizontal line between two text

How I can get color horizontal line between two text ? I am using command \rule{16cm}{1mm}., Can any one suggest how to change the color of horizontal line.
0
votes
0answers
14 views

How to combine bigdelim and alternate row coloring inside a longtable in LyX? [duplicate]

It seems that it's quite a conflict to use some big (multirow) delimiter (bigdelim) and applying alternate row coloring inside a longtable at the same time (using LyX). The following example ...
3
votes
1answer
44 views

Change Character Color in listing

I want to change some special character's color in listing for example all Parenthesis be red. I don't want to make them keywords they should have different color. is it possible?
2
votes
2answers
75 views

Matlab2Tikz FaceColor Surfplot

I would like to export a surf plot, whose face color is for example green, out of MATLAB R2014a to latex with the aid of matlab2tikz. Unfortunately when i run pdflatex the face color now ranges from ...
5
votes
2answers
115 views

Barplot: alternating colors, bars side by side

I'd like to have a barplot with bars side-by-side and with alternating colors. It should look like the ouput of the code below, just with alternating bar colors. (Got the idea from here) ...