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.

1
vote
1answer
32 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
24 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
32 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
21 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
110 views
+150

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
34 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
34 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
18 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]} ...
0
votes
0answers
35 views

The color scheme is gray on blogger [on hold]

I am Russian. English do not know, I write using online translator, so I apologize for my language. I started writing a blog. Connected thereto Mathjax. I need to create a macro that surround the ...
4
votes
1answer
43 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
19 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
50 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
32 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
19 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
45 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,...
0
votes
1answer
21 views

xcolor: setting/removing the space around the table columns throws an error

The following code works well: \documentclass{article} \usepackage[table]{xcolor} \begin{document} \rowcolors{2}{gray!25}{white} \begin{tabular}{cc} \rowcolor{gray!50} Table head & ...
2
votes
1answer
30 views

Table with colour cell without blank space in the corners

This code allows you to create a table in which the first two rows have colors. I want to create the same table but without the blanks that are left, right and middle of the cells, so that it stays ...
2
votes
1answer
106 views

Tool (or formula) that to convert RGB color to xcolor code (example of the type red!30!green)

Often I use xcolor package also to create several and customize kinds of colors. Many times I use the combination of the page 33 because it's understandable to me: But to find the exact shade of ...
1
vote
1answer
25 views

X-4 option of PDFX does not show hyperlink color with the PDF/X option (x-4)

It is indicated in the pdfx manual To produce a validating PDF/X document,pdfx overrides internal macros while keeping colors associated with link anchors. I can see the same claim in the answer ...
1
vote
1answer
62 views

Keynote: using color in equation to match keynote color scheme

Since Keynote 8.x support latex equations natively, I wonder whether it is possible to assign colours to parts of an equation to match the color scheme used in the presentation. E.g., I like to ...
0
votes
0answers
39 views

lstlisting basicstyle with color and fontsize

I have a setting of lstlisting as shown below. I would like to change to font size of the listing. I know that I can do that with basicstyle=\tiny or similar, but that loses the basicstyle=\color{...
0
votes
1answer
15 views

Change the link color of a labeled item with custom label text

I found the code in the following page: https://joerglenhard.wordpress.com/2011/11/29/labeled-item-with-custom-label-text/ In author's own words: "an item list where each \item is labeled, so I can ...
0
votes
1answer
56 views

Why a specific \color does not work on \author?

On beamer document class, in the part of \author does not let me put an specific color. I have \author{\pink{ my name} \\ other name} Specifically does not work with \pink but it does for \blue,\...
1
vote
1answer
37 views

Prevent `hyperref` from changing the color of section and subsection hyperlinks

I am trying to customize my themes, but also would like to use hyperref to get quick links for ease of navigation. However, hyperref seems to replace the color of all contents to its linkcolor option. ...
1
vote
0answers
24 views

Table: Alternating rowcolours / banding [duplicate]

I have a table with over 400 entries. I wanted to make it more readable by colouring the cells in grey and white. I know how to do it with a regular table. But I cannot get it to work with a longtable ...
1
vote
0answers
29 views

Own defined color and pgfplots

My codes are follows: % Using spot colors with xcolor and pstricks. % process with: % $ latex xcpst % $ dvips -h tex.pro -h xcolor.pro -h spot.pro filename.dvi \begin{filecontents*}{PANTONE300C.pro} %...
1
vote
2answers
31 views

Order of \usepackage causes error with footnote and xcolor

Attempting to compile the following, \documentclass[answers]{exam} \usepackage{footnote} \usepackage{xcolor} \makesavenoteenv{solution} \begin{document} \begin{solution} Hello.\footnote{Goodbye.} \...
3
votes
2answers
77 views

How to color tabu row background in beamer LaTeX

I am trying to color the background of the third row of this tabu environment red: \documentclass{beamer} \usepackage{tabu} \usepackage{colortbl} \begin{document} \begin{frame} \begin{tabu}{XX} \...
14
votes
3answers
670 views

Change the color of a single dot in `ddot` symbol

How can we change any of the two dots of the ddots math symbol? I can change both of them: \documentclass{article} \usepackage{xcolor} \begin{document} $\color{red}\ddot{\color{black}x}$ \end{...
3
votes
1answer
51 views

How to connect `pic`s through a set of colorful arrows using `tikzpicture` environment

This is and addendum of a previous question: How to determine nodes to reduce their length using tikzpicture environment, and we need to use this other question: Draw multiple arrows from one node to ...
2
votes
1answer
51 views

Draw multiple arrows from one node to many others using a palette of colors

This is a continuation of a previous question: Draw a set of arrows using a palette of colors. What I want I want to draw multiple arrows starting from one node to more than one. Each arrow that ...
0
votes
1answer
31 views

Adding color and increasing between rows of table

How can I add RGB color (78, 126, 222) to every other row in right half of the table generated below? And how do I increase spacing between these rows? I tried to use \rowcolor but got an error. \...
2
votes
1answer
40 views

How to color half page?

I used color to color my page. I want a horizontal (halfway) colored patch which begins from the midpoint and ends at the right end of the page. (Only for the first page and not for the complete ...
6
votes
1answer
74 views

Draw a set of arrows using a palette of colors

I am involved in a project that includes the creation of arrows. Making a monocolored figure is a visual problem due to the scarcity of colors, so I came to design a solution that is as automatic as ...
1
vote
0answers
35 views

Color the lines of only a single cell of a tabular [closed]

I have the following table: \begin{tabular}{!{\color{black}\vrule}c!{\color{gray}\vrule}c!{\color{gray}\vrule}c!{\color{black}\vrule}} \arrayrulecolor{black}\hline & & \\ \...
2
votes
1answer
48 views

Coloring half of a single frame in black

I'm currently working on a presentation using the beamer class and I've stumbled upon a problem that I don't know how to solve. Consider the follwoing MWE: \documentclass{beamer} \mode<...
3
votes
1answer
35 views

Striking out colored text through user defined commands

I have been trying to strikeout a colored text defined by a macro, but it seems that it does not support line breaking. I have a command bt to type blue text and I want to strike some of the text with ...
1
vote
1answer
36 views

Remove circles & add colors to elements of Tree

Question: I am looking for the image added below. And i want to add different colors to every nodes. This what I have done so far: \documentclass{article} \usepackage{forest} \begin{document} ...
6
votes
1answer
745 views

A diagram about partial derivatives of f(x,y)

How can I draw this image using TikZ?
4
votes
1answer
44 views

Change the color of the header line

The answer to the question fancyhdr - Change horizontal line color on top of footer is not completely satisfactory, because it changes the position of the header line, for example with this example. \...
4
votes
0answers
23 views

Edge of prooftree takes on style of other edge if move by is used twice

I use the package prooftrees, which is based on the TikZ forest. As I have to draw proofs with many branches, I want some nodes to be lower, which is supported by the "move by" option. However, if I ...
1
vote
0answers
11 views

Defining main colors and sub colors [duplicate]

I am using the packages xcolor and tikz. I have defined my own color in rgb which name is MyColor1. I am using multiple times in TikZ MyColor1!50!white and I want to define it as Mycolor2 so that if ...
1
vote
1answer
36 views

Unable to center text when trying to color the background of a section title

I am trying to create a section header with a bold horizontal line on top and a bold horizontal line at the bottom, and a background color that extends to both ends with a centered title. So far I am ...
0
votes
1answer
39 views

How to color specific word in a paragraph more times?

Maybe the title is a bit misleading and it's my pilot post on here :) Anyhow, I have a paragraph with ,let's say 100 words, from which 10 of those words are word "dokument". I have to make a command ...
4
votes
1answer
52 views

prerex package changes toc color

I use the prerex package to draw a simple prerequisite diagram. It works well, but changes the table of contents color to red, what looks ugly. I tried to change it back with {\color{black}\...
1
vote
2answers
73 views

Color each edge separately in TikZ

I want to color the edge AB with thick blue color and edges AC and BC with thick red color. Referring to the answer in Multiple color edges in TikZ, one way is to use the \clip[draw] command. But, I ...
2
votes
1answer
51 views

How to adjust darkness of various colors for text

Question: 1 How can I adjust darkness of different colors in my document? Question: 2 I want to add headrule and footrule with specified width and length, even I wish to write some text at left, ...
2
votes
2answers
51 views

Define cover colors based on current month

I am writing a style guide documentation and I want to make visually appealing what the document was updated using the cover color. The main idea is to automatically update cover color based on the ...
4
votes
1answer
48 views

Colored cell removes line

I have a problem with coloring a cell in a table because it removes the upper line of the cell. I already found out that there are some issues with \cellcolor and \cline but I couldn't come up with a ...