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

learn more… | top users | synonyms (1)

4
votes
1answer
81 views

How to save the current colour

If I want to gray out large swaths of text in a report, I know that I can use the xcolor package's \color{black!50} command: How to change color for a block of texts? ...
0
votes
1answer
24 views

Is it possible to change the color character by character in Lyx?

I know that it is possible to change the color of blocks of text, however I seem to be having trouble changing it character by character. I know it is possible to do it in LaTeX, but I'm not sure if ...
5
votes
1answer
121 views

Problem with defining own sectioning with color gradient

I want to define a special sectioning type for my CV. But I have problem which I can't figure out myself. I got the following code which produces the section heading with a color gradient how I would ...
15
votes
3answers
4k views

How to colour multiple paragraphs?

I have a set of commands in my document's preamble that look like this: \newcommand{\nathaniel}[1]{\textcolor{blue}{[#1]}} \newcommand{\anotherAuthor}[1]{\textcolor{darkgreen}{[#1]}} They are to ...
2
votes
0answers
29 views

Listings: color numbers only out of keywords

With the listings package, I would like to color the integers out of strings and comments and out of keywords too. The question for coloring numbers has been asked several times. Some answer handle ...
28
votes
2answers
754 views

Documenting on code revisions

I have made modifications to a few files of a C++ program. I would like to document on these changes in a nice LaTeX report, by showing exactly what I modified and explaining why I did so. Since ...
4
votes
1answer
51 views

Beamer headline miniframes - two different colors

I am working with the Dresden style of beamer. When I use smoothbars I get the color combination that I would like to have. However, when I change to miniframes I cannot get the correct color ...
1
vote
1answer
50 views

How to color an entire algorithm environment in LaTeX?

The entire algorithm environment needs to be colored in blue. While this can be done in a report or article environment, I am unable to get it done in the IEEE Journal templates. @Masroor : Thanks ...
2
votes
1answer
68 views

Color fade a line in tikzpicture

I had already a similar question. I know now how to color fade rectangles. But I was trying now for almost an hour and I couldn't figure out how to do a fading for a line. \documentclass{article} ...
3
votes
1answer
56 views

Section heading in moderncv with color gradient

I'm creating a new CV using moderncv at the moment. But I'm modifying the package to get a (at least in my opinion) better fitting result. I'm looking for a way to make the section heading with a ...
1
vote
1answer
42 views

how to add color images in latex file

This is a follow-up of my previous question regarding loading image using latex command. @erik kindly informed me that latex only supports images in eps format. I converted my JPG file to an eps file ...
4
votes
2answers
150 views

Color gradient in tikzpicture from top to bottom corner

Is there the possiblity to make a color gradient in the rectangular box in the following example from the bottom left to the top right corner (both in linear or radial shape)? \documentclass{article} ...
3
votes
1answer
323 views

Stretched columns when trying to color individual cells

I'm trying to make a time plan for a project using tables in LaTeX but I've run into a small problem. The table below will look fine until I try to colour individual cells by adding ...
1
vote
1answer
21 views

Change background colour of toolbars in TeXstudio

With How do I change color settings in TeXStudio? and Anyone willing to share his/her custom dark theme for TeXstudio? I managed to change the colour of the editor (in this case to a darker theme to ...
5
votes
1answer
111 views

Edit-proof, Consistent Use of Colour

I'm sorry if this is a vague question. I'm writing something (I'm not at liberty to share yet) that involves a lot of complicated ideas and I'm experimenting with the use of coloured text and ...
2
votes
2answers
30 views

hyperrefs in textcolor

I have used hyperref (with xcolor) and \hypersetup{ linkcolor=black, filecolor=black, urlcolor=black, citecolor=black } for quite some time now. However, in a coloured text this looks ...
273
votes
7answers
69k views

Remove ugly borders around clickable cross-references and hyperlinks

I know that I can use hyperref to make cross-references and hyperlinks clickable. That makes the clickable areas outlined in fluorescent green, however. How can I make the green boxes go away?
3
votes
2answers
91 views

Table caption inside tabular environment

I would like to write a table with latex which looks as similar as possible to this one here but I do not know how to add the caption to the header of the table as seen down below: I reach as far ...
1
vote
0answers
38 views

Bad colors in table using baposter

I'm trying to assign specific colors to table cells in a poster (baposter). Unfortunately they are reproduced different in the pdf. As they have to match the colors of my graphs I need precisely the ...
5
votes
1answer
32 views

Incompatible color package and defining a xfloat environment -> “ Too many }'s”

I am pepping up a thesis. Among others I am using a package based on Modified UDO thesis by; Jose A. Flores, November 2011. Unfortunately, I cannot find the original. One part of the package seems to ...
4
votes
1answer
78 views

Change firstname and familyname colors in moderncv classic & add a line below that & put the title below the line

I'm using the classic theme of moderncv (version 1.1) but would like to tweak a bit the header (but I'm too dumb to do that). How to make name/family name colors look like in the casual theme (i.e. ...
1
vote
0answers
59 views

xcolor colors showing only black [closed]

I recently did a clean install of my OS and ever since I can't get xcolor to work on my .tex documents this is a minimal .tex file I have: \documentclass{article} \usepackage{xcolor} ...
17
votes
1answer
5k views

Option clash for package xcolor

I'm writing a report, and have a rather large table in my appendix. I'd like to emphasize some specific values by coloring some single cells. I'm trying to do it with xcolor. But receiving the error: ...
4
votes
2answers
73 views

How to change the colour of a tag in align?

I'm having the following article: \documentclass{article} \usepackage{amsmath} \begin{document} \begin{align*} d(x, y) &= d(y, x) \tag{symmetry} \\ &\leq d(y, z) + d(z,x) ...
6
votes
1answer
247 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
49 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
51 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
42 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
56 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
46 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 ...
8
votes
2answers
1k views

Changing the colour of the text with itemize

I'm creating my own beamer theme. I can change the colour of the bullets using \setbeamercolor{}. But how can I change the colour of the text after the bullets? I would like to use it in a .sty file. ...
2
votes
1answer
34 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 ...
0
votes
1answer
84 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 ...
3
votes
0answers
21 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
41 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
56 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} ...
16
votes
2answers
303 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 ...
4
votes
2answers
1k views

Figure environment not working with included file (extra } or forgotten endgroup)

I've spent hours on this issue. I hope someone can help me. I'm running into some kind of interference when I try to use the figure environment (Likewise for table, might be related to floats). I ...
1
vote
1answer
39 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 ...
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 ...
13
votes
1answer
1k views

Listings package: How can I format all numbers?

I want to highlight all the numbers appearing in an input code of a certain program by, for example, coloring them. By numbers I mean integer, rational and floating point numbers. I am trying with the ...
2
votes
1answer
138 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 ...
2
votes
1answer
51 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 ...
2
votes
2answers
49 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
71 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} ...
3
votes
2answers
100 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) ...
6
votes
1answer
58 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
35 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
71 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 ...