Tagged Questions

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

learn more… | top users | synonyms (1)

6
votes
1answer
184 views

Color each letter in document

I am trying to define a command that changes the color of every letter in the whole document to a specified color. I already tried different approaches from this thread, but I was not able to color ...
3
votes
2answers
38 views

Problem with align inside tabular environment when using xcolor

I'm trying to build a table with multiple numbered equations inside, hence I used the align environment. On the other hand, I need to color some cells, so I included the xcolor package with the table ...
2
votes
2answers
43 views

Efficiently colouring block of table cells

I made a table with the following code and the hhline package: \documentclass{article} \usepackage{hhline} \begin{document} \begin{tabular}{l || l l l l l | l} & 1 & 2 & 3 & 4 & 5 ...
0
votes
1answer
33 views

pdfLaTeX producing blank output

Very odd situation. Can't give an MWE as I am using a custom class that I wrote (I cannot distribute it publicly because of the rights for some of the code I have included for logos, etc. - not easy ...
0
votes
1answer
38 views

tikz-Picture in classicthesis-LyX v4.1

I exported a plot from MATLAB using matlab2tikz into a file testfig.tikz. As written here, I included \usepackage{pgfplots} \pgfplotsset{compat=newest} \pgfplotsset{plot coordinates/math ...
2
votes
2answers
37 views

Change letter colour without losing letter spacing

I am designing a poster with XeLaTeX and want a word with custom letter spacing and where each letter is a different colour. The example below shows the problem: the first word is spaced as I want but ...
2
votes
1answer
30 views

Using \cellcolor in powerdot

I'm trying to highlight some cells in a table in powerdot and \cellcolor doesn't work. How can I color some cells or rows in powerdot. This is the table I used in a report and I'm trying to add to my ...
3
votes
0answers
19 views

Specifying Colors Per Page

Using the leaflet package, I am trying to create a flyer for a document. I have specified the background color NavyBlue for pages 1, 2, 4, and 5. Unfortunately, the default text color, black, is ...
0
votes
1answer
38 views

How to reset the font color to black for the entire document?

The font color of Contents section and List of Figures and List of Tables sections is blue in color in the existing preamble. How can I change this back to black?
3
votes
2answers
51 views

Different colours (>2) for the bullets in itemize environment

I would like to have a itemize list using several different item colors, at least three. Basically something like described here taking the direction Alan Munn suggested: \documentclass{article} ...
0
votes
1answer
76 views

How put color in all math mode?

I want to put all math mode in a color, for example, red. But I don't know how to do that. In this web I found how to do it, but in Beamer, I want do it too in Article, Book, etc. Thanks for your ...
1
vote
1answer
31 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
39 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
24 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
79 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
94 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
2answers
40 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
67 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
266 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
32 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
66 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
56 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
42 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
89 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
79 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
55 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
54 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
31 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
78 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
33 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
63 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
29 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
64 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
87 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
34 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
30 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
46 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
36 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
56 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
44 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
62 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
305 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
375 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
102 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
31 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
49 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
34 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. ...