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

learn more… | top users | synonyms (1)

4
votes
1answer
740 views

really greyscale pdf

I may miss something: I cannot produce really greyscale or monochrome pdf. If I create a very simple document, say Hello, with no or basic packages, article or book, and compile it with pdflatex ...
3
votes
1answer
442 views

Overlaying parts of Beamer table with a “see-thru” (i.e., opaque) textbox

This seems like it should be simple! After creating a very complex table using multirow and many other table related beamer packages that I have just learned about, I now want to highlight parts of it ...
6
votes
2answers
327 views

Is it possible to change text color for all headings?

I want to change only the color (not font size, etc.) of all headings in my documents (\section, \subsection, \subsubsection, ...). I want to keep all other settings fixed. Is there a way to do ...
7
votes
2answers
6k views

How to highlight table rows by colors in Beamer

I would like to highlight rows in tables, in rowwise, that is I would like to highlight row 1 in red, then make row 1 in black but row 2 in red, etc. How can I manage to do so in Beamer?
4
votes
1answer
742 views

How to add color to source code under the listings environment

I would like to color a few keywords in my slides under the listings environment In the following contrived example, I would like to color the __shared__ word with orange and WIDTH with blue. How ...
1
vote
2answers
3k views

Light Gray color in beamer

I want to know how to define a light gray color with beamer. I am using this color to shade a small block of my text. Here is the code I am using for defining my colors. ...
0
votes
0answers
36 views

How can I use different font color for h1 h2 h3 in latex template [duplicate]

Possible Duplicate: Section and subsection colors using titlesec In latex template, what i need to do to display different font color for h1 h2 and h3 specificly?
7
votes
1answer
7k views

How do I add syntax coloring to my C++ source code in beamer

I have just learned how to insert source code into beamer with the listings package. However I dont know how to go about adding any syntax coloring on the C++ source code. How do I do that? Here ...
12
votes
2answers
592 views

How to create Multilevel Colored Boxes using tcolorbox/any other package?

tcolorbox Manual provides the following example: Can anybody please suggest me how to create exactly this type of box - The no. of rows to add must be flexible(It seems that tcolorbox has no option ...
2
votes
1answer
518 views

Background color in inline code listings with linebreak

I want to highlight code inline with a gray background. Preferably with listings. This question is related to Colored background in inline listings. But as my MWE shows it doesn't work with line ...
9
votes
1answer
1k views

Change colour of boxes surrounding links in hyperref

How can I achieve in the following MWE that the box surrounding the link gets coloured in blue? \documentclass{article} \usepackage{color} \usepackage[linkcolor=blue]{hyperref} \begin{document} ...
5
votes
1answer
720 views

Equations in fancy boxes

I've checked the post here, where the package empheq is used for embedding equations into coloured boxes. With that idea, I wrote in my file the following: % in the preambule \usepackage{empheq} ...
5
votes
2answers
719 views

Make tikzpicture white on black

I have a simple gantt chart made using tikzpicture. How can I invert the whole thing so it is white on black? If I change the node lines to node[anchor=north west, text=white, fill=black] then this ...
3
votes
1answer
428 views

Maroon faded effect

how can i made a faded version of this maroon? i want to get the same result of the classic thesis halfgray but in maroon version. i would to have a faded effect as if it is in transparency. Like this ...
4
votes
1answer
175 views

Color a block of texts inside tabbing

I am editing a frame of a presentation in beamer. This frame has 2 parts side by side. The left side is a program by tabbing containing 5 lines: \begin{frame} \frametitle{A motivating example} ...
5
votes
1answer
289 views

How to Create Colored Text Boxes with DIFFERENT colors using “\leftbar” command?

I am using the following code to generate a Colored Box in Latex: \renewenvironment{leftbar}[1][\hsize]% {% \def\FrameCommand% {% ...
4
votes
1answer
318 views

Offset color block behind section titles

Joseph Wright's CV source contains a snippet of code that produces an offset color block behind section titles using the titlesec package, like so: \documentclass[11pt]{article} ...
6
votes
1answer
527 views

How to make \rowfont (from tabu package) overlay specification-aware (in beamer package)?

I have tables in a beamer presentation, and I would like to highlight table rows sequentially (not necessarily in row order) using overlay specifications. So I would like to be able to write code ...
16
votes
2answers
991 views

How to get actual values of colour theme colours in beamer?

How would I go about finding the actual colour (like the RGB/HSV/etc) of a particular element in a given beamer colour theme (e.g., block title bg in orchid)? I would like to use these colours in ...
11
votes
3answers
3k views

How to construct a coloured box with rounded corners

Here is the specs of the box. Color of the bar rule should be: \definecolor{mycolor}{rgb}{0.122, 0.435, 0.698} Radius of the 4 corners of the box: 4pt Thick line = 0.5pt Text should be 6pt ...
5
votes
1answer
730 views

Colored line numbers with algorithmicx?

The fancyvrb allows me to customize line number style which I find very useful. I'm using it to give line numbers a different color and then use that same color in the text describing the code. I ...
9
votes
2answers
3k views

\hhline adds white line where no line is intended

In a table, containing colored cells, i want to have a \hline dividing only some cells, similar to \cline but compatible with coloring single cells with \cellcolor, which is possible by using \hhline ...
7
votes
2answers
4k views

\cellcolor overwrites table lines

I have a table which I want to fill with multiple colors, each cell possibly different from another. Which means, I can't make use of e.g. \columncolor (as in this post). While the table without any ...
1
vote
1answer
399 views

Using colorbox in a Listing/minipage with underscore “_”

I am having some issues with using \colorbox{}{} in combination with an underscore. The Listing will compile without issues and highlighting the text properly, but as soon as I have an underscore in ...
14
votes
1answer
3k views

Change color in finished pdf file

Suppose I have a finished PDF file, say a figure generated from some software, where the ink is black. I would include it in a document. Suppose I want to include it in a beamer presentation with ...
3
votes
2answers
240 views

color of unicode-math in xetex

My question is based on the example which may be found here in teh second answer. Actually, I discovered this feature of unicode-math some time ago, but suspected that I am doing something wrong. ...
12
votes
2answers
1k views

Coloring lines in an algorithm

I am using Beamer for creating a presentation and I am trying to highlight some lines in an algorithm. I am actually using algcompatible. I found a solution here and created a couple of new commands ...
2
votes
1answer
568 views

vertical space around horizontal rules between tabu rows while maintaining color

I would like to increase the vertical space before and after a horizontal rule in a tabu table but want the color that is in the cells below and above the rule to not be broken but continue right ...
6
votes
2answers
5k views

Error with xcolor package

I would like to write the chapters' titles in my LaTeX document in an other color, so I imported the following package: \usepackage[dvipsnames]{xcolor} But when I try this: ...
4
votes
1answer
5k views

How do I change the text color for a part of an equation after a pause in beamer?

I want this in the same frame, not a different frame. Here is an example of what I'd like: \documentclass[mathserif]{beamer} \usetheme{Copenhagen} \usepackage{color,xcolor,ucs} ...
4
votes
1answer
731 views

Specification of Warsaw Color Theme

Does anyone know the specification (RGB) of the Warsaw blue color? I want to make a custom block and want it to match the blue Warsaw color.
6
votes
1answer
305 views

Displaying & highlighting glossary entries that are not defined yet?

In my document I use the glossariespackage. When referencing terms, that do not exist in the glossary (yet) the term is simply not displayed. Which IMHO forces a quite complex workflow. Is there ...
2
votes
1answer
736 views

vertical align and color in table with multirow

I have the following table: \documentclass[a4paper]{report} \usepackage{booktabs} \usepackage{multirow} \usepackage[table]{xcolor} \begin{document} \begin{table}[htbp] \centering ...
10
votes
2answers
2k views

Color entire table

How do I get an entire table to get a background color. I dont mean the indivual cells but the entire table to get a gray shade. Something like this:
3
votes
1answer
296 views

Monochrome in Tikz [duplicate]

Possible Duplicate: how to create PDF in grayscale mode or TikZ figure only? How to convert tikz figure in monochrome? Example: \documentclass{article} \usepackage{tikz} \begin{document} ...
7
votes
2answers
3k views

Colored frame for the framed environment

I'm using the framed environement to put a text in a framed box. I'm using it because I like its formating more than fbox. Now I would like to color the frame's border and I didn't find anything on ...
3
votes
2answers
1k views

Stretching colorbox to the end of line

I was just making my resume and I wanted to highlight the different sections. I used the color package. This is the code: \usepackage{color} \usepackage[usenames,dvipsnames,svgnames,table]{xcolor} ...
2
votes
2answers
3k views

Error:Option Clash for package color

I am new to LaTeX.I was trying to make my first presentation using beamer.I downloaded the required packages ,but I was getting this error !Latex Error:Option clash for package color. Here is the ...
3
votes
1answer
229 views

Problem coloring an entire table due to \raisebox

I'm trying to make an ENTIRE table gray (see picture but I can't get it to work with \raisebox. Here's my code: \documentclass[a4paper,11pt]{article} \usepackage{color,amsmath,amsfonts,amssymb} ...
5
votes
3answers
1k views

Change color and background behind text of all 'description' environments

I'm new with LaTeX and like to change some parameters of the description environment throughout the document. As minimum, I like to have two arguments: color of text of item and background-color ...
0
votes
0answers
42 views

change style of all same objects in LaTeX [duplicate]

Possible Duplicate: Change color and background behind text of all 'description' environments How I can change style of all same objects in document? For example, \description {} ...
0
votes
1answer
376 views

Poor opentype font quality when printing xelatex generated PDF

I've been trying to print a PDF created with Xelatex, and the text (using opentype) is not as crystal clear as the same text printed directly from word (the edges are jagged/grainy). Any suggestions? ...
8
votes
2answers
1k views

How to set the color of page number

I am using white colored font on black page and somehow I am losing my page numbers. I suppose the page number is still in black color. So How do we set the color of page number? And while on the ...
8
votes
2answers
213 views

How to color delimiters

I have some special delimiters that I want to add to a glossary, those get hyperlinks and colors etc. However when i want to use those delimiters, using \left, \right and \middle becomes impossible. I ...
4
votes
1answer
1k views

Acrobat Reader changes my theme's color

I have a problem visualizing my Beamer presentation with Acrobat Reader 9.5.1 on Ubuntu 12.04. I'm using the PaloAlto theme and when I visualize the presentation in Acrobat on some random frames the ...
5
votes
1answer
1k views

change pdf standard background color

How is it possible to change the acrobat's background color when someone opens my pdf? My pdf is produced by XeTeX (using hyperref package). Take a look of the following picture of two different ...
2
votes
1answer
449 views

Long table in landscape mode with alternating row colors does not work with \multicolumn

I am trying to put together a longtable in landscape mode over several pages using the longtable package. The idea is simple. I want alternating row colors in the main body of the table. However, ...
3
votes
2answers
585 views

using grid from Tikz in Texmaker

I use Tikz for creating figures. But there is a problem. If I use for example \begin{tikzpicture} \draw[->] (0,0)--(10,0); \draw[->] (0,0)--(0,10); \draw[help lines] (-0.1,-0.1) grid (9.9,9.9); ...
2
votes
1answer
240 views

\subsubsection command and xcolor package

I am using xcolor package to draw some colored tables. But I am having trouble with the \subsubsection command. When I block comment the colored tables and xcolor package, it works. When I do not ...
5
votes
1answer
2k views

How to apply alternate row coloring in a longtable in LyX?

In attempting to apply an alternate table row coloring (using xcolor) in a longtable, one confronts, sooner or later, problems in compiling a PDF. In xcolor's documentation it is clearly stated, ...