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

learn more… | top users | synonyms (1)

1
vote
1answer
178 views

How to change seagull color theme alert text to non-bold

Some beamer color themes (as seagull) define alert text as bold font. However, sold font alerts are annoying when one uses overlay (eg: \onslide+<2->), because bold text takes more space than ...
14
votes
2answers
287 views

Is it possible to detect the “current color”? (for example in a pgfplot drawing?)

Is there a code to deduce the current color of a PGF plot to which a node is associated? Better yet, is it possible to get the RGB decomposition as well? ... addplot coordinates{ (0,0) (1,1) } node{ ...
2
votes
1answer
136 views

Alternate colback and colbacklower in tcblisting

I have written a new environment based on tcblisting from package tcolorbox. I want the background color for code always in "gray" and the background color of the text compiled in "white". He held ...
3
votes
1answer
94 views

Shortcut for changing text color

I want to create a shortcut in LyX for changing the color of selected text. I tried to create a shortcut for "set-color green" or "set-color green green", but none of these worked. What is the magic ...
4
votes
1answer
196 views

Use different color for moderncv subsections

I have made color style like below for moderncv. The color1 is used for all sections and subsections I want to use the newly added color3 for subsections instead of color1. How could I do it? ...
5
votes
0answers
46 views

What are the differences between creating a new macro command vs. a new environment? [duplicate]

For the purposes of collaboration, I want to create a number of short commands or environments that will color the text within its scope so as to identify the author. My first thought was to simply ...
13
votes
1answer
167 views

Spotcolor bleeds into the surrounding

This question led to a new package: xspotcolor I have a problem using spotcolor package. When using the package for redefining headers, titles, \emph etc. the color bleeds into the ...
3
votes
2answers
93 views

Variable color for section titles

The following def takes first three letters as an argument: \newcounter{colorCounter} \def\@sectioncolor#1#2#3{% {% \color{% \ifcase\value{colorCounter}% blue\or% red\or% ...
6
votes
1answer
249 views

How do I create a Tikz mindmap that has two connected roots?

I am creating a mindmap that has multiple root concepts instead of just one. How can I create such a mindmap using Tikz? These are the mindmaps: \begin{tikzpicture}[small mindmap,concept ...
4
votes
1answer
250 views

color a text line in a code {lstlisting}

I try to use the package xcolor into a lstlisting code as follows: \begin{lstlisting} \color{red}{text...} \end{lstlisting} but I can't color the "text..." comments. Someone could help me, ...
4
votes
2answers
111 views

xcolor \color command affects the wrong word in a Hebrew sequence

When compiling \documentclass{article} \usepackage[utf8x]{inputenc} \usepackage[hebrew,english]{babel} \usepackage{xcolor} \begin{document} \sethebrew ראשונה \color{red} שניה \color{black} שלישית ...
1
vote
3answers
126 views

How to colorize only one of the three branches in a game tree?

I am using Osborne's egameps package to create a game tree of an extensive game. How could I colorize only the right branch of the tree branch in the first movement as red. I attempted to use ...
4
votes
2answers
238 views

Robust way to mark draft text?

When writing documents, I like to 'mark up' draft/partial text (e.g., short summaries of what will go in a section) so that I can clearly see what needs to be adjusted. I know that things like the ...
5
votes
0answers
94 views

Color switches are problematic with footnotes, longtable and hyperref

When using the color package in its switch form (\color cf. \textcolor), things can get confused using certain packages, with footnotes, and with section headings. The section headings issue was ...
3
votes
0answers
27 views

Restore standard horizontal spacing for colored symbols in mathmode [duplicate]

I have to highlight some symbols in red, something like this: \documentclass{article} \begin{document} $2+2+2=6 \textcolor{red}{\to} 4+2=6$ \end{document} However the colored formula horizontal ...
6
votes
1answer
182 views

Full colored Triangle and Circle in Metapost

The question may be trivial, but I need your help, to draw a full colored triangle and circle (where the triangle will be inside the circle). Here is my file pic_1.mp: input gjktc.mp; u:=1mm; ...
4
votes
1answer
167 views

Joining lines and text together (and a grey footnote) in a new environment for grey text

I defined an environment called bewertung that's delimeted by two lines. I observe three problems I can not solve: Pagebreaks after the first line (page 1 of MWE PDF). Pagebreaks before the second ...
3
votes
1answer
995 views

Highlight, textcolor, and boldface simultaneously

I would like some portion of the text to have all three features but it's not compiling. It works two at a time but not with all three. \hl{\textbf{foo}} \hl{\textcolor{red}{foo}} ...
2
votes
1answer
103 views

Rowcolor wont cover all cells in the row

The following code \begin{tabular}{|m{1cm}| |m{10cm}|} \hline \rowcolor[gray]{0.9} \centering Grupo & \centering Descrição \tabularnewline \hline \hline 2B & instalações que utilizam ...
5
votes
1answer
84 views

Same color and size of tableofcontents? (Beamer, Warsaw)

I want to write something with the exact same color and size that the title sections are written in the Warsaw theme of Beamer, but in a random place of the presentation as any other word. Is that ...
1
vote
0answers
101 views

Convert color SVG / PDF to greyscale, using hatching patterns

I have a couple of charts which are in PDF or SVG format. I want to embed them as figures, but I want to replace colors with different types of hatching patterns. Is it possible to do this with LaTeX? ...
24
votes
2answers
671 views

Using Pantone/spot colors and TikZ together

This question led to a new package: xspotcolor I came to the end of writing book in LaTeX. Thanks to this great community I have succeeded to apply designer's wishes into document and I ...
13
votes
2answers
223 views

Getting verbatim with soft grey background, as in tex.stackexchange

Given a verbatim as on below, \begin{verbatim} This is an awesome verbatim \end{verbatim} which is displayed with no background on the compiled pdf page : This is an awesome verbatim I would ...
2
votes
2answers
107 views

Problem with color tables when there are nested tabulars

Color tables work great when using within a single tabular environment. However, when using it within nested tabular environments, a rowcolor command spans the whole nested table instead of a single ...
9
votes
1answer
312 views

How to adapt the color of a label using pgfplots

I created this style that shifts the labels and put them on the bottom of the ybars. However, I have a problem with the bars that have too short length (for example, see the 8.7 and 5.1 in the ...
4
votes
1answer
149 views

Making Inline Code Printing Pretty

I have to include small code snippets like method and class names within continuous text. I do not want to display those snippets as complete seperated listings, they should be displayed inline, ...
0
votes
0answers
22 views

Text color changes height of tabular row [duplicate]

Why is it so? My MWE: \documentclass{article} \usepackage{tabularx} \usepackage[table]{xcolor} \begin{document} \begin{table}[H] \caption{Title.}\label{title} ...
5
votes
1answer
146 views

Unicode characters in a listing environment are not colorized!

When using the package listing, colorized comments will not yield colorized exotic unicode characters. This is a minimal working example: \documentclass{minimal} \usepackage{ ...
6
votes
1answer
310 views

PSTricks and Tikz in plain TeX

I would create both pstricks and tikz picture in my plain TeX documents. If I try, I get an error, maybe caused by the use of the xcolor package. The error is the following: \\color@black ...
4
votes
1answer
145 views

Color lines in source code that is embedded in LaTeX

I am looking for a way to mark some lines in a source code sample that will be integrated into my LaTeX code. I already found solutions to embed source code and have syntax highlighting like this ...
4
votes
2answers
612 views

Beamer: set block title bg equal to the block body bg

I'm using the beaver color theme with the Boadilla beamer theme. I want to get rid of the bluish blocks, that are not redefined to a color fitting the color theme I chose. So I put this in my ...
3
votes
0answers
104 views

Node colors change after building (texmaker pdf and real pdf looks different)? [closed]

I have tried (my own way) to make the example in the TikZ & PGF Manual for Version 2.10 (p. 68). When I build this code, the pdf-file does not look identical to the PDF viewer in texmaker. What ...
6
votes
2answers
105 views

Change the color model of an included pdf

Say I have a pdf file foo.pdf that I want to include in my bla.tex document via \includegraphics{foo.pdf}. Say that foo.pdf is a colored document and that I need bla.pdf to be in gray levels. How can ...
4
votes
1answer
998 views

package keyval error undefined color beamer

When i compile the following code, i get the package keyval error, undefined code. Please help! \documentclass{beamer} \usepackage[frenchb]{babel} \usepackage[T1]{fontenc} ...
6
votes
2answers
171 views

color a column red in a table

When I try to color a column red, it seems that white lines begin to emerge. Additionally the \hline changes width depending on how you zoom into the document in pdf format. It look as if the color ...
1
vote
1answer
245 views

Change text color of ToC entries in LyX

I've inserted a table of contents with LyX using Insert->List/TOC->Table of Contents and it is good, but the text color text is red and I want it black. I'm using book(KOMA-script) as document class. ...
2
votes
1answer
148 views

Grid of colorful boxes with shade

How can I reproduce this in Latex?
12
votes
2answers
102 views

Color leak from multicols within a figure

The text at the bottom of page 2 is red, despite the fact that the color change in the code below originates from \color{red}\normalcolor within the multicols within the figure and should naively ...
3
votes
1answer
249 views

Why does adding color to a table row increase the height?

I'm trying to make a beamer slide containing a table with the text in a row styled in a different color. However, the row's height increases when colored, as opposed to the default. The same problem ...
30
votes
2answers
836 views

Color all vowels differently in a LaTeX document

Is it possible to give the letters a,e,i,o,u,y a different color in a piece of text? For instance, color all the a's red, the e's blue, the i's green, etc. EDIT: Without doing it manually of course.
7
votes
2answers
200 views

How to make a semi - shading stripe in resume with LaTeX

I want to make some semi-shading strips in resume to highlight each field, like this image: However, the template code which I use is as below: \newcommand{\resitem}[1]{\item #1 \vspace{-2pt}} % ...
3
votes
1answer
635 views

Gradient background for Beamer slides?

I'm trying to create a background gradient for a set of Beamer slides. This question seems to be doing more or less what I want but the answer does not work for me. If I paste the answer into a file ...
3
votes
1answer
303 views

Warning: \oval, \circle, or \line size unavailable

I have been trying to have a border for a whole page I am trying to write in LaTeX and I have used the following two lines: \thisfancyput(3.25in,-4.5in){% ...
0
votes
0answers
179 views

Very thin white line in colortbl with multirow

I would like to get rid of this thin white line in table using colortbl. \documentclass{report} \usepackage{colortbl} \usepackage{hhline} \usepackage{multirow} \begin{document} \begin{center} ...
1
vote
1answer
85 views

Table cell/element color parameterization with xcolor

I have a table (implemented through tabular) that uses the xcolor package to shade certain cells. The shading I'm interested is both entire cell shading (e.g. \cellcolor{red}) and element shading ...
7
votes
1answer
132 views

ConTeXt+MetaPost: Non-conflicting random background and foreground colours

Overview Looking to create a page that has a random (and non-consecutively repeating) background colour with titles that are also random. Problem The code has two problems. First, generating a ...
5
votes
1answer
196 views

Drawing a box with shading in pgfplots

As a follow-up to this question, or more precisely this answer, I'd like to know how to do the equivalent of \shadedraw [shading=axis,left color=green,right color=orange,color=blue,line width=2] ...
7
votes
1answer
198 views

How do I evenly fill the background color of a block of elements inside a TikZ matrix?

When I fill each element separately of the blocks that I want to highlight, the PDF output shows very small white spaces in between the backgrounds of the separate matrix elements inside the ...
2
votes
0answers
146 views

How to highlight words or sentences? [duplicate]

I would like to create something similar to . To begin with, I would like to create a rounded and background-colored highlight of a word (or a short series of words). What package should I use ? ...
7
votes
1answer
134 views

MetaPost: Randomly generated number, distinct from previously generated number

Overview Looking to create random page background colours where the same background colour never appears more than once in succession (i.e., red, green, blue, green, blue, red, etc. -- never red, ...