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

learn more… | top users | synonyms (1)

2
votes
1answer
22 views

Figure label in one color, figure text in another as a document rule

By adding the following package with parameters, all captions for tables, figures etc. change color, font-size and distance between label and text: %Caption formatting ...
1
vote
0answers
34 views

Can't change the color for citations in elsevier style

I wish to change the color by default of the citations in the Elsevier template without having to touch the style sheet. Is this possible? Here is a MWE: ...
0
votes
0answers
12 views

IEEE Template Colors Issue

I'm using an IEEE LaTeX template for paper publication. On IEEE journal web site, there is a SAMPLE.tex : paper sample latex file. IEEE.cls : to be used as a documant class, which containes all ...
2
votes
0answers
51 views

Python console code with minted

I am using minted to highlight source code in my document. I have defined \definecolor{codeyellow}{RGB}{255,251,204} \newminted{python}{linenos,breaklines,frame=lines,bgcolor=codeyellow} in the ...
0
votes
0answers
11 views

Conditional formatting of tables [duplicate]

I would like to format a row like shown in the screenshot taken from excel: The cells are color shaded based on how big a fraction of the column is represented by the cell. Is there an easy way to ...
1
vote
3answers
161 views

Aligned equations in a colored box

I would like to put a set of aligned equations into a colored box. After a quick search on tex.stackexchange, I have found the following solution to put (apparently) one equation in a color box : ...
0
votes
1answer
27 views

Latex reference obtaining a section including color

I have the code: \definecolor{amaranth}{rgb}{0.9, 0.17, 0.31} \titleformat{\section} [runin] {\color{amaranth}\sffamily\filright} {\thesection} {0.5em} {} ...
0
votes
0answers
56 views

Interactive change of font color [duplicate]

I need any solution of the next problem: The font must change its color if a user clicks on block, text, hyperlink or something else. It would be great if it will not demand 2 compilations or more. ...
1
vote
1answer
26 views

Color in bleed using pagecolor and crop

I use XeTeX, Version 3.1415926-2.4-0.9998 (TeX Live 2012/W32TeX). I am using the crop package to add bleed and crop marks to a document. This works fine for pages with white background, but how do I ...
3
votes
2answers
71 views

Avoid Option clash for package xcolor

I've looked at other questions about option clash for package xcolor to no avail. Tried putting xcolor before hyperref and tikz, tried adding options [usenames, dvispsnames] to documentclass, and I ...
2
votes
0answers
77 views

'parula' colormap in pgfplots

I try to implement 'parula' Matlab colormap in pgfplots drawings. Here is the MWE for that palette with 10 points for interpolation: \documentclass{article} \usepackage{pgfplots} \pgfplotsset{ ...
1
vote
3answers
149 views

How to inject a color into boxed objects?

Consider the following MWE. I want to give a color (red) to the boxed object (Hello). Unfortunately, it does not work as expected as if the boxed objects are shielded. How to remove such a shield? ...
0
votes
1answer
42 views

Change the colors used in pgf-umlcd

Is it possible to change the colors used in the pgf-umlcd package used to model UML class diagrams? The default yields a yellow background and a red border. However I'd like to use black and white ...
0
votes
0answers
46 views

Colour correcting a presentation for a projector

Projectors are notoriously bad at showing images and I'm wondering if anyone has been able to correct the colours/brightness in a pdf to compensate for this? In my case I've got access to the ...
3
votes
2answers
96 views

A single row background colour

Below is my code. How do I add a background colour to the first row (only the first row, please)? \begin{table}[!htb] \centering \begin{tabular}{c c c} \toprule ...
1
vote
1answer
39 views

Can I change linenumber colour?

I've tried adding the lineno package to my document. It's nice but I would like to make the numbers a different colour, like a light grey or blue, if possible. Can I do this in my style document ...
1
vote
1answer
71 views

how to construct table inside table in latex

I would like to construct a table look like the picture below in latex:
1
vote
2answers
75 views

How to use color declarations in titles?

How can I use color declarations when setting the title of a document? I tried \title{\color{blue} Colors in typesetting} but I get an error from LaTeX. Update: The error reads as followed: ...
0
votes
0answers
30 views

Font color affects spacing

I'm in the process of doing some changes to a paper based on the review comments. I want to have a command that simply highlights with red color the changes that I do, but when the command is changed ...
2
votes
2answers
90 views

Color text in a table

Is there a way to color text in an entire table without using environment tabu? For example, change the color of text in every cell to red.
1
vote
1answer
68 views

Align colored numbers in table

How to align colored numbers in the last line with other numbers in the same column? \documentclass{beamer} \usepackage[utf8]{inputenc} \usepackage[T1]{fontenc} \usepackage{amsmath} ...
3
votes
1answer
49 views

How are the colors for certain schemes defined in moderncv?

Unfortunately, I'm not able to find this information in moderncv.cls... There is only written: % colors %------- \definecolor{color0}{rgb}{0,0,0}% main default color, normally left to black ...
1
vote
2answers
47 views

Changing color of cites with hypersetup not working

I'm trying to change the colors of my cites. I would like to get a light blue color for them. I tried using hypersetup but it seems not to work. Here is my MWE: ...
3
votes
2answers
216 views

Color of the navigation bar in beamer (theme Goettingen)

How can I change the color of the navigation bar in beamer? I am using "Goettingen" theme. I tried several changes, but that did not work... CODE: \documentclass{beamer} ...
0
votes
0answers
35 views

problem colour image in latex [beamer]

I have a problem : I'm using pdfLateX in beamer presentation. Build and view is: DVI->PS->PDFCHAIN also have this in preamb: \usepackage{graphicx} % Allows including images When I'm importing a ...
1
vote
2answers
43 views

Kile - change color scheme for panels

I'm trying to configure kile on my ubuntu 14.04. I have changed the edito color scheme to a dark one and it looks nice but the side panel, konsol, and other windows are still bright white which ...
3
votes
1answer
43 views

Refering to colors using numbers

I want to create a command allowing me to colour arbitrary text with a color designed by a number (e.g. 1 = Green, 2 = Blue, etc). To that purpose, I create a first command, giving the name of the ...
1
vote
0answers
45 views

texstudio non-english text is black

I'm trying to change my color scheme and used this answer. My document is in persian so I downloaded this spell checker dictionary from OpenOffice website and also in texstudio changed he dictionary ...
4
votes
1answer
49 views

File ended while scanning use of \multicolumn

I used http://www.tablesgenerator.com/# to create this table and loaded all of the needed packages. But it stil doesn't work. I really need this for my thesis. Can someone please help? My code is the ...
10
votes
2answers
250 views

conditional against font color

I want to change the text according to its current font color. I can test argument against font family \documentclass[a4paper,12pt]{article} \usepackage[utf8]{inputenc} \usepackage[T1]{fontenc} ...
4
votes
0answers
130 views

Draw a transparency gradient arc over a rectangle with tikz

Consider the following code: % DOCUMENT TYPE \documentclass[12pt,a4paper]{article} % PACKAGES \usepackage[utf8]{inputenc} \usepackage[T1]{fontenc} \usepackage[english]{babel} ...
1
vote
1answer
36 views

Make different color of few letters in the middle of the word

I tried to make the following word in Black and Red. \textbf{ trans{\textcolor{red}IT}ion'10} It gives me the following result - But I want both IT in red. Why the T is not being red.
1
vote
0answers
35 views

How to color in tex image

http://tex.z-dn.net/?f=\color{red}{\frac{2}{3}} I have been struggling to get expression colored in that site. It doesn't seem to understand \color command... I am new to tex. Do I get help ? Thanks! ...
0
votes
1answer
65 views

Framesubtitle in a different color than Frametitle in Beamer?

I was wondering if it is possible to have a different colour for your framesubtitle than the colour your frametitle has? I found out how to change the fontsize seperately here: Set frame subtitle ...
1
vote
0answers
37 views

Using xcolor package and inserting figures

I have a report with figures. The code that I'm using is very basic and looks like this: \begin{figure} \centering \includegraphics[scale=0.5]{Figures/pic} \caption{Title} \label{fig:name} ...
1
vote
1answer
159 views

Using MikTeX how can we color some text

I am using MikTeX 2.9 on Windows 8.1. The PDF output of the Following TeX file does not display the word "example" in fore color or background color. I'm using TeXWorks editor - that comes with MikTeX ...
2
votes
1answer
62 views

Thumbnail style in note pages with beamer

I'm making a presentation with LaTeX beamer and editing some notes about the frames. I managed to change the background color of notes with \setbeamercolor{note page} but I still have a white ...
1
vote
0answers
63 views

How do I change the color of average in boxplot n pgfplots?

I have a simple graph using boxplot and I'm trying to customize the look. I'm part way there, but am having trouble with the average. where I have changed the color of the box and the median, but the ...
2
votes
1answer
51 views

Distinguishing \ref and \cref through different colors

I have the following problem with the hyperref, and the cleverefpackages. I would like to distinguish internal links (e.g. sections, etc) from mathematical links (e.g. definitions, theorems, ...
0
votes
0answers
13 views

Colorizing lines in a longtable, but not the caption [duplicate]

I'm trying to colorize lines in a longtable, which is working except it is colorizing also the caption, like this - \documentclass[a4paper,12pt]{report} \usepackage[table,hyperref,dvipsnames]{xcolor} ...
8
votes
1answer
56 views

Color (CMYK) leakage when using precompiled format file?

EDIT3: Note - the below apparently demonstrates a bug with Ghostscript 9.02's tiffsep device (see comments); tested it with Ghostscript 9.16 and it doesn't display this problem (CMYK separations are ...
5
votes
2answers
163 views

Change the color of a single itemize item — command to do that?

My question concerns itemize items in Beamer slides. I want to obtain the following slide: This has been produced by the code: \documentclass{beamer} \begin{document} \begin{frame}{Title} ...
1
vote
2answers
50 views

Change color of numbers of sections

I want to change this box in which I have the section number to black, which I can do. But then the text is the same color and illegible. I need to make it white. I tried this but it didn't do ...
1
vote
1answer
77 views

How do I create a header that has a colored box with page number, Chaptername, and also a line across the textwidth after it?

I would like to create a fancy header that looks like this. I am writing a two-sided book with a5paper.
10
votes
4answers
195 views

Automatically colour previously defined strings of text

I'm creating some tables with conjugations for nouns, adjectives, etc., for certain languages. I wanted to colour certain endings of these instances but doing it manually is very tedious, so I tried ...
4
votes
1answer
89 views

How to change text color a particular reference in the bibliography in latex? (using ieee transactions bibliography style)

I want the a particular reference in the bibliography list to take on a different color, say, blue. These are some minimum working examples. This is my latex file: \documentclass{article} ...
2
votes
1answer
46 views

Background color of the block of text

I want to have something like given in the picture. Borders above and below of the box are optional. I tried \colorbox, but it doesn't work. \documentclass{report} \usepackage{color} ...
4
votes
2answers
118 views

Table Row Color Covers Text

I am trying to create a table with alternating row colors using the xcolor package with the [table] option. The following example demonstrates that the row coloring (uncommenting the \rowcolors..) ...
2
votes
0answers
42 views

Monochrome vs grayscale in scientific journals? [closed]

Many scientific journals accept only black&white articles. Does this mean that only monochrome (black and white only) articles or also grayscale (gray is OK) article are OK?
2
votes
1answer
69 views

CMR Font selection and fancy header formatting?

I am trying to accomplish the following: Chapters like "Chapter1" in CMCSC10 font between two thin lines After that Chapter name like "Introduction" in CMR17 font The paragraph body in CMR12 font I ...