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

learn more… | top users | synonyms (1)

23
votes
0answers
711 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 ...
8
votes
0answers
104 views

\selectcolormodel{gray} not applied to \draw

Today I found something weird. When I use \selectcolormodel{} in a TikZ drawing the model is only applied to \fill and not to \draw[fill=]. Does anyone know why? \documentclass{article} %\usepackage[...
7
votes
0answers
77 views

Included PDFs alter Beamer colors

I am compiling a Beamer presentation on Ubuntu using PDF figures output from Inkscape. The colors on certain slides are wrong. This appears to be caused by including certain figures, and based on my ...
7
votes
0answers
274 views

Latex - picture color and minted color

I'm using minted package. If logo (top-picture) contains green, code color change. \definecolor{codecolor}{RGB}{108,247,10} \newminted{cpp}{linenos,bgcolor=codecolor!25,frame=lines,fontsize=\small,...
6
votes
0answers
64 views

Xelatex, and strange textcolor behavior in tikz

Here is a minimal working example: \documentclass{beamer} \usepackage{tikz} \setbeamercolor{background canvas}{bg=black} \setbeamercolor{normal text}{fg=white} \begin{document} \begin{frame} \...
6
votes
0answers
125 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 ...
5
votes
0answers
67 views

How to apply colour options to the contents of TikZ nodes when the content includes \sbox{}\usebox{}?

Thanks to Sašo Živanović for helping to identify the problem which arises as a result of my trying to apply options such as blue or text=blue to nodes within Forest trees which include turnstiles from ...
5
votes
0answers
140 views

Create PDFs that assume different colours on screen and on paper

Is there a way to make PDFs assume different colours when viewed on screen as opposed to when printed on paper? As an example, I am using the titlesec package to make section labels a fancy dark blue....
4
votes
0answers
82 views

How can I prepare a PDF file for a colour overlay with `\color`?

I want to include colorised icons in a mdframed environment. Since I think that in the near future I will probably need the icons to have varying colours, I'd like to use the \color{...}{\...
4
votes
0answers
176 views

Why does \IEEEPARstart have conflict with \textcolor?

MWE: \documentclass[journal,twoside]{IEEEtran} \usepackage{color} \usepackage{amsmath} \begin{document} \textcolor{red}{ \IEEEPARstart{L}orem ipsum dolor sit amet, consectetur adipiscing elit. ...
3
votes
0answers
48 views

How to make hyperlinks in bibliography without showing URL

This is my MWE: \documentclass{article} \usepackage{lipsum} \usepackage{natbib} \usepackage{bibentry} \usepackage{color} \usepackage{hyperref} % For hyperlinks in the PDF \hypersetup{colorlinks=...
3
votes
0answers
33 views

\maxsizebox resets color in TikZ \node

While trying to fix an issue in menukeys I think I found a possible bug in adjustbox: It seems to reset the text color in the node. In the following picture all words in the first line should be red, ...
3
votes
0answers
63 views

Function to create a Chapter color

I am writing a project for a course and I want to make each Part's Chapters' first page to have a different color on the side. This is my code. (I put % (comment) in the problem for the code to run.) ...
3
votes
0answers
44 views

Color a subset of digits in SIUNITX

I am writing a presentation with Beamer, where I show the benchmarks of a program I wrote. This involve comparing a lot of number coming from different sources. These numbers can differ only in the ...
3
votes
0answers
350 views

'parula' colormap in pgfplots

I try to implement 'parula' Matlab colormap in pgfplots drawings. Here is the MWE for that palette with 10 points for interpolation: \documentclass{article} \usepackage{pgfplots} \pgfplotsset{ ...
3
votes
0answers
75 views

Bad interaction between xcolor and chronosys package

I use the excellent chronosys. For some reason all of my colored charts became black. After a protracted debugging exercise I traced this to the use of HTML as one model in the xcolor package. Am I ...
3
votes
0answers
51 views

What is the best approach regarding .cfg files for the LaTeX graphics bundle?

The manual for the 'graphics' LaTeX bundle includes instructions for setting up the right conditions for the use of colour and the inclusion of graphics in documents. For example, on page 2, it says ...
3
votes
0answers
133 views

Cross-referencing on 2 kinds of end-footnotes (separated and with different coloured numbers)

In the beginning I used parnotes and endnotes to distinguish between the 2 seperated kinds of end-footnotes: Attention: to be able to compile the first "grey box" of trial code, one must download ...
3
votes
0answers
87 views

Specifying Colors Per Page

Using the leaflet package, I am trying to create a flyer for a document. I have specified the background color NavyBlue for pages 1, 2, 4, and 5. Unfortunately, the default text color, black, is ...
3
votes
0answers
363 views

Fancy slides latex

I am using fancy slides for a presentation. The problem is that I want to be able to specify some colors with xcolor. When I try to do the usual \usepackage[usenames,dvipsnames]{color} I get an ...
3
votes
0answers
136 views

TikZ: Printing press cannot print document due to RGB colors, layers and transparency

The place I print my thesis needs the PDF file to conform to certain demands. Demands I was not aware of prior to sending them the document. So, here is the challenge: Using PGF/TikZ how can I bulk ...
3
votes
0answers
196 views

How to color groups of bars in a graph, coming form an external file?

I have a graph displaying bars and error bars, the numbers comming from an external .dat, being simply black and white. And this is how I got there: \documentclass[12pt]{report} \usepackage{...
2
votes
0answers
36 views

Context: colors not rendering correctly after \showcolor inside metapost code

I have this example \starttext \definecolor[myred] [r=.8] \showcolor \startuseMPgraphic{test} fill fullcircle scaled 10mm withcolor \MPcolor{myred}; \stopuseMPgraphic \midaligned{\useMPgraphic{...
2
votes
0answers
28 views

Make footnote and fnpct compatible with color package?

I know it is not recommended, but I have been trying to have footnotes in table environment. And the footnote package seems to me to be the easiest way to do it. Unfortunately, I also wanted to use ...
2
votes
0answers
42 views

Changing the color of operators

How can the following code (provide by the user egreg) be changed so that it can also take operators of the form /int or /sum? documentclass{article} \usepackage{amsmath} \usepackage{xcolor} \...
2
votes
0answers
38 views

Change formatting of an element in ChoiceMenu

Is there anyway to change color in the \ChoiceMenu items such as Item 1, Item 2, etc.? Or even bolding individual choices would work... I tried \textbf{Item 1} and \color{blue}{Item 1} and they both ...
2
votes
0answers
24 views

Table with colored cells using dcolumn and overlays

I found the very helpful question on how to add colors in a table using dcolumn here Colored text with dcolumn, but I would like to do the same thing using overlay such that the color only appears on ...
2
votes
0answers
20 views

Ensure black/white pages are recognized as such by printer

How can I ensure that the pages I print in black and white with pdflatex are recognized as black and white by a printer in my PDF and not as mixed from CMYK colors? My question arises because my ...
2
votes
0answers
47 views

speckled colors in latex

I saw last week a presentation that was made with keynote and which was showing cells filled with speckled colours. Is there a way to get speckled colours in latex/beamer ? Until now I was only able ...
2
votes
0answers
52 views

Highlight first rows and first columns of a pgfplotstable

I'm trying to change the background color of the cells FOO and BAR and also the ones with the values (1 and 2) in the following MWE: \documentclass[12pt]{article} \usepackage[active,pdfpage,tightpage]...
2
votes
0answers
65 views

Draw a matrix with Latex

I did a matrix with Latex, but I do not know how how to do the colored square. Any idea please? Thank you \documentclass{article} \usepackage[table]{xcolor} \usepackage{collcell} \usepackage{hhline}...
2
votes
0answers
59 views

Sphere shading in cmyk colours

I'm trying to make a sphere in cmyk colours. In rgb, the spheres are nicely overlapping as expected. Is the solution using @Christian Feuersänger suggestion here? \documentclass{standalone} \...
2
votes
0answers
103 views

Table cell pattern of colors

With \cellcolor one can set the background color of a cell. I use this in documenting a communication protocol to indicate the type of the value in a certain field, say green is type X and blue is ...
2
votes
0answers
83 views

Wrong color figures in pdf output

I am composing a large number of pdf figures with includegraphics that contain pixel graphics with xelatex. The individual figures are themselves compiled with xelatex using includegraphics. As the ...
2
votes
0answers
29 views

Using Listings Package: the Colour of the Text After the Listing is the same as that of the Identifiers Inside the Listing

So I have some LaTeX which looks like \usepackage{graphicx,bm,times, hyperref, amsmath, listings, xcolor, enumitem} \lstset{language = C++} \lstdefinestyle{customcpp}{ backgroundcolor=\color[rgb]{...
2
votes
0answers
70 views

tabularnewline incompatible with rowcolors

I have a huge table I am editing with LyX I tried to use rowcolors to have alternate row colors but it does not work This looks like to depend on the use of \tabularnewline instead of \\ The ...
2
votes
0answers
90 views

Ink usage of white text background

I am working on a project that contains a lot of colorboxes and floats with background color. This consumes a lot of ink, which makes me consider making a separate copy available that uses transparent ...
2
votes
0answers
47 views

Cells in tabu move vertically when \color begins the cell

When I use \color in the beginning of a cell in tabu, the contents of the cell are shifted downwards: The issue does not occur when there is any character in front of the \color, but a \null does ...
2
votes
0answers
45 views

Listings - Getting the colors right for custom language

I have lots of bookkeeping transactions that I would like to typeset in a color coded format. I am using the listings package to accomplish what I want. I tried the following code. \documentclass[...
2
votes
0answers
286 views

Python console code with minted

I am using minted to highlight source code in my document. I have defined \definecolor{codeyellow}{RGB}{255,251,204} \newminted{python}{linenos,breaklines,frame=lines,bgcolor=codeyellow} in the ...
2
votes
0answers
196 views

How to place a color gradient text node inside a tikzpicture (absolute positioning)

I want to put a color gradient to a "Desired Text Only" but then I want to be able to position it inside a tikzpicure. I already checked this thread describing a way to put gradient color to a section ...
2
votes
0answers
241 views

Listings: color numbers only out of keywords

With the listings package, I would like to color the integers out of strings and comments and out of keywords too. The question for coloring numbers has been asked several times. Some answer handle ...
2
votes
0answers
97 views

how can I load a tableplot, put random colors, and the legends automaticaly using a foreach?

\begin{tikzpicture} \begin{axis}[scaled x ticks={real:1e3},xtick scale label code/.code={$\cdot 10^3$}, axis lines=left, %xticklabel={$\pgfmathprintnumber{\tick}\lambda$}, pone lambda al lado del tikz ...
2
votes
0answers
298 views

prevent color from overlapsing cell border

All question I have looked to doesn't help me to solve my problem. Here's my code : \documentclass[a4paper,10pt]{article} \usepackage[utf8]{inputenc} \usepackage[frenchb]{babel} \usepackage{color} \...
2
votes
0answers
278 views

Displaying authors in color bibtex

If I call a reference by \citet{xxx}, it appears in my document as Author [number], where the number appears in the color I defined in \hypersetup{citecolor=red} while Author and [] appear in black ...
2
votes
0answers
405 views

XeTeX Arabic vowels

I would like to demonstrate declension in the Arabic language by coloring a single vowel or letter. I found some solutions to color a single letter, however the connections would break. So again I'm ...
1
vote
0answers
34 views

Define “no color” in a table cell

Is is possible to define a colour as no colour? This is for use in LaTeX tables for individual cells to override a defined \rowcolor. I've experimented with using a white colour, but then if the user ...
1
vote
0answers
62 views

Tikz Pgfplot-Create user defined colorbar

I want to create only colorbar in Latex. Earlier I have used to Gnuplot to plot heatmaps along with colorbox(yeah, They are called colorbox in Gnuplot). The user defined colorbox in Gnuplot plot is ...
1
vote
0answers
38 views

Color aliases in lecturer.tex

It is my understanding that lecturer.tex uses its own strategy to manage named colors, but I would like to manage my own color palettes, so that I can just "switch" them; so, I would need an "alias" ...
1
vote
0answers
20 views

Colouring in-line text within verbatim environment

I wish colour some selected text within the verbatim environment. These texts may not occupy a whole line, but rather be a small part of a line. An illustration is given below. Say for example, in ...