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

learn more… | top users | synonyms (1)

0
votes
1answer
29 views

How to format complex section header

I've got several question, all relating to the below image. Within my .cls file I am trying to style the section headers like so: My first question was how do I stop \sections from being numbered. ...
1
vote
1answer
32 views

How to change font color of a row in tabularx?

I have a table and I want a font color of 5th and 6th row be red. What I'm doing right now is changing the color of each cell in these rows, is there any command which can change font color in a row, ...
3
votes
2answers
23 views

How to use \usepackage{pst-barcode} with \usepackage{color}

When using \usepackage {pst-barcode} with \usepackage {color} I get siguiete error: ! LaTeX Error: Option clash for package pstricks. \begin{pspicture}(3.5,1.2in) ...
2
votes
1answer
38 views

Multicol and text background color

I am searching means to create a multicol document in which each column has a background color like illustrated below. The colored areas (red rectangles) should be filled with the background color. ...
4
votes
2answers
34 views

Change color line in hline

Recently I asked a question about how to draw a line under titles but this line should be flexible is a picture is included or not. I am trying to change the color of this line but nothing works? ...
1
vote
1answer
24 views

Beamer. Block. How to reset \setbeamercolor{block title} and \setbeamercolor{block body}?

After using a block with customized colors \setbeamercolor{block title}{use=structure,fg=white,bg=red!75} \setbeamercolor{block body}{use=structure,fg=black,bg=red!30} How can you reset to the ...
1
vote
1answer
31 views

Changing the color of paragraph and caption text together

I have a question about paragraph text colour and caption text colour. I want to change the text colour of a part of my paper which has many figures but when I use \color command, it only changes ...
2
votes
2answers
25 views

Color-box behind inline text / inline math without vertical space

I'd like to provide a ‘background-colour’ for spans of code or math inline with text, in the same way that CSS allows. I've tried to do this with \colorbox, but unfortunately, that seems to add ...
8
votes
3answers
63 views

Section title formatting also in the toc

I have searched the web to no avail trying to figure out how to redefine the section title format in a way that will be transmitted to the way that same chapter appears in the Table of Contents. I ...
2
votes
2answers
47 views

\colorbox{color}{text} display issue with same math expressions but different syntax

My following LaTeX file in MikTeX' TeXworks editor on my Windows 8.1 is showing the highlighted content with different sizes when the highlighted content is inside quadratic formula but not when it's ...
2
votes
3answers
51 views

A table with fixed width columns, coloured both background and text

I am trying to create a table which has all three traits, mentioned in the title, at once. I tried tabular with individual \color for each column, tabu with \rowfont, and custom column definitions ...
2
votes
2answers
89 views

Centre text in table and add color to cells

Hi i'm trying to centre the text in the cell, there's on numbers so it's quite small, also i need to add color for the cells, (1 is green and 6 is red) but because I am using \cline it overwrites the ...
12
votes
4answers
485 views

Coloring all occurrences of some specific characters

I have been wondering for ages how to do something that is absolutely crucial to the document I am writing. (I usually use XeLaTeX, but I don’t mind changing if required.) I would like to have a list ...
2
votes
0answers
43 views

Table cell pattern of colors

With \cellcolor one can set the background color of a cell. I use this in documenting a communication protocol to indicate the type of the value in a certain field, say green is type X and blue is ...
5
votes
3answers
124 views

Table xcolor @{,} \rowcolor broken text

i am using a formatted table like this: \documentclass[a4paper,10pt]{report} \usepackage[table]{xcolor} \begin{document} \begin{tabular}{|c|r@{,}l|c|c|c|c|} \hline $B_N$ ...
3
votes
2answers
29 views

How to recolor the chapter numbering and text in memoir?

I'd like to use the default chapter style in memoir, but change the color to, say, blue. How is this done?
1
vote
1answer
70 views

Changing the Color of a Tikz Spline Midway

As stated in this brilliant answer tikz splines can be genrated this way (code is shamelessly copied): \documentclass{article} \usepackage{tikz} \begin{document} \begin{tikzpicture} \draw ...
4
votes
1answer
56 views

Is it possible to change all beamer colors at once?

I'm working on a beamer theme. I know I can set colors for an element with \setbeamercolor{element name}{fg=colorname} Now there are a lot of possible elements, but I only need very few colors in ...
0
votes
2answers
51 views

Package xcolor Error: Undefined color `ForestGreen'

I am using the following packages in my files Latex sources: \usepackage{color} \usepackage[table,xcdraw]{xcolor} \usepackage[usenames, dvipsnames]{color} ...
2
votes
0answers
38 views

Wrong color figures in pdf output

I am composing a large number of pdf figures with includegraphics that contain pixel graphics with xelatex. The individual figures are themselves compiled with xelatex using includegraphics. As the ...
3
votes
1answer
40 views

`\color` inserts unwanted vertical space in `itemize`

I'm using beamer, and would like to color certain bullets on certain slides. Unfortunately, using the \color command seems to mess up the vertical spacing in lists. For example, here are two ...
0
votes
1answer
20 views

\leftbar color specification

I'm trying to use the \leftbar feature, but I would like the document to support two different bar colors. This issue gets the color set, but only a single global color. I would like some \leftbar ...
4
votes
0answers
88 views

Why cmyk colors are displayed wrong on screen? [closed]

If we compile this with pdftex and open in evince 3.18.2-1 (and other viewers), the color is violet, instead of blue: \pdfliteral{1 1 0 0 k} \vrule height 5cm width 5cm \bye Please somebody share ...
0
votes
1answer
50 views

How to make bullets in itemize larger and change their color?

I would like this bullet (\item) to be much larger than it is now and change its color. How can I do that? \begin{itemize} \item aa \end{itemize}
-5
votes
0answers
76 views

How can I plot this figure1 (alike that) and redudce the distance between figure1 and its caption?

How can I plot this figure1 (alike that) and reduce spacing between figure1 and its caption? And how can I write the caption of ...
5
votes
2answers
168 views

Shading with TikZ

A Latex newbie has trouble doing shading here. This is the code: \documentclass{article} \usepackage{tikz} \usetikzlibrary{backgrounds, matrix,fit,matrix,decorations.pathreplacing, calc, positioning} ...
1
vote
1answer
44 views

Color of vertical shadow in frametitle, beamer, warsaw

I know that's its a common topic, but still I don't get it to work. I want a different background color (due to corporate design) and shadows which fade to that new color. I have checked several ...
3
votes
1answer
52 views

How to display Git console logs(==colored text) beautifully in LaTeX?

I basically want a similar output in a direct LaTeX format, like the picture below. The Background color is not important, but e.g. the different colors of the commit hashs, the commit message and the ...
6
votes
1answer
155 views

Can Tikz implement multi stop gradient fills with adjustable positions?

I have a full page graphic (background) I am trying to duplicate using Tikz. The original was created in MS 2010 power point (all details and parameters are included below as is an initial MWE). I ...
2
votes
1answer
27 views

lstinputlisting not recognizing comment character

I have some code which I like to incorporate in to my latex document. I have set up the aesthetic so the code is easy to read as follows \lstdefinestyle{numbers}{numbers = left, stepnumber =1, ...
0
votes
0answers
13 views

Why does the image becomes grey in the output pdf when it is included in texstudio although the original image is colorful [duplicate]

When i insert any image in texstudio, it becomes grey in my thesis. I want the colorful image not grey. Can you help me guys? anyone??
3
votes
1answer
49 views

xcolor gives me 101 errors

I wanted to use the xcolor package to get the possibility of creating different shades of certain colors, in this case black!90. After including xcolor in my document I suddenly get 101 errors. I have ...
3
votes
3answers
46 views

Remove all pdf hyperlinks while maintaining hyperref formatting

I want to split a pdflatex pdf document into two parts. The second part has references to the first part, which are hyperlinks and which I want to remove, without changing the visual appearance. So I ...
4
votes
1answer
63 views

Beamer: Change Structure Color in tikzpicture

Why doesn't the following MWE change the color of the latter fill to red? How to fix? Background: I am changing the structure color for my example frames and want all the tikzpictures within to use ...
5
votes
3answers
177 views

Color coding a text string with alternating colors

I was wondering if it was possible to color every second letter in a text string in LaTeX. I'm writing a report on decrypting a Vigenere cipher, and have a text string that I would like to have every ...
1
vote
1answer
63 views

Coloring Example

Why the number in the example is not blue? \documentclass[11pt, a4paper]{article} \usepackage{xltxtra} \usepackage{xgreek} \usepackage{amsfonts} \usepackage{amsmath} \usepackage{amsthm} ...
2
votes
2answers
51 views

problem of colors with \AtBeginShipoutBox command

When I compile this code \documentclass{article} \usepackage{blindtext} \usepackage{color} \usepackage{picture} \usepackage{atbegshi} \AtBeginShipoutInit \AtBeginShipout{% ...
19
votes
5answers
995 views

How can I temporarily change text colour?

I'm making corrections to a report and the examiner would like my amendments highlighted in red. Of course, if(!) they are accepted, I would then have to produce an unmarked (black text) pdf. Rather ...
10
votes
1answer
119 views

Set different hyperref color inside frame of tcolorbox

I currently have the following MWE: \documentclass{article} \usepackage[usenames,dvipsnames]{xcolor} \usepackage[colorlinks=true]{hyperref} \hypersetup{allcolors=blue} \usepackage[most]{tcolorbox} ...
3
votes
3answers
147 views

Picking the fill color based on a value (some kind of heatmap)

I have a predefined set of coordinates, \where, and a corresponding value, \value. Each coordinate covers an rectangle. I like to choose the color of the fill=...option based on the value. The result ...
3
votes
1answer
53 views

tikz, pgfplots, different colors for negative/postive z-values in addplot3

I want to color all points with negative z-values in the plane below red and all with positive z-values cyan!80. I searched for an hour now, but have no clue how to do it. Any suggestions? ...
2
votes
2answers
44 views

problems with xcolor package [duplicate]

I am getting the following error with the example given at the end: Option clash for package xcolor. Example: \documentclass{beamer} \usetheme{Warsaw} ...
3
votes
1answer
93 views

Adding color to a table row as a beamer overlay

I'm trying to have an overlay that adds a background color to a row of a table in beamer. This post showed me how to do that for column. How about row? Adding color to a table column as a beamer ...
3
votes
2answers
84 views

colortbl bug? Disappearing “,” in colored row

I encounter a strange problem with colortbl. This is my LaTeX input: \documentclass{article} \usepackage{color, colortbl} \begin{document} %--- \definecolor{Gray}{gray}{0.8} \begin{tabular}{r@{, ...
5
votes
1answer
154 views

colour each x co-ordinate with a different colour in a bar plot in pgfplot

I want to cycle colours for each x co-ordinate in a bar plot. Is it possible? For instance, in this example I want each metric to appear in a different colour. This question Colors and legend in ...
1
vote
1answer
82 views

How do I change the link colour in the table of contents?

I am currently adapting my employer's PowerPoint slides to beamer. I am struggling with the font colour on the table of contents slide. Unfortunately, the colour does not show on the slide but ...
16
votes
2answers
508 views

Tikz: Draw a RGB cube

I am trying to draw a RGB cube using Tikz. Until now I managed to create this cube with color gradients: \documentclass{standalone} \usepackage{tikz} \usetikzlibrary{3d} \usetikzlibrary{shadings} ...
1
vote
2answers
48 views

Table: colored row not aligned with toprule

I am creating a table with colored rows. The problem is that the colored strip is not aligned with the top rule, as shown in figure. How can I solve it? Thank you. ...
2
votes
1answer
58 views

CMKY code for xcolor package?

I have three mdframed environments in my document. \begin{mdframed}[backgroundcolor=blue!20] \begin{mdframed}[backgroundcolor=purple!20] \begin{mdframed}[backgroundcolor=brown!20] Using the ...
2
votes
2answers
34 views

How to produce theorems in which the color of heading and body of the theorem my differ?

I have tried the following code, \documentclass{article} \usepackage{amsthm,amssymb,xcolor} \theoremstyle{plain} \newtheorem{thm}{Theorem} \begin{document} ...