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

learn more… | top users | synonyms (1)

1
vote
0answers
6 views

Colors not rendering correctly after \showcolor inside metapost code

I have this example \starttext \definecolor[myred] [r=.8] \showcolor \startuseMPgraphic{test} fill fullcircle scaled 10mm withcolor \MPcolor{myred}; \stopuseMPgraphic \midaligned{\useMPgraphic{...
0
votes
1answer
21 views

how to add line break inside color command

I am writing this script: \begin{chronology}[5]{1993}{2016}{\textwidth} [\textwidth] \event{\decimaldate{25}{3}{2011}}{\textcolor{red} {Line1 \\Line2}} \end{chronology} However, the \\ does not ...
3
votes
2answers
67 views

How to print in white text over black background in latex

I already have set a document with text and image. On the whole document: Is it possible to make the white background go set to black? That is: text in white color & background in black color. ...
1
vote
1answer
28 views

Changing the colour of a cell and positioning text vertically in that cell

How can I change the vertically position of the text 'Data' in the multicolumn cell? And how can I colour only that sell? \documentclass{article} \usepackage[table]{xcolor} \usepackage{colortbl} \...
2
votes
1answer
27 views

PGFPlot: Newcommand argument Color not respected

I created a new command which prints a graph from a file. So far so good. Now I want to add (to the command) an additional argument color. This is what I have so far: \newcommand{\plotvtf}[4]{% \...
2
votes
0answers
28 views

Make footnote and fnpct compatible with color package?

I know it is not recommended, but I have been trying to have footnotes in table environment. And the footnote package seems to me to be the easiest way to do it. Unfortunately, I also wanted to use ...
0
votes
0answers
36 views

LaTeX Error: File `xcolor.sty' not found

I am using Windows. I need to use the msc package. I add this line: \usepackage{msc}. I tried to compile my tex document, but I get this error; \..\..\..\Program Files (x86)\MiKTeX 2.9\tex\latex\...
1
vote
2answers
69 views

colored boxes diagram with text

I am trying to represent a diagram with boxed like in the pictures: So, 4 diagrams as showed below. The problem is that I do not know how to make them colored, with the math signs and the text in ...
4
votes
2answers
77 views

Two colors (or more) of page, for beginning chapter

I'm trying to make the first page of each chapter in two colors according http://tex.stackexchange.com/a/236952/14423. This works well for the table of contents, but does not work well for the first ...
0
votes
1answer
28 views

Printed PDF has wrong colors and linethickness

This error may be connected to this and this posts. My file is a presentation, created using beamer-class and LuaLatex. The compilation works fine, there are no errors. I will try to create a non-...
3
votes
1answer
49 views

Where Did My $ Go?

Don't worry its not a problem of $ being a special character (or at least I think). For some reason the $ that is supposed to show up next to the total on the last line does not. Removing either the \...
2
votes
0answers
42 views

Changing the color of operators

How can the following code (provide by the user egreg) be changed so that it can also take operators of the form /int or /sum? documentclass{article} \usepackage{amsmath} \usepackage{xcolor} \...
1
vote
1answer
42 views

Create multicolored off diagonals in a table

Is there a way to create the following coloring for a table? (the column and row headings having different colors... this is just the coloring of the "body" of the table) I looked around and it ...
1
vote
1answer
62 views

Color of operators [duplicate]

I want to change the colors of certain operators, for example making \lim red and \sin blue, in regular latex. I want to do this in the header, not in the actual text.
1
vote
2answers
56 views

How to define a href-like command?

I'm trying to make an \href-like command that will color its text. The one I made breaks when the URL has #. I tried the solution in here, but it still doesn't work. \documentclass{article} \...
1
vote
1answer
63 views

Colored word with listings

I added to the list of keywords by the colorful package listings (python) some functions of scipy.signal library using the otherkeywords control, I added the lti order, this order is put in color but ...
2
votes
1answer
67 views

Creating a macro which draws rectangle on the edge of the paper

How can I write the following macro to compile in XeLatex The Paper to be divided into two columns by using a borderless table (middle | is for conceptualization purpose only. it will not be visible) ...
3
votes
1answer
40 views

Any tool to decide which color to use?

This might sound like a soft question. Generally, I am very poor in colors' names and coloring things. Since there are plenty of choices of the form color1!percentage!color2, I was wondering if there ...
3
votes
1answer
35 views

how to colour a text line in beamer after it appeared?

I have three items, and I want to highlight the first one changing its colour. But I want to do this after the three items are seen. Can I do that? It may be something like: \begin{itemize} \item ...
0
votes
1answer
25 views

Can't apply color inside fancyfoot, setmainfont overwrites it

I'm using fancyhdr package and have this tex file: \documentclass[a4paper]{testcv} \usepackage{fontspec} \usepackage[russian]{babel} \footersection{\today}{Footer text}{} \begin{document} Page text ...
1
vote
0answers
26 views

How can I avoid having to set the background color for the pdf every time I start TexShop? [closed]

I'm using TeXShop Version 3.62 (3.62). Every time I start this application, I have to go to Preferences, then Preview, then Background Color, and choose a color, otherwise the pdf is totally black. I'...
2
votes
3answers
62 views

Filling in colors in frame macros

I am hoping the answer to this question is a simple, so apologies for my ignorance. Based on posts here, I was finally able to make the frame appear the exact way I wanted it to. I made the following ...
4
votes
2answers
102 views

Lighter midrule

I have a table that looks like \documentclass{article} \usepackage{booktabs} \begin{document} \begin{tabular}{cc} \toprule A & B \\ \midrule Q & M \\ W & N \\ E &...
1
vote
0answers
34 views

Define “no color” in a table cell

Is is possible to define a colour as no colour? This is for use in LaTeX tables for individual cells to override a defined \rowcolor. I've experimented with using a white colour, but then if the user ...
6
votes
2answers
167 views

warning (pdf backend): pop empty color page stack 0

I've been receiving this warning and for the past several hours (erh, something like 12 hours now). I've been trying to narrow down what's been causing it, but to no avail. I managed to cut down the ...
2
votes
1answer
69 views

color packages change my spacing

I have a problem with loading color packages. I have started my document some time a go and I have around 90 pages. Just now I wanted to add some code listings with colors so I loaded color package. ...
2
votes
0answers
38 views

Change formatting of an element in ChoiceMenu

Is there anyway to change color in the \ChoiceMenu items such as Item 1, Item 2, etc.? Or even bolding individual choices would work... I tried \textbf{Item 1} and \color{blue}{Item 1} and they both ...
0
votes
0answers
40 views

graphics with baposter

I'm trying to include some plots into my poster. I would like the plot background to have the same color as my poster-boxes and the panel background to be white. Hence I create plot in R, but the ...
4
votes
0answers
82 views

How can I prepare a PDF file for a colour overlay with `\color`?

I want to include colorised icons in a mdframed environment. Since I think that in the near future I will probably need the icons to have varying colours, I'd like to use the \color{...}{\...
2
votes
0answers
24 views

Table with colored cells using dcolumn and overlays

I found the very helpful question on how to add colors in a table using dcolumn here Colored text with dcolumn, but I would like to do the same thing using overlay such that the color only appears on ...
6
votes
3answers
90 views

How to create table with custom color borderlines?

I would like to learn how can I create on LaTeX a table like this: Please consider that the content of cells 9,17,25 and 13,21,29 are left aligned, not centered. Also, the width of border lines ...
3
votes
0answers
48 views

How to make hyperlinks in bibliography without showing URL

This is my MWE: \documentclass{article} \usepackage{lipsum} \usepackage{natbib} \usepackage{bibentry} \usepackage{color} \usepackage{hyperref} % For hyperlinks in the PDF \hypersetup{colorlinks=...
0
votes
1answer
30 views

tabularx column text alignment color

I created a tabularx table with columns specifications. `\setlength\extrarowheight{5pt} %Augmente la taille des lignes du tableau `% \begin{tabularx}{1\linewidth}{| >{\columncolor{...
2
votes
1answer
31 views

changing color when lemma or theorem is cross-referenced

So, using hyperref I know how to change the color of "1" to blue when I say "using Theorem 1". But I want the entire "Theorem 1" to be blue. Similarly when I recall a lemma/theorem/proposition/...
12
votes
1answer
202 views

Generate coloured fancy Delaunay patterns in Tikz

Recently in the world of the Internet this very fancy coloured pattern appeared: I was thinking if it is possible to generate something similar with TikZ. I saw this first example here in Drawing ...
4
votes
1answer
78 views

Customizing toc in book class (appendix and coloring sections depending on current chapter)

I'm trying to customize my TOC as in this post (second example) and I'm having two issues. The first one is documented but I can't figure out what I'm doing wrong : I want to write "Appendix" instead ...
3
votes
2answers
73 views

Komascript - Section after pagebreak has the wrong color

The following MWE shows that the second section is black instead of red. Even if this happens only if there is no text between these two sections: Is this a bug? \documentclass{scrartcl} \usepackage[...
1
vote
0answers
61 views

Tikz Pgfplot-Create user defined colorbar

I want to create only colorbar in Latex. Earlier I have used to Gnuplot to plot heatmaps along with colorbox(yeah, They are called colorbox in Gnuplot). The user defined colorbox in Gnuplot plot is ...
8
votes
1answer
91 views

Fill pgfplot bars with colorbrewer

I want to use colorbrewer in my project since it provides color cycle lists but I struggle to use them in the right way I think. Please have a look at my MWE: \documentclass{article} \usepackage{...
1
vote
1answer
31 views

Custom color between frametitle and top ribbon

I want to change colors for various elements in a presentation with Frankfurt style. I found how to change background and text color in the frametitle and outline ribbon, but I get two pale, ...
6
votes
0answers
64 views

Xelatex, and strange textcolor behavior in tikz

Here is a minimal working example: \documentclass{beamer} \usepackage{tikz} \setbeamercolor{background canvas}{bg=black} \setbeamercolor{normal text}{fg=white} \begin{document} \begin{frame} \...
6
votes
1answer
72 views

Improper alignment in tabular environment when using xcolor table option

I came across weird behavior when loading xcolor=table option that affects the proper alignement in the tabular environment. The output of this MWE \documentclass{beamer} \usepackage{siunitx,...
4
votes
1answer
58 views

Overlays in beamer : itemize items from different colors

I have a problem with Beamer. I'm trying do use lists with items of different colors, appearing once at a time. Here's my MWE : \documentclass{beamer} \usetheme{Warsaw} \newcommand\coloreditem[1]{\...
4
votes
1answer
80 views

define color in pgfplots

I want to plot funtions and data with own colors using \definecolor{<name>}{<model>}{<value(s)>}. If I use this command in \tikzpicture it works. But if I use this command in ...
0
votes
0answers
38 views

How to change style and color of Table of Content in clean thesis?

I am using clean thesis for writing the thesis. I want to change color of Table of Content and references link in text. See image 1 i want to blue color or blackfor content and refrence color blue (...
2
votes
1answer
56 views

Beamer tikz uncovering with different fill colors

Consider the following slide: \documentclass{beamer} \mode<presentation> { \usetheme{Madrid} \usecolortheme[RGB={0,0,0}]{structure} } \usepackage{amsmath,amsfonts,graphicx} \usepackage{...
2
votes
2answers
53 views

A lot of files are installed but not found by TexnicCenter

I have a classic install of MikTex, with all basic packages, but a lot are not found. Some managed to be found via the "package installation" window at compilation, but xcolor.sty just doesn't want to ...
0
votes
0answers
23 views

New colored box environment [duplicate]

Is there someone who can do the followig: I would like to define a new environment for a colored box with a title that I can call as follows: \begin{mybox}{*Title*} ** Text ** ** Math ** \end{mybox} ...
1
vote
1answer
45 views

Change Style of the Letterhead in Koma Script scrlttr2

I am using the scrlttr2 class of Koma Script and I would like to use a different color for the letterhead, which contains my address on the top of the page. Is there a simple way to apply the command ...
1
vote
1answer
70 views

not showing define colour

\documentclass[10pt]{article} \usepackage{array, xcolor,graphicx} \usepackage[margin=3cm]{geometry} \usepackage{hyperref} \title{\bfseries\textbf\textit\underline{Anum Naeem Nagra}} \author{anaumnagra@...