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

learn more… | top users | synonyms (1)

1
vote
1answer
22 views

color multirow in a table

I am trying to color a multirow in my table, but withou success until now: \documentclass{scrartcl} \usepackage[utf8]{inputenc} \usepackage{multirow} \usepackage{hhline} \usepackage{colortbl} ...
1
vote
0answers
23 views

Using `\hhline` coloring cells of a table

Sorry for this simple question. I am trying to color some cells of my table. Unfortunately, if I color two neighbouring cells, the lines of the table disappear. I have found some questions about this ...
6
votes
2answers
45 views

Seemingly trivial: verbatim, newenvironment, and colorbox

I am, once again, trying to achieve what seems like a trivial goal. I want to use \newenvironment to define a verbatim environment with a background color. I need to define my own environment because ...
5
votes
1answer
45 views

Adding Background color to Columns [duplicate]

I am using a two column article and I want to have a background color for only the columns instead of the entire page. How can I do that ? I am using the following template. I would also like to have ...
1
vote
0answers
17 views

Color for one entry of the bibliography

How to add color to one entry of the bibliography ? I'm using BibTex. In my .bib file the following doesn't produce red : {\color{red} @article{FFT, author = "FFT" } }
5
votes
1answer
35 views

pdftooltip color assign

How can we assign a color for the pdftooltip ? For example I want the text CD to be blue. How can I get the color of my choice in RGB? \documentclass{article} \usepackage{pdfcomment}% ...
5
votes
2answers
28 views

captionsetup url color select

I've changed my caption font color to gray as seen in the screenshot below. My problem is that references is black (which I've chosen in the hypersetup), how do I change this to be gray as the rest of ...
9
votes
1answer
85 views

pgfplots line colors

Is it possible to make pgfplots use a predefined color map while plotting multiple lines, I currently have 9 samples that I want to plot, but don't want to type different colors for each one. Right ...
1
vote
1answer
36 views

Error in compiling using color package

I am preparing my dissertation. I am using pdfLaTeX. Document compiles fine, until I try to use \usepackage[dvipsnames,usenames]{color} . Everything shuts down. I can access the ...
1
vote
1answer
89 views

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

I want to have a foll 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
45 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
61 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
77 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
81 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 ...
5
votes
1answer
92 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 ...
2
votes
1answer
50 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
54 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 ...
10
votes
2answers
120 views

is there any way to typeout to the console using ANSI colors?

i'm trying to colorize diagnostic outputs here to make my stuff more visible in the endless stream of characters that LaTeX spits out. however, all of my efforts like, for example ...
5
votes
1answer
169 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
43 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 ...
1
vote
0answers
32 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
61 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 ...
1
vote
0answers
38 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
59 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} ...
20
votes
3answers
788 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
81 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: ...
7
votes
1answer
80 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
196 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
37 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
126 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
67 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
1answer
45 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
26 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
44 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
51 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
0answers
92 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 ...
8
votes
3answers
254 views

Filling in the area under a normal distribution curve

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, ...
4
votes
1answer
123 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
93 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 ...
6
votes
1answer
87 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 ...
0
votes
0answers
58 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
71 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
142 views

Different color

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
129 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
58 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
45 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
98 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
156 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
236 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
57 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 ...