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

learn more… | top users | synonyms (1)

3
votes
2answers
130 views

Color-box behind inline text / inline math without vertical space

I'd like to provide a ‘background-colour’ for spans of code or math inline with text, in the same way that CSS allows. I've tried to do this with \colorbox, but unfortunately, that seems to add ...
5
votes
2answers
51 views

How to retrieve current stroke and fill color in PGF/TikZ

I am defining a shape which can be drawn in normal or inverted mode. In normal mode, the border lines and inner lines are drawn with the current stoke color, while the shape is filled with the current ...
2
votes
0answers
36 views

Context: 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
58 views

Annotate row and column highlighted in one table with different color by Tikzmark in Beamer

I found example for row only here: Annotate the table row highlighted by Tikzmark in Beamer Also found example for column only here: Annotate the table column highlighted by Tikzmark in Beamer but ...
1
vote
1answer
32 views

Why setting color has no effect on \hrule?

When processing the following example with pdftex: \pdfcompresslevel=0 \pdfobjcompresslevel=0 \nopagenumbers \pdfliteral direct {1 0 0 rg} \line{\leaders\hrule\hfill} \bye we get a pdf file ...
3
votes
2answers
72 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. ...
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 ...
0
votes
0answers
24 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
33 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
49 views

How do I change the color of the color below the header?

I want the color of number 2 to be the same as the color of number 1. This is the code that I've used: \documentclass[xcolor=dvipsnames]{beamer} \usetheme{Darmstadt} \usecolortheme[RGB={0,0,128}]{...
2
votes
1answer
32 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
38 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
71 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
78 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 ...
12
votes
4answers
1k views

No text=none in TikZ?

In TikZ, there are draw=none and fill=none options to turn off stroking and filling operations. However, there doesn't appear to be a corresponding text=none option. If I try \tikz \node[text=none] {...
4
votes
1answer
240 views

Including spotcolors in a DVI file

Consider, the PDF is generated using DVI-PS-PDF. Is there an easy way to add spotcolor in a dvi file, so that the resulting PDF contains the spotcolor. I know that using pdflatex this is possible. ...
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-...
10
votes
3answers
1k 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, samples=...
0
votes
2answers
63 views

All section titles in one uniform color in friggeri Latex CV

do you know how to change the colors of the section titles in the friggeri cv? I would like for them to be in one color and also the entire word, not only the first three letters. Is there any ...
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 ...
18
votes
2answers
53k views

Highlight, textcolor, and boldface simultaneously

I would like some portion of the text to have all three features but it's not compiling. It works two at a time but not with all three. \hl{\textbf{foo}} \hl{\textcolor{red}{foo}} \textbf{\textcolor{...
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} \...
7
votes
2answers
949 views

Changing the colour of Beamer \titlepage using a .sty file

I've been looking for an answer everywhere to this, but so far, nothing seems to have worked. What I would like to do is change the background colour and font colour of the \titlepage command, but to ...
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.
21
votes
6answers
935 views

How to change color of operators (lim, log, etc.)?

How can I change the color of operators like "log", "lim" or the root symbol of \sqrt command?
1
vote
2answers
57 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
68 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 ...
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 ...
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 ...
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'...
8
votes
1answer
92 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{...
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 ...
2
votes
1answer
139 views

Disabling colored borders in pdf with bookmark package

How do I get rid of the very ugly and annoying colored borders around all text in my pfd that is bookmarked? I am not using the hyperref package to make the bookmarks, because I cannot get than ...
5
votes
2answers
5k views

Change ref color of on the 'List of Figures'

In my 'List of Figures' Chapter the data is listed in red, and with a reference to appropriate part of the pdf file. I suppose this is due to \usepackage[colorlinks=true,linkcolor=red,citecolor=blue,...
2
votes
1answer
445 views

Bad colors in table using baposter

I'm trying to assign specific colors to table cells in a poster (baposter). Unfortunately they are reproduced different in the pdf. As they have to match the colors of my graphs I need precisely the ...
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 ...
1
vote
1answer
44 views

Automatically coloring entries in toc if they contain only default images

Introduction I am working on a document with many images named in it. These images get inserted into the .pdf if they are located at the folder I told LaTeX to look in. If there is no such image it ...
4
votes
1answer
50 views

alternate row colors for only some columns

I'd like alternating row colors for only specific columns (and in a perfect world, also only a subset of rows), with a table using multirow and multicolumn. I've found that putting \rowcolor{COLOR} ...
6
votes
2answers
168 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. ...
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[...
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
41 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 ...
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 ...
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{...}{\...