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

learn more… | top users | synonyms (1)

1
vote
1answer
63 views

color for beamer

Could you help me to change the color for beamer. I'll defend my PhD thesis next friday and we have to follow some orientation for presentation's format in our university. So, I'm using \usetheme{...
0
votes
1answer
36 views

Color in between lines - table

I wanna make a table with colors. How I do a table with colors that only the interleaved lines have color?
7
votes
2answers
133 views

How I can align 2 arrays?

I want to get rid of indentation on the first image to make it as a second. \documentclass{beamer} \usepackage{tikz} \usepackage{amssymb,amsmath} \usepackage{tikzpagenodes} \usepackage{lipsum} \...
2
votes
2answers
37 views

How to change the color environment tasks in latex?

\begin{tasks}(3) \task {\color{red} $3x^3 - 21x$} \task {\color{red} $5x^6 + 15x^4$} \task {\color{red} $4x^3 + 10x^2 - 2x$} \end{tasks} How to change the color number tasks. Please, help!
1
vote
1answer
47 views

Adding colour to a cell

I have the following preamble: \documentclass{article} \usepackage{colortbl} \usepackage[table]{xcolor} \usepackage[many]{tcolorbox} \usepackage{efbox} \efboxsetup{linecolor=fucsia!100, linewidth=0....
2
votes
2answers
66 views

Inserting a box with shaded background text, in plain TeX.

I'm using Plain TeX and trying to create a box that has a shaded background, containing a mixture of both mathmode and textmode TeX. It would be great if I could add colour to the background (i.e. ...
1
vote
0answers
40 views

Using color in expex gives “Missing \cr” error

Update: The expex developer, John Frampton, has added color functionality to a pre-release version. Those interested in beta-testing should email him for the code. Original Question: Trying to print ...
3
votes
3answers
93 views

Triangle arrows with text above

I would like to use black and white triangle arrows with text above like these: I guess that I have to combine /longrightarrow /xrightarrow{W} and /rightarrowtriangle but I don't know how to do ...
2
votes
1answer
74 views

How to change colour of Navigation Bar in Beamer

Does any one know how to change colour of Navigation Bar in Beamer. I have used the following in preamble \documentclass{beamer} \mode<presentation> { \usetheme{Warsaw} %\usetheme{...
3
votes
1answer
31 views

How to change the colour of the all lines in tabularx?

I have a LaTeX document, where I have a tabularx environment, and I need to change all lines in the table to grey. I have tried this command \arrayrulecolor{grey}\hline, but it changed just the colour ...
4
votes
1answer
71 views

Fix color transition from block title to body

I'm trying to set up a block with my own colors, but the transition from the block title to the body just looks horrible. I already had a look at remove Beamer block transition, the code obviously ...
0
votes
0answers
11 views

\rowcolor overwrites vertical table border [duplicate]

\documentclass[a4paper]{article} \usepackage[margin=0.5in]{geometry} \usepackage[english]{babel} \usepackage[utf8x]{inputenc} \usepackage{amsmath} \usepackage{graphicx} \usepackage[colorinlistoftodos]{...
4
votes
1answer
103 views

How does this partial-string color-highlighting code work?

I'm using the awesome-cv class, which highlights the first three letters of the section heading like so: The code that produces this effect looks like this: \RequirePackage{xcolor} \RequirePackage{...
1
vote
0answers
53 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
64 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
112 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 to)....
1
vote
1answer
45 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
107 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); \draw[...
3
votes
1answer
23 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} ...
2
votes
0answers
47 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} \usepackage[active,pdfpage,tightpage]...
2
votes
0answers
64 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} \usepackage{hhline}...
2
votes
0answers
55 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
39 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
29 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
50 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
11 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 \begin{tabular}{|>{\columncolor[gray]{0.8}}...
2
votes
1answer
39 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: \mycvsection{...
8
votes
1answer
78 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
56 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
47 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
71 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
83 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
46 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
163 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
75 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
93 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
59 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
66 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
71 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. \documentclass[...
2
votes
1answer
24 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 \...
4
votes
1answer
135 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
86 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
49 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
47 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
61 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
58 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} \sectionfont{\sectionrule{0pt}...
6
votes
2answers
142 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
64 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
53 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 ...