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
1answer
16 views

Table cellcolor: any way to paint only part of cell?

I have a table where cells have borders and background colors. On some PDF readers the background colors sometimes get painted over the borders: I haven't been able to solve this and now I'm ...
5
votes
1answer
79 views

Plotting curves within a foreach loop and attributing colors from a colormap

I'm trying to plot curves inside a \foreach loop and at the same time define their color through a colormap. The color is given accordingly to a parameter of the curve:(\T/\Tmax*1000), where \T is the ...
3
votes
1answer
26 views

How to change the element color of the table in latex

How to change 2021-2022 to red color in the table \documentclass{article} \usepackage{tabularx} \begin{document} \begin{tabular}{cl} Year 2023-2024 & Very long very long text Very ...
1
vote
1answer
18 views

Apply formatting to selected page numbers of index

I would like to apply a formatting to some of the page numbers in an index. In the MWE below, when I use \index{} the page number should be in black and when I use \MyIndex{} the page number should ...
1
vote
1answer
18 views

Color mismatch between referring/referred to footnotemarks

In the example shown, referring is red (as it should), referred+rule is black (it should be red). There is a similar post for beamer that I haven't been able to adapt to this case. There are more ...
0
votes
1answer
33 views

chapter thumb colour box

I would like to add colour chapter thumb to my code \documentclass[headsepline,BCOR=10mm,11pt,twoside,openright,cleardoublepage=empty,bibliography=totoc,numbers=noenddot]{scrbook} \usepackage[...
1
vote
1answer
14 views

How to make \footnotemark color change?

MWE \documentclass[a5paper,11pt]{report} \usepackage{color} \usepackage[colorlinks=true,linkcolor=blue]{hyperref} \hypersetup{% colorlinks=true, citecolor=blue, linkcolor=blue, ...
1
vote
1answer
20 views

Changing only the number in table of contents

My minimal document looks like this This colors the numbers in the table of contents, and in the section. How can i color the page number in the table of contents as well? I tried using tocloft and ...
0
votes
1answer
39 views

Using tcolorbox, but the color is not exactly the right color

I am using the following code \documentclass[oneside]{book} \usepackage[utf8]{inputenc} \usepackage{tcolorbox} \usepackage{xcolor} \newtcolorbox{tbox}[3][] { colframe = #2!25, colback = #...
0
votes
1answer
55 views

Change the colors at the bottom of beamer package for the theme Madrid

For my work at school, I sometimes create notes with the beamer library. Changing style changes the colors. I chose the style Madrid with the option \usecolortheme{crane}. \documentclass{beamer} %%% ...
2
votes
1answer
36 views

Coloring only author's name and date in fullcite command

As title points, I want to color only author's name and date in my document, in which citations are made by using fullcite command. A MWE could be \documentclass{article} \usepackage[backend=biber,...
1
vote
1answer
25 views

Spacing of Chapter Name and Chapter Number when using package sectsty

Hello my dear fellow latex users! I've been trying to fancy my thesis by setting a color to the chapter names and in order to do so, I used the package sectsty, because I am using a template where if ...
0
votes
1answer
35 views

Is it possible to set the color of partial text inside a node?

I have a tikz node \node[] {blah}; and I want to set the color of half the text, such as "ah" to a different color without having to create a new node and try to make everything stick together ...
4
votes
1answer
44 views

Accessing the current color of a color series

The xcolor documentation clearly states that \color{foo} (or similar commands) should access the current color of the (previously defined) color series foo. However, the following MWE produces a black ...
1
vote
0answers
26 views

How do I make this document follow the CMYK standart?

I've tried some scripts and various tricks I found online, but I'm starting to be near my wit's end. If I do identify -verbose mwe.pdf | grep Colorspace, I get Colorspace: sRGB. I need the CMYK for ...
4
votes
1answer
67 views

Color for math applies to \text{} and \intertext{} as well

I have a LaTeX beamer presentation where I use \setbeamercolor{math text} for enhanced readability and it works great. Unfortunately, all \text{} and \intertext{} is colored as well and that doesn't ...
4
votes
0answers
38 views

Change Path Color at Specified Points (to Tricolor Trefoil Knot)

I am currently teaching myself Knot Theory and am looking to draw related diagrams using TikZ. Using the knots library and a foreach loop, I have written a pretty solid code for drawing a monocolor ...
1
vote
0answers
18 views

Can I make a larger left bracket? [duplicate]

For statements like the one below, I need a large left bracket to precede the array. \Biggr\{ is not big enough. Ideally I could use \left\{ and make the right bracket white, but there doesn't seem ...
2
votes
0answers
36 views

Problem with color background

This has grey background: \documentclass{article} \usepackage{fontspec} \setmainfont{Segoe UI Symbol} \usepackage{caption} \usepackage{xcolor} \usepackage{blindtext} \definecolor{myblue}{RGB}{230....
1
vote
1answer
31 views

pgfplots: Swap colors of predefined cycle list (colorbrewer)

I would like to use the colorbrewer cycle list Set1-5 in pgfplots. This usually starts with a red color, followed by a blue color. However, I would like to use the blue color as my first color and red ...
1
vote
0answers
34 views

Package xcolor Error: Undefined color `tcbcol@back'

I am work on lyx and i got problem when i generated pdf?! The error mg: ! Package xcolor Error: Undefined color `tcbcol@back'. The code of local layout: Style Stop Category MainText ...
1
vote
1answer
32 views

Colouring text in table

I have the following table: \documentclass[a4paper, twoside]{report} \usepackage{amsmath} \usepackage[utf8]{inputenc} \usepackage{booktabs} \usepackage[T1]{fontenc} \usepackage{dcolumn, bigdelim} ...
0
votes
1answer
38 views

The \cellcolor command of the colortbl package does not work

I'm trying to use the \cellcolor command from the colortbl package. Here is the code I wrote: \begin{footnotesize} \begin{table}[!hb] \begin{center} \begin{tabular}{|c|c|c|c|c|} \hline \mbox{$B_3B_2 \...
6
votes
1answer
144 views

transparent text, such that floats and footnotes are affected correctly

My question is very similar to Recolor text, such that floats and footnotes are affected correctly, but I am using transparent text instead of colored text. (I do not simply use grey text because I am ...
4
votes
1answer
102 views

Coloring graphics with tikz

I have been using the fadings tikz library for colouring images (png and pdf, mostly) in LaTeX with the code below. The only two libraries I am using here are tikz and graphicx. % Importing the image ...
1
vote
0answers
28 views

The xcolor package can't find the color “turquoise”? [closed]

Based on this link the color "Turquoise" should be a part of the xcolor package. I keep getting the error: Package xcolor Error: Undefined color `turquoise'. Here's my simple file: \documentclass[...
0
votes
1answer
19 views

Set textcolor of fnmark in Footer

I'm modifying @makefnmark in the body but keeping it the same in the footer using this code: \makeatletter \AtBeginDocument{% % ... } \let\@latex@makefnmark\@makefnmark \patchcmd{\@makefntext}{\@...
5
votes
1answer
222 views

Mixing colours for a symbol

Assuming we have a symbol like a volleyball symbol. In LaTeX is it possible to have a mixture of colors (I do not know if the technical term is texture) of various types that fill a symbol making it ...
0
votes
1answer
32 views

`xr` Cross-Reference: Change Colour for External References Only

I want to reference between two files, say Paper1 and Paper2. I'm using hyperref in each of the documents for internal references. So as to make clear which references are internal and which are ...
1
vote
1answer
34 views

Using beamer's colours

I'm trying to use the beamer system colours for tikz pictures, and I try to follow the approach from this post: How to get actual values of colour theme colours in beamer? So what I came up with is ...
2
votes
2answers
59 views

Colored tables with booktabs, makecell and cellspace

While experimenting with different table-packages, I realised, that each package basically stands for itself and often lacks in compatibility with other great packages. So I tried to create a table ...
2
votes
1answer
27 views

Using beamer colors

to avoid having too many colors, I use beamer's colors to emphasize items of my text. It looks something like this: \documentclass[xcolor=dvipsnames]{beamer} \usetheme{Madrid} \newcommand{\gn}[1]{\...
4
votes
2answers
45 views

XeLaTex with pgfplots displays wrong color?

I'm using XeTex for Truetypefonts. It appears as if the color output in pgfplots is not correct. Is that a bug? Or do I have some misconfiguration? For other colors than black (e.g. red for the axis ...
3
votes
1answer
47 views

\colorbox with Hebrew

When using a \colorbox (or derivates such as framed's shadedbox) with Hebrew and pdflatex, the color stack seems to get confused: pdfTeX warning: pdflatex: pop empty color page stack 0 and the ...
1
vote
2answers
53 views

Vertical gradient color for background of one page

I want to type some text with XeLaTeX like this picture on one page. Sorry I don't have any good minimal code. \documentclass{report} \usepackage{xepersian} \settextfont{Yas} \begin{document} تقدیم ...
0
votes
1answer
33 views

How to make double headers in memoir? Header with two rulings?

I want to make a header that will have two rulings... Here's what I have so far: \documentclass[a4paper,12pt,oneside,showframe]{memoir} \setlrmarginsandblock{2.5cm}{2cm}{*} \setulmarginsandblock{...
0
votes
0answers
22 views

How to make custom header/footer, marginnotes and use custom fonts in “memoir”?

I'm new to LaTeX. I'm using XeLaTeX on Linux Mint Tara to compile. Updated version of TeX Live is installed. Here's What I'm trying to make: Here are my queries: I have used fontspec package to ...
1
vote
2answers
62 views

Drawing a colored rectangle containing margin

I want to draw a colored rectangle that contain left, top and bottom margins. Like this picture (border is not real). \Thanks :) \documentclass{book} \usepackage{showframe} \usepackage{tikz} \begin{...
3
votes
0answers
56 views

ghostscript gives undefined in --execute— when using color.tex with pstricks on plain tex

Assume the following plain TeX file: \input pstricks \input color \pscircle{1.5} \bye Compiling using eTeX works fine, dvips too. However the resulting PS file can't be processed using gs, I'll post ...
1
vote
1answer
31 views

changing color in flushleft in deedy-resume

I'm trying to change the color of the heading lines ( for example the name and contact info in the title should a different color for each line of the headings). And unfortunately it doesn't work as ...
0
votes
2answers
46 views

Creating bracket-enclosed, colored, hyperlinked text

How do I surround a hyperlink with square brackets using \href? I want something like [Link] with square brackets, in black and "Link" in blue (my default hyper-link color).
3
votes
1answer
57 views

Are there any pros and cons associated with dvipsnames, svgnames, and x11names in xcolors package?

The xcolors package mentions three color options in its package documentation at http://mirrors.ctan.org/macros/latex/contrib/xcolor/xcolor.pdf. They are dvipsnames, svgnames, and x11names. I ...
1
vote
1answer
28 views

Changing border color of \frame{}

I am using the \frame{} command to draw a box around an image, like \frame{\includegraphics{...}}. Is there a way to change the color of this box? It is black by default.
3
votes
1answer
44 views

Programming table cell colour based on contents

I built this table based on an earlier Q&A: As you can see there's a problem with the header. How can I disable the highlighting for headers only? Here's the code: \documentclass{article} ...
2
votes
1answer
62 views

How to change logos in Black color by using bclogo.sty

Is this possible to change \bclampe color to Black color? My tags are follows: \documentclass{book} \usepackage{environ} %fancy boxes \usepackage{tikz} \usetikzlibrary{patterns,shapes,arrows,calc,...
7
votes
2answers
1k views

Why does Latex make a small adjustment when I change section color [duplicate]

I want to change the color of a section of a document. The command to do so is {\color{red} \section{Introduction}} (Merely doing \section{\color{Introduction}} does not change the color of the ...
4
votes
1answer
73 views

Which colors are these? (minted package)

I am using code Highlighting for Python 3.7 with the minted package. I am using the tango color scheme (you can see all the color schemes minted uses in this page). I want to know the hex/rgb/cymk ...
0
votes
1answer
29 views

Define colors in a central file and import them to other tex documents

I'm new to LaTeX, so this might be a stupid question, but is there a way how I can define colors in one file and then use them by their name in another document? I'm thinking of something like this: %...
1
vote
1answer
55 views

How to color a specific reference in bibliography using apacite?

I would like to color in red specific citations in bibliography section (let's say Jahani et al.) using the apa6 class and the apacite package. Here is my .tex file: \documentclass[a4paper,man,...
1
vote
2answers
110 views

Coloring Arab vowels/marks without losing connection

In Arabic script you add short vowels/diacritics (marks) above/below the consonants. How do yo go about coloring them (on a case by case basis) without losing connection/breaking the letters/vowels in ...