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

learn more… | top users | synonyms (1)

1
vote
0answers
49 views

How to pass a color as an argument [closed]

Before explaining my problem, sorry if this is a repeated question, but I was not been able to find one answered/asked question in which the problem was the same as mine. In order to create a ...
5
votes
0answers
51 views

How to apply colour options to the contents of TikZ nodes when the content includes \sbox{}\usebox{}?

Thanks to Sašo Živanović for helping to identify the problem which arises as a result of my trying to apply options such as blue or text=blue to nodes within Forest trees which include turnstiles from ...
4
votes
2answers
82 views

Change the color of title

I successfully changed a color of sections and subsections to my defined one. However I'd like to change the \title with the same way, but \titlefont{•} doesn't work (and I guess it's not supposed ...
1
vote
0answers
21 views

LaTeX, colored title [duplicate]

I successfully changed a color of sections and subsections to my defined one. However I'd like to change the \title with the same way, but \titlefont{•} doesn't work (and I guess it's not supposed ...
1
vote
1answer
31 views

Can't change the colour of the line in the header (fancyhdr)

I'm trying to change the colour of the line in my header to the grey, and I don't know how to do it correctly. \documentclass{article} \usepackage[utf8]{inputenc} \usepackage[russian]{babel} % ...
6
votes
1answer
104 views

creating function in TikZ that can break up and interpret string

I find myself needing to draw a bunch of simple patterns with a few colors, as in the example below. \begin{tikzpicture}[scale=1.5] \draw[style=help lines,step=1cm] (-2.3,-2.3) grid (2.3,2.3); ...
3
votes
1answer
22 views

How to get xcolor colour mixing to work in newcommand

I want to set the colour of a table cell using the argument passed into a command, but it doesn't seem to have any effect. Here's my code: \PassOptionsToPackage{table}{xcolor} \documentclass{beamer} ...
1
vote
0answers
31 views

Highlight first rows and first columns of a pgfplotstable

I'm trying to change the background color of the cells FOO and BAR and also the ones with the values (1 and 2) in the following MWE: \documentclass[12pt]{article} ...
2
votes
0answers
61 views

Draw a matrix with Latex

I did a matrix with Latex, but I do not know how how to do the colored square. Any idea please? Thank you \documentclass{article} \usepackage[table]{xcolor} \usepackage{collcell} ...
2
votes
0answers
51 views

Sphere shading in cmyk colours

I'm trying to make a sphere in cmyk colours. In rgb, the spheres are nicely overlapping as expected. Is the solution using @Christian Feuersänger suggestion here? \documentclass{standalone} ...
2
votes
1answer
28 views

color (solid) individual nodes in tikzpicture matrix

in the following MWE, I create a 'Coates diagram' I use for one of my classes. What I haven't been able to figure out is...how to colour the individual nodes? I want them to be solid, say, RGB-based ...
1
vote
0answers
27 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 ...
3
votes
1answer
39 views

Coloring toc page numbers

I'm using book class and I'm trying to achieve a toc which titles and page numbers are all clickable and hyperlinked to their corresponding sections, but with the characteristic that the page numbers ...
0
votes
0answers
10 views

Missing some vertical and horizontal lines n tabular environment with colour [duplicate]

I have about 20-30 tables, and sometimes the vertical/horizontal lines and borders won't show after I have added >{\columncolor[gray]{0.8}}. \noindent ...
2
votes
1answer
23 views

Change the section color in europecv for “Personal information”

For changing the color of section titles I do this in europecv: \newcommand{\mycvsection}[1]{\ecvsection{\textcolor{BrickRed}{#1}}} This way the section title is red when I use: ...
8
votes
1answer
71 views

Strange tikz problem (memoir vs xcolor vs tikz)

Consider the MWE below, on a fully updated TeX Live 2015, this gives me this error: /opt/texlive/2015/texmf-dist/tex/generic/pgf/libraries/pgflibraryarrows.meta.co de.tex:208: You can't use `\unskip' ...
2
votes
1answer
45 views

Color Box Theorem Headtitle only

I want to put a colored box in every theorem, example etc. Only the headtile and not it's contents. I've found an answer here which works for simple tetx. But is does not work for theorems, examples ...
2
votes
1answer
30 views

Colored horizontal lines in algorithm2e

I'm trying to colorize the 3 horizontal lines appearing at the top and bottom of the algorithm below. I haven't been able to find similar issues in the internet. Could you please advise? ...
0
votes
1answer
59 views

Resolve rowcolor and column separator clash?

I want to create a table with Text aligned around the separator "V-" and color it using \rowcolor. The normal column separator @{V-} doesn't work with \rowcolors, thus I'm searching for a way to do it ...
5
votes
1answer
50 views

Color cycle and forget plot

I use cycle list name=exotic as coloring for my plots. I am looking for a way, either to use a number referring to a color (index from the exotic list), or a way to get the color of a labelled plot. ...
2
votes
1answer
39 views

How to separate glossary entries from section references in hyperref

I have a document, a glossary and references. I am using the hyperref package to create hyperlinks \usepackage[colorlinks = true, linkcolor = red, urlcolor = green, citecolor ...
5
votes
1answer
151 views

How can I make a smooth color wheel / spectrum?

I'm currently trying to make a printer test page (see full code). One part is a color wheel / RGB-spectrum or however you call this: But it has "stripes". I would like to have a smooth color wheel. ...
5
votes
1answer
52 views

Changing color in foreach loop

I am trying to plot 12 different lines with a for loop and with a gradually changing color. I came up with this simple code: \begin{figure} \begin{tikzpicture} \begin{axis}[ ylabel={Normalized ...
3
votes
1answer
77 views

Listing with monospaced font (Dejavu Sans Mono) and background color

I will setup my document to the Sans Serif Font Helvet and additionally all source codes should display with Dejavu Sans Mono and grey background color (on \lstinline{} too). How can I setup listings ...
3
votes
0answers
56 views

Function to create a Chapter color

I am writing a project for a course and I want to make each Part's Chapters' first page to have a different color on the side. This is my code. (I put % (comment) in the problem for the code to run.) ...
6
votes
1answer
62 views

Why is the start row of \rowcolors ignored in tabularx?

Seems like \rowcolors when used for a {tabluarx} doesn’t work properly: The specific number of the first row to be colored is ignored. This si not the case for a normal {tabluar}. In both tables ...
4
votes
1answer
52 views

Table cell with unwanted black background

I'm trying to create the following table, but the first cell has a black background. How can I get rid of it? I need alternate colors and multiple rows feature provided by tabularx. ...
2
votes
1answer
21 views

xr-hyper link color does not follow hypersetup

I am using the xr-hyper package to reference labels in another document. The linking is working properly. However, I noticed that colors of the xr-hyperlinks are not following the colors defined in ...
3
votes
1answer
101 views

Highlight Text with Background Color

I try to highlight text with \texttt font and background color (somehow like the highlighting on StackExchange: this). I tried with a colorbox, but the problem is that it doesn't support line breaks, ...
2
votes
1answer
58 views

LaTeX - mdframed shadow color/opacity

I currently have a problem with the mdframed shadow color. If I set the shadowcolor parameter to black, the shadow will actually be grey (I guess because it is not fully opaque...), as seen on the ...
0
votes
1answer
46 views

Beamer and monochrome-xcolor

When using the monochrome option for xcolor in a Beamer presentation, the canvas background shows up as entirely black when compiling with pdflatex, but would be entirely white if compiled with ...
1
vote
1answer
45 views

Append “handout” option to white-out answer environments

I cannot seem to find a solution for a simple problem. I would like for my slide handouts to white out the text in Answer blocks for printing. (Though this possibly allows students to highlight ...
1
vote
1answer
46 views

highlight several successive paragraphs, including tables

I want to do s.t. which seems like it ought to be trivial, but I've tried for two days without success (much of the time trying methods I found here). Conceptually, I want to highlight an arbitrarily ...
2
votes
1answer
30 views

coloring section rule using sectsty package

I would like to change the color of section rule, as it obtained using sectsty package. Here is what I have: \documentclass{article} \usepackage{xcolor,sectsty,lipsum} ...
6
votes
2answers
133 views

How to plot anomaly using two colors in a single plot with pgfplot?

I want to create a line plot using a table data included in the MWE. The thing is that, using this data, I want that the plot looks like the next figure: i.e., with different color areas for one ...
2
votes
1answer
38 views

How to color text inside of a \def

I am trying to color some text inside an xdef command. I am getting the following error: Use of \@undeclaredcolor doesn't match its definition. Does anybody know how to resolve this? Thanks! edit: ...
0
votes
1answer
43 views

Change background colour of toolbars in TeXstudio mac

Have the same question as posted here Change background colour of toolbars in TeXstudio just that I'm on an OSX device With How do I change color settings in TeXStudio? and How can I set a dark ...
1
vote
1answer
52 views

What would be a good way to approach making a table-like diagram with text at varying angles?

I want to make the following diagram in LaTeX: I started to approach making it in a table, with \usepackage[table]{xcolor} being used for colors, but it seemed to become overly complex. What would ...
2
votes
1answer
112 views

Undefined Color under TikZ code

The Problem is '!Package xcolor Error: Undefined Color 'Black'. See the xcolor package documentation....' Perhaps is a simple mistake due to the fact that I'm a newby. Using MiKteX, xcolour package ...
1
vote
0answers
36 views

Color the text of an item while using task

i am using task to make multiple columns, now I would like to color the text including the index. I have been able to color the text but not the index as follows \begin{tasks}[counter-format ...
3
votes
2answers
73 views

Defining coloring area in Tikz

After much work i figured out how to make assymetric sets. Now i am having much trouble defining where the coloring should fill. As you can see in the pic when i fill in the color it fills ...
7
votes
1answer
214 views

Show all colored words at the end of document

Is there any way to show all colored words at the end of a document? Say I'm marking definitions as red and theorems as blue. Is it possible to make a list of "keywords" where all red words is ...
12
votes
3answers
552 views

Partially transparent gray chronoevents in my chronosys timeline? Or using any other Plain-TeX, LaTeX, LuaLaTeX, or even a XeLaTex package or method?

While putting together a "traditional" timeline, I kludged together a means of coloring my boxes in chronosys, but I would like the event boxes to be partially transparent. This would allow better ...
5
votes
3answers
153 views

Change the page color starting at page x

I need to be able to change the background color of a document and the pagecolor package seems like a good fit. However, what I also need is a command that allows me to color all pages that start at a ...
0
votes
1answer
60 views

Trims missing with colored page

I am using memoir and showtrims as an option. using \onepagecolor makes the trims disappear. Any ideas? Here is a MWE: \documentclass[12pt,showtrims]{memoir} \usepackage{lipsum} \usepackage{xcolor} ...
2
votes
1answer
31 views

\cellcolor extent slightly off when \multicolumn also in use

I am trying to color-code cells of a large matrix that may either contain a number or a symbol. (MWE at end.) The numbers are supposed to be flush right within their cell, but the symbols are ...
0
votes
0answers
46 views

How to color math symbols in beamer with lyx

I know there are answers to do that in latex. But is there a similar implementation in lyx?
4
votes
1answer
106 views

How to create a colour option in custom beamer theme?

I have used this answer from the question about how to design a beamer theme from scratch to design a Beamer theme to look like a university presentation (Powerpoint) template. There are 3 colour ...
0
votes
0answers
20 views

How to add a rule/command to not color text in <> in tcblisting?

I have the following listing with some code inside: \documentclass{article} \usepackage[T1]{fontenc} \usepackage{beramono} \usepackage{xcolor-solarized} \usepackage[many,listings]{tcolorbox} ...
6
votes
0answers
66 views

Included PDFs alter Beamer colors

I am compiling a Beamer presentation on Ubuntu using PDF figures output from Inkscape. The colors on certain slides are wrong. This appears to be caused by including certain figures, and based on my ...