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

learn more… | top users | synonyms (1)

1
vote
1answer
51 views

Customizing background color in List of Corrections with the FiXme package

Suppose I'm using the FiXme package: \usepackage{fixme} \fxsetup{ status=draft, author= , layout=inline, theme=color} \definecolor{fxnote}{rgb}{0,0,0} % black ...
2
votes
1answer
81 views

Getting undefined control sequence with a simple \color{red}\sout{text}} command

I'm running the following simple code which contains two commands that are pretty much the same ({\color{red}..). However, I can't figure out why the second one gives an "undefined control sequence" ...
0
votes
0answers
18 views

Horizontal lines of colored cell in table not printed [duplicate]

I am trying to add horizontal lines on the table but they are not printed on the paper. I want it to look like this: But when printed it looks like this: Note that there are no horizontal line in ...
1
vote
0answers
25 views

Custom color in keywordstyle for listings under LyX [duplicate]

There are several Questions and Answers regarding the use of listings under LyX. And they mention, or explain, how to enable syntax highlighting. While this is easy to achieve, my attempt to use a ...
2
votes
1answer
316 views

How to set up listings for use code from Arduino?

Well, I'm creating notes from a course of Arduino in LaTeX and I was reading about the listingspackage and I want to use it with the code of the exercises of the course. I know Arduino uses a language ...
3
votes
2answers
109 views

Colouring one side of a rectangle defined by \draw

I create a rectangle like this: \draw (2,2) -- (2,4) -- (6,4) -- (6,2) -- (2,2); I would like to give the red colour to the side defined by points (2,2) and (2,4). I tried doing \draw [red] (2,2) ...
2
votes
1answer
80 views

Change color of sections in resume class

I would like to change the color of the name on top and the titles of the rSection in "light gray". How can I do that? ...
3
votes
1answer
81 views

How to append colored text to a macro in a loop?

I'm trying to append a couple of colored numbers to a macro in a loop. That is, I'm hoping to achieve the following but with a loop: \documentclass{article} \usepackage{tikz} \colorlet{color1}{red} ...
16
votes
2answers
376 views

How to make a longitudinal sine wave shading with pgfplots?

At the moment I use TikZ shadings to show up longitudinal waves in my document like this: The shading is white where the sine is –1 and blue where the sine equals 1. This looks ok, but ...
2
votes
1answer
37 views

randomly color leaders

After reading a bit on random coloring in LaTeX, I had the idea to use randomly colored leaders in a document. I came up with the following piece of code, which was stolen and modified from the ...
2
votes
1answer
75 views

matrix image in Beamer

I am preparing a Beamer presentation, and would like to have kind of a function (I will do this several times with different inputs) that given a matrix with elements between 0 and 1 (like an output ...
3
votes
2answers
104 views

Colorbox of page width, INCLUDING margins

I want to make a header like on the picture below: But I don't know how to force colorbox to overflaw in the margin. The best I got is: I try to use \hspace but it only moves the text: ...
6
votes
1answer
60 views

Conditionally inherit color in beamer

I'd like to change the fg color of the item symbol in beamer. In normal text it should be, e.g. yellow but inside an exampleblock or alertblock it should inherit from the block title.fg. Here is a NWE ...
7
votes
2answers
110 views

Loading the color package changes the default color of the fonts

I have three simple files which load colour-related packages although they don't attempt to use any fancy colours. These are file col.tex: \documentclass{minimal} \usepackage{color} \begin{document} ...
2
votes
1answer
84 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
81 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. ...
4
votes
1answer
96 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
43 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
141 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
68 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
111 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
39 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
85 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
257 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
47 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
46 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
87 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 ...
2
votes
2answers
87 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
53 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
69 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
371 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
401 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
124 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
47 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
68 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
34 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
41 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
40 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
64 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
322 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
39 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
195 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
50 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
113 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
105 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
95 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
59 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
79 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
82 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
215 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 ...