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

learn more… | top users | synonyms (1)

4
votes
1answer
71 views

algorithm2e and color

I am trying to color the background of the caption in algorithm (using algorithm2e). I have modified the original command as follow directly in the .sty file. However, as you can see on the image, ...
2
votes
1answer
52 views

Changing border colors of all tables in a document

I have a document full of tables (think 8-10 tables) - already written. Some are tabulars, others are longtables. I do not want to substantially change the existing code. What is the fastest way (in ...
2
votes
1answer
63 views

Beamer: same colour in the upper part

this code will create two kinds of colours in the upper part of each frame. How can I have only one colour, namely the deep blue? The code: \documentclass[xcolor=dvipsnames,11pt,mathserif]{beamer} ...
3
votes
1answer
104 views

background color of colorbox doesnt fill enclosing framebox entirely?

I am using a colorbox (that contains a parbox) inside a framebox. Inside the parbox there is an itemize environment I need some paddding around the text so I put fboxsep for the colorbox to 6pt ...
5
votes
2answers
138 views

Are there an easy way to coloring tables depending on the value in each cell?

I viewed in this post Conditional format for correlation table a solution to my question, but... Are there any easier way (or alternative) to do this using colors? Thank you. ------------------ ...
3
votes
1answer
158 views

Can we color and rotate a cube?

I want to present a cube to illustrate, and I want to color four of its sides. The colors will be blue, red, green and yellow; the two remaining sides should be clear or white or, perhaps, black. In ...
3
votes
1answer
130 views

How to customize beamer's color

I'm trying to replicate the following colour scheme in beamer, but am having difficulty in doing so: \documentclass[xcolor={dvipsnames}]{beamer} \usetheme{CambridgeUS} ...
9
votes
2answers
326 views

Colorful Logic Gates using Circuitikz

I have to draw following circuit the LaTeX source of which is \documentclass{beamer} \usepackage{circuitikz} \begin{document} \begin{frame} \begin{figure} \centering \begin{circuitikz} \draw (0,0) ...
0
votes
0answers
61 views

Rounded corner box with shading (one side round corner box)

Is possible to get the one side round corner with shaded box through PSTricks? I am using the command \psframe[linewidth=0.5pt,framearc=6,fillstyle=solid, fillcolor=gray!30,linecolor=gray!30] and I ...
12
votes
5answers
330 views

LaTeX Tables: Cell value color based on its sign / conditional cell color

I've a long LaTeX document with many tables. Now I want to show negative values in cell in red color. I wonder how to do globally. My MWE is below: \documentclass{article} \begin{document} ...
0
votes
1answer
97 views

Undefined color in LaTeX code

I have a problem in configuration color for the TeXstudio editor, mine is (LeLaTeX) since I used .eps figure. Always gives me an error (undefined color), this problem recently appeared when the new ...
4
votes
1answer
55 views

Axis part coloring

I try/want to color the x-axes in a special way. I want to get the bottom x-axis red, but not the whole line. Only the 3 parts under the graph have to be colored. I tried it with options separate ...
2
votes
1answer
39 views

Change how hyperlinks are displayed

By using \usepackage{varioref} \usepackage{hyperref} \usepackage{cleveref} one automatically gets hyperlinks in a red box or a green box . Is it possible to change this? For example instead of ...
7
votes
4answers
196 views

Set size of \colorbox for a single character

my question is simple (or not) I want to set the size of the \colorbox command or \fcolorbox command for a single character. The problem is the next: As seen in the image, the height and width are ...
1
vote
1answer
145 views

Biblatex square brackets color

How can I change the square brackets color of references in text using biblatex (numeric style)? I know it can be done with natbib, but not using this package anymore. ...
0
votes
0answers
42 views

psfrag labeling gets url and color?

I am using psfrag command to replace labels in eps with text inside latex. The labels are generated correctly but the images behave like hyperlinked and as result the labels are produced in the color ...
21
votes
2answers
625 views

Change the color of capital letters

Is there a way to define a command that changes the colour of any capital letter in an input string? Most of the results I find when I type "LaTeX string capital" are results about capitalizing the ...
2
votes
1answer
119 views

Make a text box with color?

I'm new user in LaTeX, and I would like to know which is the better code to do a colored squared round box with text in a page? I would like to show important notes for example. Best Regards.
3
votes
1answer
84 views

Switch firstname and familyname colors in moderncv

In the moderncv casual theme, in the header, the family name has a darker color than the first name. How can I make it the other way around, and more generally, set each name to a color of my ...
1
vote
0answers
67 views

Colored Text in PostScript Files [closed]

I am using \textcolor command in the body of my TeX file. I need to generate Postscript file. When I go through the "Option Menu\Configure TeXStudio\Build\PDF chain", every thing is fine and I can ...
6
votes
1answer
125 views

Newsletter Formatting

First post here but I'm trying to create a newsletter. However, I'm having some difficulties. I want it to look similar to this example: http://www.calvin.edu/admin/hr/newsletter/MAY%202012%20(e).pdf ...
3
votes
1answer
134 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 ...
2
votes
1answer
45 views

How can change the color of the table of contents

What is the best way to change the color of the entire table of contents. I saw a lot of tutorials but it's complicated for me (I am a beginner).
1
vote
2answers
66 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
65 views

Creating a Color Key?

How can I create a colour key in LaTeX to show what the colours of this table mean?
1
vote
1answer
30 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
3answers
191 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
0answers
78 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 ...
2
votes
1answer
70 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
78 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
107 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
136 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
118 views

Color for one entry of the bibliography [closed]

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
53 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
59 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 ...
10
votes
1answer
552 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
52 views

Error in compiling using color package [closed]

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 ...
3
votes
1answer
206 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
65 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
87 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
144 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
117 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
127 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
96 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
131 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
159 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
225 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
97 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
90 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
290 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 ...