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

learn more… | top users | synonyms (1)

4
votes
2answers
82 views

Cannot properly define an rgb color

I am trying to define an rgb color. More specifically I want to create this color which in rgb mode it's (98,190,177). I tried to define this color using the following code ...
2
votes
1answer
28 views

Changing the section and subsection font color in contents page in beamer

I want to change the section and subsection names in my contents page on beamer. Plz help me. Thanx in advance
1
vote
1answer
22 views

subcaption color with the subfigure package

To define the caption color in my document, I am using \usepackage{caption} \usepackage[font={small,color=ocre}]{caption} Which works perfectly, but currently facing the following two problems: ...
4
votes
1answer
43 views

Auto colour numbers in range

If I had some numbers in a tabular column, is there a way to automatically change the font colour of them if they are outside a range; eg red if under 10 and green if over 50? \documentclass{article} ...
1
vote
0answers
59 views

Switch to complementary colors [black <---> white]

I've decided to work the most I can in dark mode with the applications that I use. So I would like to commpile my LaTeX documents by echanging all the colors to their complementary ones : black --> ...
2
votes
1answer
69 views

How to change \headsepline color in KOMA-Scriptclasses

At the moment I am working on a rather big project in which I typeset a lecture note for a professor of mine. I want to use the headsepline the KOMA Script Class offers, but I want it to have the same ...
1
vote
0answers
28 views

how can I load a tableplot, put random colors, and the legends automaticaly using a foreach?

\begin{tikzpicture} \begin{axis}[scaled x ticks={real:1e3},xtick scale label code/.code={$\cdot 10^3$}, axis lines=left, %xticklabel={$\pgfmathprintnumber{\tick}\lambda$}, pone lambda al lado del tikz ...
4
votes
1answer
56 views

How to draw a scatter chart with multiple columns of metadata+labels?

I want to print a scatter chart and color the nodes according to a column in the data file. The problem is, point meta already is used for other data. This is the class of the point, either ONE or ...
7
votes
1answer
102 views

How to plot scatter points using pgfplots with color defined from table rgb values?

I am trying to plot a set of data points (scatter points not linked to each other), where each point has a different color. The color definition is given by predefined rgb values written in the same ...
3
votes
1answer
99 views

Text color with hyperref package

I wanted to use the hyperref package and I looked for help and I found a lot of solutions. However, I used this option that look great, as I could control the colors. ...
7
votes
1answer
87 views

How to specify a direct color in a tikz picture

I want to model gradients in TikZ for a paper covering color gradients. These are rather special, so a cannot rely on a TikZ shade alone. Thus, I want to model the gradient using consecutive TikZ ...
3
votes
1answer
52 views

How to change the color of Table of Contents from red to black?

Now the color of Table of Contents is red, i want it be black color. I use hyperref \usepackage[colorlinks=true]{hyperref} if I change it to \usepackage{hyperref} or ...
3
votes
2answers
123 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 ...
7
votes
0answers
39 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
51 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
49 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
45 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
31 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
72 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
58 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 ...
4
votes
1answer
68 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
232 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
60 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
31 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
88 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 ...
4
votes
2answers
77 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
114 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
65 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
25 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
53 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
36 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
45 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
26 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 ...
19
votes
4answers
883 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
36 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
13 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
103 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.
18
votes
2answers
425 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
45 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
83 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
124 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
94 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
99 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
44 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
23 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
93 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
36 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
366 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
85 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: ...