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

learn more… | top users | synonyms (1)

3
votes
1answer
17 views

Change the color of the link which is generated by \htmladdnormallink

I try to write a book, and I'm beginner with some functions in LaTeX. I already have looked for this question even I looked in hyperref manual and I have not found anything about how to change the ...
4
votes
1answer
40 views

Can't get color or textcolor to work

I'm new to latex. I'm using a template on overleaf.com. I'm trying to change the color of some of the text, but it remains grey. Here's a simplified sample of the tex file: ...
0
votes
0answers
28 views

remove space between columns in longtabu with rowcolors

I use the ltxtable package to create long tables with variable width columns. Using this I want to completely remove the space between to table columns by doing this: \documentclass{scrbook} ...
-1
votes
0answers
83 views

Change color in Latex

How can I change the color of a sentence in latex ? I also want to write my university seat number and name at the bottom of my page. How do I do that? P.S. : Noob at Latex.
1
vote
2answers
37 views

How would I get custom-colored equation numbers as simply as possible?

In a continuation of efforts to create a complete SAE technical paper class file, I need a little help finding the easiest way to create colored equation numbers. In my class file, I already define ...
2
votes
2answers
41 views

Change the color of the chapter number (Oxford Thesis Template)

I'm writing my PhD thesis and I am using the Oxford Thesis Template. I would like to change the color of the chapter number (which is grey) in the beginning of this chapter. You can find the Oxford ...
0
votes
1answer
35 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
34 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) ...
15
votes
2answers
5k views

Use CSS-style color specifications in xcolor?

I have colors on my website #eff5f9 and #dfecf7. I would like to also use them in a latex document. Is there a way to use such hexadecimal specifications with xcolor? I've tried to read the xcolor ...
3
votes
3answers
152 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 ...
2
votes
1answer
55 views

Filling a color

I am having two problems with inserting an image into a mdframed environment. Both are documented in the attached picture. Firstly the lines of text preceding and immediately after the inserted ...
4
votes
2answers
35 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? ...
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. ...
1
vote
1answer
25 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
34 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 ...
2
votes
1answer
94 views

How to fill gantt chart bar with arbitrary color

In the code below I would just like to manually decide to fill the second bar in the chart with a color or hash it! I want to be able to decide which bars to make these changes on a case by case ...
8
votes
3answers
64 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
48 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
52 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
91 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
489 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
126 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
31 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
71 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
198 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} ...
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
57 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
39 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 ...
4
votes
0answers
89 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 ...
23
votes
3answers
8k views

\includegraphics PDF, color problem

I'm using pdflatex, and use \includegraphics to include content of figures from PDF. PDF are exported from InkScape. \begin{figure} [!h] \centering \includegraphics[height=3cm]{fig/SUSAN.pdf} ...
0
votes
1answer
21 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 ...
3
votes
1answer
94 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 ...
2
votes
1answer
59 views

is it possible to display color only in PDF viewer, not printed page?

The ocgcolorlinks option to hyperref will let you have colorful links on the screen that are black (or more generally, the textcolor) when printed. Is there a way to have coloured hyperref ...
0
votes
1answer
51 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}
0
votes
1answer
102 views

Annotate the table column highlighted by Tikzmark in Beamer

I would like to highlight columns in my table using Tikzmark in Beamer. Here bellow is an example which does the same thing but for the table rows. I would like to know if is it possible to do the ...
-5
votes
0answers
78 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 ...
1
vote
1answer
40 views

Using background color in AMSmath

I'm using \(\frac{\colorbox{yellow}{a-b}}{c-d}\) to highlight numerator only. But (as suggested in this post) how do we use \colorbox{<color>}{\(<math content>\)} format to achieve the ...
7
votes
1answer
2k views

Is there any AMS TeX or LaTeX macro for background color in math-mode

Is there any way to display math expressions with a background color (highlight) using AMS-Tex or AMS-LaTeX . For example, using AMS-TeX/LaTeX, we can display a math expression in font color using ...
5
votes
2answers
169 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} ...
7
votes
5answers
5k views

Giving headlines a background color spanning across the entire typearea

I posted this at stackoverflow and got redirected here. This does indeed look like a better place to ask. I would like to decorate my headlines (section, subsection, etc.) by adding a background ...
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 ...
7
votes
2answers
325 views

Color background for chapter titles which stretches horizontally to the margins

I'm working on my chapter titles. I like them to have a background which stretches to the edge of the page. The drawbacks of the minimal document below are: The TOC also has the background, too. ...
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
157 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 ...
4
votes
1answer
523 views

Why are my hyper references pink?

I have this in the heading of my document: \usepackage[unicode=true, colorlinks=true, linkcolor=blue]{hyperref} Yet the links look like this: Why the pink color ...
3
votes
2answers
103 views

PGFPlots: point meta colormap index as fill value

I have the following simple PGFPlots sample \documentclass{standalone} \usepackage{pgfplots} \pgfplotsset{compat=newest} \begin{document} \begin{tikzpicture} \begin{axis}[ xmin=0, xmax=1, ymin=0, ...