Skip to main content
OverflowAI is here! AI power for your Stack Overflow for Teams knowledge community. Learn more

Questions tagged [color]

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

Filter by
Sorted by
Tagged with
3 votes
1 answer
58 views

Extra space when body ends with math mode

I often write homework assignments with solutions. I copy the homework tex file and then fill in the solutions. This requires that I keep track of two files. Today I decided to write an environment to ...
scribe's user avatar
  • 299
2 votes
2 answers
170 views

Define new color for highlighting [duplicate]

I'm trying to make a new command for highlighting a part of text using black background and white text. I use the x11names option for the xcolor package and don't want to change it but it doesn't has ...
alksdhalksjdb's user avatar
2 votes
2 answers
66 views

Table with multiple different colored cells

Following some of the answers like color only a cell of a table and Color merged and regular cells in a table individually and some others I tried to do the following: One cell must have different ...
user3582228's user avatar
0 votes
1 answer
37 views

Error with color name appearing when coloring a node in TikZ [closed]

I'm trying to draw a directed graph where each vertex and each arrow can be colored individually by a specific color. I have a code that mostly works: \documentclass{article} \usepackage[dvipsnames]{...
Robert Lee's user avatar
1 vote
1 answer
39 views

Color not coming in Make4ht

My codes are: \documentclass[]{article} \usepackage{array,booktabs,makecell} \usepackage{relsize} \usepackage{collcell} \usepackage[table]{xcolor} \usepackage{pgf} % \usepackage[flushleft]{...
MadyYuvi's user avatar
  • 13.9k
0 votes
1 answer
47 views

how to edit only the color of a page

\documentclass{report} \usepackage[dvipsnames]{xcolor} \usepackage[margin=1in]{geometry} \usepackage{afterpage} \usepackage{tikz} \usetikzlibrary{fadings} \usepackage{geometry,tikz} \usetikzlibrary{...
Benjamín Garcés's user avatar
1 vote
1 answer
41 views

The color package is not defining colors correctly

For some reason the color package is not defining even the base colors correctly for me --- let alone the dvips colors. At least red, blue, yellow, and green are well defined. But other colors seem ...
ltcomdata's user avatar
  • 935
1 vote
1 answer
45 views

Changing the Color of a Single Interval in a Cantor Set made with the Decorate Command

I have the following TiKZ picture of a Cantor Set. \documentclass[tikz,border=5pt]{standalone} \usetikzlibrary{decorations.fractals} \begin{document} \begin{tikzpicture}[decoration=Cantor set,line ...
Sidekiq's user avatar
  • 25
0 votes
1 answer
60 views

colorbox: how to fill only the inner area of a rectangle (square) with rounded corners

If I have a letter of type "(vertical) rectangle with rounded corners" and put it in a \colorbox{<fillcolor>}{text}, is there a way to set the colorbox-parameters so that exactly the ...
cis's user avatar
  • 8,266
2 votes
1 answer
42 views

customized marker (pgfdeclareplotmark) with color as argumeent

I am trying to customize the shape+color of a marker for a scatter plot. Everythink works when I hard-code the color (e.g. red): \documentclass{article} \usepackage{pgfplots} \usepackage{xcolor} \...
Simon's user avatar
  • 325
3 votes
1 answer
80 views

How to use hyperref new color scheme?

In a previous question on this site (better default colors for hyperref links), Ulrike Fischer said that a new colorscheme option will be provided for the hyperref pacakge, four years ago. It is also ...
richardIII's user avatar
4 votes
1 answer
102 views

different colors for equations with cref

I was working on some equations and wish to have them in a different hyperlink color compared to the rest of the link colors I set in my \hypersetup. Now, it appears this post does what I'm looking ...
Matteo's user avatar
  • 163
1 vote
2 answers
40 views

Longtable: White stripes in colored multirow cell

My problem comes whenever I create a longtable using this page: https://www.tablesgenerator.com/ and paste it into Overleaf. Most of it comes out well but in this case, a thin white/uncolored stripe ...
Alquídreo's user avatar
2 votes
1 answer
146 views

How to make cmyk colors work with dvisvgm?

I have a tex file like this: \documentclass{standalone} \usepackage[cmyk]{xcolor} \usepackage{tikz} \begin{document} \begin{tikzpicture} \fill[green] circle (3); \end{tikzpicture} \end{document}...
ttsc's user avatar
  • 383
1 vote
1 answer
41 views

How can I display the `\gtrsymBorn` symbol in red colour?

How can I display the \gtrsymBorn symbol in red colour? he following MWE returns LaTeX Error: Option clash for package xcolor.. \documentclass{article} \usepackage{genealogytree} \usepackage[...
Stücke's user avatar
  • 305
2 votes
1 answer
153 views

Making Colored Text Invisible

I want to be able to create worksheets that can essentially toggle via minimal modification from being a) blank worksheets to give to the students for an assignment b) keys to those worksheets to give ...
duality's user avatar
  • 33
0 votes
1 answer
34 views

Fill the different colors in the circles and add some text

Question: I want to fill different colors in all four circles. Further how can I add some text inside the circles (see the attached figure) I am looking for this figure MWE \documentclass[12pt]{...
SandyM's user avatar
  • 2,825
4 votes
2 answers
375 views

The distributive law in a square

I am trying to do the following but I am not sure how to go about it. Should I just go with a table and make the lines thicker? I am also trying to make the lines around the box blue and thicker. Can ...
user292225's user avatar
3 votes
1 answer
102 views

How to color some numbers on a line and add a shade

Questions: In figure (1) I want to give blue color to 0 (Zero) In figure (2) I want to shade the numbers (figure is attached) MWE: \documentclass[12pt]{article} \usepackage[bindingoffset=0.2in,left=...
SandyM's user avatar
  • 2,825
1 vote
0 answers
40 views

Highlight the numbers on Number line

I would like to highlight the numbers with different colors like in first number line highlight the numbers from 0 to onwards, in second number line from 0 to onwards and in third number line ...
SandyM's user avatar
  • 2,825
3 votes
4 answers
95 views

Issues with \rowcolors

I'm having problems in my latex code. I would like to alternate the color of my rows, but everytime I compile it, I get a strange effect. This is my code: \begin{center} \rowcolors{1}{black!10}...
Riccardo Rizzo's user avatar
0 votes
1 answer
60 views

How can I make an image background? And how can I change the standard color from black? [duplicate]

I want to make an image background in Overleaf and I have no I idea how to do that. I want to be able to write over it just like one can change background color with \pagecolor{color}, I also want to ...
Mathematics enjoyer's user avatar
0 votes
1 answer
54 views

Using tcolorbox within an algorithm Environment

I want to have a colored box within an algorithm environment. I use tcolorbox within an algorithm environment. The result is shown below. I use the before skip balanced=-0.075cm and after skip ...
Hosein Rahnama's user avatar
1 vote
1 answer
63 views

Generate named colors in tikz figure in structured way

I auto generate a lot of tikz-pictures that I use in a latex document. Some elements have their own color, that depends on some numerical values, which I want to use in the text to better illustrate ...
Leander's user avatar
  • 143
0 votes
1 answer
31 views

Changing the Color of a Heading in resumecls

I recently discovered the resumecls class and have been using it to build my resume. Currently, I am using Overleaf to edit and work on my resume, and while I enjoy it, I am having issues changing the ...
thesaltynacl's user avatar
1 vote
0 answers
69 views

tcolorbox locally change color of text in a code block

I've been working with \tcolorbox for a bit to get the desired output of my code blocks, see below for an example: and code: \documentclass[12pt]{report} \usepackage[letterpaper,margin=1in]{geometry}...
Matteo's user avatar
  • 163
3 votes
3 answers
190 views

Variable in Color Code? [duplicate]

I'm trying to create a circle that iterates over all hues like so. Right is what I currently have. \foreach\x in {5, 10, ..., 360} { \pgfmathparse{\x} \definecolor{tmpcolor}{HSB}{\...
Someone's user avatar
  • 135
1 vote
1 answer
102 views

Unknown option 'pdflatex' for package xcolor. \edef

I have created some slides for teaching a course using \documentclass[xcolor=pdflatex,dvipsnames,table,10pt]{beamer} I am using texstudio. After updating miktex I am getting the following error ...
Dimitris Fouskakis's user avatar
1 vote
1 answer
33 views

How do I fill color outside the page border created by tikz?

This is how I am making the border: \documentclass{article} \usepackage{background} \usepackage{tikz} \usetikzlibrary{calc} \backgroundsetup{angle = 0, scale = 1, vshift = -2ex, contents = {\tikz[...
TheInidealPrakrutiGuy's user avatar
0 votes
1 answer
33 views

How to remove the gap between \underline and overline for the Roman Numbers shown in the below table without changing its font?

\documentclass[12pt]{article} \usepackage{amsmath,amssymb} \usepackage[table]{xcolor} \usepackage{tabularx} \usepackage{makecell} \usepackage{graphicx} \usepackage{accents} \begin{document} \begin{...
Vishakha's user avatar
  • 119
1 vote
1 answer
65 views

Color gradient in 3D graph pgfplots

I am trying to make a graph from the values that I got from the gyroscope mounted on the pendulum connected to the Arduino. I cannot make colormap/gradient work. Original graph: This is the code that ...
Patrik Kokinda's user avatar
0 votes
1 answer
20 views

locally change the color of \Cref in document report

Hi there I'm working on a LaTex report document and I happened to need to change the color of a \Cref reference to a Section of my document. However, for some reason, I'm unable to do so and the color ...
Matteo's user avatar
  • 163
2 votes
2 answers
135 views

How can I draw the shapes with gradient colors as shown in the below figure?

\documentclass[11pt, oneside, a4paper, titlepage]{article} \usepackage[dvipsnames, svgnames, xllsnames]{xcolor} \usepackage[most]{tcolorbox} \usepackage[left=0.1cm, right=0.1cm, top=0.1cm, bottom=0....
Vishakha's user avatar
  • 119
0 votes
1 answer
52 views

help with diagram with custom shape

\documentclass{article} \usepackage[T1]{fontenc} \usepackage{tikz} \usepackage{amsmath, amsfonts} \usetikzlibrary{arrows.meta} \tikzset{ customshape/.style={ fill=lightgray, draw=...
BROK's user avatar
  • 119
2 votes
1 answer
177 views

Help Recreating Equation Format

I am writting my thesis and really like to be able to make some equations like the one shown in the picture but don't know how. Your help is really appreciated. Image taken from : https://...
Oscar Alejandro Arcila Giraldo's user avatar
0 votes
0 answers
30 views

Chat bubble text content doesn't use the same color for Farsi texts as it does for English

This code currently only works for digits and English text. However, the colors of the text do not apply correctly to Farsi texts. How can I modify it to achieve the same effect with Farsi texts? \...
Ali Azarmanesh's user avatar
0 votes
1 answer
53 views

How to make custom command work after line break/new paragraph? [duplicate]

I have a simple command which creates coloured text. This works without any issues when there is a single paragraph without a line break. With a linebreak/new paragraph this does not work (commented ...
Damitr's user avatar
  • 1,961
0 votes
2 answers
50 views

revised question on different options in a tcolorbox

I tried to use the following code to produce a box titled Construction when using \begin{con} and Theorem with \begin{thm}? \documentclass{article} \usepackage{tcolorbox} \usepackage{xcolor} \...
Paul A's user avatar
  • 1,117
1 vote
0 answers
29 views

when applying a color in the display equation, above and below display space varying

Trying to apply a color in the display equation, I just modified the environment from amsmath.sty. The above and below space is modified (increased space) when applying color, see the below image, in ...
pdy-ind's user avatar
  • 2,102
0 votes
2 answers
58 views

Bar chart with multicolored bars and labels

I would like to create a bar chart with a multicolored bar. The bar chart should show the length of each section. My problem is that in the first section the number always goes before the bar chart ...
Lucas's user avatar
  • 13
2 votes
1 answer
62 views

How to draw a colored Feynman diagram with tikz-feynman?

I am trying to draw the diagram below on latex. I am not sure where to begin. I searched a lot but couldn't find any resolution. Here's what I faced: It was easy to draw the line from left to right. ...
Samapan Bhadury's user avatar
0 votes
2 answers
102 views

How to draw the shape shown in the below image?

\documentclass[12pt]{article} \usepackage{tikz} \usepackage{tikzpagenodes} \usetikzlibrary{arrows, shapes, positioning} \begin{document} \pagestyle{empty} \begin{tikzpicture}[remember picture, overlay]...
Vishakha's user avatar
  • 119
0 votes
1 answer
76 views

How can I make this table look nicer?

I am new to LaTeX and am trying to make a nice table. However, the best I can get is this: Does anybody have any improvements i can make? MWE: \begin{table}[h!] \begin{tabular}{|l|l|l|} \hline \...
Maths improver's user avatar
0 votes
1 answer
66 views

How highlight date or week in TikZ Calendar with background color?

How to highlight a date or week in TikZ Calendar with a background color?
Paulo Rodrigues's user avatar
0 votes
1 answer
49 views

text of the first line disappears after using rowcolors

\usepackage[table]{xcolor} \usepackage{xcolor} \usepackage{soul} \begin{table*} \rowcolors{1}{yellow!50}{yellow!30} \setlength\tabcolsep{3pt} \caption{Related Surveys Comparison} \begin{tabularx}{\...
Ossama Nazih's user avatar
0 votes
1 answer
30 views

Temporarily changing an items color

I am trying to write a list where the item that just appeared on screen is red while the rest of the text is black. Then when the new item is introduced, it becomes red and the first one goes back to ...
stormy_135's user avatar
1 vote
0 answers
95 views

Why isn't the ICC profile applied?

I generated an image: If color management is properly working, you should see this blue (good!), otherwise it will be red (bad…). However, if I include this image in a PDF, the ICC profile is not ...
tobiasBora's user avatar
  • 8,804
0 votes
0 answers
42 views

Set tblr environment cell color using HTML code directly [duplicate]

I have a large autogenerated tex file that includes several tables like the following: \documentclass{article} \usepackage{xcolor,tabularray} \begin{document} \begin{center} \begin{tblr}{ colspec={...
Ritmo2k's user avatar
  • 129
5 votes
0 answers
124 views

Node text color not inherithed in xelatex (but inherited in pdflatex and lualatex)?

My last update to circuitikz popped up a strange thing that drove me crazy: if you look at page 78 of the manual for 1.6.7, you can see that the voltage source sign does not follow the color of the ...
Rmano's user avatar
  • 41.4k
0 votes
1 answer
91 views

How to change the default colour of metropolis beamer theme?

I want to change the default color of the metropolis theme to the one shown in the image below. I am unable to find the command to change the color of the frametitle and the block environment. Any ...
Rajesh Dey's user avatar

1
2 3 4 5
87