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

learn more… | top users | synonyms (1)

3
votes
2answers
55 views

Split row distance between two colored table rows

I would like to add some space between the lines the improve the readability of my booktabs table. I already colored every second line therefore but I cannot achieve equal rows and the centered text ...
3
votes
1answer
42 views

Issue with cref and color names, generally and in theorem environments

I am trying to use \cref from the cleveref package with in a theorem environment. I also want my theorem names colored, say red. Now if one tries to use \cref within a colored environment, e.g. ...
2
votes
0answers
43 views

Cells in tabu move vertically when \color begins the cell

When I use \color in the beginning of a cell in tabu, the contents of the cell are shifted downwards: The issue does not occur when there is any character in front of the \color, but a \null does ...
3
votes
1answer
104 views

Addplot doesn't accept color

I tried to plot a sequence with pgfplots but I cannot set the color: \documentclass[tikz]{standalone} \usepackage{pgfplots} \begin{document} \begin{tikzpicture} \pgfmathsetmacro{\Start}{1} %% ...
2
votes
2answers
139 views

Coloring elements of a block of a matrix

Assume I have the matrix A = [ a_11 a_12 a_13 a_14; a_21 a_22 a_23 a_24; a_31 a_23 _a33 a_34; ] where a_ij are numbers and I want to draw in red color the elements of the 3 x 3 ...
0
votes
1answer
58 views

Hyperref package and color - can I choose a dark green for citecolor?

Using the Hyperref and color links, I find that the Green color for the citecolor is very pale when printed on a B/W printer. Can I darken the Green color and how can I do this, please? I would ...
3
votes
1answer
120 views

Listings style for INI (conf) files

I'm trying to create a simple style for Windows INI files using the listings package I'd like this results: purple [sections] tags red assignment operators (= and :) gray comment lines starting ...
1
vote
3answers
139 views

Colouring lines in table when using multicolumn

I was wondering if it is possible to colour specific lines in a table, especially when using multicolumn. I'm using www.tablesgenerator.com to create my table, as they are getting a bit bigger. Here ...
6
votes
3answers
267 views

Color merge from RGB specification

With the xcolor package one can define colors in many ways for example, using standard names, \colorbox{red}{...} Merging colors \colorbox{red!25}{...} \colorbox{red!25!blue}{...} Or from the ...
3
votes
0answers
69 views

Why does \IEEEPARstart have conflict with \textcolor?

MWE: \documentclass[journal,twoside]{IEEEtran} \usepackage{color} \usepackage{amsmath} \begin{document} \textcolor{red}{ \IEEEPARstart{L}orem ipsum dolor sit amet, consectetur adipiscing elit. ...
1
vote
1answer
57 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 ...
1
vote
1answer
49 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 ...
3
votes
0answers
23 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
42 views

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

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
88 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
73 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
71 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
29 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
52 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
120 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
50 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
107 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
61 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
95 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
150 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
130 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} ...
3
votes
1answer
148 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
154 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
49 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
98 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
55 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
152 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
99 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
165 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
51 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
23 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
68 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
68 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
81 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
90 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
140 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
155 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
24 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
52 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
66 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
78 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
31 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
125 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 ...