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

learn more… | top users | synonyms (1)

6
votes
2answers
253 views

“Isodat” language source code syntax highlighting

Isodat language is used for Mass-spectrometers from ThermoFisher Scientific®, which is used for Stable Isotope Mass-spectrometry. Parts of the language's syntax highlighting has been explored in ...
1
vote
2answers
524 views

Using pstricks with beamer undefined color model

I am trying to use pstricks with beamer. However everytime I get an error message saying Package xcolor error undefined color model I have googled it and tried different solutions but none worked! ...
3
votes
1answer
122 views

thmbox color bar

I would like to ask if anyone knows if it is possible to change the bar color in the thmbox package. One can change the thickness of the bar but not the color. \usepackage{thmbox} ...
7
votes
2answers
144 views

Colorize external pictures using pdflatex

I have several greyscale-pictures that I would like to get colorized within pdflatex (so it will be automatically colorized to a given color, from black-to-white lets say black-to-red). Is there a ...
6
votes
2answers
216 views

Using \only<#> to change text color causes spacing issues

Hello and thank you in advance for your help! I'm comparing the following two commands: This is a \only<1>{test}\only<2>{\textcolor{red}{test}}. ...
5
votes
2answers
511 views

Color pages in specific sections in LyX

To show the difference between my theoretical an practical part, I want to change the background color of the page during practical sections/parts. Until now I used a new paragraph style, which ...
6
votes
1answer
243 views

Shaded multicols II

In extending a previous question, Shaded multicols, how can I put rounded corners on the multicol environment, for the outer 4 corners (ie the corners directly next to the page margins) This question ...
3
votes
1answer
201 views

bmatrix - buggy? Alternating Color and not completely drawn

As you can see, my bmatrix is a little bit bugged and I don't know why... This is the sourcecode: \begin{equation} \begin{bmatrix} \mathbf{d}_x \\ \mathbf{d}_y \\ \mathbf{d}_z \\ ...
7
votes
2answers
901 views

Particular bar plot with pgfplots: bar color = category

I want to create a bar plot using pgfplots. In this plot the bars should be represent categorys. So that one color suggest the category. The categorys are: 0-8 None 9-13 Minimal 14-19 Slightly ...
5
votes
1answer
660 views

Frame and background color for all figures

I want to have all my figure floats framed all through the text something like those in Wikipedia pages. A pale-coloured (grey) frame and very pale background too. I am using caption package to ...
2
votes
1answer
187 views

How to alternately shade rows in a table [duplicate]

I'm having trouble finding anything that will work with this checklist table that I have set up. I was hoping someone might have some suggestions. \usepackage{colortbl} \begin{center} ...
6
votes
1answer
632 views

Disappearance of the table title/caption, when using colortbl

I'm formatting a manuscript according to the PNAS style, as prescribed in http://www.pnas.org/site/authors/LaTex.xhtml When I color my table using the package colortbl, the title/caption disappears ...
3
votes
1answer
275 views

How to extend the horizontal line and colored box all the way?

I want to extend the horizontal line and the colored box all the way to the end of the page, however using \hrulefill (instead of \hline, screws up the format.) This is my code: ...
4
votes
1answer
328 views

Beamercolortheme: How to set default color for all verbatim?

I want to change the color of all verbatim text in an existing beamer presentation. How do I do this easily? I know how to use colored verbatim text in general, and I found a lot of suggestions here ...
1
vote
1answer
605 views

Alternating column AND row colors with tabu? [closed]

There is a very convenient way to have alternating row colors in tabu using \taburowcolors{ .. }. But is there a way to do the same thing with columns plus alternating row colors ? What I want ...
7
votes
1answer
4k views

\textcolor within lstlisting?

I have some pseudo-code where I want to highlight some sections in a different color (this is why: in an assignment at university, I have some code given and have to adapt it. I want to highlight what ...
6
votes
2answers
1k views

How to edit the length of a color box?

I've typed my Resume and Im using a color box, with a line underneath it. However the grey colored box doesn't reach the full length of the page width. \documentclass[letterpaper,11pt]{article} ...
10
votes
2answers
273 views

monochrome and pstricks

I am creating a file type images for presentation / written, I have been interested in the monochrome package xcolor, but by using it I have not obtained the expected results, check the documentation ...
4
votes
1answer
169 views

Using color with \marginpar

I'm using the package marvosym and the triangle symbol \Rewind with \marginpar. To draw attention to the symbol, I would like to have it be in red. How do I do this?
1
vote
1answer
128 views

Indentation and page colors with standalone

Question I want to create a page whose size is cropped to the size of the content on the page. I also want to be able to have indented paragraphs and to set the color of text and background. Is there ...
8
votes
1answer
336 views

Is there a simple way to “brighten” or “darken” a color?

For example, I have color #009b55 (ForestGreen), and I want to get a slightly brighter version of it - #00a85c. Is there a function that can do it for me?
6
votes
1answer
1k views

change page number color of latex beamer

I need to change the page number color to black in latex beamer. What do I need to add to the following code? \defbeamertemplate{headline}{page number}{% \vskip1pt% ...
3
votes
1answer
134 views

How to color numbers in axis?

I want to color the numbers 3 in blue and -1 in green as show in the picture below. My code is this : \documentclass[12pt,a4paper]{article} \usepackage[utf8]{inputenc} \usepackage{amsmath} ...
6
votes
4answers
233 views

Highlight / color parts of text

LaTex newbie here. Currently using vim with solarized color scheme to edit .tex documents. When writing I often jump around to different parts of the document, leaving gaps behind to work on later. ...
1
vote
1answer
3k views

Problem with beamer documentclass: xcolor.sty not found [duplicate]

I am trying to run the following code: \documentclass[10pt]{beamer} \mode<beamer>{% \usetheme[hideothersubsections, right,width=22mm]{Goettingen} } \title{Simple Presentation} \author[D. ...
4
votes
1answer
346 views

Oversized colored row in beamer block

As a follow up to this question, I am trying to insert tables in my beamer presentation so that they have the same style as blocks. However, I want to avoid using rules in my tables, and I am trying ...
5
votes
1answer
149 views

How do I prevent \cellcolor from over effect of \hline

I'm trying to add HTML code based color to my table, like so: \usepackage[table]{xcolor} \begin{tabular}{ |>{\columncolor[HTML]{F2FAF8}}c| p{11cm} |} \hline CELL 1 & CELL 2\\ \hline CELL ...
6
votes
2answers
2k views

Citation colour with Beamer + Hyperref + Natbib

I'm using natbib for citation with a custom bibstyle. I'm working on a presentation using LaTeX beamer and for some reason the citation marker doesn't have the colour that is specified to hyperref. ...
3
votes
1answer
246 views

Question about beamer - Head shaded with CambridgeUS

Related to my previous question about beamer, now I have another one: How to change the color on the head shaded from the light gray to the light green.
1
vote
1answer
201 views

XML with Listings: Different colors for attributes and elements

How can I make every attribute name in color X and every element name in color Y without adding keywords and stuff? What I did so far: \lstdefinelanguage{myXML} { morestring=[b]", ...
4
votes
1answer
810 views

Emacs / AUCTeX — Customization of keyword highlight syntax

font-lock-keyword-face is used by AUCTeX for all keywords, and I have not been able to find a way to create a new keyword that is a different color. I have defined the foreground of ...
3
votes
1answer
137 views

titleformat has no effect!

I have tried to specify the color for my section as shown here, but it has no effect. What am I doing wrong? MWE: \documentclass[10pt,letterpaper]{article} \usepackage{lipsum} \usepackage{multirow} ...
0
votes
2answers
242 views

Color and efficient vector graphics

I want to use complex monocolor vector graphics but I would like to be able to specify the color inside my latex source. Solutions : Use a pdf, but I can't specify the color afterwards. Perhaps a ...
7
votes
1answer
10k views

Changing color and header of beamer with CambridgeUS

How to change the red color for - the titles - the topics How to adjust the position of the header1 and 2? \documentclass{beamer} \usetheme{CambridgeUS} % Set Color ============================== ...
3
votes
2answers
64 views

Breqn color and background options ignored?

I have this simple latex code: \documentclass{article} \usepackage{color} \usepackage{breqn} \begin{document} \begin{dmath}[background={red}] 1+1=2 \end{dmath} \end{document} However using ...
5
votes
2answers
848 views

Getting a particular kind of page border using background package

I am doing my project report using latex, and the format requires a particular kind of page border around each page. (Its a black thick box enclosing a thin box). I saw this question, Multiple border ...
22
votes
2answers
742 views

How to divide document for black and color printing?

Most of my document is black text, but there is a color figure here and there. I would like to print the text on a black and white printer, and the figures on a color printer. I know i could just ...
4
votes
2answers
287 views

How can I avoid the gap between \cellcolor-colored cells created by \tabucline?

I'm trying to partially separate rows from one another using \tabucline. The line encompasses column 3-6. Since the line's width is neither part of the upper, nor the lower row, there is going to be ...
1
vote
0answers
37 views

How to set foreground (text) color in xcolor table? [duplicate]

How do I pick the foreground (text) color in xcolor table for the whole row? such that the letters appear white with blue background in this table (instead of black which is bad for constrast): ...
6
votes
1answer
1k views

Change TikZ nodes color to grayscale

Say you have some code like this: \documentclass{standalone} \usepackage{tikz} % \PassOptionsToPackage{monochrome}{xcolor} \begin{document} \begin{tikzpicture} % \selectcolormodel{gray} ...
2
votes
1answer
324 views

Beamer: how to change the mini frames coloring

I want to do the following changes to the mini frames coloring: All previous frames almost the same solid color as the background so that the squares are barely visible. The current frame and all ...
4
votes
1answer
194 views

Including spotcolors in a DVI file

Consider, the PDF is generated using dvi-ps-pdf. Is there an easy way to add spotcolor in a dvi file, so that the resulting PDF contains the spotcolor. I know that using pdflatex this is possible. ...
5
votes
1answer
872 views

Getting Yellow Background color on link

can anybody tell me how to apply a yellow background color on pdf links (especially on hovering the mouse over the link). For example, I would like to have the same yellow background effect that ...
2
votes
3answers
1k 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} ...
7
votes
1answer
467 views

Beamer: how to change the mini frames from circles to rectangles

I would like to change the mini frames from circles to rectangles and also make the already viewed symbols the same color as the background and future symbols the color of foreground. ...
2
votes
1answer
4k views

Beamer: changing footline background color

I would like to make the footline color black and the text white. I found this: Beamer: Background Color for Footline but didn't understand how it applied to my example. \documentclass{beamer} ...
3
votes
1answer
301 views

Center displayed, boxed equation within environment

I would like to center, with respect to the page margins, a displayed equation that is boxed and is within either an enumerate or itemize environment. Below is an example of what I have. Notice that ...
4
votes
1answer
5k views

Set the width of a fcolorbox

Hi a very basic question I'm sure, but is there a way to tell \fcolorbox in xcolor to draw the box of a certain width. For example with \fbox I would do \documentclass{article} \usepackage{xcolor} ...
1
vote
1answer
906 views

opacity and shading of an ellipse

I am making a picture of the tidal force effects on the Earth. My current picture is decent but I would like where the bulging occurs on the edges to be little bit darker in blue, but I don't want ...
5
votes
1answer
838 views

LyX table border colour

I have a multi-row table in LyX, with black horizontal borders at the top and bottom of the table. I would like to insert other horizontal borders inside the table that are grey rather than black. ...