Questions tagged [color]

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

Filter by
Sorted by
Tagged with
0
votes
0answers
24 views

Are RGB defined colours converted to the xcolor setting?

I am preparing a manuscript for print. I am not a typesetter and now fairly little about printing in general. I have read that CMYK is typically the preferred format for printing (as it refers to ...
3
votes
1answer
28 views

Colors in Exam class?

I would like to configure the colours in the Exam class, but it is not working and I get no colours. \documentclass[french,a4paper,addpoints,12pt]{exam} \usepackage[dvipsnames]{xcolor} \definecolor{...
0
votes
1answer
34 views

How to use colorbrewer in pgf area plot

I am trying to create an area chart using some colorbrewer color scheme. How would I do that? The things I found on the internet were somehow not working for area charts. Here is my MWE: \...
0
votes
0answers
33 views

Changing color of grid

I am using overpic package on a standalone document class. I want to write some text over an image. However, the image I am using is black, therefore, the grid does not seem to be helpful here. How ...
1
vote
1answer
34 views

Using color and background color together

I'm trying to use color and background color together. But, for example, the following is not working - showing only a black box. What I may be missing here and how can it be fixed.? Remark: I'm using ...
2
votes
1answer
25 views

Retrieve frametitle-fg-color in beamer

Could you please help me on how to "retrieve" the color a beamer document currently uses for coloring headline fonts? I would like to use it to color ordinary text, as in \textcolor{\...
0
votes
0answers
42 views

Wrong position of superscript with colored brackets

Coloring the brackets changes the position of the superscript. How can I get the same position as in the right example with standard color brackets? I intend to use \left) and \right) for brackets to ...
0
votes
1answer
34 views

Cellcolor doesn't color full cell in custom longtable caption definition

To create a caption in a longtable multicolumn table cell with a grey background I changed the \LT@makecaption from the original package. \documentclass[12pt]{article} \usepackage{longtable} \...
0
votes
0answers
38 views

Stacking boxes side-by-side with geometry and tcolorbox packages

I have been editing a CV with tcolorbox and geometry packages, I wanted to stack side-by-side two boxes below a top box but when I run the code the top box sits on top of the first page alone and the ...
0
votes
0answers
24 views

Is it possible to have different colours between hyperlinks for figures reference and for chapters reference?

I'm trying to have different colours regarding the hyperlinks for figures and for chapters. So far I've been able to differentiate the colours between equations and chapters/figures, doing this \...
5
votes
2answers
115 views

Colors changing under graphic inclusion with graphicx

I have (a couple) of PNG images with a background color of, for example, RGB(80,64,83): that when placed on a page of the same background color with graphicx -- they show a distinct tonality against ...
5
votes
1answer
55 views

Color lower half of the $\ge$ symbol

I wish to partly change the color of the $\ge$ symbol. In particular, I want to change the horizontal bar into a red color, similar to this: How can this be typset?
1
vote
1answer
49 views

RGB to CMYK equivalent color

TeXnicians, How to convert RGB to equivalent CMYK color value from RGB color values? Please find MWE file as follows: \documentclass[draft]{book} \usepackage{color,} \definecolor{rgbcolor}{rgb}{0.686,...
0
votes
1answer
42 views

Its possible to apply a efect like pen and ink over an axis/path?

I dont know if a effect like using ink/pen transparency can be achieved in latex. Something like the image, applyed to an axis or a path or any other object. Thanks
4
votes
2answers
68 views

Header with background color

I wanted to know whether there is a way to set the background color of my header. Here is my code so far: \usepackage{fancyhdr} \usepackage{lastpage} \pagestyle{fancy} \fancyhf{} \fancyhead[L]{\textsl{...
2
votes
4answers
344 views

A complete graph on 5 vertices with coloured edges

I was unable to create a complete graph on 5 vertices with edges coloured red and blue in Latex. The picture of such graph is below. I would be very grateful for help!
2
votes
2answers
96 views

Color an example-image

Is there a simple way to set the color for a (blank) example-image? The naive way doesn't work: \begin{figure} \color{red} \includegraphics[width=\textwidth]{example-image} \color{black} \end{figure} ...
0
votes
1answer
33 views

How can I put a blue line in front of a quotation?

I want to put a blue line to the left of a quotation that has the exact size of the height of the quotation. It should look like the following image. How can I do it?
1
vote
1answer
57 views

Beamer: How To Define Colors from Dolphin Theme

I was trying out different themes, and I accidentally stumbled on a combination of themes whose color combination I very much like (with color theme: Dolphin). I'm using the themes: Berlin, Frankfurt, ...
0
votes
1answer
46 views

Ungrouped \color breaks \limits

Thinking about the issue posted in Colors in underbrace and overbrace - strange behaviour I thought that the reboxing which TeX performs for a \mathop with \limits caused the color to leak outside of ...
1
vote
3answers
60 views

Customize the caption with a background

Hi there, i have some problems with modifying a caption which belongs to a listing. The current result is shown in picture. What i would like to change, can be seen in the second picture. As you can ...
10
votes
1answer
227 views

Colors in underbrace and overbrace - strange behaviour

There is a strange inconsistency between \overbrace and \underbrace when one wishes to have the associated text (above or below) in a different color. \underbrace behaves as expected and \overbrace ...
0
votes
1answer
97 views

Undefined control sequence. \set@color …\@pdfcolorstack push{\current@color}\aftergroup \reset@color

I know, there is this question but my knowledge regarding .cls files when it comes to latex, is too little. I tried to do as the solution there says there but I don't use begincmd so I don't know how ...
2
votes
1answer
54 views

How to pass a hex color as argument to a new command?

I would like to pass a color in HEX format to my arr command. I do not want to define a color. \newcommand{\arr}[2]{ {\tikz{\path[draw=#1,line width=1.5mm, line join=round,line cap=round, - {...
2
votes
1answer
45 views

Switch off color interpolation in PGFPLOTS

I want to plot a heatmap-style diagram, where only the diagonal of a 2d-matrix has values. What i would expect is the plot to only contain color that represents values > 0 on the diagonal elements. ...
0
votes
0answers
49 views

How to match the filled contour and contour lines

How can I match the levels lines with the filled contours? Is there a pgf-based solution to draw the levels lines? My code \begin{tikzpicture} \begin{axis}[ view={0}{90}, colorbar right, ...
0
votes
0answers
20 views

How to color only literal constant in listings package?

I'm trying to show some c++ codes and want to hightlight all the literal digits with colors. I have referred to the question Coloring digits with the listings package and Colored strings by listings ...
0
votes
2answers
124 views

Fill region and add a vertical or horizontal strip inside

Question:1 How can i fill region between points A(2,0) and B(2,0) with different colors? Question:1 How can i add a small size (width approximately 0.25 cm) vertical strip with upper-lower labeling in ...
2
votes
1answer
47 views

How can I change the color of specific terms of equation (For exemple $P$) for all the text?

Like, to always that I put $P$ in the latex code, it appears with the color purple) This is the code: (Look that I need to put \purple{$Q$} <= that is a shortcut for \textcolor{purple}{$Q$}. Maybe ...
2
votes
2answers
53 views

Change the color of footnote text for long footnotes

I want to change the color of my footnotes, but I'm running into a problem with long footnotes I'm using memoir and to change the color of footnotes, I can use \renewcommand{\foottextfont}{\color{gray}...
0
votes
0answers
12 views

Difference between the colour of the text in the document compiled on Overleaf and after downloading it on Mac OS

I have compiled a document on overleaf.com. I used red colour for some of the text and the document was generated successfully with no errors. After I download it on the Mac OS, I see a significant ...
3
votes
1answer
76 views

How to put two colors in the same line/path in tikz?

How can be colored a line/path in tikz? i.e. green before the 5 and red after? I have seen a option with \usetikzlibrary{decorations.markings} but this seems too much complex to the task (even ...
0
votes
0answers
13 views

Get access to the colormap jet

I need to get access to the pre defined color map "jet". I found my an example to get access to the map "vidiris" import numpy as np import matplotlib.pyplot as plt from matplotlib ...
5
votes
2answers
48 views

Tabularx, rowcolors, rotated multirow text in table

I'm having issues with my tables, specifically with alternating row colors. In my tables, I have a column in which I display the category of the row entry. E.g., for olympic weightlifting, I ...
1
vote
1answer
42 views

How to change the header to a certain color?

I am trying to make all the letters in my header red. I tried adding more hashtags, but that makes the text disappear if there are more hashtags than letters. If I make space for "Work Experience&...
0
votes
1answer
46 views

How to plot a colored helix whose color varies in the curve through a function?

I have a problem on how to color the plot of a helix using pgfplots. Let the helix be given by $\alpha(\phi) = (\cos(\phi),\sin(\phi),\phi)$, for $0 \leq \phi \leq 2\pi$, then I need the color of the ...
2
votes
2answers
87 views

Use colour specification for TikZ arrow and label without first using `\definecolor`

Consider the following, in which arrows and labels are coloured using \definecolor: \documentclass{article} \usepackage{tikz-cd} \begin{document} \definecolor{reddish}{HTML}{A01A3A} \definecolor{...
0
votes
1answer
20 views

Referencing figure in text question!

How to add that sky or blue text color when referencing the figure in text. That's not in figure section, just a normal paragraph. For example, in the beginning of the paragraph Fig1. demonstrate the ...
1
vote
0answers
84 views

PGFplots - Problem with “colorbar as legend” option

I have a problem when I use the option colorbar as legend : the displayed tick labels are incorrect. After looking in the PGFplots manual, I noticed that the example given also had this problem. Is it ...
0
votes
1answer
30 views

table with optional border colors and text colors

I am trying to make a table that has a can have optional color for its borders and texts, similar to the following table taken from here. I hadn't very much luck so far modifying the snippets ...
0
votes
1answer
45 views

Changing line color of an Op Amp color

I was able to change the line color of op amp (to cyan) using the command shown in the code below for one circuit. However, I want to achieve the same affect for the whole document using a document ...
0
votes
1answer
44 views

Background color for documents generated by the preview package

My question is very simple: is it possible to use \pagecolor from xcolor (or related packages) to change the background color of a document generated by the preview package? I've tried to add \...
0
votes
1answer
43 views

How to automatically set different colors for differents lines on the same plot

I use this code for plotting lines with different colors automatically \documentclass[crop]{standalone} \usepackage{pgfplots} \usepgfplotslibrary{colormaps} \pgfplotsset{compat=1.9} \pgfplotsset{ ...
3
votes
3answers
244 views

LaTeX Overwriting colored text

In LaTeX, usually I use default color {\color{blue}changed color.} or default color \textcolor{blue}{changed color.} to change the color of a certain part of the text. Now I want to change the ...
3
votes
1answer
50 views

Convert table from article to beamer

I made the following table to be used in an article class document using \usepackage[table,xcdraw]{xcolor} and \usepackage{tabu} and it works with no problems. However, now i need to use it in a ...
0
votes
1answer
33 views

Make color of error bars same as marks using colormap

I have investigated this a couple of hours now, and the best I found was Define error bar color in scatter class. Too bad, the solution doesn't compile for me. I want my error bars to use the same ...
0
votes
0answers
47 views

Matching colors

I'm having trouble matching colors. I build myself a "top" and "bottom" for an abstract box. However, I can't get the middle background color to work. No matter what I try, even ...
0
votes
2answers
52 views

Creating a Table fitting the line width and without thin white vertical lines between color filled cells

Can some help me making the table coded in this Thread https://tex.stackexchange.com/a/301036/229635 fit the line width? As a MWE I copied the code from the Thread I attached as a link. Thanks a lot, ...
0
votes
1answer
22 views

Outliers' colours do not match their corresponding Boxplot colour

can you give me some help here? I'm using custom colours for each axis of my boxplot, but their outliers do not match that color. This is what I have so far \documentclass{article} \usepackage[utf8]{...
0
votes
0answers
18 views

How to change the color of a particular bar in a bar diagram with pgfplots? [duplicate]

% used PGFPlots v1.14 \documentclass[margin=0.5cm]{standalone} \usepackage{pgfplots} \usepackage{pgfplotstable} \usepackage[scaled]{helvet} %Paquete para letra helvetica parecida a letra arial \...

1
2 3 4 5
70