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 ...
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'...
-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?
-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{ ...
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 ...
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 ...
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 ...
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
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=...
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 ...
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 ...
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 ...
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 ...
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
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 ...
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'...
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 \...
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 ...
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.
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 ...
1
vote
0
answers
37
views
How to define a colorbox command which can treat other user-defined commands in its argument?
I would like to highlight text including user-defined commands with linebreaks. I found a solution for linebreaks (Colorbox does not linebreak), but the \ctext{} command cannot treat other commands in ...
1
vote
2
answers
60
views
Problems with \arrayrulecolor on beamer
I am trying to write a certain table on beamer, but there is a problem with the command \arrayrulecolor I cannot understand...
Here is the table in an article document class, how I want it to look ...
5
votes
4
answers
429
views
Replicating MS Word Table Style
\documentclass{article}
\usepackage[utf8]{inputenc} % 'cp1252'-Western, 'cp1251'-Cyrillic, etc.
\usepackage[a4paper, left=1in, right=1in, top=1in, bottom=1in]{geometry}
\usepackage[english]{babel} % '...
1
vote
1
answer
70
views
Beamer: Customise Title and Footer Background color
I would like to get
I have forgotten to change the colour. Can anyone tell me how can I get desired result? Here I am using the code(partial):
\documentclass[xcolor=dvipsnames]{beamer}
\mode<...
0
votes
1
answer
34
views
Minted: colorize variable in inline mode
Is it possible to specify how to color a variable with mintinline? What I mean is, for instance, to use \mintinline{python}{myClass} and color myClass as a Class variable, or as a function. If I use ...
1
vote
1
answer
47
views
\hl does not cover the entire text [duplicate]
I am attempting to use soul and xcolor to highlight some of my text but as you can see in the image it does not seem to cover the whole text.
The line is Service agents must be able to \hl{\mbox{...
0
votes
1
answer
63
views
Minted Highlight code with multiple colors
I would like to highlight a function in minted by giving it a multiple background colors. So I would like the same highlight than the following picture
I succes to highlight the green line, but I ...
1
vote
0
answers
27
views
How do I highlight C libraries in listings?
I am using the listings package to typeset the following C code in Latex
#include <stdio.h>
#include <stdlib.h>
int main ()
{
printf("Hello World!\n");
return 0;
}
Here ...
2
votes
3
answers
240
views
Table Cell colors have white gaps between them
I'm trying to set up a table for some results I got for some experiments.
I was trying to recreate this table in my latex document (not exactly, but the general look of it).
I'm 99% on the way there, ...
2
votes
3
answers
91
views
How to get footnote rule and footnote text to follow text color in `tcolorbox`?
I am trying to get the footnote rule and footnote text to follow the color of the text in the tcolorbox. Here is my MWE:
\documentclass{standalone}
\usepackage[rgb,dvipsnames,svgnames,table]{xcolor}
\...
8
votes
1
answer
198
views
l3color's colors: unusable with tikz?
In the following MCE, the myred color is defined thanks to l3color syntax (\color_set:nnn {myred} {rgb} {1,0,0}):
\documentclass{article}
\usepackage{tikz}
\usepackage{l3draw}
\begin{document}
\...
0
votes
0
answers
16
views
How to customize code listing colors that overlap with different categories?
I'm working on a custom code listing for x64 assembly, and I'm running into a few issues with color coding. I'd like to have individual numbers (i.e., any arbitrary number) and constants (i.e., $N ...
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 ...
1
vote
1
answer
24
views
Strikethrough with Color lines along rows and columns in matrices
It works like to get
Can someone see how to fix this to work for both rows and columns?
Here I have tried :
\documentclass{article}
\usepackage{amsmath}
\begin{document}
\[\begin{bmatrix}
d_{11}\...
1
vote
1
answer
24
views
\href urlbordercolor not visible in pdf
I am trying to put a colored border around links but have not been successful so far.
Here is a minimal example:
\documentclass[
12pt,
titlepage]{article}
\usepackage{xcolor}
\usepackage{hyperref}
% ...
1
vote
1
answer
64
views
Are there any similar package (or color ulem) to ulem package with color?
Are there any similar packages (or color ulem) to the ulem package, with color, underline, sout, xout, dash underline, dot underline with color as parameter?
I found this Q&A about changing the ...
1
vote
0
answers
40
views
set transparent color for a pgfpicture
I have a simple document which inputs picture.tex file that includs data of a pgfpicture:
\documentclass{article}
\usepackage{pgfplots}
\usepackage{xcolor}
\pagecolor{black} % set the page colour to ...
4
votes
1
answer
97
views
The color of a shaded rectangle cannot be recovered in some cases
In the following MCE, a tcolorbox is equipped with two rectangles drawn as overlays. The color of these rectangles is supposed to be the same as the bottom color of the tcolorbox.
It works well with ...
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 ...
1
vote
2
answers
52
views
Tikz milsymbs in a matrix, with colours (getting errors)
Am posting two in one as I suspect these may be related. Following on from my previous question, I am putting them in a matrix:
\documentclass{standalone}
\usepackage{tikz}
\usepackage{milsymb}
\...
0
votes
1
answer
30
views
\cellcolor doesn't work in my talltblr environment
I'm trying to add colour in some cells in my tab but it won't work for my talltblr environment. I want to colourize cells with A in grey.
\documentclass[a4paper,12pt]{book}
\usepackage[left=30mm,top=...
1
vote
1
answer
51
views
Tikz changing node background colour
Following the answer to this other question, I am using the Milsymb library and changing the foreground colour.
\documentclass{standalone}
\usepackage{tikz}
\usepackage{forest}
\usepackage{milsymb}
\...