Questions tagged [color]

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

Filter by
Sorted by
Tagged with
0 votes
1 answer
49 views

Problem with RawSienna

With the following style file I get Package xcolor Error: Undefined color RawSienna'.` \NeedsTeXFormat{LaTeX2e} \ProvidesPackage{test-xcolor-galex}[2022/10/03 Andromeda Galaxy Package] %% Deferred ...
konmi's user avatar
  • 337
0 votes
1 answer
52 views

definecolors option clash for package xcolor

Have included the following in my style file \NeedsTeXFormat{LaTeX2e} \ProvidesPackage{andromeda}[2022/10/03 Andromeda Package] \newif\ifCountryMaps \CountryMapsfalse \newif\ifScienTech \...
konmi's user avatar
  • 337
0 votes
1 answer
83 views

Changing Only Color of Equations and Not Tables

I change the color of the equations using the following: \documentclass{article} \usepackage{xcolor} \everymath=\expandafter{\the\everymath\color{blue}} \AtBeginEnvironment{equation}{\color{blue}} \...
N. Osil's user avatar
  • 127
1 vote
1 answer
47 views

Change beamer logo use based on foreground color

I'm trying to do a local beamer style, which puts the logo in the bottom corner. The simple case is easy: \newcommand{\wmflogo}{ \begin{tikzpicture}[remember picture,overlay] \node [xshift=0.05\...
mcv21's user avatar
  • 33
0 votes
1 answer
60 views

TeXworks custom dark theme - table of contents entries that are not chapter are in black when everything else is white

I have been developing my own custom dark theme for TeXworks that I am currently using but just recently noticed a somewhat bug with the TOC. The TOC entries for the chapter are correctly being ...
JamesT's user avatar
  • 2,454
1 vote
1 answer
69 views

How can I change a table from all black (data, headers, lines) to all white when changing the paper colour?

I have created a dark mode TeXworks setup that I really like (and will post as an answer to How can I set a dark theme in TeXworks? when this issue is resolved) but the white preview page is too ...
JamesT's user avatar
  • 2,454
0 votes
1 answer
26 views

Coloured theorem with optional argument

Have written the command teora that prints with the colour defined in \pigm. Could \teora be changed to accept the colour as an optional parameter? \newtheorem already accepts an optional theorem ...
konmi's user avatar
  • 337
2 votes
1 answer
76 views

Change Color of Lines connecting data points in PGFPlots (LaTeX)

I have a basic line pgfplot with number of data points. I would like to change the color of line connecting this data points, from Red to Green for last three points. Here is the code. \documentclass{...
NotepadPlusPlus PRO's user avatar
1 vote
2 answers
73 views

How can I have white column line in a table?

In a table, I have rows represented as gray and white colors using \rowcolors{3}{}{gray!20}. Here, I want to split columns using white color line instead of black. The way I created column lines using ...
alper's user avatar
  • 1,234
10 votes
5 answers
2k views

Wordle-like colored letter boxes in latex

I want to create some letters boxed as in the Wordle game: But so far i have not found a tool that allows me to do it. I want to embed them both in the title and in the document. How would you make ...
valerio_new's user avatar
1 vote
1 answer
40 views

fill color into shapes when using a foreach

I am trying to add different color to the circles in my diagram while using a foreach to embed the circles within each other. \documentclass[tikz,border=3.14mm]{standalone} \usepackage[dvipsnames]{...
Paul A's user avatar
  • 679
3 votes
1 answer
80 views

Witharrows does not respect color

I am using witharrows package and it seems like it does not respect surrounding color. A sample code like this \documentclass{article} \usepackage{witharrows} \begin{document} {\color{red} $\...
dragon_and_dracula's user avatar
-1 votes
3 answers
68 views

How can we best combine the two commands `\text` and `\color` in order to produce colored-text?

The following does what I would expect: \color{maroon}{these words are maroon} The output looks like: However, when I use the \text command, the text is not colored maroon. \color{maroon}\text{these ...
Samuel Muldoon's user avatar
1 vote
0 answers
49 views

Add text color to "proof" environment without adding extra vertical space

Consider the following MWE, in which I'm trying to change the text color of the environment proof via the hook env/proof/begin. However, the use of \color would give extra vertical space when ...
Jinwen's user avatar
  • 7,462
0 votes
0 answers
60 views

Change colour of \ac{} in text?

I am trying to change the colour of the inline citations of the acronyms package, but cant figure it out. I want to have everything in the main text that's in \ac{} to be a different colour.
Moiraghan's user avatar
2 votes
1 answer
96 views

xcolor specification

I want to define colours with rgb palette. But I have found information like Tiger Orange Hex #F96815 RGB 249, 104, 21 CMYK 0, 58, 92, 2 When defining the colour, do the values have to be between 0....
konmi's user avatar
  • 337
0 votes
0 answers
63 views

Using style file with xcolor

I want to understand what happens when I am using a document with a style file that uses xcolor. Suppose my style file is named galex.sty and I have \usepackage[dvipsnames*,svgnames,x11names]{xcolor} \...
konmi's user avatar
  • 337
0 votes
2 answers
120 views

Option selecting named colours provided by the xcolor package

How can I include an option in a latex document that selects between \usepackage{xcolor} \usepackage[dvipsnames]{xcolor} \usepackage[svgnames]{xcolor} \usepackage[x11names]{xcolor} Perhaps I can put ...
konmi's user avatar
  • 337
0 votes
1 answer
482 views

Colour packages beyond xcolor

Am using Texlive Version 2017.20180305-1 on Ubuntu 18.04 LTS (Bionic Beaver). I want to use more colours than the 19 named RGB colours from \usepackage{xcolor}. What can I use? I have seen mentions ...
konmi's user avatar
  • 337
3 votes
1 answer
56 views

Using the `explain` command of 657851 for text AND equations

This is a followup question to yesterdays question here. I want to be able to generate my document in two different levels of detail. (When draft is not set): normal version (When draft option is ...
Franz's user avatar
  • 153
2 votes
1 answer
133 views

color change over multiple lines of aligned equation

I want to be able to generate my document in two different levels of detail. (When draft is not set): normal version (When draft option is used): more detailed version. Some calculations include ...
Franz's user avatar
  • 153
4 votes
2 answers
567 views

Display colors and their names

I want to create a page where LaTeX colors are aligned with their names. Somewhat analog to the Overleaf color manual page Specifically: (1) I want to create a thin black border for each color field, ...
alex's user avatar
  • 995
0 votes
1 answer
30 views

Set default document text color except for sections

I want to set a default text colour for the whole document, but I don't want to colour the section headings. In my case I want all of the default text body with paragraphs etc. to be a very dark shade ...
Nermin's user avatar
  • 211
1 vote
1 answer
19 views

Why do I get a sort of strip passing through the frame title when using the dvipsnames option of xcolor in beamer? [duplicate]

Consider the following minimal example: \documentclass[9pt, xcolor=dvipsnames]{beamer} \mode<presentation> { \usetheme{Frankfurt} \usecolortheme[named=OliveGreen]{structure} } \begin{...
Staufenberg's user avatar
  • 1,556
2 votes
1 answer
72 views

Changing the colour of a result in a subtraction sum

I am trying to produce something like this pic, were the crossed out parts in the answer could be coloured white or not shown, to try and show the steps involved in the subtraction method. \...
Paul A's user avatar
  • 679
3 votes
0 answers
70 views

When to use palets over color definitions in ConTeXt?

In the Coloring ConTeXt manual, there is a small section about color palets. When looking at it one can reads Color palets are handy when you want to use a set of (named) colors but also want to ...
pid's user avatar
  • 1,215
0 votes
0 answers
111 views

Output text not coloured when using xcolour package (IguanaTEX)

I'm using the latest version of IguanaTEX in MS PPT. Everything ought to be set up correctly (in 'Main Settings' all paths aside from 'LaTeXiT source extraction executable' and 'TeX2imgc' are correct (...
cringle's user avatar
2 votes
1 answer
435 views

Why is the RGB of picked pink ffbfbf and not ffc0cb?

Picking the RGB values with GIMP from p. 18 of xcolor.pdf yields ffbfbf: You get the same ffbfbf if you run, say, \documentclass{article} \usepackage{xcolor}% even if you use the options [x11names] ...
user avatar
0 votes
2 answers
83 views

Colouring theorem environment

I would like to change the theorem environment so that the title and name are coloured. What can I do? Have checked ways to do this (e.g. with \newtheoremstyle) but have not worked well yet. I do ...
konmi's user avatar
  • 337
1 vote
1 answer
47 views

Colouring sectioning titles

What is a good way to colour section commands blue? This is what I have done \newcommand{\sec}[1]{\section{\textcolor{blue}{#1}}} \newcommand{\subsec}[1]{\subsection{\textcolor{blue}{#1}}} \...
Randy's user avatar
  • 71
1 vote
0 answers
51 views

Why merely including the package color changes the page size, and how to determine whether the package color is really used?

Let's consider a system where A4 is the default paper size and the input \documentclass{article} \usepackage{color}% take it or leave it \begin{document} test \end{document} With \usepackage{color}, ...
user avatar
0 votes
0 answers
65 views

How to put diffent color in some cells in this matrix using Tikz?

I got this matrix bellow : \begin{tikzpicture} \matrix [nodes={fill=red!20,minimum size=15mm}] { \node {27}; & \node{12}; & \node {12}; & \node {16}; & \node{24}; & \...
GeissonB's user avatar
1 vote
0 answers
29 views

how to do a 2/2 spotcolor in CMYK

My sadistic offset printer has a reasonable price for a 2/2 spot color offset print, but not for full 4/4 color cmyk. moreover, my 700-page book includegraphics-es many images and graphs created by R ...
ivo Welch's user avatar
  • 3,595
3 votes
2 answers
463 views

Change color for each item in itemize

Consider the following simple code: \documentclass[11pt]{article} \begin{document} \begin{itemize} \item plain text \item I want this to be blue \item another text \end{itemize} \...
eigenvalue's user avatar
3 votes
1 answer
63 views

Different color inside the proof environment, only when I want

There is the proof environment in the amsmath package. If I want to globally set the text color inside the proof environment, I can use the command \AtBeginEnvironment{proof}{\color{blue}} as ...
eigenvalue's user avatar
0 votes
2 answers
42 views

tocloft's part font color clashes with hyperref's linkcolor

% tocloft's part font color clashes with hyperref's linkcolor \documentclass[a4paper,14pt]{book} \usepackage[]{tocloft} \usepackage{xcolor} % I'd like to change the tocloft's cftpartfont color ...
Lars Malmsteen's user avatar
0 votes
0 answers
22 views

Listings with colors, realtive width and no line break

I am looking for a straightforward way to get a listing environment that follows this specifications: Specific colors can be set on specific parts of the listing. No linebreaks, including for colored ...
Welgriv's user avatar
  • 275
2 votes
1 answer
207 views

Change color of forest nodes

I'm trying to change the color of certain blocks to green and some to red in a forest graph in LaTeX using Overleaf. I'm not getting anywhere though. My current code is: \usepackage{tikz} \...
Danny's user avatar
  • 21
0 votes
0 answers
52 views

Unwanted blank page added to document when using tabularray and xcolor

This is XeTeX, Version 3.141592653-2.6-0.999994 (TeX Live 2022) (preloaded format=xelatex) LaTeX2e <2022-06-01> patch level 5 L3 programming layer <2022-08-23> TeX Live environment ...
user2676699's user avatar
0 votes
0 answers
33 views

How to simulate highlighter pen? [duplicate]

What is the best way to add a variable random height semi transparent line that overlays text in Latex? Is there a way to make its baseline variable random too?
Standard Template Construct's user avatar
3 votes
3 answers
92 views

Why is the current color not applied to description items?

I am trying to make all itemization symbols and description items in the current text color. While this works for itemize and enumerate, it does not work for description. What am I missing here? \...
TobiBS's user avatar
  • 5,002
1 vote
1 answer
31 views

Underscore in listing color

How to make this code works: \documentclass[dvipsnames]{report} \usepackage[utf8]{inputenc} \usepackage{xspace} \usepackage{xcolor} \usepackage{listings} \lstdefinestyle{s}{escapechar={|}} \begin{...
Welgriv's user avatar
  • 275
2 votes
1 answer
103 views

\subsection accepts \colorbox in argument but \section does not

The following mwe which includes \subsection{\colorbox{green}{Subtitle}} does not work when %\section{\colorbox{green}{Title}} is uncommented. \documentclass[11pt]{book} \usepackage[...
schremmer's user avatar
  • 2,107
5 votes
1 answer
103 views

Tweaking an Initfamily Do-It-Yourself Colored Lettrine

The following code mimics Steven B. Segletes' answer to the question posed in Adding a Letter to an Image in a Do-It-Yourself Lettrine: \documentclass[12pt]{book} \usepackage{yfonts,xcolor,scalerel,...
mlchristians's user avatar
  • 7,522
0 votes
1 answer
98 views

redefine theorem environment for background shading

I have a pretty long document with lots of theorems. I want to change the styling so that each theorem has a lightgray background. I can define a new environment thm and then change all theorem to thm....
Thomas's user avatar
  • 2,787
3 votes
2 answers
124 views

Cell coloring does not work properly in tables

I have a table that I would like to color/highlight its rows. I am using \cellcolor function but have no idea why it is not working properly. Also, please help me to locate "Normal" and &...
mdslt's user avatar
  • 501
1 vote
1 answer
59 views

Listings package: Color code from certain character until next whitespace

I‘m using the listings package to style my code snippets in my current project, and I’m running into a problem I haven’t been able to wrap my head around. The programming language I’m using is SCL (...
Jakob Dannel's user avatar
0 votes
1 answer
97 views

Beamer block cream color

reading a presentation I found a block with this color combination (image attached) Can someone guide me on how to get a block with these colors?
Luis Alexandher's user avatar
3 votes
2 answers
61 views

Highlight the values with color inside multi columns table

I am trying to highlight the values inside the multi-column table, but I am not getting the exact result. So my table looks like this: code \pdfoutput=1 \documentclass[11pt]{article} \usepackage[...
Aaditya Ura's user avatar
1 vote
1 answer
52 views

how to make all lines black in pgfplots

\documentclass{article} % lualatex \usepackage{tikz,pgfplots} \pgfplotsset{compat=newest} \begin{document} \begin{tikzpicture} \begin{axis}[ view={0}{90}, samples=40, ...
Firestar-Reimu's user avatar

1 2 3
4
5
83