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

learn more… | top users | synonyms (1)

2
votes
2answers
92 views

\cline is in tables too thin (when using coloured cells)

I'm having an issue where \cline appears to be drawn under the fill for table colours. With \hline With \cline (to remove the line above the cell I want blank) The line is still there, only ...
9
votes
2answers
303 views

3D font in LaTeX

This is an unusual question regarding rendering of a font with a specific 3D-esque style in LaTeX, XeLaTex, or any other TeX flavor. I was looking at some fonts the other day and I came across one of ...
9
votes
3answers
159 views

How to make or add options for packages or functions

I'm using at this moment the Piano Package. This Package is a little limited so I want to change a few things. The standard color of the dots is orange. I want to change this in different situations. ...
4
votes
0answers
81 views

Is there a package for automating equation colorization?

I'd like to have the equation colorization process be somewhat semantic, i.e., I can still type equations or math the ordinary way, except they occur in an environment in which the colorization ...
4
votes
1answer
263 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 ...
2
votes
1answer
167 views

Change text color when inserting a pdf_tex image

I am inserting an image from Inkscape using the pdf + LaTeX option since I want the text to appear in the same font and size as in the rest of my document. Can I change the color of the text? ...
4
votes
1answer
147 views

longtable vertical column separators

I have a quite complex longtable design and I would like to add white column separators. I can add black separators using | but the placement of the lines does not seem ideal either. ...
5
votes
1answer
129 views

Fit coloured longtable to pagewidth

There is a similar question and solution posted here. However, I can't use this solution as I have a coloured table, and the given solution causes white gaps between each column. Is there a way to ...
6
votes
2answers
190 views

How can you highlight a C compiler directive spanning multiple lines?

In my \lstset{...} I have morecomment=[l][{\color[rgb]{0.1, 0.2, 0.8}}]{\#}, which I've seen used to give preprocessor commands colour. This works just fine but I'd like to get multi-line macros to be ...
3
votes
2answers
156 views

Coloring only the text area

I use the geometry package to define paper size and text area of a (one page) document: \usepackage[ paperwidth=420mm, paperheight=297mm, text={365mm,270mm}, centering ]{geometry} I wish to ...
3
votes
1answer
204 views

How to change text color in footline

I hope this is not a duplicate question, but I did not find my answer. I have seen how to change the background color of footline, but not how to change text color. I have this code for my footline: ...
1
vote
0answers
31 views

How to list all available named colors [duplicate]

Is there a comand or way to get list of all available predefined (named) colors on my actual system? Not a question regarding xcolor or any other color enhancement. Just minimalistic setup.
6
votes
1answer
60 views

Force color of listoffigures

Imagine the following example: \documentclass{scrbook} \usepackage{xcolor} \begin{document} \begin{figure} \caption{\textcolor{green}{Green} and \textcolor{red}{red}} \end{figure} ...
5
votes
2answers
336 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
212 views

How to map value to color using TikZ?

I am trying to draw rectangles, each of which has a corresponding value, which will be mapped into a color from a color map based on the value. This is how I want the write the code. What is missing ...
3
votes
2answers
61 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
82 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
38 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
187 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
248 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
98 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
487 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
238 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
45 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
337 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
239 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
213 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
167 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
210 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
194 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
433 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
119 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
108 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
110 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
103 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
305 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
249 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
105 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
209 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
483 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
189 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
51 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
129 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
201 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
125 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
74 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
100 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
128 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.