Questions tagged [color]
{color} is about using color in (La)TeX documents. Popular packages are color and xcolor.
4,146
questions
2
votes
1
answer
26
views
Exam Class + \xcolor + \tikz conflict: incompatible color def
Code is kicking out this warning:
Package xcolor Warning: Incompatible color definition on input line 97.
Colors are being used in 3 ways in this maths worksheet:
draw yellow highlighted box to ...
2
votes
1
answer
11k
views
How to draw a simple table with colored cells in Beamer
I am trying to draw a simple "array" data structure in Beamer using tabular. I would like to color some of the cells blue. Here is my M(N)WE.
\documentclass{beamer}
\usepackage[table]{xcolor}
\begin{...
4
votes
1
answer
3k
views
Color issues with the ieeecolor document class and tikz
I have been encountering a very strange behaviour with the ieeecolor.cls document class! Compiling a latex document using this class with the tikz package triggers some color warnings: Warning ...
0
votes
0
answers
22
views
Latex IEEE format color problem
Latex IEEE format color problem
As you can see the text after the figure until the end of the paper became light blue. But, it supposed to be black. I don't know what happened!
I utilized both 'color'...
1
vote
2
answers
560
views
punctuation color in references
I have used the following command to change the color of references in the text to blue:
\hypersetup{ colorlinks,
pdfborder=0 0 0,
linkcolor=blue,
citecolor=blue}
however; the parentheses, ...
-2
votes
1
answer
62
views
Mahogany and PineGreen in Luatex? [closed]
I am changing to Luatex, and lost access to Mahogany and Pinegreen.
How may these colors be defined so that I can use them?
27
votes
2
answers
5k
views
How to color just the wave produced by the ulem package
I am using \uwave{Some text here} to put a wave like emphasis under the text. Is it possible to change the color of only the wave and leave the text black?
-1
votes
0
answers
32
views
How can get background color in page header? [duplicate]
\documentclass[a4paper,11pt]{article}
\usepackage[bottom=0.8in,top=0.8in, left=0.8in,right=0.8in]{geometry}
\usepackage{fancyhdr}\pagestyle{fancy}
\fancyhead{}
\fancyhead[R]{Resume}
\fancyhead[L]{...
0
votes
0
answers
38
views
Tikz button CLICK color and CLICK shape in Adobe Reader
I would like to control the click color and click shape of the following tikz button with rounded corners that I created. When I download the PDF (generated by pdflatex) into Adobe Reader and click on ...
-1
votes
0
answers
27
views
All the dashes in provided template are displayed grey
Can anyone please help me investigate why all dashes (--) in this template are displayed grey? There were some suggestions by ChatGPT that I investigated, but apart them I cannot find why (the ...
0
votes
0
answers
23
views
use elsevier template, in cas-sc cls, when use tikz to draw some picture, why default color isn't black? How to change it or setup?
\documentclass[a4paper,fleqn]{cas-sc}
\usepackage{tikz}
\usetikzlibrary{positioning, shapes.geometric}
\usetikzlibrary{arrows}
\tikzset{label/.style = {color = white, text = black} }
\tikzset{ ...
11
votes
2
answers
7k
views
Hyperref footnotes and section ref colors
I was using the hyperref package to link all the references within the LaTeX file, however I wanted to personalize a bit the default colors, so my preamble looks like this
\documentclass[11pt]{article}...
1
vote
1
answer
34
views
thmtools drops font coloring at page break when paired with mdframed
Right now, I use thmtools with mdframed to create theorem environments with lines down the side. The difficulty is that I also want to be able to change the color of the text in these theorem ...
8
votes
1
answer
501
views
One tcolorbox with alternative color in different lines
This is what I want to get
This is what I already have
\documentclass{article}
\usepackage{geometry}
\geometry{left=2.5cm,right=2cm,top=2.5cm,bottom=2.5cm}
\usepackage{fontawesome}
\usepackage{...
0
votes
1
answer
34
views
Set background color for scrbook \maketitle page
I am using the scrbook document class, and I just want to set the background color for the standard title page created through \maketitle.
I already tried using the pagecolor package [1], but it shows ...
1
vote
1
answer
32
views
Lonely section headline at bottom of page
Dear LaTeX enthusiasts,
I have been trying to deal with a problem for days and I fear, it will still take me days if not months to find an answer myself -- if I ever find one at all. So I would very ...
0
votes
1
answer
23
views
Paracol background color not extending all the way to the edges of the page
I'm exploring the possibilities offered by paracol to typeset multi-column documents. This is what I have come up with so far:
\documentclass[a4paper]{article}
\usepackage[top=1cm, bottom=1cm, left=...
0
votes
1
answer
62
views
`iau.cls` will not compile with a basic document
I know there are some posts about this but none of them could solve my problem, which I think comes from the cls fils I am using. A very basic example to reproduce the error is:
\documentclass{iau}
\...
0
votes
0
answers
186
views
Locking Fields in Digital Signature 2
I am trying to use eforms to create a pdf where digital signature can be applied. Each document may have more than one digital signature field, i.e so the document can be passed from person to person. ...
2
votes
1
answer
47
views
Conflict between [table]{xcolor} and {align} inside table
I am trying to put some equations inside an align environment in a cell inside a table. However, when I activate the \usepackage[table]{xcolor} option, my code inmediately crashes.
EDIT: I modified ...
1
vote
1
answer
37
views
tex4ebook: How to get colored text in enumerations
I need a colored text in an enumeration list. While the colors work fine outside enumerations, they disappear within enumerations (when compiling a pdf instead of an epub, the colors are there). Is ...
7
votes
1
answer
105
views
Symmetric blend modes
I draw a lot of images where semi-transparent regions of different colors mix. Now, the color of the intersection obviously depends on the order in which the regions are drawn (at least in the normal ...
4
votes
1
answer
141
views
Call alternating row colors from within the table?
Is there a package or option that starts alternating row colors from within a table, so that no matter how many manually-colored rows are inserted, the alternating can be started again with the same ...
0
votes
1
answer
490
views
ieeeaccess: "Package xcolor Warning: Incompatible color definition" when TikZ package is used
I am trying to prepare a paper for IEEE Open Access that uses \documentclass{ieeeccess} ; its template (https://ieeeaccess.ieee.org/wp-content/uploads/2022/01/LaTeX.zip).
When I add use tikz package, ...
1
vote
1
answer
2k
views
How to display colors of Octave code in latex with listings?
In my paper I include Octave code with
\usepackage{listings}
No I want that the text and numbers be written in the same colors as the are represented with in Octave. Everything is fine, except that ...
1
vote
1
answer
28
views
How to highlight texts without changing the column margin, IEEE format?
I am trying to present my reviewer response with highlighted texts. I am using the soul package in IEEE double-column format. The issue is, the texts go beyond the column margin. Is there anyone who ...
1
vote
1
answer
48
views
Coloring caption label in ConTeXt
I am trying to color the caption label and their numbering (e.g., Figure 2 and Table 1, etc.). As a side note, I also use other names for such labels (Gambar 2 instead of Figure 2, for example).
I ...
0
votes
1
answer
147
views
Error when using defining colour
Currently I am using beamer slides how ever I found the template where I am understanding how we can write fonts with different colour but to define colour I have used the codes like this
\newcommand\...
1
vote
1
answer
141
views
Shading only the background of title block in the title page with a particular beamer theme
Is it possible to only shade the background of the title box in the title page in a theme like Madrid?
I tried using
\setbeamercolor{title}{use=structure,fg=white,bg=blue}
but that only allows me to ...
2
votes
1
answer
70
views
Are background color and border color supported for pdf forms?
I'm playing a bit with the new l3pdffield-testphase.
\RequirePackage{pdfmanagement-testphase}
\DocumentMetadata{uncompress}
\documentclass[varwidth, margin = 5pt]{standalone}
\usepackage{l3pdffield-...
0
votes
1
answer
76
views
IEEE access template tcolorbox problem
I am trying to highlight some sections in an IEEE access template. So I added packages:
\usepackage[most]{tcolorbox}
\newtcolorbox{highlighted}{colback=yellow,coltext=black,breakable}
when I have ...
0
votes
0
answers
22
views
Undefined control sequence error with arabtex package
I am trying to introduce the arabtex package into my document with the following three lines:
\usepackage{arabtex}
\usepackage{utf8}
\setcode{utf8}
However, including these lines in the preamble ...
0
votes
0
answers
18
views
Exam class & solution box: incompatible color warning when printing answers
The following code uses printanswers and %printanswers (commented out) commands (h/t @simondispa)
The code compiles without error using %printanswers. But when I printanswers the following log warning ...
20
votes
6
answers
19k
views
Colorbox does not linebreak
I'm new here, so I'm sorry for any mistakes or error in from my part.
I am trying to make colored textboxes that refer to colored blocks in a figure. My problem is that the colored box does not ...
0
votes
1
answer
113
views
Set textcolor of fnmark in Footer
I'm modifying @makefnmark in the body but keeping it the same in the footer using this code:
\makeatletter
\AtBeginDocument{%
% ...
}
\let\@latex@makefnmark\@makefnmark
\patchcmd{\@makefntext}{\@...
3
votes
2
answers
139
views
Multiple plots from a file by changing the value of a meta parameter
I want to plot a bunch of curves on the same axis. They are all functions of two variables, let us call them x and p. I want to make plots y=f(x,p) with x as the x-axis variable for a fixed value of p ...
11
votes
1
answer
533
views
xcolor: How to get the complementary color
Is there a LaTex-style way to get the complementary color?
For example, a corresponding command in the xcolor package?
\documentclass[]{book}
\usepackage{xcolor}
\definecolor{Acolor}{named}{red}
\...
0
votes
0
answers
14
views
PGFPfots: Filled marker does not correspond with legend
I have two files from which I want to create a single scatter plot. For the marker, I use the meta option to give them a specific style based on a string value. However, the legend and the markers don'...
41
votes
5
answers
7k
views
How to shade text in different colors?
I need a single character in two colors. Figuring I could use the shadings library of TikZ, I followed the manual (section 23.4.1, the TikZ example):
\documentclass{article}
\usepackage{tikz}
\...
0
votes
2
answers
85
views
Are hyperref (with dvipsnames) and pdfpages not compatible?
I like to have custom-color hyperlinks with
\usepackage[dvipsnames]{xcolor}
\usepackage{hyperref}
\hypersetup{
colorlinks=true,
linkcolor=NavyBlue,
filecolor=magenta,
urlcolor=cyan,
...
0
votes
0
answers
37
views
How to correct !Undefined control sequence error created by \definecolor? [duplicate]
I'm trying to create a pdf table generated in latex format in R, but any of the commands below generates and !Undefined control sequence error. I tried removing this line or putting it below the \...
2
votes
1
answer
286
views
Spacing of Chapter Name and Chapter Number when using package sectsty
Hello my dear fellow latex users! I've been trying to fancy my thesis by setting a color to the chapter names and in order to do so, I used the package sectsty, because I am using a template where if ...
1
vote
2
answers
64
views
Color or Colour Table Based on the Cell Value for a Specific Column Only
I am new to latex and struggling with the concepts of how to colour cells in a table based on the cell value for a specific column only. I am creating a latex template that will be used for an ...
2
votes
1
answer
216
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}
\...
0
votes
0
answers
87
views
Modifying existing Latex code to put Python codes in the Cheatsheet
I want to make a cheatsheet for Pandas which has Python codes. I googled and tried to find a free online site that help to get built easily. I'm unable to find except overleaf which uses Latex codes ...
8
votes
3
answers
5k
views
Color table rows and columns
I have a table whose rows are set to alternate between white and gray using xcolor's \rowcolors{2}{white}{gray!10}. I also want to highlight a column of that table, sos that it looks something like ...
0
votes
1
answer
56
views
How to change color of enumerate?
I am making a presentation in Beamer and want to change the color of the numbers in enumerate. I tried using \setbeamertemplate{enumerate items}{bg=blue} but it didn't work. What am i doing wrong?
0
votes
1
answer
40
views
How to change frame title font color in beamer?
Is there a way to change the frame title font color in between \begin{frame} and \end{frame}? I would like this frame title to be a different font color than the rest of the frames.
3
votes
0
answers
94
views
To Color or Not to Color the Small-Capped Letters Following a Two-Color Lettrine---A Typography Question
This question is directed to LaTeX typographers and is a bit of a follow-up to the one asked in Centering an Initfamily Letter within a Colorbox and Sizing It for Use as a Two-Color Lettrine.
As ...
0
votes
0
answers
35
views
How to have the table of contents (and the list of tables) in a different color than black in LaTeX?
I am trying to make the toc a color, which I have predefined, however when I try to color it, the section page numbers stay black.
I have tried multiple solutions such as this but it just does not ...