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

learn more… | top users | synonyms (1)

2
votes
0answers
27 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 ...
2
votes
1answer
22 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 ...
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
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
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 ...
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} ...
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}} % ...
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
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. ...
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 ...
2
votes
1answer
97 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 ...
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. ...
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} ...
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. ...
0
votes
0answers
30 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} ...
7
votes
2answers
61 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 ...
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 ...
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 ...
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 ...
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. ...
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 ...
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 ...
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 ...
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/
1
vote
1answer
20 views

Changing the colour of *some* references

I am using \usepackage[colorlinks=true,linkcolor=black,linktoc=page]{hyperref} and the citations come out green, while the page numbers in the table of contents, figure and equation numbers come out ...
2
votes
0answers
41 views

Fontcolor not working when footnote is continued at next page [closed]

In the beginning of my document, directly after \begin{document}, I put \color{red}. Unfortunatelly, on some pages, this does not work. I found the cause, but not the cure: Footnotes which are too ...
1
vote
1answer
39 views

Adding color to table of contents and section headings

Is there a way to: In the table of contents have the "Chapter" appear in a color other than black ? Is there a way to change the "section" color? A MWE: \documentclass[12pt,twoside]{memoir} %-- ...
4
votes
1answer
57 views

Change font blackness

\documentclass{article} \usepackage{fontspec,kantlipsum} \begin{document} \fontspec[Scale=0.9]{Trebuchet MS} \kant[1] \end{document} I'm using XeLaTeX but the text is way to black, it's like if I ...
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} ...
0
votes
1answer
61 views

Color Underline Section Headings

I would like to underline section headings using different colors (e.g. red for section, yellow for subsection). So far I have only achieved to change the text color of the headings (see code), but I ...
1
vote
1answer
62 views

Background color of legend in graphics made with tikzpicture/pgfplots

I'm using tikzpicture and pgfplots to make graphics. And, I'm wanting a beamer presentation with black font and white writing. When I'm plotting the graph, the legend box is just a white box and I ...
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 ...
2
votes
2answers
106 views

beamer: itemize do not honor text color

I understand that each \item within an itemize does not honor the text color because it is within its own group. Anyhow, I have a program that generates for me a bunch of boxes, one of which is ...
2
votes
1answer
46 views

beamer: column background color

How do I change the background color of a column in Beamer? (the entire column) (This is a simple question, but for the life of me, I cannot not find an answer.) Example: \documentclass[t]{beamer} ...
4
votes
1answer
50 views

Change color of a reference in bibliography

I am using {thebibliography} and I wanted to make one reference in blue font. I use \color{blue} but the problem is that the reference is in blue font but the number is still in black font. Does ...
2
votes
1answer
41 views

How to change color and thickness of headsepline and fromrule in scrlttr2?

I want to change the color and thickness of headsepline and fromrule using the standard scrlttr2 class with the options: headsepline=on fromrule=aftername
2
votes
1answer
66 views

Setting beamer color in region between title bar and canvas

How does one control the color of the region between the title bar and the canvas in beamer? When the color of the background canvas is darkened there is a white bar between title and canvas. MWE ...
4
votes
2answers
87 views

Compilable custom environment when in the body text becomes uncompilable when defined as a new environment

I attempted to make a table which has gray backgound cells except for the first column and the first row colored blue. The following code successfully generates the desired output (although I do not ...
6
votes
1answer
87 views

LaTeX — how to read current value of color?

I want to save the current text colour, then change it, then change back to the original. I was thinking of doing something like: \def\oldcolor{old colour here} % save colour \color{red} ...
6
votes
2answers
78 views

Changing the color of a “-” symbol within the align environment

I need to highlight a "-" sign together with the term next to it in an equation which is inside the align environment. In principle, I need something like this: but with the minus sign highlighted ...
4
votes
2answers
127 views

Package todonotes: How can I change the textcolor?

Consider following MWE: \documentclass{article} \usepackage{blindtext} \usepackage[colorinlistoftodos,prependcaption,textsize=tiny]{todonotes} \presetkeys% {todonotes}% ...
5
votes
1answer
101 views

Create a custom font style for beamer

How can I create a custom font style for beamer? How can I then change the color of this style and the normal font color globally? I'd like to write e.g.: \begin{frame} \HighlightedText{I am ...
3
votes
1answer
64 views

Add an \hline to every \\ using colortbl and/or [table]{xcolor}

I'm creating my own tabular environment to speed up my work and to enable others to quickly use my styles and templates. One of the things I do is force an \hline on every row. I accomplish this ...