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

learn more… | top users | synonyms (1)

3
votes
1answer
232 views

TikZ: transparency causes problems with the color black (opacity, transparency, color model, Adobe Reader)

I want to have a fill color with transparency but I also want the text to be perfectly opaque. But somehow it does not work. \documentclass{article} \usepackage{tikz} \usetikzlibrary{shapes,} ...
2
votes
2answers
79 views

XeTeX \color runaway argument

\documentclass[11pt,a4paper] {article} %\usepackage{fontspec} \usepackage{listings} \usepackage{xcolor} %\setmainfont[BoldFont=黑体]{宋体} %\XeTeXlinebreaklocale "zh" %\XeTeXlinebreakskip = 0pt plus 1pt ...
2
votes
1answer
91 views

Scaling color in PStricks?

Is there a way to scale/remap/transform the colors in a pstricks picture? More detailed: I have some pstricks code which uses grayscale colors. I want to remap the colors from [0,1] to [a,b], where 0 ...
7
votes
2answers
167 views

Highlighting text through stacked colored underlines

I have sentences in which characters have been "marked" by some people and not by others. I'd like to present the markings simultaneously. Stacked colored underlining (in which a line represents each ...
6
votes
1answer
127 views

Set the font color of a section title formatted with leftmargin

I am trying to set the font color of a section title that is formatted with leftmargin. When I don't use the leftmargin format, the font color changes correctly, but once I add the leftmargin format ...
7
votes
1answer
152 views

Problem with spacing after \[…\] environment when using the \textcolor{} command

I'm getting odd spacing/indentation behavior when the \textcolor command is combined with the \[ ... \] environment. I did find a fix by putting % in a couple places, as outlined below, but I'd like ...
3
votes
1answer
126 views

Displaying the horizontal and vertical lines of a table after coloring rows

How can I re-show each line in the following table after coloring the row? \documentclass[english,a4paper,12pt]{report} \usepackage[T1]{fontenc} \usepackage{graphicx} \usepackage[latin9]{inputenc} ...
6
votes
1answer
164 views

Automatically convert colored PGFPlots in the appendix to grayscale

My document contains a lot of colored PGFPlots, which are generated from external data files. In order to save costs when printing, I would like to automatically convert the color of every PGFPlot in ...
12
votes
2answers
163 views

Is there a way to typeout to the console using ANSI colors?

I'm trying to colorize diagnostic outputs to the console in order to make my stuff more visible in the endless stream of messages that LaTeX spits out. Example However, all of my efforts like, for ...
5
votes
1answer
265 views

How to achieve this Beamer style?

I think the attached slide used the following beamer settings: \usetheme[]{Frankfurt} % or berlin \usecolortheme{beaver} % red color However, I have several questions: How to customize the ...
0
votes
0answers
131 views

Change the color of the “remark” environment in Beamer

I would like to change the color (bg and fg) of the remark environment in a Beamer document. I have setup my document using: \usetheme{AnnArbor} \usecolortheme{crane} I read in some other question ...
2
votes
1answer
106 views

Beamer with XeLaTeX on TexLive2013: enumerate numbers in black

Using TeX Live 2013, with this combination: Beamer (version 3.26) Copenhagen theme. Compiled with XeLaTeX. Using enumerate environment. I get the numbers (usally as white font inside blue circle) ...
3
votes
1answer
468 views

Color highlighting text and environments in LyX

I am using LyX 2.0.5 with document class article and 'Theorems (AMS)' in the modules. I am wondering if it is possible to make it so that the titles of different environments will be highlighted in ...
2
votes
0answers
54 views

change math color except in titles in beamer

I have used \setbeamercolor{math text}{fg=blue} to turn all my text in mathmode in blue. However I have also math in titles (and subtitles) and I would prefer the formulas to have the same color as ...
5
votes
1answer
104 views

Overlapping colour filling with PSTricks

Consider the following diagram: \documentclass{article} \usepackage[T1]{fontenc} \usepackage[margin = 2cm]{geometry} \usepackage{pstricks} \usepackage{rotating} \usepackage{microtype} ...
21
votes
3answers
855 views

Umlaut dots in a different color

Is there an easy way to do the dots of an o-umlaut in a different color than the o? I've already tried using the textcolor function in the color package, but I suspect that's the wrong way to go. I ...
0
votes
1answer
104 views

color of index in thesis is red

I really don't know why my index is red. I don't use color in any part of the code. Someone can help me?I have to finish it by tomorrow!!Thank you very much The code is: ...
8
votes
1answer
224 views

Why do colours defined using CMYK give inconsistent results in TikZ mindmaps?

Background I was trying to draw a mindmap using the tikz mindmap library for possible use in a beamer presentation. The Problem Depending on my choice of colours, the colour of nodes does not ...
10
votes
2answers
309 views

make enumerated button in TikZ

Is it possible to make an enumerated button, similar to the ones shown in the figure below? I will be using them as pictures in an external document (not TeX).
0
votes
0answers
38 views

How to get beamercolor for block? [duplicate]

Suppose I have a block like this: \begin{block}{My awesome block} It really is awesome! It has a header and a body, both areas filled with fancy colors! \end{block} I want to use the background ...
7
votes
1answer
251 views

Color and legend for 3d surface

I'm trying to plot a 3d surface using pgfplots and this is what I have done so far: \usepgfplotslibrary{patchplots} \begin{tikzpicture} \begin{axis}[% width=12cm,height=12cm, xlabel={$J_1$}, ...
3
votes
1answer
102 views

How to make background in tabular cell (vertical lines)?

is there any way to make the following two horizontal lines on the background of a cell? Cell should contain either a blue or green horizontal line in the middle. Or the third option is both. Here ...
3
votes
2answers
134 views

How to explicitly set the color to transparent/nothing in the options of mdframed?

Is it possible to explicitly set the backgroundcolor option in mdframed package, so that the background stays transparent (or, let's say "empty")? It could be \begin{mdframed}[backgrouncolor = ***] ...
1
vote
1answer
44 views

Set colour of equations when using preview package

I use the preview package to export a pdf containing only my equations by putting the following in the preamble \usepackage[active,tightpage,displaymath,textmath]{preview} ...
4
votes
2answers
100 views

How to get a cell colored in \bordermatrix?

I tried to use \cellcolor as suggested in color only a cell of a table but it didn't work. Can it be done? That's my code: \documentclass{beamer} \usepackage{colortbl,xcolor} ...
2
votes
1answer
118 views

Coloring text between pauses in beamer

I use a lot of pauses. I would like to set something globally so that the most recent slide highlights (by bolding, making red, etc) the text that just appears. These lectures have many slides to them ...
4
votes
1answer
194 views

grouped bar colors in pgfplots

I have a simple grouped bar chart but would like to have all group bars the same color. Currently each bar in a group is colored, possibly because of the way I have used addplot. I've tried to use a ...
10
votes
3answers
482 views

Filling in the area under a normal distribution curve [duplicate]

I'm trying to fill the area between the two $z$-scores but I'm not having any luck. Could someone please help me with this? \begin{tikzpicture} \begin{axis}[ no markers, domain=0:6, ...
5
votes
1answer
208 views

How to differentiate many lines in a chart? [duplicate]

I create a chart with many (actually 10) lines in different colors (see example). I want to make it as easy as possible to differentiate the different lines. Some possibilities I have in mind: ...
1
vote
1answer
930 views

! Package xcolor Error: Undefined color model `blue'

I'm having this error message: ! Package xcolor Error: Undefined color model `blue'. No threads on tex.stackexchange were able to be helpul to me. I use a modified version of sharelatex.sty ...
7
votes
1answer
139 views

Is there any way to add a background color to the header part of a file that use moderncv?

I was wondering if there are any way to set the background color of the header part (the one that contains personal info) of a file that uses moderncv in order to visually differentiate the header and ...
1
vote
0answers
69 views

How to prevent the borders of colored cell from disappear [duplicate]

the borders of the colored cells disappear in low size and appear when zooming in. Here is my code \documentclass[12pt, fleqn]{article} \usepackage[portuges]{babel} \usepackage[utf8]{inputenc} ...
1
vote
1answer
131 views

change the color of the frame

I was making slides using WinEdt. I took codes from someone. I want to change the color of the frames appearing in the slides. I tried using different themes but no success. Can anybody help me. ...
6
votes
0answers
185 views

Different color [closed]

I use the following code to generate a plot \documentclass{article} \usepackage{xcolor} % colorize your documents \usepackage{graphicx} % and use graphics \usepackage{tikz,pgfplots} % ...
6
votes
2answers
230 views

Color-coded chapter tabs to match flower colors in a field guide

I am working on a booklet for my wife who is a grade school teacher. The booklet is field guide about the plants in the fairly large playground area at Gemini Elementary. Tufte-Latex is my "go-to" ...
3
votes
1answer
115 views

In chemfig, grouping with \color ineffective, unlike \textcolor

Some strange behaviour which contradicts the documentation was encountered when creating a figure of 5-cafeoylquinic acid with chemfig. It is stated in the manual that The atoms are displayed in ...
4
votes
1answer
63 views

How can an arrow cross under an entry in xymatrix?

I know how can an arrow cross under another arrow in xymatrix (i.e. using |\hole). But how can it cross under an entry (e.g. wide textual entry). One solution would be to fill the box under the entry ...
1
vote
1answer
169 views

How to use grey text so that it prints nicely on a B&W laserprinter?

In my latex document, I have a chart (created through matplotlib, and saved as .pdf file), where I put some text in grey. This is fine when looking at the paper PDF onscreen (its a vector image, so ...
7
votes
2answers
185 views

How do I color one line of a display equation?

I want to color only one line of this display equation: \begin{align*} i_{fb} &= - \frac{v_o}{Z_F} \\ F(s) = \frac{i_{fb}}{v_o} &= - \frac{1}{Z_F} \\ \color{red} F(s) &= - \frac{1 + ...
16
votes
1answer
389 views

Color Blind Friendly Mesh Colormap

I have a plot with a mesh and it uses a lovely colormap, however, I can't find a way to make tikzpicture only use colorblind friendly colors. I'm not colorblind, but I know at least some of the people ...
2
votes
2answers
103 views

\cline is in tables too thin (when using coloured cells)

I'm having an issue where \cline appears to be drawn under the fill for table colours. With \hline With \cline (to remove the line above the cell I want blank) The line is still there, only ...
9
votes
2answers
329 views

3D font in LaTeX

This is an unusual question regarding rendering of a font with a specific 3D-esque style in LaTeX, XeLaTex, or any other TeX flavor. I was looking at some fonts the other day and I came across one of ...
9
votes
3answers
160 views

How to make or add options for packages or functions

I'm using at this moment the Piano Package. This Package is a little limited so I want to change a few things. The standard color of the dots is orange. I want to change this in different situations. ...
4
votes
0answers
82 views

Is there a package for automating equation colorization?

I'd like to have the equation colorization process be somewhat semantic, i.e., I can still type equations or math the ordinary way, except they occur in an environment in which the colorization ...
4
votes
1answer
301 views

Can the listings package be set up to highlight Prolog code like minted does?

I am interested to know how listings can be customized to mimic the Pygments's Prolog lexer (i.e. make Prolog code represented by listings look the same as it is done with minted) I previously asked ...
2
votes
1answer
201 views

Change text color when inserting a pdf_tex image

I am inserting an image from Inkscape using the pdf + LaTeX option since I want the text to appear in the same font and size as in the rest of my document. Can I change the color of the text? ...
4
votes
1answer
156 views

longtable vertical column separators

I have a quite complex longtable design and I would like to add white column separators. I can add black separators using | but the placement of the lines does not seem ideal either. ...
5
votes
1answer
135 views

Fit coloured longtable to pagewidth

There is a similar question and solution posted here. However, I can't use this solution as I have a coloured table, and the given solution causes white gaps between each column. Is there a way to ...
6
votes
2answers
198 views

How can you highlight a C compiler directive spanning multiple lines?

In my \lstset{...} I have morecomment=[l][{\color[rgb]{0.1, 0.2, 0.8}}]{\#}, which I've seen used to give preprocessor commands colour. This works just fine but I'd like to get multi-line macros to be ...
3
votes
2answers
168 views

Coloring only the text area

I use the geometry package to define paper size and text area of a (one page) document: \usepackage[ paperwidth=420mm, paperheight=297mm, text={365mm,270mm}, centering ]{geometry} I wish to ...