Questions tagged [color]

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

Filter by
Sorted by
Tagged with
1
vote
1answer
24 views

Colored cell in table isn't working

I'm using the following documentclass and preamble \documentclass[runningheads]{llncs} % \usepackage[table,xcdraw]{xcolor} \usepackage{graphicx} \usepackage{svg} \usepackage{subfig} I'm using this ...
0
votes
1answer
40 views

Listings : avoid white line glitches in background color?

With the following code I get some glitches in the background color of my listing environment: How can I avoid these glitches? Aside from this issue, the margin top and bottom is different. The code ...
1
vote
0answers
38 views

TikZ - Change the color of a node “after” its declaration

Is it possible to "change" the color of a node after its declaration ? Here is an example using forest even if my question is about TikZ. \documentclass{article} \usepackage{forest} \...
0
votes
0answers
21 views

How to define math enviroment $[math things]$ to be always colored some way? [duplicate]

So, I was doing some math texting and I am one of those people that like to use color on texts; So I was wondering if there is a way to make latex always color the in between $$ text to be of a ...
1
vote
2answers
24 views

I can't change \hhline color with \arrayrulecolor{}

I have created a table with tabular and cellcolor, and you know what hapends: the cell color overlap the border. I have found that this is often solved with hhline. In order to change the color in ...
4
votes
1answer
83 views

Why the combination of yellow and blue is gray in TikZ?

In page 1003/1318 TikZ manual there is an example to generate the array of colorful balls as below: The ball color in (\x=3, \y=2) is made by combining 50% yellow and 50% blue according to the 2 ...
4
votes
1answer
36 views

Color an RTL language in babel

It seems I cannot color an RTL language in babel. The (xelatex) code below colors the first line in black, not red: \documentclass{article} \setlength{\parindent}{0pt} \usepackage{xcolor} \usepackage[...
0
votes
1answer
20 views

pgfplotstable: Read out and define colors from table

In a table, the 3rd column indicates a color. \pgfplotstableread[col sep=comma, header=false]{ a, 1, blue b, 2, cyan c, 3, d, 3, e, 5, red f, 6, g, 7, h, 8, i, 9, j, 10, k, 11, yellow }\mydata ...
1
vote
0answers
15 views

Why is `\hiderowcolorstest` and `\showrowcolorstest` not defined with `xcolor` loaded?

I try to compile this simple MWE: \documentclass{article} \usepackage[table]{xcolor} \usepackage{array} \begin{document} \rowcolors[\hline]{3}{green!25}{yellow!50} \arrayrulecolor{red!75!gray} \...
2
votes
2answers
49 views

Genealogytree: “black” edges are not black

When using genealogytree I can change the color of the edges between nodes by passing a color name to foreground as in the following: \gtrset{level size=8mm,node size=20mm} \gtrset{edges={foreground=...
0
votes
0answers
30 views

Yellow colored LaTeX boxes [duplicate]

Can someone tell me how to replicate this style of boxes in LaTeX, that is, to make a box of that color and style? I do not want the Remark command too. I just want a code that makes a box of that ...
2
votes
3answers
71 views

Color cell incomplete in coloured columns LaTeX and hhline details trouble

I have a problem with my table in LaTeX. A few of cells doesn't fill well. I used the package "makecell" to do multirow and define new types of columns instead colortbl package (because I ...
0
votes
1answer
35 views

Scatter plot: Legend and line color don't match

I've defined the colors of the scatter plot based on the value of a data column. In addition to the values themselves, I'm plotting the mean, which has its separate column. However, the mean plot and ...
0
votes
1answer
23 views

Assign a colour to a \lineload

I need to illustrate three different load situations. I need a load to act on a line in three different ways: equally, with peak on the uppermost part and with peak on the lowermost part. For this ...
2
votes
1answer
20 views

Xcolor for verbatim in Latex

I am writing an informative text and I need to use verbatim, below I have a code that is working in normal texts. \colorbox{gray!10}{ \begin{minipage}{0.9\linewidth} TEXT ...
1
vote
1answer
23 views

Changing background color of glossaries header row

In the document I want to apply this to, I have a long glossary, formatted with the longheaderborder style. Rows of all tables in the document have alternating background colors. I style the top row/...
2
votes
1answer
20 views

pgfgantt xcolor Error undefined color

\documentclass[border=10pt]{article} \usepackage{pgfgantt} \ganttset{group/.append style={orange}, milestone/.append style={red}, progress label node anchor/.append style={text=red}} \begin{document}...
0
votes
0answers
78 views

Highlight numbers in code with listings

I'm currently trying to define my own code style with the Listings package for LaTeX. Among other things this style should display numbers in a separate color. However, if the numbers are within a ...
1
vote
1answer
64 views

Coloring cartesian axes differently [closed]

Starting from this question, How to can I make a code of tikzpicture to plot the graph of $\sin x$ as shown in figure?, and considering the same image, it is possible to see that there are different ...
1
vote
2answers
44 views

Blue color (*) asterisk in Table

I'm trying to find a way to include Blue color (*) asterisk in my Table Here is my code : \documentclass{article} \usepackage[T1]{fontenc} \usepackage[margin=2.5cm,a4paper]{geometry} % set page ...
1
vote
1answer
49 views

How to produce this example environment?

Please, I want to produce this environment of example with the same colors Any ideas please? Thanks.
2
votes
1answer
16 views

Align text with labels, both in different minipages

I am trying to put everything lined up correctly but I can not figure how to center the right text to the left labels I also want the exactly the same interline spacing which I can't get as you can ...
1
vote
1answer
18 views

How to change the color of reference numbers in my dissertation?

The color of numbers for references is green . I need to change it to black. Any help is massively appreciated .
1
vote
2answers
31 views

color overhang with rowcolors in a table

I load xcolor with option table, to get alternating row colors However, I can't remove the color padding before the text of the first column (when using @{}. In xcolor documentation, I see options for ...
0
votes
0answers
10 views

Highlighting part of a XML code inside the minted environment in LaTeX

I want to highlight part of a xml code in LaTeX; however, it doesn't work. This is my code: \documentclass{article} \usepackage[utf8]{inputenc} \usepackage[english]{babel} \usepackage{listings} \...
1
vote
1answer
32 views

How to set left margin background to be gray?

In LaTeX, how can I set a background color of the paper such that it has left margin as gray and the center and right part of the paper has background white?
1
vote
1answer
32 views

Beamer - Can't change slide background color

It seems like I can't change the background color, here is my header and my tests (none changes the background color of the slide, I manage only to change the color of the text): \documentclass[...
0
votes
0answers
40 views

“Incompatible color definition” warning in xcolor package using IEEEtrans template

I am writing an article for IEEE Access using the IEEEtrans.cls and ieeeaccess.cls templates. My problem is, that these templates are using the color package to define the headers and I receive a ...
0
votes
0answers
27 views

white undefined?

I'm trying to change my compilation chain from lualatex + dvips + ps2pdf to lualatex in pdf mode. Some things that used to work don't anymore. For example, this code : %-*- coding: utf-8 -*- \...
1
vote
1answer
16 views

How to modify color in Hyperref package in jcappub package?

How to change color in `hyperref package while using jcappub environment? I tried in the following way - \usepackage[colorlinks = true, linkcolor = red, urlcolor = magenta, ...
2
votes
1answer
29 views

Change the color of an item

Is there a way to change the color of only one item in a list? For example: \usepackage{xcolor} \usepackage{enumitem} \begin{document} \begin{enumerate}[label=\alph*)] \item Answer a \item Answer b \...
3
votes
0answers
44 views

including logos with different colors

I would like to set up a package with some logos for titles and fancy headers and the like. The key problem that I have at this point is that it should be possible to get the logo in different colors. ...
1
vote
2answers
95 views

How not to overlap solid colors in region with inequalities using `tikzpicture` environment?

Please consider this MWE: \documentclass{article} \usepackage[english]{babel} \usepackage[utf8]{inputenc} \usepackage[T1]{fontenc} \usepackage{pgfplots} \usetikzlibrary{arrows,overlay-beamer-styles,...
1
vote
1answer
24 views

Chapter and section number color in scrbook header

How can I change the color of the chapter / section numbers in the running title of an scrbook? MWE: \documentclass[headinclude=true]{scrbook} \usepackage{lipsum} \usepackage{xcolor} \renewcommand*...
0
votes
0answers
11 views

Hyperrefs colors and settings deactivated in some sections inside LateX template [duplicate]

I am using the hyperrefs LateX package inside a template defined by a .cls file. On some sections it seems like the default settings of hyperrefs are overwritten (modifying them locally using \href[]{}...
1
vote
0answers
77 views

colorspace with beamer and tikz having issues

This is a follow-up to colorspace won't change colors in beamer where I'm getting issues with the colorspace package in beamer. Here's a MWE: \documentclass{beamer} \RequirePackage[scale=1.24]{...
1
vote
1answer
35 views

colorspace won't change colors in beamer

So I'm trying to do a spotcolor define in a beamer document and for some reason I'm getting a problem. Whenever I try and do more than one color, only one color shows up. For example the following MWE:...
0
votes
0answers
16 views

color with pdfLaTeX and auto-pst-pdf

a strange problem in using color in pstricks with auto-pst-pdf, when I use latex +dvips +ps2pdf, the two color name systems (svgnames and dvipsnames) worked well simultaneously, while with pdflatex, ...
3
votes
1answer
71 views

Create Coloured Electron Pairs in chemfig

I'm trying to create coloured electron pairs similiar to the picture below. However, when I try to recreate this example, I get black dots surrounded by red for the electron pairs. \documentclass[...
2
votes
1answer
53 views

xcolor command `\color` stops working in xelatex [duplicate]

Test program: \documentclass{article} \usepackage{xcolor} \begin{document} \color{red}1 \color{blue}0 ... many lines ... \color{red}1 \color{blue}0 \end{document} Test result: Only first few lines ...
1
vote
1answer
52 views

xcolor (TikZ): How to create a function 'ifcolorexists'

I have defined eight colors (stepcolor0,...,stepcolor7). Now I could have a list with more than 8 color-bearers. So I could need something like a function "\ifcolorexists{stepcolor22}{...
1
vote
1answer
55 views

Colored Hexdump [duplicate]

I want to print a hexdump in my document, where i color some specific bytes. I tried working with escapeinside then doing textcolor in my lstlisting but this changes the format of the text. The bytes ...
1
vote
2answers
29 views

Where are the colors recognized by hyperref package by default defined?

I can use code like this in my preamble without importing the xcolor package: \usepackage[colorlinks=true,linkcolor=magenta,urlcolor=blue]{hyperref} I want to know where these colors magenta and blue ...
0
votes
0answers
24 views

Toggle minted highlighting using OCG layers

I have a document which contains a minted listing spanning multiple pages. I would like the ability to toggle the highlighting using OCG layers. More specifically, I'd like the listing to have black ...
3
votes
3answers
62 views

LaTex, drawing dots in grid

I am very new to LaTex, I coded a grid but need to add plots or dots to them, but not sure how to add them. Here is the simple code I have: \documentclass{article} \usepackage{tikz} \begin{document} \...
3
votes
1answer
39 views

Change header1 text color in CambridgeUS beamer style

I'm using CambridgeUS beamer style for my presentation. As shown in the image, in each slide, section name is shown in the top bar, but the text color is black, which makes it difficult to see. I want ...
6
votes
3answers
786 views

Math mode does not recognize color

I change color globally in math mode, but if I try to change the color locally only to one symbol or letter, it does'n have effect. \documentclass[11pt]{article} \usepackage{xcolor} \usepackage{...
0
votes
0answers
24 views

wlanguage code source and color in a report with listing

how to put wlanguage code source in a report i use this code : \documentclass[12pt,a4paper]{report} % Pour la gestion du français et des accents % \usepackage[english,french]{babel} \usepackage[utf8]{...
1
vote
1answer
41 views

How to change a font and color of a letter in math mode in all document? [closed]

I try to change the font and color of x,y and z in math mode \setmathfont[range={"78,"79,"7A},Color=red]{TeX Gyre Pagella Math} but it doesn't work! for example if I try \setmathfont[...
10
votes
2answers
202 views

\color{.} \] \par leads to extra space

The following MWE shows some extra space (roughly an empty line). \documentclass{article} \usepackage{color} \begin{document} \[a^2+b^2<c^2\] Remark under displaymath at its usual ...

1
2 3 4 5
67