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

learn more… | top users | synonyms (1)

7
votes
1answer
238 views

colour cells in a table according to the value

I have seen the following code in response to another similar question that works when the numbers in the table are between 0 and 100. How do I have to modify this code so that it works for numbers ...
1
vote
1answer
15 views

Beamer handout: removing colours

I'm using beamer for my presentation where I use a lot of colours to point out certain terms in equations with {\color<2->[rgb]{1.0,0.22,0} some text} When I make the handout, the colours ...
0
votes
1answer
6 views

\textcolor with Arabic and polyglossia highlights whole line

I would like to highlight certain phrases in my XeLaTeX document in a different color. The document is completely in Arabic and I'm using polyglossia and xcolor. My problem is that the color bleeds on ...
1
vote
1answer
72 views

Color citation using biblatex : in-text + references (issue with postnote + bibliography)

I want to color my citations using biblatex alphabetic citation style. However, I do not to only color the "key" (as it is the case in this paper) but the whole block including : opening bracket (or ...
3
votes
0answers
21 views

Beamer: alert and math color [duplicate]

I'm having some trouble changing the colors of parts of an equation in Beamer, with "math text" being set. The following MWE demonstrates the example: \documentclass{beamer} \usepackage{color} ...
2
votes
0answers
29 views

Can I take a photograph and change it's background in mdframed, includegraphics setting?

Is there a way to change the background colour of a photograph within the \begin{mdframed}, \begin{figure} and \includegraphics{filename}. My mdframed environment is coloured, but my photograph has a ...
11
votes
2answers
597 views

How to generate n points over a circumference and choose label and color

I would like to place n points over a circumference like Figure 3 of this file. I'd choose the label to be assigned to each vertex and color and I'd like to have the code in TikZ-pgf.
0
votes
1answer
53 views

Understanding some tabu code

I'm catching up on LaTeX after a period away. Herewith part of a programme: \documentclass[12pt]{report} \usepackage{tabu,multirow,hyperref,colortbl,xcolor} \begin{document} \begin{tabu} ...
2
votes
1answer
23 views

Color Options for Appearance of Links in Hyperref

Extending this wonderfully useful post ("options for appearance of links in hyperref"), I am curious if you might list all the color options (or point me to the appropriate documentation) for ...
6
votes
1answer
32 views

How can I use more than one color in shadethm package?

I know that we can change the default color given in shadethm package using, for example, \definecolor{shadethmcolor}{HTML}{F7F8E0}. But if I want to use different colors for different environments in ...
1
vote
1answer
56 views

How to do sidewaystable

I have a very broad table in one of my appendices LaTeX so I wanted to have it sideways. However, when I use sidewaystable, the table is placed on another page directly after my appendix, leaving my ...
35
votes
2answers
65k views

How do I color table columns?

I've found question How do I fill table cells with a background color?, but the link to the documentation isn't helping me at all. I'd like to know how to color a table column given my column code, ...
2
votes
1answer
50 views

Strange interaction of minipage, multicol and xcolor

I'm not a big expert of LaTeX (and I know almost nothing of the underlying TeX engine), so sorry if the answer is more obvious than what appears to me. Can someone tell me why simply loading the ...
1
vote
1answer
28 views

Multirow line width

I'm having an issue with this code \begin{table}[H] \begin{longtable}{| p{4cm} | p{2cm} | p{7cm} |} \hline \multicolumn{3}{| p{14cm} |}{\cellcolor{lightgray} \centering \textbf{Iniciar ...
1
vote
1answer
13 views

Outlines Package - Coloring Prefixes AND Text?

I want to use the outlines package, and wish to color lines of a certain level with a certain color. Here is my current document: \documentclass[12pt,letterpaper]{article} \usepackage{outlines} ...
1
vote
1answer
24 views

color one cell that has a multicolumn in it

Hi I want to colour the cell with "SMI" in it. \documentclass[]{book} \usepackage{tabularx} % LINE-A \usepackage{booktabs} \usepackage{colortbl} \begin{document} \begin{table}[h] \begin{center} ...
7
votes
1answer
106 views

How can I get different colors in each element of double loop

This is my code \documentclass[tikz]{standalone} \usetikzlibrary{calc} \usetikzlibrary{intersections} \usetikzlibrary{arrows} ...
1
vote
1answer
40 views

How to change Footnote color in only one slide?

For some reason I want to change the color of my citations in my slides. I am using the code posted in here Why \footcite not working in beamer? as a MWE. \documentclass{beamer} ...
1
vote
1answer
29 views

rowcolors when space is removed with @{}

When space on either side of a table is removed with @{}, then the color added with \rowcolors will expand beyond the width of the table. In the answer provided to a similar question, this is fixed by ...
2
votes
1answer
25 views

Define color for chapter in scrbook

I try to change the color of my chapter heading: \documentclass{scrbook} \usepackage{xcolor} \definecolor{myColor_MainA}{RGB}{0,64,119} \addtokomafont{section}{\color{myColor_MainA}} % ...
7
votes
1answer
2k views

How to make a colored rounded text box?

I would like to know which is the preferred way to make a colored, rounded text box? I would like to show important notes for example.
1
vote
0answers
30 views

xcolors cellcolor overlays tikz background

I'm using mdframed with the tikz option to define my own environment. Unfortunately, if I'm using a tabularx environment with xcolor's \cellcolor command, it is overlaying the header of my box. ...
5
votes
1answer
108 views

How to use custom colorscheme with `\tdplotsphericalsurfaceplot` from `tikz-3dplot`

As the title suggest I am trying to use a different color scheme than is currently the default in the tikz-3dplot package for the \tdplotsphericalsurfaceplot command if one uses the option ...
4
votes
2answers
56 views

How can I make \autoref keep the surrounding color?

\autoref's link color is set using the linkcolor=black parameter of the \hypersetup command of package hyperref. This implies that the link color does not regard the color of its surrounding text. How ...
0
votes
1answer
61 views

How to color multiple plots in rainbow colors?

I´m trying to color multiple curves of a line in rainbow colors wiht tikz. I´ve found the [wave] option for color from the xcolor pagacke, but I can't get it to work inside tikz's draw command. ...
2
votes
1answer
98 views

How to make circle with colored halves?

In my math equations, I'd like to use a circle symbol which has the top and bottom half colored at a specific color. Ideally with a separating line at the diameter. The symbol should also work if I ...
41
votes
2answers
47k views

How to color math symbols?

One can use the command such as \textcolor[rgb]{1.00,0.00,0.00}{boundary} to color the word "boundary" in a document. Here is my question: How to color the math symbols in $$? For example, can one ...
1
vote
0answers
16 views

Beamer \textcolor space in math mode problem [duplicate]

Why in the second case the spacing is correct and not in the first ? Maybe not fully correct in the second between + and u ? \documentclass[xcolor=dvipsnames]{beamer} \begin{document} ...
15
votes
2answers
282 views

Extra space added after equation when it is coloured

For some reason space is added after my equation when I colour it. This does not happen if the colour is added to text. Is there a simple way to prevent this from happening, like a global setting (I ...
2
votes
1answer
46 views

how to fill the color of a sphere with \addplot3

I need to fill a sphere with one color. I've read the documentation and there is fill=blue but in my case is not working. The below picture shows what I've got so far. \documentclass{standalone} ...
3
votes
1answer
55 views

How can I change the colour scheme of a beamer presentation between different slides?

This is my frist question, so please pardon me if I don't include enough detail! I'm new to LaTeX, and I'm currently working on a Beamer presentation about research I've been doing over the summer. ...
7
votes
2answers
62 views

Automatically converting pictures to black-and-white

I am submitting a paper to an Elsevier journal, and they ask that "For reproduction in black-and-white, please supply black-and-white versions of the figures for printing purposes." My figures are ...
0
votes
0answers
31 views

Pantone framebox in XeLaTeX

I have my document in XeLaTeX. I need to use PANTONE colors, so I choose xespotcolor. MWE looks like this: \documentclass[a4paper]{article} \usepackage{xespotcolor} \usepackage{color} ...
33
votes
3answers
13k views

How to highlight an entire paragraph?

I'd like to highlight paragraphs such that the highlight color appears as one whole rectangle underlying the entire paragraph. I have looked around but nothing gives me the desired effect so far. For ...
1
vote
2answers
73 views

Kile - change color scheme for panels

I'm trying to configure kile on my ubuntu 14.04. I have changed the edito color scheme to a dark one and it looks nice but the side panel, konsol, and other windows are still bright white which ...
5
votes
2answers
131 views

Instant preview color in LyX

I'm using the instant preview feature in LyX, which as I understand is based on a LaTeX package of the same name. As I have LyX configured with a dark background - Is there anyway to configure the ...
4
votes
1answer
33 views

Gray dots in itemize

Using itemize, how can I use a gray big dot as \item instead of the black one by default?
2
votes
1answer
46 views

Custom colormap breaks colorbar: Cannot remove border and Mac Preview doesn't show colorbar

I have a custom colormap. And I have a plot with a colorbar. Without custom colormap: No border around the colorbar, as intended. Looks perfectly fine in Mac Preview. With custom colormap: Black ...
8
votes
1answer
60 views

TikZ: Mixing color with white and setting opacity with a white background yields different results

I noticed that 25% opacity with a white background yields a different result for me than mixing 75% white into the color. Why is that, and what would be the correct way to not have opacity but the ...
1
vote
2answers
58 views

Fbox'ed minipages with fboxsep=0pt, fboxrule=0.0001pt and colored border

I have arranged within approx. 20 minipages a data plot, several pictures with attached labels taking columnwidth, columnsep of the twocolumn paper format etc into account. For debugging purposes, I ...
1
vote
0answers
61 views

Customizing the tabular environment — \rowcolor without \\ causes problem in the next tabular — bug in colortbl?

I boiled down the problem to much more simple MWE. See the update below. I tried to customize the tabular environment to make it easy to use a coherent style throughout my thesis. I wanted for the ...
0
votes
0answers
28 views

Pgfplots colorbar labels have incorrect value

I have created a custom colormap and try to use it like in this example: Color coded plots with colorbar in pgfplots. I also fix my meta range with point meta min and point meta max. However, the ...
2
votes
0answers
22 views

Colorbar for lineplot using pgfplots [duplicate]

I am doing a lineplot with pgfplots. However, instead of the usual legend, I would prefer a colorbar, as I am basically trying to visualize a transition, and for that I chose colors in a gradient like ...
0
votes
0answers
29 views

how to change colour new command [duplicate]

is there any possibilities to declare a different colour for this? \makeatletter \newcommand\mysphere{% \parbox[t]{5pt}{\raisebox{0.2pt}{\beamer@usesphere{item projected}{bigsphere}}}}%{\color teal} ...
3
votes
1answer
50 views

How to draw two lines side by side with tikz?

I would like to draw two lines side by side, like this: It's difficult to draw them separately when the lines are bended in some place. I tried the double option, but it would bring three lines. ...
4
votes
1answer
104 views

Watercolor in tikz

Is it possible to fill a shape with a coloring that looks like watercolor like in this image using tikz or pgfplots? Src: http://bartoszmilewski.com/2015/07/29/representable-functors/
0
votes
1answer
34 views

changing footnote box color in beamer?

How can i change footnote box color in beamer? I can set the text color and other properties but unable to change the color of the box. Meanwhile, how can i adjust the length of the footnote?
2
votes
1answer
51 views

Matching width of Caption background with Table width

I am trying to color a table with a background color and the caption with a different background color. I must use the tabular environment, none of the tabulary, tablarx, tabu, tabular* will be ...
3
votes
2answers
101 views

Asymptote: How can I mix two colours

In latex, I can mix two colours like RoyalBlue!25!white. In asymptote I want to use the same color. How do I do this? MWE where I would like to replace the RoyalBlue color of the material by the ...
11
votes
1answer
375 views

TikZ Chromaticity Diagram

I'm trying to make a chromaticity diagram in tikZ, does anyone know how to make one? I want this My issue is not in forming the spectral locus that I can do, right now I'm only using three points ...