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

learn more… | top users | synonyms (1)

9
votes
2answers
463 views

Character with two colors

I realise that this is somewhat of a special question, but is it possible to have regular characters in formulas, where the left half is colored e.g. in red and the right half is colored in blue, ...
3
votes
0answers
33 views

ConTeXt: Use url parameter to hyperlink bibliography title references

Background A technical design document includes a number of citations. It would be convenient to include hyperlinks to the cited documents in the bibliography. The bibtex entries include articles, ...
5
votes
4answers
117 views

Inline boxes: alternative to pifont's non-filled-but-shadowed box?

I often need to draw inline boxes in specific rgb-colors. I really like how easy to use the pifont package is for this purpose. But just the filled boxes look as desired. The shadowish look of the ...
0
votes
0answers
14 views

Define color in margin notes [duplicate]

When I define colored margin notes, the place of the note disturbs. what should I do to make it correct? Please note that I want only some texts be colored, not all the text in the margin. % % ...
1
vote
0answers
26 views

keyval error for listings/color? [closed]

When I try to compile this in my code, the compiler tells me Package keyval Error: backgroudcolor undefined. I really don't understand why it is telling me that when I know the package is installed. I ...
4
votes
1answer
36 views

Center text in color box

I wanto to center a text in a colorbox which is scaled horicontal over the complete site. How is this possible? \documentclass[ ]{scrreprt} \usepackage[ ]{scrpage2} \usepackage[ngerman]{babel} ...
4
votes
1answer
86 views

How do I set only one side of a tikz node's border color?

I want to have a node with different border colors: One for the upper and left border, one for the lower and right color. The result should look like this: Is this possible? From all examples I ...
5
votes
1answer
73 views

Bold and color (*) asterisk before enumerate

Good morning. It's my problem, add the bold (*) asterisk before enumerate items and also colored. Here my code, \documentclass[a4paper,twoside,openright,11pt]{scrbook} ...
2
votes
1answer
43 views

Vertical color background of section title

Good night. It's my problem about gradient colored section title, with vertical length. It's codes are, \documentclass{scrbook} \usepackage[T1]{fontenc} \usepackage[utf8]{inputenc} ...
4
votes
2answers
59 views

How to change the colour back to the original following \color

I have this command set up: \newcommand\blue[1]{{\color{blue}#1}} In my document, I use \color{blue}. Then I'd like to change the colour back to the original. Is there a way I can do this without ...
1
vote
1answer
17 views

Put longtable caption in marginpar and keep compatibility with caption package

After some research I found a way to place the caption of a longtable (ltablex) into the left marginpar, aligned with the top of the table. Therefore, i adapted this solution stackexchange.com: ...
4
votes
2answers
92 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
43 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
27 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
48 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
60 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
83 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
30 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
60 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
128 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
107 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
94 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
53 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
128 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
44 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
59 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
54 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
49 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
40 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
75 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
69 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
72 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
235 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
63 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
33 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
106 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
80 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
121 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
72 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
28 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
57 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
42 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
50 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 ...
20
votes
4answers
942 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
42 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
14 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
115 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
445 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 ...