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
2 answers
82 views

How to make a striped, colored circle in Tikz?

I want to make something like this How can I do it?
user avatar
  • 239
1 vote
2 answers
46 views

Problems in table using \hhline

Consider the following MWE \documentclass{standalone} \usepackage{multirow} \usepackage[table]{xcolor} \usepackage{hhline} \newcommand{\firstrow}[1]{% \multicolumn{2}{|c|}{\cellcolor{blue!25} #1} } \...
user avatar
  • 425
4 votes
1 answer
40 views

How to use xcolor color names in tikzpicture style?

I want to use color names like MidnightBlue in a style for a tikzpicture to e.g. fill it with a specific color, is this possible? Or am I limited to the other style (red!30 etc.)? This MWE fails with ...
user avatar
  • 372
2 votes
1 answer
37 views

How to get chapter title in header the same color when chapter title itself is in multiple fonts with different colors?

Assume I need to sandwich English words in chapter titles which are mainly in Burmese. I want those sandwiched English words in red color. However I want to have all the headers text only in gray ...
user avatar
  • 115
2 votes
1 answer
36 views

How to define a color that matches inserted PNG

I am trying to use cbox and have the colors equal to the colors on the inserted figure. I opened the figure using the windows paint program and used the color picker to determine the rgb values of ...
user avatar
  • 1,678
0 votes
0 answers
16 views

Changing textcolor in revtex4-2

Since we are editing some article and in order to see everyone's contribution, we want to keep track of the changes by coloring text. However, \userpackage{colorx} and \textcolor{color} are not ...
user avatar
  • 1
0 votes
1 answer
56 views

Coloring a world map

I'm trying to create a graphic with tikz on latex/overleaf of a world map based on regionally disaggregated data, so I want e.g. all countries that belong to Eastern Europe to have the same colour, ...
user avatar
1 vote
1 answer
54 views

Bright Colors in Latex

Is there a package that helps produce colors like the one in the picture
user avatar
  • 1,025
1 vote
0 answers
19 views

How to fill a pgfgantt bar with a color gradient which fades from the center of the bar?

I'm trying to figure out how to fill a pgfgantt bar with a horizontal color gradient which fades from the center outwards. Unfortunately i'm having no luck! I was wondering whether anyone knew how to ...
user avatar
0 votes
3 answers
87 views

How do you go over the [0,1] range for Colors

When I go over the !100 in shading, it gives me an error, however it still works. And simply, my question is: how do I get rid of this annoying error? \documentclass{article} \usepackage[utf8]{...
user avatar
1 vote
2 answers
62 views

Selecting colors which are evenly spaced around a color wheel

In the following diagram I would like to assign colors to the rectangles in each layer with colors from around a color wheel so that the colors in adjacent layers are separated by 144 degrees. For ...
user avatar
  • 288
1 vote
0 answers
27 views

Why setting point meta destroys the data in contour lua?

Problem I'm trying to change the color of a contour plot (contour lua) by setting point meta. However, instead of using the information from the plot, I want to use another function to color them. ...
user avatar
  • 10.8k
0 votes
0 answers
24 views

How to add color to text snippets in modified verbatim environment

\usepackage{fancyvrb} \usepackage{framed,color,verbatim} \definecolor{shadecolor}{rgb}{.9, .9, .9} \newenvironment{code}% {\snugshade\verbatim}% {\endverbatim\endsnugshade} I have a new ...
user avatar
  • 101
0 votes
1 answer
30 views

Change color in Prerex, chart

How do I change the color from Yellow to say, gray. Also I don't like the rounded boxes, and the thick boundary. The package documentation doesn't clearly say what I must do either. \documentclass{...
user avatar
  • 629
3 votes
1 answer
89 views

Compilation error when using &

Code Consider the following example: \documentclass{article} \usepackage{amsmath} \usepackage{xcolor} \newcommand{\tegn}[1]{\mathcolor{red}{#1}} \begin{document} \begin{align} 1 &= 1 \\ ...
user avatar
0 votes
1 answer
38 views

How to Underline (with Linebreaking) within Contiguously Highlighted Text Using Soul

I would like to use the command \ul within a block of text that is contiguously highlighted using the macro contained in the following code: \documentclass[12pt,openany]{book} \usepackage{soul} \...
user avatar
0 votes
0 answers
44 views

How can I define a more "complex" font color?

I am trying to define the font color for a title and I want to set some more complex color like the one that is shown in the picture below: I know how to select a single color at a time however is ...
user avatar
6 votes
2 answers
280 views

Spacing before and after \color{}

I want to define a command, \makered, that makes things red. Consider three candidates: 1: \newcommand{\makered}[1]{{\color{red}#1}} 2: \newcommand{\makered}[1]{\colorlet{savedcol}{.}\color{red}#1\...
user avatar
1 vote
0 answers
52 views

Extending a John Kormylo Answer for Color Shading a Portion of a Paragraph to Produce Bold Text as Well

This post is an extension of the question posed in How to Contiguously Shade a Portion of a Paragraph with Color Consider the code \documentclass{book} \usepackage{xcolor} \colorlet{soulred}{red!25} \...
user avatar
  • 5,445
1 vote
2 answers
40 views

Table Background color with toprule

I want make a table with background color, when I am using \toprule,\midrule and \bottomrule I have a white space after the rule. I want to fill the color of rule below space. MWE is below \...
user avatar
1 vote
2 answers
38 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 ...
user avatar
  • 11
0 votes
3 answers
42 views

How to use multiple colours in a single vertical line of a table?

I have this table, based on this: \documentclass{book} \usepackage{colortbl} \usepackage{hhline} \begin{document} \setlength{\arrayrulewidth}{2pt} \begin{tabular}{|c|c|c|} \hline & & \...
user avatar
1 vote
1 answer
16 views

Is it possible to reference the bullet/definition color in Beamer in a theme-independent way?

I would like to highlight some words in an example block using the same color that is used for definitions and bullet points. Is this color saved as a variable name by Beamer, and can it be accessed ...
user avatar
1 vote
1 answer
24 views

Beamer Change Formatting of Notes

I use the documentclass beamer and would like to have all my notes of the PDF in bold and red (- or a better solution on this problem). Situation: I have notes once in a while when they seem important ...
user avatar
  • 821
-1 votes
1 answer
20 views

Pandoc changes color from template after cursive

I am using pandoc to convert different documents into pdf. I have a template to include with the flag --include-in-header ~/path/to/template/pandoc_format_darkmode.tex -V geometry:a4paper -V geometry:...
user avatar
  • 29
1 vote
1 answer
45 views

Coloured table cells not showing

In the following table, the colors are not showing: \documentclass[ 11pt,english, onehalfspacing, nolistspacing, liststotoc, headsepline, oneside, chapterinoneline, reqno, a4paper, toctotoc, table]{...
user avatar
0 votes
1 answer
43 views

How to have separate colours for chapter, section etc. on even/odd pages with scrlayer-scrpage?

I have provided a minimal working example in the following, where I couldn't implement the change of colour of headers such as chapter or section depending on whether the page is odd or even. \...
user avatar
1 vote
1 answer
40 views

Specifying RGB color in a colorbox - tcolorbox package

I tried to specify a RGB color in a color box in this way, but it doesn't recognize RGB, only rgb that is a different thing. How can I specify a RGB color in a color box? \documentclass{article} \...
user avatar
1 vote
1 answer
16 views

More space below the section title

I'm having some troubles to add space in my section title. Some of my code is this: \documentclass[11pt, oneside]{book} \usepackage{xcolor} \definecolor{bleudefrance}{rgb}{0.19, 0.55, 0.91} \...
user avatar
  • 39
0 votes
2 answers
50 views

Change the background color of Tikz nodes?

I'm using the fit option to draw a rectangle that fits a few nodes but when I add the fill option to change the color of this rectangle the nodes inside disappear. \documentclass[border=10pt]{...
user avatar
  • 87
1 vote
1 answer
32 views

Rotate Labels and Change colors of tikz barchart

I am creating a bar chart using tikzpicture like so: \documentclass{article} \usepackage[utf8]{inputenc} \usepackage{tikz} \usepackage{pgfplots} \title{test} \author{} \date{} \begin{document} \...
user avatar
  • 113
0 votes
0 answers
25 views

How to make the template bolder/stronger without \textbf or \mathbf?

Question: How can I make the display on Beamer to be bolder/stronger, at least like from latex2png??? Or should I just look for different Beamer template?? You can see here in my video on Youtube, ...
user avatar
1 vote
1 answer
27 views

How to Indent Highlighted (with Margins Adjusted) Paragraphs with Mdframed

Consider the code \documentclass{article} \usepackage[framemethod=tikz]{mdframed} \usepackage{lipsum} \parindent 10pt \begin{document} \thispagestyle{empty} \lipsum[3] \begin{mdframed}[...
user avatar
  • 5,445
0 votes
0 answers
22 views

Invoking hyperlinks color

Is there a variable which allows me to invoke the color of internal links within a document? Minimum working example, where I am looking for a \linkcolor command: \hypersetup{colorlinks=true,linkcolor=...
user avatar
0 votes
0 answers
27 views

How to set background color for long in-text citations with line wrapping?

Normally for revised-version, the revised text should be highlighted. When it contains long in-text citations which span more than one line, the background color will extend to the margin, and ...
user avatar
  • 33
0 votes
0 answers
27 views

Changing the colour of equations produce in LaTeXiT

I am using LaTeXiT on my Mac to produce things like equations (both singular and as align-environments) and matrices as images which I can then copy and paste into a PowerPoint presentation. I want ...
user avatar
3 votes
1 answer
73 views

How to Contiguously Shade a Portion of a Paragraph with Color

Consider the code: \documentclass{book} \usepackage{xcolor,soul} \colorlet{soulred}{red!25} \begin{document} \thispagestyle{empty} \LARGE \begingroup \sethlcolor{soulred}% Here is some text. \hl{...
user avatar
  • 5,445
2 votes
1 answer
62 views

adding a shade background in running text of the middle of a paragraph

I need a background shade in the running text of middle of a paragraph, I tried through \usepackage{tikz}, I am getting background but text is not breaking and running beyond the text width. How to ...
user avatar
  • 1,814
0 votes
0 answers
31 views

Prettify the text heatmap in latex code

I am trying to highlight the text tokens based on the value given to that particular token. The input data looks like this: raw_sentence = '''the USS Ronald Reagan - an aircraft carrier docked in ...
user avatar
1 vote
2 answers
38 views

xltabular colors the table caption when using rowcolors

I'm creating a table using rowscolor from xcolor package, but the caption is treated as a row and it's colored. How to avoid this behavior ? \documentclass{article} \usepackage[table]{xcolor} \...
user avatar
4 votes
1 answer
64 views

Log the RGB components of a color defined using xcolor syntax

I'd like LaTeX to print to its log the RGB components of a color that I've defined using the convenient xcolor syntax. E.g., \documentclass{article} \usepackage{xcolor} \begin{document} \Huge\...
user avatar
  • 775
2 votes
1 answer
39 views

Change the color of the correct option in beamer

Command \True in package ex_test to color the correct answer in a question during the slide show. But I need to use two frames to do that, one without \True, one with \True. How can I do it with only ...
user avatar
3 votes
2 answers
218 views

How to color the table in latex?

I would to import the following table in latex with color, how do I make it possible? Many thanks in advance! The colors don't have to be exactly the same.
user avatar
  • 127
0 votes
2 answers
42 views

Make a color gradient with tikz

Where I can find the section about color gradient in the tikz documentation? Specifically, I would like to make the gradient you see in the outermost ring of this image. Forget the rest, I can easily ...
user avatar
0 votes
0 answers
17 views

Strange RGB color in LaTeX: xcolor + definecolor [duplicate]

I'm trying to use the RGB color (0, 127, 255) in Latex, but I got another color (it seems cyan). I tried it in Texmaker and in Overleaf, the result is the same. How can I overcome this problem? ...
user avatar
0 votes
0 answers
43 views

Color in LaTeX when I want everything to be in black

I would like to have everything in black, but my equations and references are mentioned always in different color, green and red. How can I change it?
user avatar
1 vote
0 answers
50 views

How to define a math mode macro like mathtools' \Aboxed but colored for multiline equations in an align/align* environment without breaking alignment?

Before I get to the question and to not receive the answers I do not want, I want to point out that I mainly have 4 usage of equation or math-related boxes in LaTeX (For the question related to the ...
user avatar
0 votes
0 answers
17 views

How to change text colour across pages using mdframed

Consider the following MWE: \documentclass[twoside, a4paper, 12pt]{article} \usepackage{amsmath, amssymb} \usepackage[framemethod=TikZ]{mdframed} \linespread{1.5} \usepackage[top=0.85in, bottom=0....
user avatar
  • 101
0 votes
1 answer
34 views

incompatibility of pdftex graphics driver, expl3 and xparse in TL2022 [closed]

I am running into a strange compilation error. Consider the following MWE: % file test.tex \documentclass{article} %\usepackage{mdframed} %\usepackage{color} \makeatletter \input{pdftex.def} \...
user avatar
4 votes
2 answers
167 views

Is there a (better) way to repeatedly toggle between two font colors within a paracol environment, and compiling with XeTeX?

\documentclass{article} \usepackage{xeCJK} \usepackage{xcolor} \colorlet{color1}{blue!50!black} \colorlet{color2}{green!50!black} \usepackage{etoolbox} \newtoggle{col} \providecommand{\tog}% {%...
user avatar

1
2 3 4 5
79