Stack Exchange Network

Stack Exchange network consists of 174 Q&A communities including Stack Overflow, the largest, most trusted online community for developers to learn, share their knowledge, and build their careers.

Visit Stack Exchange

Questions tagged [color]

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

2
votes
0answers
25 views

Color and thickness of lines (backaddress underlined and subject underlined) in scrlttr2

I am trying to change the colors of some lines in scrlttr2, especially the lines below the backaddress and the subject (visible with the backaddress = underlined and subject = underlined options). I ...
0
votes
0answers
14 views

Subfiles colour Error

I have a main file and four subfiles. The main compiles perfectly, but each of the subfiles give the package xcolor Error: Undefined color model. What’s wrong? Here is the structure of the main file: ...
3
votes
1answer
36 views

Color fraction of table cell

Is there some way to color only part of a table cell? For example, the top third, or bottom half of a cell? For example: \renewcommand{\arraystretch}{3.0} \begin{tabularx}{10cm}{|X|X|} \hline Row 1 &...
0
votes
0answers
19 views

How to colour only the equation number, section number etc. while cross-referencing them using cleveref? [on hold]

I am using the cleveref package. However, during cross-referencing relevant entities, I don't want the actual words section, equation etc. to be coloured i.e. I'd like only the actual number of the ...
0
votes
0answers
29 views

usepackage xcolor error [on hold]

I have an error, when I add \usepackage[dvipsnames]{xcolor} Do you know what can be the problem? Is the mistake in \usepackage[czech,english]{babel} ? Thank you
0
votes
0answers
68 views

Problem with knit R Markdown to PDF [on hold]

I need your help! I try to knit the following example to pdf: --- title: "Untitled" output: pdf_document --- ```{r setup, include=FALSE} knitr::opts_chunk$set(echo = TRUE) ``` ## R Markdown This ...
0
votes
0answers
18 views

hyperref onmousedown linkcolor

I'm a LaTeX novice from China. Plz excuse my poor English. I've got an issue with the linkcolor when using package hyperref. My computer is working on Win10+TexLive2018+TeXmaker+FoxitReader(pdf ...
1
vote
1answer
28 views

Highlighting part of equation with text underneath

I am trying to use this but change the text to be down and to be not divided but I did not know how to alter the code. Any help?
4
votes
1answer
82 views

Paragraph with a colored circle

I would like to put a red circle before the beginning of a paragraph. This code does that effect but there are a lot of errors: \paragraph{{\tikz{\draw[red,fill=red] (0,0) circle (.5ex);}} PARAGRAPH}...
3
votes
1answer
50 views

How to define a custom pgf color palette from a given base color?

I have a stacked plot with seven plots, and I'm trying to obtain a set of colors that suit with the primary color of the rest of the document. The code is the following: \documentclass{article} \...
2
votes
0answers
56 views

How do I reproduce this in latex?

This is what I'm trying to produce: This is what I have so far: \documentclass[varwidth,12pt,preview,margin=3mm]{standalone} \usepackage{newtxtext} \usepackage{newtxmath} \usepackage{color} \...
0
votes
0answers
27 views

LaTex - How to add background color half of the page?

So I am trying to sort of paletton on my LatEx Resumé and I have almost finished it but I do wish to add some background colors on half of the page to give it more sort of "life" ont he resumé. This ...
0
votes
1answer
23 views

What color does beamer use as default color?

I am trying to figure out what color beamer is using as default for "Hello World!" Here is a list of colors: http://latexcolor.com/ Looks like Blue (Pigment) but I'm not so sure.
1
vote
1answer
30 views

Change the color of a tikz tree to blue

\begin{center} \begin{tikzpicture}[ level 1/.style={sibling distance=40mm}, edge from parent/.style={->,draw}, >=latex] \node[root] {Compresseur} child {node[level 2] (c2) {Compresseur ...
1
vote
1answer
27 views

How to find the names of the panels in a beamer color theme and change their colors?

The Beamer manual (17.2.3 Setting Beamer’s Colors) shows how to set colors of specific parts of the color theme using \setbeamercolor. However, since many different color themes have different named ...
6
votes
1answer
44 views

can fontspec work with CMYK colors?

Can fontspec be used to manage a document's fonts if the fonts need to use the CMYK color model? The fontspec documentation, section 6.1, says that fontspec uses RGB colors. My experimentation (MWE ...
0
votes
1answer
38 views

change color in shaded environment

I'd like to switch color in a shaded environment (package framed.sty). Something like that : \definecolor{shadecolor}{1 0 0} \begin{shaded} This line is red \switch{yellow} and this line is yellow ...
0
votes
1answer
55 views

\definecolor{}{}{} why this value work 0,255,255 and this 26,160,224 not? [duplicate]

I'm wondering why, my line 1 works (and produce a cyan color) and line 2 doesn’t. the value (26, 120, 224) are RGB value that I've picked wit GIMP, so I think they're correct. \definecolor{beamer@...
0
votes
0answers
27 views

Disappearing border lines in table

I am trying to draw a table like below. The preview in overleaf is perfect as shown below. However, after I render in texstudio using pdflatex, the cell border lines are sporadically missing like ...
1
vote
1answer
10 views

Change email text color in moderncv

I'm having an issue trying to change the text color of the email in moderncv. I defined my own color like this : \definecolor{mycolor}{RGB}{0,0,0} Then I add the email like this : \email{\...
1
vote
1answer
20 views

How can I attach files in articles?

I'm having issues attaching files in an article. It returns 2 errors: one related with color and the other with hyperref: ! LaTeX Error: Option clash for package color. ! LaTeX Error: Option clash ...
2
votes
1answer
38 views

Table with overlaping colors

I'm interested in making a table with overlaping colors. What I mean is that I would like to add an additional color to the first column of my table that would have opacity set to 20% and if it were ...
0
votes
0answers
17 views

How to change the color of the background highlighting used for the headings?

I'm using this sample LaTeX CV template given on the ShareLatex website. Code: \documentclass[a4paper,10pt]{article} %----------------------------------------------------------- \usepackage[top=0....
6
votes
1answer
51 views

How can I colorise the background of every second bibliography entry with biblatex

I want colorize the background of every second entry in the bibliography list. Here is a minimal example: \documentclass{scrbook} \usepackage[utf8]{inputenc} \usepackage[backend=biber, isbn=...
1
vote
1answer
48 views

Changing font color in listing numbers

I want to change the font color in a listing. I want only several lines in the listing to change its color (e.g. 1, 2, 9, 10, 12, 13). That is, I want to apply the color to individual lines of the ...
3
votes
3answers
148 views

colored math with the align environment

I want different colors for the text and math environments. I use the align environment. The code below used to work, but very recently (matter of weeks at most) has broken. Quite frankly, I cannot ...
0
votes
0answers
17 views

track changes package misses up my tables

I need to correct my thesis and show track changes to show it to my supervisor. The issue: I used this package \documentclass[a4paper,12pt,changes]{thesis} \usepackage[markup=underlined]{changes} ...
1
vote
1answer
33 views

Changing color of a beamer presentation (Szeged-dove)

I am working on beamer presentation, Szeged theme and dove colortheme. Basically, I'd like to change the color of all the dove-colored lines and the text that's between them to a RGB value set with \...
2
votes
1answer
33 views

Issue with PGFPLOTS colormap

I'm observing some odd behavior on my colormaps. Here is a minimum working code example: \documentclass[border=5pt]{standalone} \usepackage{pgfplots} \pgfplotsset{ colormap={parula}{[1pt] ...
-1
votes
0answers
84 views

beamer class: how to change color and font using overleaf on-line editor [duplicate]

I try to use this class with this color theme \usetheme{Madrid} to satisfy art director, I need to change the color of theme and use a Garamond font [code] \documentclass{beamer} \usepackage[utf8]...
0
votes
1answer
18 views

Colors for sections with list doesn't work for section 0

As you can see here, I wanted to color in sections of my lecture notes, meaning that the theorems, headings etc. would have a different color each section. I now use the proposed \usepackage{...
1
vote
0answers
27 views

pgfplots: Two different color maps in surface plot

I am looking for a way to create the following surface plot with pgfplots: Using matlab2tikz I got the following code: \begin{tikzpicture}[% trim axis left, trim axis right ] \begin{axis}[% ...
3
votes
1answer
42 views

How to mix coloring and hatching in the same cell in a tabular environment?

I have read about hatching here and I understand how to color a cell. But I have a hard time getting a cell both colored and hatched at the same time. Here's my MWE: \documentclass{article} \...
2
votes
1answer
76 views

Latex Metropolis package - Default color for background of slides

I am currently working on a presentation using the Metropolis package in Latex. To add some matching figures, I was trying to find out what the default Hex color code for the background colour of the ...
0
votes
1answer
52 views

LaTeX Horizontal Bar Chart, Gradient Color for Bars

I want to create a chart for ranking like this: The top row shows the ranking (Poor - Excellent), and the left column shows the parameters. Now I want the bars to look like the figure, coloring with ...
2
votes
1answer
49 views

What are the most commonly used colors for References and Cites?

Here's a little excerpt from the thesis I'm working on: The LaTeX template was provided by my university, and it defaulted to superscript brackets with blue numbers for cites and red for anything ...
0
votes
1answer
65 views

How to change the color in my slides?

I am creating my slides by using CambridgeUS theme. The standard color of this theme is red, but I would like to change it into blue. Is this possible? How to do that? Thanks!
0
votes
0answers
16 views

Table with alternating row colors and use of manual column separators/spaces`@{}`: covering part of last cells/white space problem

I wanted to create a table with alternating row colors. The whole row should be filled. It doesn't seem like a big problem, using \rowcolors. But when I customized the table with manual column ...
2
votes
0answers
31 views

Transparent text background in beamer [duplicate]

Recently – I believe due to Texlive update – the background of the title text on my beamer presentation started to be of solid color compared to being fully transparent before. MWE: \documentclass[...
1
vote
1answer
20 views

Adding shade to bussproofs' proof trees?

I am wondering how prooftree can work with colorbox? I've seen people shading their proof trees, but I am not certain what package people use. In my case, I use bussproofs, and it doesn't seem to work ...
0
votes
0answers
18 views

How to change hyperlink colour in the content of the chapter? [duplicate]

I am writing a chapter in my thesis and have to give references for equations and theorems. But hyperlink to that is appearing in pink colour, which I want to change to black colour. For that, I am ...
1
vote
0answers
49 views

Has anyone experienced conflicts with colortbl?

I was just trying to insert a vertical line between columns in a table and I couldn't figure out why it never showed up in my output. So I started from scratch with a minimal setup and added my ...
5
votes
2answers
151 views

Create legend for heat map

I have the following piece of code that colors words according to some value: \documentclass{article} \usepackage{xcolor} \begin{document} \colorbox{blue!0}{\strut test} \colorbox{blue!10}{\strut ...
2
votes
1answer
26 views

Looping over existing colours in addplot in pgfplots

In Change color in addplot in for loop of pgfplots It was discussed how to loop over nonexistent colours in \addplot and axis I would however like to loop over existing colours, but: \documentclass[...
2
votes
0answers
28 views

Syntax highlighting broken on multiline macros of C code listing

Using the listings and color packages, I can get syntax highlighting on a C code listing quite easily: \documentclass{article} \usepackage[usenames,dvipsnames]{color} %% Allow color names \...
0
votes
1answer
40 views

Table line color

So, in my table I've have even/odd row color, and the text color of those are resp. the complementary colors for slightly increased visibility/contrast. I've achieved this with somebody's code from ...
1
vote
1answer
38 views

Changing color of align* environment

I have this text that I want to include in my LaTeX document. I only want to change the color of the equations in the align* environment, but when I do it changes the color for the rest of the ...
0
votes
1answer
39 views

How to set color conditionally

Disambiguation. For tables and odd even row color, see if this search at Stack Exchange helps: https://tex.stackexchange.com/search?q=table+row+color Disambiguation. For just unilaterally setting a ...
3
votes
1answer
135 views

How do I set a background color and font for inline verb text?

I wish to customize the verb command such that I can customize the font and color, as well as set a rounded colored rectangle as background. I found this in the Tcolorbox manual: \DeclareTotalTCBox{\...
3
votes
1answer
71 views

Advanced customization of Minted code?

I'm a newbie to LaTeX, especially the minted package. I would like to customize it such that the code has a similar style to the attached screenshot. Specifically, I wish to be able to customize: The ...