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

learn more… | top users | synonyms (1)

1
vote
1answer
67 views

How to mimic cards generated by passwordcard.org?

Assuming we have generated contents of card (i.e. excluding top header row and left indexing column) , for eg. with some pseudo-random generator script. How to render such to mimic the look of one ...
2
votes
0answers
28 views

Create a chapter with different style, using Tufte book

I'm finishing a book using Tufte-Style Book (b5paper,twoside,justified). I just arrived at the last chapter (10th) and want it to be different from the previous 9, as it contains different information ...
0
votes
0answers
18 views

citation color and table color of contents are unusual when using MacTex2015

when I use "latexmk -xelatex thesis.tex" to compile thesis.tex, the process always be paused twice with the messages below: (/usr/local/texlive/2015/texmf-dist/tex/latex/trimspaces/trimspaces.sty)) ...
2
votes
1answer
79 views

Color correspondance in tikz and pyplot

I draw a graph with pyplot, which I save in pdf format. I then want to draw a line with the same color in tikz, however colors mismatch. I get this result: I create my graph with: #!/usr/bin/env ...
1
vote
1answer
23 views

insert small colored box to the left of a moderncv subsection without using \hspace

I have this code: \documentclass{moderncv} \usepackage{fontspec} \firstname{test} \familyname{test} \moderncvstyle{casual} \moderncvcolor{blue} ...
1
vote
1answer
17 views

Incompatibility with align and table option in xcolor?

Let's see this MWE, painfully reduced from an institution template. It chokes on the align environment, unless I comment out the table option in the xcolor package. I would like to understand why... ...
1
vote
1answer
354 views

Bad colors in table using baposter

I'm trying to assign specific colors to table cells in a poster (baposter). Unfortunately they are reproduced different in the pdf. As they have to match the colors of my graphs I need precisely the ...
3
votes
0answers
37 views

Color macros for sectioning titles

I am trying to write macros for type-setting the titles in my article's sections, subsections and subsubsections in different colors using: ...
2
votes
1answer
11 views

Setting background color to text in ConTeXt (Mark IV)

I need to highlight some text in ConTeXt to get something like this: Concerning background colors, all I've found in the manual is some example with \framed command, which is inappropriate to me ...
1
vote
1answer
25 views

! Package xcolor Error: Undefined color `RED'. Only affecting one chapter [duplicate]

I am using the document class book and this error started popping up, It is only affecting one chapter, the others I can use the colour red fine. The line is: \section{\color{red}Section Title} ...
0
votes
0answers
18 views

Latex lstlisting: stringstyle not working

I defined my own language Drools and I want that the words between "" have the color red. I used stringstyle to do that but this doesn't work. Am I forgetting something because I couldn't find any ...
2
votes
2answers
60 views

Macro: compatibility of 1) Auto-colorization & 2) Auto-counter-and-title-to-label

This question is about asking to have the following 2 "workflows" (if you permit me to call them as such) to be able to coexist together in 1 Tex document: Workflow Auto-colorization (≅ User ...
4
votes
2answers
123 views

Automatically colourize all occurrences of certain strings (different colouring for different sets of words)

This question is a follow-up of Macro: Replace all occurrences of a word, but I would like the same for different colours, that is to have different pre-defined sets of text strings which will be ...
0
votes
0answers
38 views

Set the color to the sides of cylinder and exterior ring/hollow cylinder

I'm a newbee to tikz and from tex.stackexchange.com I tried a lot of resources. But I didn't get the initial help to solve my problem by myself. Maybe you can help me. Here is my problem: I want to ...
2
votes
1answer
13 views

Package xcolor warning when using sciposter document class

Is there anyway to avoid the warning message "Package xcolor Warning: Incompatible color definition on input line" when using the Sciposter document class? MWE: \documentclass{sciposter} ...
2
votes
1answer
23 views

Is there a TeXShop Macro to make selected typeset text a certain color?

Suppose I have the following code snippet in my *.tex document (src ;-) ): Dolorem ipsum color sit amet. I'd love to be able to select part of that text (e.g. color), do something quick and ...
0
votes
1answer
60 views

Trims missing with colored page

I am using memoir and showtrims as an option. using \onepagecolor makes the trims disappear. Any ideas? Here is a MWE: \documentclass[12pt,showtrims]{memoir} \usepackage{lipsum} \usepackage{xcolor} ...
9
votes
4answers
2k views

Creating a rainbow color macro

I'm trying to draw a picture in tikz whose code is generated by another computer program. The program outputs hundreds of numbers in between 0 and 100, and I'd like to color objects in the picture on ...
10
votes
3answers
2k views

Tikz fit-library vs fill (overlaying nested node colors)

I am trying to figure out the best way of nesting tikz nodes having a different background color. I would like the "inner" nodes to "win" concerning the background color. Currently the "outer" node ...
2
votes
0answers
16 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 ...
4
votes
1answer
55 views

In-place calculation of color with tikz and calc

Is it possible to calculate a color value like this in-place with tikz and its calc library? \filldraw[fill=black!{50-95.7/2},draw=black] (1,0) rectangle (2,1); %Gives a 'Missing number, treated as ...
4
votes
2answers
179 views

Is there a way to set colors of hyperref links and urls differently in headings / sections than in the body?

I know hypersetup from hyperref needs to be added before \begin{document} but after \usepackage{hyperref} and \usepackage{bookmark}. For example, you can inject it like the following to ensure this: ...
2
votes
1answer
33 views

Only a few characters of an arabic word in a different color

Can we get for example only the last character of an arabic word written in a red color. I use the arabi package with pdfLatex
2
votes
0answers
32 views

Automatically colour previously defined strings of text (for strings with spaces &/or punctuations) [duplicate]

Main question Answers to the question Automatically colour previously defined strings of text show how to colour pre-defined strings of text, but all those pre-defined strings are without spaces and ...
3
votes
2answers
192 views

Problem using \alert{} in Beamer title with metropolis theme

I'm trying to emphasize some words in the title of a beamer document. Ex : \documentclass{beamer} \usepackage[utf8]{inputenc} \usetheme{Warsaw}%\usetheme{m}%-->problem \usepackage{tikz} ...
1
vote
0answers
16 views

texmaker commenting in math mode colors

Can you set the color of comments in math mode to be grey like normal comments? For instance \begin{array}{cl} \min & \tr XBX^T \\ \text{s.t.} & |Xe-2e|^2=0, \\ & ...
5
votes
1answer
1k views

How to change text color a particular reference in the bibliography in latex? (using ieee transactions bibliography style)

I want the a particular reference in the bibliography list to take on a different color, say, blue. These are some minimum working examples. This is my latex file: \documentclass{article} ...
4
votes
1answer
106 views

How to create a colour option in custom beamer theme?

I have used this answer from the question about how to design a beamer theme from scratch to design a Beamer theme to look like a university presentation (Powerpoint) template. There are 3 colour ...
0
votes
1answer
19 views

How can I define more color commands properly for \pslegend in pst-plot

I am plotting a multi-curve graph by using pst-plot, and naturally need different color to label each curve in legend, by using \pslegend command. However, I find I can only use a number of ...
3
votes
0answers
28 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, ...
5
votes
1answer
97 views

change math color except in titles in beamer

I have used \setbeamercolor{math text}{fg=blue} to turn all my text in mathmode in blue. However I have also math in titles (and subtitles) and I would prefer the formulas to have the same color as ...
2
votes
1answer
91 views

is it possible to display color only in PDF viewer, not printed page?

The ocgcolorlinks option to hyperref will let you have colorful links on the screen that are black (or more generally, the textcolor) when printed. Is there a way to have coloured hyperref ...
2
votes
0answers
39 views

How do I change the color of the color below the header?

I want the color of number 2 to be the same as the color of number 1. This is the code that I've used: \documentclass[xcolor=dvipsnames]{beamer} \usetheme{Darmstadt} ...
0
votes
1answer
48 views

remove space between columns in longtabu with rowcolors

I use the ltxtable package to create long tables with variable width columns. Using this I want to completely remove the space between to table columns by doing this: \documentclass{scrbook} ...
0
votes
0answers
19 views

Colouring Specific Blocks of Rows in a Table

I have my table formatted how I want it. Just want to colour in the A-Type multi-rows, and the C-Type multi-rows; to distinguish them from the B-Type. I wish to have them coloured grey, but only a ...
0
votes
1answer
25 views

Colored tabular - line not showing

\begin{tabular}{| p{10cm} | c |} \hline & \\ {\bf Requirement:} & {\bf Categorie:} \\ & \\ \hline & {\cellcolor{green}}\\ text & {\cellcolor{green}{\bf Must Have}} \\ & ...
3
votes
2answers
31 views

verbatim inside macro with color

Consider the following minimal non-working example (comment the line with the \test{..} to compile. I'd like to have a \verb+something+ inside my \test{} environment. How can I achieve that? ...
1
vote
1answer
32 views

How to colour a cell and keep the contents in maths-mode?

I am trying to colour certain table cells in some siunitx S columns. The cell colour change with xcolor/colortbl works, but it seems to also change the cell contents to text-mode, which has ...
0
votes
1answer
29 views

All section titles in one uniform color in friggeri Latex CV

do you know how to change the colors of the section titles in the friggeri cv? I would like for them to be in one color and also the entire word, not only the first three letters. Is there any ...
2
votes
0answers
45 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 ...
3
votes
2answers
102 views

Baseline of a cell with a rule is messed up because of \color

I have a table (tabulary) in which some cells are only filled with a rule. This rule is 1ex thick and I want that the bottom of the rule matchs the baseline (of all cells of the row). I've found that ...
2
votes
2answers
94 views

Color area inside curved lines in tikz

I drew this picture with the following code \documentclass{standalone} \usepackage{tikz} \begin{document} \begin{tikzpicture} \node (mth) [align=center] at (0,0) {parameter space ...
1
vote
1answer
33 views

Increasing font size makes coloring of last table column incomplete

My table is aligned to the left by using \hskip-1.50cm. When I increase the font size from 10pt to 12pt, the table's layout shifts to the right and understandably so. The alternating rowcolors do not ...
4
votes
1answer
67 views

Remove Border form Tikz SMart Diagram

I want to remove border, set the box background to dark in the diagram below. I got no help from the document. \begin{center} \smartdiagramset{ set color list={blue,green,orange}, % border=none, ...
1
vote
2answers
1k views

Changing background color of external pdf files using pdfpages

The following TeX code is intended to change the background color of an external pdf file by using the pdfpages package, but it does not work for me. Does it work at all? \documentclass{minimal} ...
1
vote
0answers
40 views

Using color in expex gives “Missing \cr” error

Update: The expex developer, John Frampton, has added color functionality to a pre-release version. Those interested in beta-testing should email him for the code. Original Question: Trying to print ...
2
votes
0answers
20 views

Setting a custom RGB background color in beamer

I believe I've correctly followed the manual in defining a custom background color in the example below. But as the example shows, the background color is black rather than an extremely pale ...
2
votes
1answer
41 views

How to use 'BoldFeatures' to colorize bold texts, but override that color for individual text strings?

In my document preamble I use the following code to set my desired font and at the same time to set as default text colors different gray values for italic, bold and bold-italic text: ...
1
vote
1answer
55 views

color for beamer

Could you help me to change the color for beamer. I'll defend my PhD thesis next friday and we have to follow some orientation for presentation's format in our university. So, I'm using ...
3
votes
1answer
32 views

Modifying colors of beamer theme Madrid: Title, footer author box and Dates and Slides

I writing a latex presentation using madrid and beaver theme. I want to change the color of the Title of the Presentation, Background box of the institute, font color of footer title, page number and ...