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

learn more… | top users | synonyms (1)

2
votes
1answer
31 views

Convert color wavelength to rgb (xcolor)

I have the following color: \definecolor{SEviolet}{wave}{377} Which is a violet with a wavelength of 377nm. How do I convert this value to rgb? The xcolor package goes over some conversions on ...
4
votes
1answer
158 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 ...
1
vote
1answer
28 views

Displaying authors in color bibtex

If I call a reference by \citet{xxx}, it appears in my document as Author [number], where the number appears in the color I defined in \hypersetup{citecolor=red} while Author and [] appear in black ...
1
vote
2answers
29 views

Equivalent color for \colorbox{gray} as for \cellcolor[gray]{0.8}

In my table I have used \cellcolor[gray]{0.8} and I would like to mark some words in my text with the same color. I have tried \colorbox{gray}, but the resulting box in the text is too dark. How can I ...
1
vote
1answer
51 views

Creating a Color Key?

How can I create a colour key in LaTeX to show what the colours of this table mean?
3
votes
2answers
81 views

Filling rectangle in TikZ with more than one color

To draw a rectangle and fill it in gray in TikZ: \draw [fill=gray,very thick] (0,0) rectangle (2,1); Now, I want to fill it in both gray and yellow. The best way would be if I can make diagonal ...
1
vote
1answer
20 views

Using tabularx and xcolor

Is tabularx compatible with xcolor? I did the following: \documentclass{memoir} \usepackage[svgnames,hyperref,]{xcolor} % colors for hyperref \begin{document} \begin{tabularx}{1.00\linewidth}{X} ...
3
votes
1answer
147 views

How to add a side-bar non-intrusively over more than one paragraph?

If I insert a couple of new paragraphs in my long text I want to mark the new section somehow so that others can see I edited this part and it is not yet corrected. I also want to be able to remove ...
2
votes
1answer
33 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
29 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
51 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
47 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
20 views

Color for one entry of the bibliography [on hold]

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" } }
12
votes
1answer
787 views

pdftooltip from pdfcomment package: Using LaTeX code in tooltip

I work as a Physics teacher and I am writing a "Problem-Solution-Book" with hyperlinks from problems to solutions and backreferencing -- all of it works pretty good. Now I wanted to introduce ...
2
votes
3answers
563 views

How to change the color of symbols (mobile, email, homepage, etc) in moderncv?

I'm able to style the contents (color, font size), but I can't change the color of the symbol. Here's the code I'm working with: \documentclass[10pt,a4paper]{moderncv} ...
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}% ...
11
votes
4answers
447 views

Colored box around sentences

I want to have a colored box around the text/sentences and its width will be fixed to be 80% of the page width. I tried \fcolorbox but it can't break lines. It is possible to do it with TikZ or is ...
5
votes
1answer
61 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} ...
5
votes
2answers
29 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
87 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
38 views

Error in compiling using color package [on hold]

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
93 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,} ...
27
votes
4answers
1k views

Coloring combining characters without changing color of a base character

Problem I am trying to find out is there a good way to paint combining characters without changing the color of the base character they are combined with. My actual problem case is to make some ...
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
64 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 ...
205
votes
7answers
47k views

Remove ugly borders around clickable cross-references and hyperlinks

I know that I can use hyperref to make cross-references and hyperlinks clickable. That makes the clickable areas outlined in fluorescent green, however. How can I make the green boxes go away?
0
votes
1answer
97 views

Example end mark fill

does anyone know how I could add fill to this end mark? It's currently a white box with a green border. I've bolded the part of the code where the problem is. \input{setup} \begin{document} ...
7
votes
2answers
82 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 ...
12
votes
1answer
277 views

Color gradient filling along a path

I want to make the gradient color to follow the pipe curve below rather than to span from the left to the right. The following MWE shows the default behavior which is not what I'm looking for. ...
1
vote
0answers
33 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) ...
5
votes
1answer
93 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 ...
6
votes
1answer
82 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 ...
2
votes
1answer
52 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
58 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
121 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
171 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 ...
13
votes
1answer
1k views

Listings package: How can I format all numbers?

I want to highlight all the numbers appearing in an input code of a certain program by, for example, coloring them. By numbers I mean integer, rational and floating point numbers. I am trying with the ...
2
votes
1answer
380 views

Background color of breakable box with thin blank lines

The purpose of the mybox environment in the following document is to typeset a box in a blue background. The box may be split by page breaks. The algorithm used is similar to the one found in 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 ...
0
votes
1answer
82 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: ...
3
votes
1answer
64 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 ...
20
votes
3answers
791 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 ...
4
votes
1answer
196 views

Use different color for moderncv subsections

I have made color style like below for moderncv. The color1 is used for all sections and subsections I want to use the newly added color3 for subsections instead of color1. How could I do it? ...
7
votes
3answers
285 views

In xcolor, what is an easy way to experiment with color choices?

I want to check color choices in xcolor, for example for row coloring of a table. Is there a site for code ⇒ color; as in you play with the code and see what color you get color ⇒ code; you choose a ...
7
votes
1answer
85 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).
3
votes
2answers
133 views

pgf/tikz: Making the filling / gap between double border lines transparent

I have a rectangular box with double border lines. The pgf manual (chapter 15.3.5 Graphic Parameters: Double Lines and Bordered Lines) says that the default filling is white. I want the gap to be ...
7
votes
1answer
127 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$}, ...
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 ...