Stack Exchange Network

Stack Exchange network consists of 175 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.

0
votes
1answer
15 views

Definecolor Not Working in Beamer

I have an A0 poster in beamer which I'm trying to create some of my own colors for, however my code refuses to acknowledge \definecolor . Here is my full preamble which compiles fine when the ...
1
vote
1answer
36 views

Table of contents and colors

I wanted to know if it is possible to have the table of contents in black like it appears in the picture: And also make the sections appears in blue when referencing them: This is my current set up: ...
0
votes
0answers
27 views

Table formatting issue in Overleaf

I am using Overleaf for a report and my table header isn't formatting correctly. This is the initial part of the code (the table is long, spanning across two pages - it has 20 rows. I am a total ...
0
votes
1answer
39 views

Can you write a macro such that each character will be the next color of the rainbow

I would like to write a LaTeX file where each character will be the next color of the rainbow, but I don't know how to program this in a new command. So if I would want to write the text "Hello ...
0
votes
0answers
25 views

Colors in tabu environment not showing

In the simplified code shown below, I am trying to get alternate colors in the table from the code used by Harvey Sheppard. My output table does not contain any colors. Is there some configuration ...
6
votes
1answer
61 views

xcolor breaking ligatures

In some behind the scenes work for spacing reasons, the pieces of a syllable get split up in gregoriotex and then reassembled for printing. Normally this works fine, but we're running into some ...
3
votes
2answers
146 views

Drawing tables with colors

I’m trying to create a table in my tex document that resembles more or less the table in the picture below: I found this chunk of code but still, I don’t know how to separate each table as it appears ...
0
votes
0answers
35 views

Package xcolor error: Undefined color `plum' [closed]

I got problems with xcolor packages, it keeping report error that 'plum color is not defined' but I didn't use, please help, here is my code: \documentclass[twoside,svgnames,usenames,dvipsnames]{book}...
0
votes
1answer
27 views

Display text in PDF, but remove it when physically printing the document

I'm trying to create a document which contains some special text that's only visible when the document is opened in, e.g., Acrobat. When printing it using a normal printer, I want the text to be ...
0
votes
0answers
15 views

How do I change the colour of my title in Baposter in latex?

I am making a poster using the baposter document class. The background of my poster is dark, and since the title is black by (default), the title is very hard to read. I would like to make my title ...
1
vote
2answers
52 views

Create a modified cite command that colors the number inside the square brackets

i was searching for the past hour and couldnt find an answer. I'm using the cite{} command and its working nicely ofc. But I would like to make a small modification. When my reference appears in the ...
7
votes
2answers
383 views

How can I make dummy text (like \lipsum) grey?

I would like to make my dummy text more distinguishable from the normal text, so I can better determine the progress by making it for example grey? Can I adjust the \lipsum command, so it applies ...
2
votes
2answers
55 views

How to change syntax for color and fill color in tkz-eulide

In tkz-euclide, points are filled in grey with a black outline. I can setup points to be completely black by using \tkzSetUpPoint[fill=black] Now what I would like to have a new keyword rot so that ...
2
votes
2answers
173 views

Background of mini page

In a ‘mini page’ environment, is there a way to have a back ground and then writing on top? Rather than just writing and a translucent background.
3
votes
1answer
45 views

“Table” option for package “xcolor” gets “Use of @startpbox doesn't match its definition.”

I am getting the following error during compilation: "Use of @startpbox doesn't match its definition." Here is the code: \documentclass[a4paper]{article} \usepackage[utf8]{inputenc} \usepackage[...
3
votes
1answer
76 views

Colour cells of a table according to a vector of colours

I am new to latex and this is my first question of tex.sx, and I apologise in advance for being unable to make a good reproducable example. I am trying to colour cells of a table according to a '...
0
votes
0answers
22 views

How to get rid of white border when printing using page color and xcolor?

The most similar situation I could find was this question here. For a pdf document, I wanted to add a background colour other than white. I did this simply with: \usepackage{xcolor} \pagecolor{gray}...
1
vote
2answers
20 views

Defined color of page rgb

How to defined the color to use it as pagecolor with rgb? This code would work with blue instead of myblue. Thank you \documentclass[12pt,a4paper]{report} \usepackage{xcolor} \usepackage{blindtext} \...
1
vote
1answer
40 views

PGFPlots colormap increase number of discrete colours

Consider this MWE: I have 32 plots, and I want the colormap to be distributed evenly across all the plots. At the moment, after 9 plots, the colours cycle back to the start. Is there any way to ...
0
votes
1answer
62 views

Border Disappears When Adding Color to the Last Row of a Table

I want to color the last row of my table and I have been able to do so using \rowColor, however I lose all of the borders of my table when doing that for the last row. My last row looks like this ...
0
votes
1answer
119 views

xcolor package problem

I am trying to color the rows in a document. The code I am using is as below \documentclass[11pt,a4paper, twoside]{scrbook} \usepackage{longtable,tabu} \usepackage[table]{xcolor} \definecolor{grey1}{...
0
votes
2answers
54 views

Listings with color OR tilde, not both

Trying to get a listing block with a command prompt that has both color and a proper formatting. I can get the proper format with a simple black typeset, but not with color...the tilde (signifying ...
4
votes
1answer
90 views

Piecewise function turns into colored table

For a document that has both a bi-colored table as well as a separate piecewise function, the piecewise function instead gets recognized and turned into a table. \documentclass[fleqn]{article} \...
2
votes
2answers
38 views

Table coloring doesn't extend all the way with makecell

This issue occurs while using xcolor to alternate the table color, while also using makecell to put multiple lines in a table cell. In this specific scenario, where a larger cell is in a colored line, ...
2
votes
1answer
27 views

Escape listings but keep colour formatting

Getting bold typed text I have been using listings to format my code, and have occasionally been using the following solution to make some typed text bold: \DeclareFontShape{OT1}{cmtt}{bx}{n}{<5&...
1
vote
1answer
54 views

tabu: Alternating colors of rows

Why does the following MWE not work as expected to make the row color alternate? \documentclass{article} \usepackage{tabularx,booktabs,tabu,amsmath,colortbl} \usepackage[table]{xcolor} \begin{...
1
vote
1answer
33 views

Tables: Cell Color based on content / conditional cell coloring

I want a table to have red or green cell color, depending on the content: If the content is "a", make it green, if it is "b", make it red. BUT if the content is something else (e.g. in the column ...
5
votes
3answers
130 views

To customize a predefined symbol with different colors

For example I have this code \documentclass[a4paper,12pt]{article} \usepackage{xcolor} \usepackage{manfnt} \begin{document} \color{red}{\textdbend} \end{document} that produces this output: By ...
0
votes
0answers
58 views

Conditional Latex table: Cell value color based on its value

I would like to create a conditional where values less than 7 are in red and values greater than or equal to 7 are in blue. I would like a result like the one below: Follows my MWE. \documentclass[...
4
votes
2answers
128 views

Colouring column values based on a specific condition. How could I do this?

I am generating a big-table from a csv file using the latex code as given below. \documentclass{article} \usepackage{booktabs} \usepackage{csvsimple} \usepackage{caption} \usepackage{longtable} \...
3
votes
1answer
37 views

circuitikz: setting color using \pgfmathparse

\documentclass[a4paper]{article} \usepackage{tikz} \usepackage{circuitikz} \usetikzlibrary{shapes.geometric,arrows,shapes,decorations.markings} \begin{document} \begin{circuitikz} [american ...
2
votes
1answer
24 views

using two `\foreach` variables multiplied to select a color mixture

I'm trying to draw a grid with a mix of colors, that changes depending both on the x and y coordinate (MWE): \documentclass[border=4pt]{standalone} \usepackage[utf8]{inputenc} \usepackage[T1]{fontenc}...
4
votes
2answers
83 views

Changing the lines of the arrowhead in circuitikz

First of all, this is a crosspost from the german website golatex.de. I am hoping another set of eyes on it might help find a solution. If I draw two voltage sources with circuitikz and the second ...
2
votes
1answer
39 views

How to change the color of a specific character

I'm writing a paper for one of my classes that is on the Catalan numbers and I wanted to include an example about how they match up with the number of ways to "legally" arrange n pairs of parenthesis. ...
2
votes
1answer
31 views

Color a table with toprule and cmidrule [duplicate]

I have created a table in the following way: \documentclass{article} \usepackage[table,xcdraw]{xcolor} %Tables \usepackage{array,multirow} \usepackage{booktabs} \begin{document} \begin{table}\...
1
vote
1answer
43 views

bold a defined color

Here is one of my custom colors that is "light blue". Sometimes it comes up very skinny on the text \definecolor{lb}{RGB}{44, 139, 183} Is there an easier way to bold or thicken the font of a \...
0
votes
1answer
28 views

In biblatex (and fnpct) the feature of moving around punctuation breaks if using color commands over it

Biblatex by default (autopunct = true) moves punctuations around for superscript citation. However, changing the color of the superscript by \textcolor or by \color (need extra grouping) breaks this ...
0
votes
1answer
42 views

Cell background color longer than midrule (or hline) in table

I have a small problem in my table editing using booktabs and colors. The main problem is the background color of a cell is longer than the midrule, which is not a huge problem but it is quite ...
1
vote
1answer
28 views

draw arbitrary domain with different colors on the domain boundary

I want to draw an arbitrary domain in tikz with different colors on the boundary. I have managed to draw an arbitrary domain but I am not able to color the boundary properly. here's a picture of how ...
2
votes
2answers
141 views

Switch font and color of TOC and LOT titles

What I'm trying to do is pretty basic it seems, but it's also above my pay grade: change the font and the color used for the TOC title Contents and the LOT title List of Tables (see attached screen ...
1
vote
1answer
36 views

Changing the brown color by another color

\documentclass{beamer} %\usepackage{etoolbox} (this is necessary for old beamer versions) %\usepackage{graphicx} %\usepackage{color} \usetheme{Madrid} % Definition %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%...
0
votes
1answer
75 views

Cellcolor - undefined control sequence

What is wrong with this please? I have error ! Undefined control sequence. Fit& 1& 2& 3& 4& 5& 6& 7& 8& 9& \cellcolor Thank you \documentclass[12pt,a4paper]{...
1
vote
0answers
26 views

Problem after tabu package update when using xcolor

After tabu package update X[-1] produces error when xcolor package is used: \documentclass{article} \usepackage{tabu} \usepackage{xcolor} \begin{document} \begin{tabu} to \linewidth {X[-1]X[1]} ...
4
votes
1answer
58 views

Is there a simple/elegant way to color atom groups in chemfig?

I have a lot of molecules to draw. For teaching purposes I need to color certain atoms or group of atoms. Due to alignment of the main chain, I'm using a | symbol after each atom on group, combined ...
2
votes
1answer
21 views

Color alternating groups of rows except the last row in table

I'm coloring alternating groups (5 rows) in a table. I want to do this for the 40 data rows. I don't want to color the last row in the table that's a quality control checklist. More or less I want ...
0
votes
0answers
57 views

When I add tikz package, I get Too many }'s. \end{figure} error

I really need help. I am writing my thesis now. The coding that I'm writing now looks like below: \documentclass[oneside,12pt,a4paper]{book} \usepackage{UTMThesis, enumerate, amsfonts, amsmath, ...
0
votes
0answers
33 views

Can I add color to column with colorbox or some other method that LaTex native? [duplicate]

Can I add color to column with colorbox or some other method that LaTex native? What I want to display is below: have tried \begin{vmatrix} \quad 5 \qquad 1 \qquad \colorbox{grey}{1} \quad\\ \quad -...
3
votes
1answer
38 views

Beamer - how to change color of each equation in align environment?

I want to use beamer overlays to change the color of equations in an align environment. On each slide, I want all equations to be black, except one which should be red. On the first slide, the first ...
0
votes
0answers
22 views

The visualization of a pdf is different between VS-Code, Preview and adobe in windows

I have the following code that doesn't work properly. main.tex \documentclass[12pt, french, a4paper]{report} \input{header.tex} \begin{document} Ceci est un test Page 1 \newpage Ceci est un test ...
1
vote
1answer
46 views

different colours and customizations for individual vertices/nodes for a tikz graph

So I draw my graphs like \documentclass{standalone} \usepackage{tikz} \begin{document} \begin{tikzpicture} \tikzset{Bullet/.style={fill=black,draw,color=black,circle,minimum size=3pt,...