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

learn more… | top users | synonyms (1)

1
vote
0answers
38 views

Colorising a table based on the content

It can be hard for humans to recognise strings of numbers as being the same. Consider the table below If cells that had the same content were each colours the same, then it is much more clear. ...
2
votes
1answer
48 views

Background boxes to the edges of the paper

I am trying to produce a LaTeX template for a document format that was originally created in a WYSIWYG publishing program. Part of the template requires some block colour background elements that ...
2
votes
1answer
144 views

How to adjust the PaloAlto beamer theme

I have the the beamer theme "PaloAlto" and I want to change the size and the color of the left and top bar (1 and 2 in the picture). How can it be done? And how to change the color of the title, ...
1
vote
1answer
34 views

cellcolor affects horizontal alignment in table

I have a table and I want to highlight some cells with color with \cellcolor. However the horizontal alignment is distorted, as you can see in the image. Can this be corrected with the current ...
1
vote
1answer
153 views

Green color in latex

The default green color is not so dominate in latex, could anyone help me to create the green color like the following figure?
1
vote
1answer
39 views

How to have a color square in a text caption

Just like the figure on the right hand. The small squares in green color.
0
votes
0answers
94 views

Gear or cogwheel tikz graphic

I found the code that permits the design of a gear. But what I want is to be able to Control the distance between teeth so I can increase their numbers. Fill each tooth with different colour. Be ...
4
votes
1answer
62 views

\rowcolor and custom column separators

When I use \rowcolor, custom separators between columns are not affected: \documentclass{article} \usepackage{xcolor} \usepackage{colortbl} \begin{document} \begin{tabular}{p{1cm}!{-}p{1cm}} ...
2
votes
1answer
47 views

Xelatex has problem in generating pstricks tex file with colors [duplicate]

I have a piece of simple tex code which compiles on all of my computers. But it doesn't show properly on my laptop \documentclass{standalone} \usepackage{pstricks-add} \psset{gridcolor=green, ...
6
votes
1answer
56 views

How to color each glb or fade in expex?

I would like to have less distractive color on each glb. I've already tried to use color package. Unfortunately, I'm getting error Missing \cr inserted. \cr l.438 \endgl If I would replace ...
2
votes
1answer
37 views

How to use more than one color in the headrule using package fancyhdr

I would like to create some headrules with more than one color inside. The problem is that I get the following warning in the log : pdfTeX warning: pdflatex: pop empty color page stack 0 The ...
4
votes
0answers
69 views

Create PDFs that assume different colours on screen and on paper

I'm a little bit surprised to find that my exact question doesn't already exist on stack exchange. It is quite general and thus doesn't require a minimal working example. I would like to know if ...
0
votes
1answer
120 views

Mapped grid color for pgfplots colorbar

I am trying to use a variation of the mapped color for a prepared contour plot. The line color is correctly adjusted using draw color=mapped color!50!black, but I am unable to use the mapped color ...
2
votes
1answer
136 views

Beamer (Boadilla theme): Color of itemize subitems inside blocks

When using the "Boadilla" theme in the beamer package, I noticed that the bullets of subitems in the itemize environment have different colors inside block environments than outside. The problem is ...
3
votes
1answer
134 views

Why does the definition of a `spy scope` imply a change in the foreground color?

I noticed that the foreground color changes when adding a spy scope to my tikzpicture. Compare: \documentclass[]{beamer} \usepackage{tikz} ...
3
votes
2answers
57 views

Package xcolor Error: Undefined color `lightblue2'

I am getting this error when trying to compile a TeX document using pdflatex: Package xcolor Error: Undefined color `lightblue2' Here is my file: \documentclass{article} \usepackage[x11names, ...
12
votes
1answer
162 views

Going through permutations of nouns and verbs

My daughter is learning to read; I am learning TeX. So I need your help on this: I have an array/a list of nouns (basically names of people and two mythical creatures called Fara and Fu: noun = ...
8
votes
3answers
294 views

LaTeX, Can't color text

To be honest i don't know what the problem is, i just can't seem to get any of my text colored. I made an example file to show you some demonstation of the problem: ...
6
votes
1answer
113 views

Plotting multiple lines with a colormap in pgfplots

I have a similar question to Steve Hatcher from this thread: Spectrum colormap for multiple curves I have a data file (mwe_data.txt) which contains multiple columns. The first column is the x-axis, ...
1
vote
1answer
98 views

Changing the headline color in Ilmenau theme

I am trying to change color in beamer. I want to change the black bars into a charcoal color. My code is the following \documentclass[slidestop,compress,mathserif,11pt,xcolor=dvipsnames]{beamer} ...
1
vote
1answer
85 views

beamer: color for fonts in head/foot different from bg/fg color

Is it possible to change the font color of the sections in the head/foot independent from the fg/bg color of the head/foot? edit: Here's a MWE: \documentclass{beamer} \useoutertheme{miniframes} ...
2
votes
1answer
67 views

Unable to define scala language with listings

I'm using the solution here for scala support, but this fails to properly color the scala code, and throws a number of errors when processing lstset - % ! Package keyval Error: breakatwhitespace ...
6
votes
2answers
92 views

How to define a private color in a (possibly LaTeX3) package?

Suppose I'd like to define, in a personal package mypackage, a private (xcolor's) color: \definecolor{my_so_beautiful_red}{rgb}{1,0,0} the name of which I'd like to not be accidentally used by ...
2
votes
1answer
87 views

Coloring tables without xcolor, colortbl and tabu while using listings package

currently, I want to color my tables. However, presumably since I'm using the listings package, I can't apply the abovementioned packages, as they totally mess up the default table looks (lines ...
3
votes
1answer
66 views

How to make the section and theorems with different colour

How to write the section and examples in different colour, such as the title with blue colour \documentclass[20pt,a4paper]{extarticle} \usepackage[a4paper,margin=6mm]{geometry} \usepackage{amsmath} ...
3
votes
1answer
67 views

Customize Color for lstset morekeywords

I have done some extensive searching and have yet to find the answer to changing the color for lstset morekeywords. I want them to be a different color than my regular keywords. Here is what I have ...
9
votes
2answers
546 views

Character with two colors

I realise that this is somewhat of a special question, but is it possible to have regular characters in formulas, where the left half is colored e.g. in red and the right half is colored in blue, ...
4
votes
0answers
101 views

ConTeXt: Use url parameter to hyperlink bibliography title references

Background A technical design document includes a number of citations. It would be convenient to include hyperlinks to the cited documents in the bibliography. The bibtex entries include articles, ...
5
votes
4answers
171 views

Inline boxes: alternative to pifont's non-filled-but-shadowed box?

I often need to draw inline boxes in specific rgb-colors. I really like how easy to use the pifont package is for this purpose. But just the filled boxes look as desired. The shadowish look of the ...
1
vote
0answers
47 views

keyval error for listings/color? [closed]

When I try to compile this in my code, the compiler tells me Package keyval Error: backgroudcolor undefined. I really don't understand why it is telling me that when I know the package is installed. I ...
4
votes
1answer
84 views

Center text in color box

I wanto to center a text in a colorbox which is scaled horicontal over the complete site. How is this possible? \documentclass[ ]{scrreprt} \usepackage[ ]{scrpage2} \usepackage[ngerman]{babel} ...
4
votes
1answer
121 views

How do I set only one side of a tikz node's border color?

I want to have a node with different border colors: One for the upper and left border, one for the lower and right color. The result should look like this: Is this possible? From all examples I ...
5
votes
1answer
103 views

Bold and color (*) asterisk before enumerate

Good morning. It's my problem, add the bold (*) asterisk before enumerate items and also colored. Here my code, \documentclass[a4paper,twoside,openright,11pt]{scrbook} ...
2
votes
1answer
72 views

Vertical color background of section title

Good night. It's my problem about gradient colored section title, with vertical length. It's codes are, \documentclass{scrbook} \usepackage[T1]{fontenc} \usepackage[utf8]{inputenc} ...
4
votes
2answers
65 views

How to change the colour back to the original following \color

I have this command set up: \newcommand\blue[1]{{\color{blue}#1}} In my document, I use \color{blue}. Then I'd like to change the colour back to the original. Is there a way I can do this without ...
1
vote
1answer
30 views

Put longtable caption in marginpar and keep compatibility with caption package

After some research I found a way to place the caption of a longtable (ltablex) into the left marginpar, aligned with the top of the table. Therefore, i adapted this solution stackexchange.com: ...
4
votes
2answers
143 views

Cannot properly define an rgb color

I am trying to define an rgb color. More specifically I want to create this color which in rgb mode it's (98,190,177). I tried to define this color using the following code ...
2
votes
1answer
127 views

Changing the section and subsection font color in contents page in beamer

I want to change the section and subsection names in my contents page on beamer. Plz help me. Thanx in advance
1
vote
1answer
65 views

subcaption color with the subfigure package

To define the caption color in my document, I am using \usepackage{caption} \usepackage[font={small,color=ocre}]{caption} Which works perfectly, but currently facing the following two problems: ...
4
votes
1answer
52 views

Auto colour numbers in range

If I had some numbers in a tabular column, is there a way to automatically change the font colour of them if they are outside a range; eg red if under 10 and green if over 50? \documentclass{article} ...
1
vote
0answers
77 views

Switch to complementary colors [black <---> white]

I've decided to work the most I can in dark mode with the applications that I use. So I would like to commpile my LaTeX documents by echanging all the colors to their complementary ones : black --> ...
2
votes
1answer
162 views

How to change \headsepline color in KOMA-Scriptclasses

At the moment I am working on a rather big project in which I typeset a lecture note for a professor of mine. I want to use the headsepline the KOMA Script Class offers, but I want it to have the same ...
1
vote
0answers
38 views

how can I load a tableplot, put random colors, and the legends automaticaly using a foreach?

\begin{tikzpicture} \begin{axis}[scaled x ticks={real:1e3},xtick scale label code/.code={$\cdot 10^3$}, axis lines=left, %xticklabel={$\pgfmathprintnumber{\tick}\lambda$}, pone lambda al lado del tikz ...
4
votes
1answer
99 views

How to draw a scatter chart with multiple columns of metadata+labels?

I want to print a scatter chart and color the nodes according to a column in the data file. The problem is, point meta already is used for other data. This is the class of the point, either ONE or ...
7
votes
1answer
283 views

How to plot scatter points using pgfplots with color defined from table rgb values?

I am trying to plot a set of data points (scatter points not linked to each other), where each point has a different color. The color definition is given by predefined rgb values written in the same ...
3
votes
1answer
153 views

Text color with hyperref package [closed]

I wanted to use the hyperref package and I looked for help and I found a lot of solutions. However, I used this option that look great, as I could control the colors. ...
7
votes
1answer
129 views

How to specify a direct color in a tikz picture

I want to model gradients in TikZ for a paper covering color gradients. These are rather special, so a cannot rely on a TikZ shade alone. Thus, I want to model the gradient using consecutive TikZ ...
3
votes
1answer
73 views

How to change the color of Table of Contents from red to black?

Now the color of Table of Contents is red, i want it be black color. I use hyperref \usepackage[colorlinks=true]{hyperref} if I change it to \usepackage{hyperref} or ...
3
votes
2answers
143 views

Is there any recolor feature for imported images in LaTeX?

Is there any feature in LaTeX to recolor a figure which is included in a LaTeX .tex file automatically like the feature which exists in programs like Word? It is a good feature, for instance the ...
8
votes
1answer
64 views

Adding color package destroys listing centering

I am using @egreg's answer to make listings centered: \documentclass[a4paper]{book} \usepackage[T1]{fontenc} \usepackage[ hang, small, it, hypcap=true ]{caption} \usepackage{fancyvrb} ...