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

learn more… | top users | synonyms (1)

2
votes
1answer
37 views

Overwrite point meta value after explicit definition

I want do some surface/mesh plots in pgfplots with a kind of logarithmic axis for positive and negative values. This is sometimes called a symlog colormap transformation, i.e. a logarithmic axis for ...
0
votes
0answers
12 views

How to read a beamer color from the theme? [duplicate]

I want to put some tikz drawings into my beamer slides. I would like to colour the things in the tikz drawing the same as other things in the slide. For example, I want to fill in a box with the ...
1
vote
1answer
49 views

Beamer - numerating theorems and color of block

Why won't it numerate my newly defined theorem block. And can i change the color of the block? \documentclass{beamer} \newtheorem{teorem}{Teorem}[section] \newtheorem{definicija}{Definicija}[section] ...
0
votes
1answer
46 views

Specify Color for autoref Without Affecting Other Document Links

I am creating a document to be used by people not familiar with TeX. I am using the autoref command throughout the document to refer to tables, figures, etc. I would like to clearly signal to my ...
0
votes
0answers
29 views

Change font background color in custom url command

I want to change the background color of a custom url command. I did not find how to. For now I use : \DeclareUrlCommand\myCustomUrl{\def\UrlFont{\ttfamily\color{green}}} But this only change the ...
4
votes
1answer
56 views

Choose color based on value for Kpi reporting

I trying to make a report containing colored spheres that should be wrapped in a command and updated dynamically. I have defined af colored sphere that receives a color, a value and a text. The color ...
1
vote
1answer
34 views

change the color of the footer in the first page of the fancy

I am using this to change the color of the headers and footer of the chapter pages in the fancy page style, which I got from another post. \usepackage{etoolbox} \makeatletter \...
17
votes
3answers
575 views

Why does xcolor lighten a color when mixed

I'm trying to create a smooth gradient between cyan and blue connecting two shapes, one drawn in cyan and one in blue. For that I use a simple mix of the two colors in a \foreach loop. However, in ...
1
vote
0answers
17 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 ...
0
votes
2answers
81 views

Customized table

How can I create a table like the following? \begin {table}[H] \caption {Table Title} \label{tab:title} \begin{center} \begin{tabular}{|c|c|c|c|} \hline \multirow{2}{*}{A} & \multicolumn{3}{c|}{...
2
votes
1answer
69 views

Transparent table cell color

I have a simple table \documentclass{article} \usepackage[table]{xcolor} \usepackage{adjustbox} \usepackage{booktabs} \begin{document} \begin{table} \rowcolors{2}{}{gray!10} \centering \begin{...
1
vote
1answer
53 views

Asymptote (XeLaTeX): Use custom-defined colors/Call drawing functions from external file

I'm quite new to Asymptote, although it's great to manipulate vector graphics within LaTeX. Specifically, I'm using XeLaTeX. What I'm trying to do is to change the color of a vector graphic to ...
3
votes
0answers
25 views

How to change this to color map? [duplicate]

Sorry if this question is too basic. I have the following, \documentclass[tikz]{standalone} \usepackage{pgfplots, filecontents} \begin{filecontents*}{h.dat} 0 0 0.0659197583889 1 0 0....
1
vote
1answer
49 views

LyX: How to change color of an individual Shaded Background Box?

I can change it globally by going to Document -> Settings -> Colors: Shaded boxes. However, what if I want different boxes to have different colors? For example, in my case, by default I set the ...
3
votes
1answer
36 views

Command for both bold and colored text

Every time I want a bold text, I want it colored blue. Currently, I am using: \textcolor{blue}{\textbf{some bold and colored text}} To save time, I can define a command to do both at once. How can ...
1
vote
1answer
74 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 ...
3
votes
1answer
86 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
27 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
95 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
35 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} \newcommand{\colsubsection}[1]{\subsection{\hspace{-...
1
vote
1answer
18 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... ...
2
votes
1answer
18 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
26 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
48 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
64 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 Mico'...
0
votes
0answers
46 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
33 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 ...
2
votes
1answer
19 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
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 ...
4
votes
1answer
66 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
126 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 ...
2
votes
0answers
35 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 ...
4
votes
2answers
192 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: ...
1
vote
0answers
22 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, \\ & ...
0
votes
1answer
32 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 pre-...
3
votes
0answers
31 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, ...
2
votes
0answers
41 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} \usecolortheme[RGB={0,0,128}]{...
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
29 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}} \\ & {\...
2
votes
1answer
37 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
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
35 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 ...
2
votes
0answers
46 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
120 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 of\\[2ex]{\...
0
votes
1answer
50 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 ...
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 ...
3
votes
1answer
52 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 beige....
4
votes
1answer
101 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, ...
2
votes
1answer
44 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: \usepackage{...