Tagged Questions

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

learn more… | top users | synonyms (1)

1
vote
1answer
42 views

Listing for TeX : how to add every tex command as keywords?

I'm looking for a way to color all LaTeX commands in a listing. I'm currently using a bad way to do it : \lstset{ language=TeX, ...
1
vote
1answer
38 views

Problems for coloring tables using booktabs and xcolor

Well, recently I posted a question related here. Thanks to the solution suggested by Harish Kumar I could fix the two tables posted at first. Later I tried to apply the solution to a new third table. ...
3
votes
1answer
33 views

Change color of individual bars in histogram of binomial distribution

With the help of Positioning of Pgfplot axis labels I managed to create histograms of binomial distributions. What I still need is to select some of the bars and fill them with a different color or ...
1
vote
0answers
25 views

Disabling colored borders in pdf with bookmark package

How do I get rid of the very ugly and annoying colored borders around all text in my pfd that is bookmarked? I am not using the hyperref package to make the bookmarks, because I cannot get than ...
3
votes
1answer
57 views

Problems with \rowcolors and booktabs

I'vegot few tables created with few packages included booktabs where I use the command \rowcolors from the xcolor package. But in the last I notice that the colour is wider that the lines of the same ...
1
vote
1answer
26 views

Message Highlight when compiling LaTeX document by latexmk

It may sound picky, but I'd like to highlight some special messages while compiling LaTeX document by latexmk. For example, these are the first few lines of screen messages when I tried to compile a ...
2
votes
1answer
49 views

Drawing grids filled with random selected colors and connecting them

What I'm trying to do is to draw to 4 x 4 grids side-by-side to represent the concept of bootstrap, from statistics. So, what I would like to do is to draw them and fill each cell of each grid with a ...
1
vote
1answer
27 views

Error while coloring the table

I am trying to color the rows in the table. I used both \cellcolor{blue!25} and \rowcolor options. The packages are included in the main file are given below... \usepackage{color} ...
1
vote
1answer
47 views

Text color of toc and bibliography in the page header,

thank you for existing. Things are easier with solutions from here. But sometimes it is not enough (for me). I'm using a modified book class. The page header are changed in color with the following ...
0
votes
2answers
61 views

Beamer - Color of header foreground with AnnArbor theme

I use beamer with the theme AnnArbor and colortheme whale. I tried to use: \setbeamercolor{section in head/foot}{fg=white, bg=blue} or \setbeamercolor{palette tertiary}{fg=white, bg=blue} But ...
1
vote
1answer
30 views

Pagecolor, fancypagestyle and absolute positioning

I am trying to change the pagecolor on a title page, defined within a fancypagestyle. That works fine. I am also using absolute positioning to place text boxes on this title page, I redifne the ...
0
votes
0answers
28 views

Reducing space & Auto coloring equations in gather environment

Following the solution in Problem with vertical spacing of equations in itemize after the first \item, I have another (side-effect) problem in colouring equations. Please help. The problem is ...
0
votes
0answers
28 views

Table of ybar plots with specific colors

I am trying to use specific coloring in an table of ybar plots. Maybe someone can help me out here. I have read other threads concerning the coloration of ybars but none of them really worked. This ...
0
votes
0answers
28 views

Warning Incompatible color definition

I am getting this warning: Incompatible color definition in strange lines. Like on a \newpage or in a blank line. Or on a \chapter. How can I fix this warnings?
1
vote
2answers
48 views

\cellcolor removes \hline

I have a table where I am filling some of the cells with a gray color. It works fine. The problems is however, that the horizontal lines of the table becomes gray too. How can I solve this so that the ...
1
vote
1answer
39 views

Modify appearance of Part Title in the table of contents

I want to divide my thesis into two parts: a background part and the thesis part. In the table of contents, I want the formatting of the parts to differ from the rest: I want the parts to be bigger, ...
2
votes
2answers
60 views

How can I produce a colour bar with pgfplots?

I want to produce a horizontal colour bar with colours varying from black and grey to white. I searched the net for a small code but I couldn't find any. Could you please help produce something like ...
7
votes
4answers
293 views

Coloured text in plain tex

Recently I became intrigued by plain TeX because it gives even more flexibility than regular LaTeX. In my document I wish to use grayscales of text. In LaTeX, producing this result is achieved ...
14
votes
1answer
363 views

Intersection of 5 ellipses

I would like to fill the intersection of each of my 5 ellisses with the same color (black for example). It works very well with two. But with a third or more, I don't know how to "save" the first ...
1
vote
2answers
94 views

Writing paragraphs in \textcolor

I want to write a document where a paragraph or two has a different text colour. I am using the \textcolor environment for this. But here is the problem when I write \textcolor{red}{blah blah ...
0
votes
0answers
24 views

Biblatex: Change color of journal title without removing DOI links

I want to change the colour of all journal titles (the ones with hyperlinks and those without) to a blue colour but at the same time keep the hyperlink that uses the DOI of the journal article to link ...
3
votes
1answer
43 views

Changing font in colorbox [duplicate]

I'd like to change the font in the colorbox, i.e. the font for the chapter number, e.g. with \changefont{phv}{b}{n} but unfortunately when I add this command the size of the color box changes, too. Is ...
0
votes
0answers
32 views

How can I change the colour of the author of an article?

I have seen I could use the package xcolor, but I did not understand how. In general, what is the best, most efficient and simpler way to change the colour of the text?
1
vote
1answer
33 views

Can't get url's to show color [duplicate]

I want to have url's with no background, but still a distinctive color so as to indicate that they are clickable. I am defining \documentclass[line, margin]{res} \usepackage[hidelinks]{hyperref} ...
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
40 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
83 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
32 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
140 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
34 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
85 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
38 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
34 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, ...
5
votes
1answer
42 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 and set it this way \documentclass[a5paper, titlepage]{memoir} \usepackage{expex} ...
2
votes
1answer
36 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
67 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
89 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
83 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
126 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
48 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, ...
11
votes
1answer
156 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
260 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
91 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
81 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
59 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
57 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
89 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
81 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
59 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
54 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 ...