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

learn more… | top users | synonyms (1)

3
votes
2answers
60 views

identify pieces of text automatically generated from input and new command

I have a document where many of its values are defined in a separate file via \newcommand, and added to the main document using \input in the preamble. The file being included is the output of a ...
5
votes
1answer
79 views

Color \skippedwords in bytefield package respectively background color in general

The manual of the bytefield package explains how to color a normal bitfield with a colored \rule. I'm also using the \skippedwords command in my figures. I would like to also color that fields. ...
4
votes
1answer
36 views

Is there a way to format a diff patch block? [duplicate]

I'm trying to inline a few snippets of diff patches, and manually formatting them is a droll - is there a way to do it automatically? In general I want it to look like the following example, but ...
9
votes
2answers
181 views

Randomly color paragraphs in LaTeX document

I usually type up my notes for school in LaTeX, and I find it easier to focus on text where the color changes between paragraphs, which is easy to do with old fashioned pen and paper. On LaTeX, ...
2
votes
1answer
226 views

pgfplots: How to change color of boxplot?

How is it possible to change the color of a boxplot from pgfplots? Black would be wounderful! Here is an MWE: \documentclass{scrartcl} \usepackage{pgfplots} \usepgfplotslibrary{statistics} ...
6
votes
2answers
95 views

Getting extra space with this combination of \color and \label

If I type {\bfseries\color{red}Theorem 1. }{\itshape\label{two} This is a test.}, I get too much space between "1." and "This". Here's a file that shows what I mean: \documentclass{article} ...
4
votes
2answers
434 views

Restricting the background color to an ovalbox

The snippet \documentclass[png,convert={density=600}]{standalone} \usepackage{times,fancybox,varwidth,color} \pagecolor{cyan} \cornersize{1} \begin{document} \ovalbox{\large Hello} \end{document} ...
8
votes
3answers
230 views

Two backgrounds in a graph

How can I set two different backgrounds in a graph using pgfplots? In my case, I need a colored background for x<5 and a different background for x>5.
1
vote
1answer
40 views

Suppress link (or just the color) of a specific \nameref

The links that I'm creating with the hyperref package (e.g., references to other sections/chapter) are all coming out with a color that I've defined. That's as intended and it's working fine. But I ...
3
votes
1answer
311 views

Colorbox with complex content in Beamer

Here is my problem. I try to create a macro that displays a colored background for "any" kind of elements in a beamer presentation. Here is what I did : \documentclass{beamer} \usepackage{xcolor} ...
8
votes
4answers
235 views

Make enumerate numbering different colours

Is there a way to make the different numbers within the enumerate environment different colors. \begin{enumerate} \item First \item Second \item Third \end{enumerate} I wish to make the 1. green, ...
1
vote
0answers
50 views

Error message when using memoir and xcolor together

I'm running TeX Live 2013 on OS X (Mavericks) and I'm seeing a bizarre error when using memoir and xcolor together. Here's my MWE: \documentclass{memoir} \usepackage[usenames]{xcolor} \title{A ...
3
votes
1answer
163 views

Changing the color of theorem headings

I have a theorem environment, and I would like: The text color of Problems and their contents to be a custom color (defined as `db' below) The text color of Solutions to be a custom color (defined ...
2
votes
1answer
161 views

Combining \rowcolor and \cmidrule [duplicate]

I want to shade the heading of my table. It all worked fine until I started using \cmidrule. This is my output: Is there a way to shade the white space between the first and second row? The code ...
2
votes
2answers
170 views

How to change the label color of \psaxes?

\documentclass[pstricks,border=12pt,12pt]{standalone} \usepackage{pst-plot} \begin{document} \begin{pspicture}(-5,-1)(5.5,5.5) ...
8
votes
2answers
188 views

How to define an environment with a colored tikz node included

I would like to define a new environment like \begin{mybox} some text \end{mybox} that would automatically expand to something like \begin{tikzpicture} \node[fill=red!0.5] {some text}; ...
11
votes
1answer
430 views

Using listings: “zebra effects” AND line numbers

I just made a code listing with a "zebra effect", just like here: Creating a zebra effect using listings But afterwards, the line numbers at the left side of the listing don't appear any more. This ...
3
votes
1answer
117 views

Making footnote marks in beamer use the surrounding color

As is probably well known, footnote marks in beamer are colored using the footnote mark beamer-color, which seems to default to black, so that footnote marks are black even when the surrounding text ...
4
votes
1answer
104 views

How colorize a merged cell with a multirow?

How colorize a merged cell with a multirow? I want colorize the cell completly and I can't figure out what I must do. Thank you in advance. % XeLaTeX \documentclass[12pt,a4paper,oneside]{article} ...
3
votes
1answer
108 views

\rowcolor truncating cells in table

I am working on formatting a table a coauthor originally created for publication, and running into a problem when trying to color-code rows. The degree symbol in the first data row is formatted in an ...
3
votes
1answer
96 views

pgfplotstable: using one column to control style of another

I want to print a pgfplotstable where one column (which is not printed) used to change the style of another column. In my MWE below, I want to change the font= style of select values in the Item ...
10
votes
1answer
283 views

Color box issue

Here is my MWE (minimal working example): \documentclass[]{article} \usepackage{fancyhdr} \usepackage{graphicx} \usepackage[usenames,dvipsnames]{color} \begin{document} \begin{center} ...
2
votes
1answer
236 views

ConTeXt: Change the default text colour for entire document

Background I am looking to change the text colour for a document from black to a different dark colour. Problem The documentation shows how to change individual colours for a text document, but ...
2
votes
1answer
98 views

Add coloring rules for specified language keywords in lstinputlisting [duplicate]

I would like to add coloring definition for e.g. @Override in java files. How can I do that ? So far I have the following coloring definitions : \documentclass[a4paper,11pt]{article} ...
3
votes
1answer
206 views

How to embed special markers into the code listing that will mark certain parts of code to be colored using a custom scheme?

I would like to color my C# code listings as Visual Studio does. However, all language definitions that I found so far only color the keywords and not the user types. I understand that it requires ...
6
votes
2answers
430 views

Beamer: Strange behavior when changing background color

Using \setbeamercolor{background canvas}{bg=black} works fine if I want to change the background color. However once I used \setbeamertemplate{background canvas}{} it doesn't work anymore: ...
4
votes
1answer
172 views

biblatex style verbose, beamer and color in block

I use biblatex with citestyle=verbose inside beamer. With this style, the name of the author is automatically colored, and also the title. That is a nice feature ... except if you cite your a work ...
3
votes
1answer
50 views

Coloring a Multicolmn [duplicate]

I am trying to color the following table: \begin{tabular}{ |c|c|c|c|c| } \hline 1,5h& 0,25h& 13h& 0,25h& 0,5h \\ \hline Flight preparation& Taxiing& ...
1
vote
0answers
125 views

Why are my hyper references pink?

I have this in the heading of my document: \usepackage[unicode=true, colorlinks=true, linkcolor=blue]{hyperref} Yet the links look like this: Why the pink color ...
3
votes
1answer
180 views

Accessing colors defined by a beamer color theme for a standalone tikzpicture

This is a follow-up to this question. I use the standalone documentclass to externalize my tikzpictures. Now, I want to include it in a beamer presentation with its color theme set to, say, default. ...
3
votes
1answer
116 views

Changing the color of steps in the “cuisine” package

If you've used the cuisine package before, you will know that \newstep or \ing will lead to a step number being generated. In much the same way as the equation label in the equation environment, these ...
0
votes
0answers
14 views

Latex Table Border gets bleached to grey with cell coloring [duplicate]

I have a table here that makes use of multirow/colums. I want to colorize each second entry block grey, unfortunately the middle line in one block which is perfectly ok with white background starts to ...
3
votes
1answer
71 views

grayed box for enumerate

I am using a lyx article template . I want to put my all enumerate items in grayed box . How can I define the enumerate environment in preamble so that all my enumerated lists appear in a grey boxes. ...
2
votes
1answer
93 views

Changing colors over multiple sections and pages

I would like to mark up a whole section (including all subsections and footnotes, spanning multiple pages) as proposed for deletion -- ideally, with color and strikethrough, but just one of the two ...
2
votes
0answers
122 views

Background colour of LaTeX template

How to change the background colour of LaTeX file template? Not the output file. I have a white background and white font. So I am not able to see the text I am typing.
6
votes
2answers
138 views

LaTeX referencing colorful numbering

I have some silly questions on LaTeX use: In an article, how do I get colorful references like in the figure below? How do I reduce the built-in reference font size given below? How do I write ...
12
votes
4answers
493 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 ...
7
votes
1answer
94 views

dotted or colored arc in \xymatrix

Does not arrows style or color option apply an arc in \xymatrix? Please let me know the way. \documentclass{article} \usepackage[arrow, matrix]{xy} \begin{document} \[ \xymatrix{ A ...
8
votes
3answers
284 views

How to use a large number of arbitrary rgb colors in a TikZ image?

I have a document with some TikZ images in it, which are automatically generated from a program I have written. All images are fairly similar, and each of them contains of a large number of squares ...
5
votes
1answer
201 views

How to change the color scheme to make this figure more elegant?

Here different colors means different weight of the edge, and the color of the points is arbitrary. The tex code: \documentclass[aps,prl,superscriptaddress]{revtex4} \usepackage{subfigure} ...
7
votes
1answer
103 views

Color bleeding when using \vsplit for a box with colored text

I want to \vsplit a box with quite arbitrary content. If the content does some color changes, strange things happen. The following MWE demonstrates the problem. The example text changes font and ...
14
votes
1answer
463 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. ...
2
votes
1answer
41 views

colored scratched out entries in a Table

I have a weird problem: If I put a scratched out entry (using package ulem) in a table everything ist fine. But if I color that entry it slips down a little bit. Does anyone know why? Here an ...
4
votes
1answer
84 views

how can I make an fbox like command with certain color, shape and width of border?

I am using a style file that has a certain color for section headers. I want to create a macro, which will behave the same like fbox, only: There will be some (predefined) padding below, above, ...
0
votes
1answer
1k views

Incompatible color definition when using tikz with color package

I am using the tikz package to draw some diagrams. In addition, I need the color package for some highlighting. As the wikibooks page of the color package states, it has to be used before the tikz ...
1
vote
0answers
116 views

\rowcolors causes missing vertical lines [duplicate]

When using \rowcolors to alternate row coloring, some vertical lines are missing in the restulting table. \documentclass{scrreprt} \usepackage[table]{xcolor} \begin{document} \begin{table} ...
2
votes
1answer
170 views

Colour gradient filling in PSTricks figure

Consider the following drawing: \documentclass[ a4paper, 12pt ]{article} \usepackage[utf8]{inputenc} \usepackage[ hmargin=2.4cm, vmargin=3cm ]{geometry} \usepackage{rotating} ...
4
votes
1answer
58 views

How to make a hbox several lines under the specified place?

Recently I asked How to colourfuly highlight some lines of an algorithm using algorithm2e? I wanted to acheive this effect using the algorithm2e package: Thanks to JLDiaz's answer I know how to do ...
6
votes
0answers
213 views

Changing colors of included cmyk jpg

I am trying to convert a pdf containing grayscale pictures and black text into shades of a single color in cmyk color space (for printing). I was thus very happy to learn, from a side remark in one ...
4
votes
1answer
326 views

Booktab color rows with multicolumn

I would like to color certain rows in my booktabs table. I have tried the following \documentclass[a4paper,10pt]{article} \usepackage[utf8]{inputenc} \usepackage{colortbl}% ...