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

learn more… | top users | synonyms (1)

3
votes
2answers
143 views

Is there any recolor feature for imported images in LaTeX?

Is there any feature in LaTeX to recolor a figure which is included in a LaTeX .tex file automatically like the feature which exists in programs like Word? It is a good feature, for instance the ...
8
votes
1answer
64 views

Adding color package destroys listing centering

I am using @egreg's answer to make listings centered: \documentclass[a4paper]{book} \usepackage[T1]{fontenc} \usepackage[ hang, small, it, hypcap=true ]{caption} \usepackage{fancyvrb} ...
3
votes
1answer
215 views

Setting background color of minipage without overflow

I would like to set a color to the leftmost minipage in the following code: \usepackage{xcolor} \fcolorbox{red}{gray}{ \begin{minipage}{0.33\textwidth} some text \end{minipage} } ...
2
votes
1answer
97 views

Fancy Table of Contents and Hyperref Set Up

I am using a code in tikz for a fancy table of contents and I want to apply certain settings on it using the hyperref package and the relevant command hyperrefsetup. I want to create the following ...
3
votes
1answer
71 views

Colored box for theorem with ntheorem

I would like to have every theorem with the same style to have the same colored box and to be able to configure the color. Like this : I tried to use the package ntheorem with the option framed and ...
0
votes
0answers
242 views

Texstudio and color scheme

I try to use texstudio for mac. How can i change the color scheme? I found this discussion Anyone willing to share his/her custom dark theme for TeXstudio?, but i do not know how use this color scheme ...
6
votes
2answers
99 views

Color depending on section number

I'm working on a document which is divided into chapters. Each chapter is divided into 4 sections. I would like to create a command that defines a color depending on the number of the section. I've ...
5
votes
1answer
139 views

Automatic cell colouring using cellcolor: Undefined Control Sequence

I am trying to produce a table, using tabularx, where the cells are coloured automatically depending upon their value. I want to use the \cellcolor command as it will fill the whole cell, rather than ...
5
votes
1answer
89 views

Broken layout of colored tables with new version of colortbl package

we're having trouble with the new version of the colortbl package which breaks our layout of colored tables. With the new version of the colortbl package (2012/02/13 v1.0a) the layout is utterly ...
9
votes
3answers
247 views

Is it possible to give colors to big (automatic) parenthesis in math mode?

In the following code I can't make the right parenthesis to have arbitrary colors. \documentclass{article} \usepackage{amsmath} \usepackage{xcolor} \begin{document} \begin{equation} ...
6
votes
1answer
69 views

How can I apply different styles to different classes of identifiers?

I am creating a custom style for the lstlisting package, with some custom colors for certain words. I am trying to define different "classes" of words, where each class has a certain property, like ...
4
votes
1answer
40 views

Color behind numbers in lstlisting

Currently, my listings use this style : \definecolor{lstgrey}{RGB}{217, 217, 217} \definecolor{lstback}{RGB}{246, 246, 246} \newlength{\numberlengthnormal} ...
4
votes
1answer
177 views

Add gradient to colorbox

Newby here. I found a great template for technical reports here . . http://www.latextemplates.com/template/stylish-article I would like to change the background color of the abstract and section ...
5
votes
2answers
106 views

Colorbox not working with longtable

I have some tables that I want to entirely color in light grey, but the same command lines that work for the tabular environment (see second table example) do not work for the longtable environment ...
3
votes
2answers
168 views

How to highlight a path in Tikz with two different colours?

I have a small graph drawn in Tikz with two paths through it highlighted in different colours. However, these paths are going to share an arrow. What I would like is to highlight this arrow with both ...
2
votes
1answer
102 views

pgfplot: how to render 3dplot with colors black, white and gray

I my previous question, I rendered a 3d plot, but as I want to print my plots they should be in black, white or gray coloring format. How should I change the coloring scheme? ...
2
votes
1answer
30 views

Problem with color in \part heading

Below is my code, where the myBox definition interferes with the color of the heading I define for my part style. Any ideas why the horizontal line in the \part heading becomes blue? I want it to be ...
2
votes
1answer
95 views

KOMA-Script: How to colour just the section numbers

I have added a splash of colour to my thesis and found it looked quite nice. The theme is: Chapter and Section headings are a dark blue, and the numbering is a brighter blue. I managed to do this for ...
1
vote
1answer
61 views

Change footer and header background color for style simple in powerdot

I am using the style simple for creating slides with powerdot: \documentclass[style=simple]{powerdot} \begin{document} \begin{slide}{First slide} Hello world! \end{slide} \end{document} While ...
2
votes
0answers
67 views

Problem with framelines in tables

I am having a problem with LaTeX at the moment, which I seem completely incapable of solving. I am trying to create a simple table which has 4 columns and (should have in the end) 36 rows, including a ...
0
votes
0answers
30 views

Ref using \hyperref[]{}, no color

I am using the hyperref package and are currently trying to reference using: \hyperref[label]{text and \ref{something}} The ref works fine, however, my other ref's (using eg. \ref{tab:no1}) are set ...
20
votes
4answers
1k views

How to shade text in different colors?

I need a single character in two colors. Figuring I could use the shadings library of TikZ, I followed the manual (section 23.4.1, the TikZ example): \documentclass{article} \usepackage{tikz} ...
0
votes
0answers
57 views

Filling a cell of the table with color and preserving the border

I used \cellcolor{} to fill the cell of my table. However, the black borders of the cell disappears. The tex viewer shows borders, but I don't see the borders when I open as a pdf. Can you help me ...
1
vote
0answers
17 views

libpng warnings about sRGB profiles - determine which files are meant and disable warning [duplicate]

After some LaTeX or system updates, I get these new warnings for something that was typeset perfectly before: libpng warning: iCCP: Not recognizing known sRGB profile that has been edited Since ...
3
votes
2answers
239 views

Colored horizontal line between two text

How I can get color horizontal line between two text ? I am using command \rule{16cm}{1mm}., Can any one suggest how to change the color of horizontal line.
19
votes
2answers
509 views

Colored margin with vertical text

What I'd like to reproduce on LaTeX can be seen on the picture below. I am writing my master thesis (book style) and I'd like to add a colored margin on every page (on the right for the right pages ...
0
votes
0answers
14 views

How to combine bigdelim and alternate row coloring inside a longtable in LyX? [duplicate]

It seems that it's quite a conflict to use some big (multirow) delimiter (bigdelim) and applying alternate row coloring inside a longtable at the same time (using LyX). The following example ...
3
votes
1answer
47 views

Change Character Color in listing

I want to change some special character's color in listing for example all Parenthesis be red. I don't want to make them keywords they should have different color. is it possible?
2
votes
2answers
126 views

Matlab2Tikz FaceColor Surfplot

I would like to export a surf plot, whose face color is for example green, out of MATLAB R2014a to latex with the aid of matlab2tikz. Unfortunately when i run pdflatex the face color now ranges from ...
5
votes
2answers
169 views

Barplot: alternating colors, bars side by side

I'd like to have a barplot with bars side-by-side and with alternating colors. It should look like the ouput of the code below, just with alternating bar colors. (Got the idea from here) ...
3
votes
2answers
112 views

\llap mystery with TeX--XeT

Consider \documentclass{article} \usepackage{xecolor} % loads fontspec by default \setmainfont{Times New Roman} \begin{document} \fontsize{60}{70}\selectfont TEST\llap{\textxecolor{red}{TEST}} ...
5
votes
2answers
126 views

Understanding what contour package does

In contour package, the macro \con@put is defined as: \newcommand*\con@put[3]{% \rlap{\hskip#1\raisebox{#2}[0pt]{#3}}% } But if one changes that \rlap to \llap, then you no longer get contour. ...
0
votes
1answer
64 views

Html color in mdframed

I want to make mdframed with linecolor set using HTML color model. How can i do it? I want something like \begin{mdframed}[linecolor=\color[HTML]{FF0013}] text \end{mdframed}
1
vote
1answer
34 views

Misaligned fancyhdr footer when using color [duplicate]

Strangely, using {\color{}} in \lfoot{} is causing my footer parts to misalign. This code \documentclass[11pt,a4paper]{article} \usepackage{fancyhdr} \usepackage[pdftex]{color,graphicx} ...
2
votes
1answer
170 views

How to fill logic gates in circuitikz?

How can you specify a fill color for logic gates in circuitikz? It does not work as I would have expected: \documentclass{standalone} \usepackage{circuitikz} \begin{document} \begin{circuitikz} ...
2
votes
1answer
69 views

color text in bibliography text

I am trying to make blue color text in some of the bibliography. I have tried with the following code. It does not work. Please help me. //myReference.bib file @article{nature, author = ...
14
votes
2answers
412 views

“Drill holes” using glyphs or TikZ's even odd rule for text

I know how to use TikZ even and odd rule, but what I need is to apply it on a node text. Compare I need the text to be punched out such that when I use the resulting pdf on top of a background, the ...
6
votes
1answer
338 views

! LaTeX Error: Undefined color `BLACK'

i have written all the text in black color, but i get this error several times in the same page: ! LaTeX Error: Undefined color `BLACK'. i tried to solve it by writting this: ...
2
votes
1answer
87 views

How to change colortheme?

I am using theme Warsaw but I do not like the colortheme crane, how can I change the colortheme to LightCyan as in the first answer of this question? How do I color table columns and rows? ...
3
votes
1answer
83 views

When I used color in a cell of a take, then this cell become wider

When I used color in a cell of a take, then this cell become wider. How to solve it? The code is here: \documentclass{beamer} \usepackage[utf8x]{inputenc} \usepackage{default} ...
3
votes
2answers
129 views

Drawing a Venn-Style-Diagramm underlying a Graph with TikZ

I want to draw a graph (the data structure) such that certain subgraphs form a sunflower (a notion from combinatorics). In other words I want to indicate that the sets overlap in the middle ...
4
votes
1answer
88 views

How to avoid rowcolour being applied to \caption in longtabu environment

I have used the following code to create table using tabu package, I have applied alternate row colours to the table using \rowcolors command. The issue is the colour fill is applied to the caption of ...
0
votes
1answer
78 views

Beamer: change default color of item's indicator in itemize

I'm using beamer with \usecolortheme{dolphin} and all the items' indicators in itemize (e.g., bullets, numbers, etc.) are blue (which is the main color of the dolphin theme). What's the command to ...
1
vote
0answers
51 views

Any tool to improve contrast of study materials?

I see many slides of my study materials which are done by WYSIWYG and colored with many colours to improve the contrast. To improve contrast with colors, I think is not necessarily the best way to go. ...
1
vote
1answer
80 views

Colouring cells of tables without xcolor

Are there any decent alternatives to xcolor if I want to colour cells in a table? I want to highlight certain cells depending on my data, but not entire rows or columns. I'm using Knitr and am having ...
2
votes
1answer
94 views

How do I color the page number in a partial TOC?

I am writing a thesis and have the first two pages of each chapter colored gray with white text, before starting with the sections on white pages. I now want a partial TOC in each chapter, on these ...
2
votes
2answers
61 views

Underbrace color change using \only<> and \textcolor{}{} slightly shifts the content

I am making a presentation using beamer and am trying to make underbrace{}{} appear using \textcolor{}{} and \only<>. I use the code \documentclass{beamer} \usepackage{bm} % Just some ...
6
votes
4answers
193 views

How to color only a “tilde” accent on a letter? [duplicate]

I would like to color only a "tilde" on my letters. I read how to do this with Umlauts or other accent, but for my expression it seems different I think. Here is my expression : \widetilde{E}^w So, ...
4
votes
2answers
116 views

Last xe(la)tex colors text in white in some circumstances

Last xe(la)tex: XeTeX, Version 3.14159265-2.6-0.99991 (preloaded format=xelatex 2014.6.19) (the one shipped with TeX Live 2014) colors text in white in some circumstances: in the following MWE file ...
10
votes
1answer
155 views

Use \cellcolor in \tabulary

The \cellcolor command from package colortbl doesn't seem to have any effect in a tabulary environment, though it works in tabular. Here is a minimal example: \documentclass[a4paper]{article} ...