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

learn more… | top users | synonyms (1)

0
votes
1answer
73 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
2answers
271 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
157 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
88 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 ...
7
votes
1answer
289 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
69 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
51 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
85 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
110 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
210 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
69 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} \usepackage{...
2
votes
2answers
80 views

problem of colors with \AtBeginShipoutBox command

When I compile this code \documentclass{article} \usepackage{blindtext} \usepackage{color} \usepackage{picture} \usepackage{atbegshi} \AtBeginShipoutInit \AtBeginShipout{% \AtBeginShipoutUpperLeft{...
19
votes
5answers
1k 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
141 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} \...
4
votes
3answers
310 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
111 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
122 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} \usepackage{amsmath,amsfonts,amssymb,pxfonts,...
3
votes
1answer
176 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
94 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@{, ...
6
votes
1answer
334 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
90 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 ...
17
votes
2answers
632 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
61 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. \documentclass[11pt,a4paper]{...
2
votes
1answer
77 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
139 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} \begin{color}{blue}{\begin{thm}\begin{color}...
5
votes
1answer
219 views

How to achieve equal colors for a marker's filling and edge?

Consider the following example from the pgfplots manual p. 164: \documentclass{article} \usepackage{pgfplots} \begin{document} \begin{tikzpicture} \begin{axis}[tiny] \addplot+[...
2
votes
1answer
62 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 ...
2
votes
0answers
28 views

Using Listings Package: the Colour of the Text After the Listing is the same as that of the Identifiers Inside the Listing

So I have some LaTeX which looks like \usepackage{graphicx,bm,times, hyperref, amsmath, listings, xcolor, enumitem} \lstset{language = C++} \lstdefinestyle{customcpp}{ backgroundcolor=\color[rgb]{...
10
votes
2answers
386 views

Watercolor like shadow in TikZ

How to create watercolor-like "shadow" to highlight some node on figure, like in image below? Note that I don't need for coloring to fill a shape, nor do I need for it to have variable intensity, nor ...
0
votes
1answer
50 views

Problem with lstlisting. Add color

if I do this: \lstdefinelanguage{VHDL}{ morekeywords={ library,use,all,entity,IN,is,port,in,out,end,architecture,of, begin,and,END,THEN,ELSEIF,WHEN,IF,ELSE,EVENT,IS }, ...
0
votes
1answer
106 views

Nice tables in beamer presentation

I liked the approach shown here. beautiful tables in latex. But when I use it in beamer class, tabularx conflicts with xcolor. What is the solution?
2
votes
1answer
60 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 ...
5
votes
2answers
187 views

rectangular zones with heat map

I am trying to generate a sort of heat map. I have a set of zones (rectangles) and each of these zones has a given density. I want to color now these zones according to a predefined heatmap and maybe ...
2
votes
1answer
210 views

different colors in xlabel (tikz latex pgfplot)

I would like to change the color of a part of my x label in my pgf plot. \begin{figure}[h!] \begin{tikzpicture} \begin{axis}[xtick pos=left,legend pos=south east, xlabel style={yshift=-0.5cm}, xlabel ...
5
votes
1answer
199 views

Using different colors for different keywords in lstlisting

I've looked through a few answers on here, and either they don't work or don't fully answer my question. I have to format some C++ code and I want it to have these colors for these specific keywords (...
3
votes
1answer
91 views

Is it possible to change the box rule thickness of algorithm2e

Is it possible to customize the boxing rule width and color of an algorithm2e float? \documentclass{article} \usepackage{algorithm2e} \begin{document} % \RestyleAlgo{boxed} \RestyleAlgo{boxruled} \...
2
votes
1answer
126 views

!LaTeX Error: Undefined color 'orange'

I have a problem with the following code: \documentclass{article} \usepackage[utf8]{inputenc} \usepackage[czech]{babel} \usepackage{listings} \usepackage{color} \begin{document} \uv{Tento text je v ...
0
votes
1answer
40 views

Changing color on advanced bar chart (pgfplotstable)

I have made a stacked and clustered diagram, based on this brilliant answer: http://tex.stackexchange.com/a/55559/93892. However, I would like to change the colors of the bars. The most important ...
5
votes
1answer
79 views

make soul highlight span lines

The \hl command from the soul package highlights spans of text with a backround color when color is loaded. When used on longer spans of text, some inter-line spacing remains uncolored, which is ...
0
votes
0answers
28 views

Change the color of a PART text of name in \section (\subsection or etc.) [duplicate]

In the example, I used \subsection[sub-section {\color{green}1.1}]{sub-section {\color{green}1.1}} to change the color of a part of text 1.1 to green, which didn't work. I used \color for \...
2
votes
1answer
95 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 ...
3
votes
0answers
43 views

Color a subset of digits in SIUNITX

I am writing a presentation with Beamer, where I show the benchmarks of a program I wrote. This involve comparing a lot of number coming from different sources. These numbers can differ only in the ...
4
votes
1answer
57 views

Padding Issue when Coloring Cells of the Latex Table individually

I created the following latex table in booktabs style and colored each cell with a different colour. But in the end, I saw some padding which is not coloured because of the different size of the cell'...
3
votes
2answers
283 views

Changing color in mathmode in LyX

I know there are \color and \textcolor commands for changing colors in mathmode. However, these commands have two arguments, so when I enter them in LyX, the first argument "swallows" the command and ...
0
votes
2answers
46 views

How do I reference a template colour in beamer?

Say I want to draw a beamercolorbox and have it be coloured with the colour used for block body alerted.bg. How can I do this? I read this question, but it turned out to be unhelpful. I need to ...
1
vote
1answer
103 views

Colored box just around the text

I want to have a rounded box with black border lines and a backgroundcolor, f.e. yellow just around the text, not around the whole line, so the sentence should just continue on the same line. I found ...
2
votes
1answer
90 views

Two-color background

I am creating a poster using Latex and would like to split the background into two parts. Then I was wondering how we can create a background that is two-colored. For example, upper part is red and ...
0
votes
0answers
18 views

Beamer - Change section in head/foot text color [duplicate]

I'm trying to change the font color of the section (shaded and not shaded) using Berlin theme. As far as I know to do so the code should be something like: \setbeamercolor{section in head/foot ...
2
votes
1answer
52 views

\lstinline: color of “#pragma”

I am trying to use \lstinline but it does not work as expected: \documentclass{scrreprt} \usepackage{color, listings} \lstset { language=C, keywordstyle=\color{blue}, } \lstset{language={[...