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

learn more… | top users | synonyms (1)

2
votes
1answer
28 views

colors text in latex

How can I make in this fashion with same color of blue and white? Thank you!
1
vote
2answers
38 views

Graphics, xcolor, graphicx cannot find pdftex.def / xetex.def

I have a clean install of texlive. While trying to compile any document which uses either the graphics, graphix, or the xcolor packages, I get errors that the compiler can't find the corresponding ....
4
votes
0answers
195 views

Why cmyk colors are displayed wrong on screen? [closed]

If we compile this with pdftex and open in evince 3.18.2-1 (and other viewers), the color is violet, instead of blue: \pdfliteral{1 1 0 0 k} \vrule height 5cm width 5cm \bye Please somebody share ...
9
votes
1answer
70 views

How to draw a polygon with different line color and rounded corners?

I want to draw a polygon with different line color and rounded corners, but the corners of polygon are not rounded! \documentclass[12pt]{report} \usepackage{tikz} \begin{document} \begin{tikzpicture}[...
0
votes
1answer
46 views

How to change color of 'shadow' around frametitle (Latex beamer)

How do I change the blue shawdow around the frametitle to a different color? Or rather even get rid of the shawdow [Solution: I used the \setbeamercolor settings AFTER \begin{document}. Writing it ...
2
votes
1answer
27 views

Underline text, change underline colors in consecutive sentences

I want to underline consecutive sentences each with a different color within an italic text. So far, I have tried the soul package and can change the underline properties. However, I am having ...
2
votes
1answer
21 views

Define a colour depending on a variable

I'm trying to set a colour depending on the content of a variable. Please have a look at the MWE below. In case of \junk{A} the text should be red on a green background. In case the content of \junk ...
1
vote
1answer
48 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 ...
5
votes
3answers
63 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 ...
3
votes
2answers
131 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 ...
2
votes
0answers
37 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
34 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
29 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
40 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
74 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
79 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
64 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 ...
19
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
50 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 ...
2
votes
1answer
63 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.
22
votes
6answers
936 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
140 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
105 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 ...
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} ...