We’re rewarding the question askers & reputations are being recalculated! Read more.

Questions tagged [color]

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

Filter by
Sorted by
Tagged with
1
vote
1answer
59 views

LaTeX: Inconsistent colors in PDF

I am using tcolorboxes with grey frames for examples in my PhD thesis. It will be printed professionally and the sample print I received shows inconsitent colors. The tcolorboxes are created ...
0
votes
0answers
23 views

tlmgr install : package translator not present in repository

To reduce the size of docker image I have to install the following latex packages in docker image via tlmgr. It worked fine till now, but the build has started failing recently with the error ...
1
vote
0answers
17 views

Glossaries list doesn't display

I have a list of glossaries as shown below included in my code but the list of glossaries isn't displayed. Please help. Here is my LaTeX code. \documentclass{article} \usepackage{glossaries} \...
4
votes
1answer
39 views

How do I colour text without spaces?

I want to colour my section and subsection headings. I've used the following code \textcolor{ForestGreen}{\section{Section}} \textcolor{ForestGreen}{\subsection{Subsection 1.1}} but that causes a ...
7
votes
1answer
69 views

What is the purpose of the optional <type> argument in \definecolor & friends?

The xcolor package defines the commands \definecolor, \providecolor, and \colorlet as follows: \definecolor [<type>]{<name>}{<model-list>}{<spec-list>} \providecolor ...
3
votes
0answers
39 views

Discrepancy between stated and observed parameter range of color models from xcolor

I have noticed that the stated parameter range (page 10) for some of the color models in xcolor does not in general correspond to the range of parameters that you are actually allowed to type in ...
0
votes
1answer
57 views

Color cell/row/column in a table - De Gruyter

I am using De Gruyter template which redefines the tabular command so that it uses basically booktabs commands. It is possible to turn this feature off using the command \baretabulars, but it seems ...
1
vote
1answer
34 views

Customizing Table CellColor Heat Map

In the first table I achieved a heat map for specific columns and rows. I want to adapt this for the second table (Labeled Table 1) for row items Nr.1 and Nr.2 and columns 1 to 5 (no bg color), the ...
5
votes
1answer
126 views
+50

Gray color model not working

I am unable to set text color using the Gray color model from the xcolor package. The M(NW)E below results in an "Illegal unit of measure (pt inserted)" error: \documentclass[a4paper, 12pt]{article} ...
1
vote
2answers
33 views

draw a specific part

how can i color a specific part like the one in white? here the code: \documentclass[headsepline,BCOR=10mm,11pt,twoside,openright,cleardoublepage=empty,bibliography=totoc,numbers=noenddot]{scrbook} ...
1
vote
1answer
46 views

How does \newcommand work? Making easier color command

I'm trying to write an easier color command \c{} that is shorter and easier to use than \color{}. However, I do not want to overwrite an existing command, so I will use \providecommand{}[]{} to create ...
2
votes
2answers
46 views

remove chapter margin

I'm using this ChapterFrame: Chapter Title in rotated vertical box at the margin YOU SHOULD COMPILE THREE TIMES BEFORE TO SEE THE MARGINS ! I add the chapter frame under the first three chapters... ...
0
votes
0answers
19 views

Suspending all coloring commands [duplicate]

I have written a long document with different font colors. I want to each font color to black. Can i suspend all color commands used in a document using a single command??
1
vote
2answers
50 views

Display colored strings in small font size

I want to display random strings made up of 's' and 'f' such that every s is white on a blue background and every f is white on a red background. I can make it work fine in normal text, but when I ...
0
votes
1answer
41 views

Changing a colour of citations!

I am trying to change a colour of citations in Thesis class. I know that I need to load hyperref package but it didn't work to me. Here is the screenshot of my main docs as well as the Thesis.cls. % ...
0
votes
0answers
56 views

Colors available in LaTeX

\pagecolor{brown!20!} \pagecolor{brown!20!, red!40!} Normally colors are defined as in the code above or a combination of two colors can be shown separating with a comma. Is there any documentation ...
7
votes
1answer
81 views

Coloring part of an equation in chemmacros

For a chemistry lecture handout, I would like to emphasize specific parts of a chemical equation written with chemmacros with colors; however, I have not been able to use common symbols such as +, -, ...
0
votes
0answers
26 views

Mini table of content in black color and cite in blue

I was wondering how can I set the mini table of contents in black and the rest in blue? This is what I've got right now: {\hypersetup{ colorlinks=true, linkcolor=blue, filecolor=blue, ...
3
votes
2answers
45 views

Wishlist (itemize) environment in .cls not working

I made this wishlist environment in a .cls file. However, it is not working. Instead of a star, I get a dot. On the other levels as well, it is a totally normal list without any of the labels I ...
0
votes
0answers
26 views

Making a chapter command

I'm currently trying to write a simple class (.cls) for listing things and I would like it to have chapters (bigger sections) to make "different lists" in the same document. I'm thinking something ...
2
votes
4answers
86 views

How to make the content of a table be centred and also colour a particular box?

I want to have a table like below: I had tried using a format table: My Full MWE: \documentclass[12pt,oneside]{book} \usepackage{ragged2e} \usepackage{makecell, multirow, tabularx} \usepackage{...
0
votes
0answers
10 views

addplot ignores individual point colors [duplicate]

I'm creating a scatter plot in MATLAB and I want to move the data to .tex file. The colors on the image come from some colormap hsv (but this is not important). So I use a matlab2tikz to automate the ...
2
votes
1answer
48 views

How to make a captivating executive summary with LaTeX?

Here's an excerpt clipped from a nice, colourful executive summary. This is the kind of thing that word processors seem to be really good at. There's often a bunch of presets that you can just ...
1
vote
2answers
38 views

Reset color in next textblock

I use \textblockcolour{cyan} to change color of only one textblock environment. But other textblocks change color to cyan too. How to reset other textblocks to defined color? Minimal coding: \...
2
votes
1answer
71 views

small colorful rectangles filling one page

Would it be difficult in LaTeX to generate one full A4 page of small rectangles of size say 2x3mm in colors in the form \smallbox{step red}{step green}{step blue}{size x}{size y} where step is some ...
2
votes
2answers
109 views

A pretty typography for an enumeration with the latin fonts into rounded square

I have this MWE \documentclass[12pt]{article} \usepackage{mathtools} \usepackage{enumitem} \begin{document} \begin{enumerate}[label=\alph*\addtocounter{enumi}{0}] \item First item. \item Second item....
2
votes
0answers
51 views

Color package causing 3 errors for each table environment instance in document

So, whenever I try to use color/xcolor package, the whole document throws the following three errors for each instance of table environment, I have no clue why. If I comment out the line where I am ...
1
vote
1answer
56 views

drawing a line with varying colors

My goal is to draw a line in different colors and not start a new line, so this produces a line and is working: \documentclass[tikz=true,border=0pt]{standalone} \begin{document}% \begin{tikzpicture}[...
1
vote
4answers
77 views

Remove white line through table

I am new to LaTeX and trying to draw a table. I have followed a couple of guides and found solutions to problems I was having on here but I can't find anything to help me remove the white lines I have ...
4
votes
2answers
328 views

How to divide a colour wheel into n segments

Sometimes when drawing a diagram, you want a certain number of similar objects of different colours, but the number might vary and you don't want to have to go through and manually define and assign ...
0
votes
0answers
22 views

Select Color of numbers if a number is directly next to letter in \lstdefinelanguage

I am trying to reproduce python code in a latex report and stumbled upon some very helpful code (here) to select the right colors and formatting, however, it did not include the color of numbers. I ...
2
votes
0answers
28 views

make href in Latex change color when hover above text

Does anyone know how to make a link change color when hover above it in Latex? For example, I have welcome to \href{https://www.google.com}{Google} I want it to appear like normal text (does not have ...
0
votes
1answer
32 views

Color of page number in table of contents

I am using the classicthesis for my thesis and I have two issues related to the aspect of the table of contents (TOC). As you can see from the attached picture The color of the page number (and of ...
1
vote
2answers
41 views

color curly braces in listing

I want to change the color of some part of the code in listing. Here is the MWE I have tried: \lstdefinestyle{mystyle} {escapechar=\%} \lstset{style=mystyle} \lstinputlisting{Pro/Code.java} Inside ...
6
votes
5answers
303 views

Create a box using the tcolorbox package or any other? (image)

I would like to make a box like the figure below. Can you assist me with text code using tcolorbox? Thanks
0
votes
0answers
26 views

Change the color of Auctex preview images

In the customize group "Preview Appearance", I click on "Preview Face" and set "Foreground" to "red". To the right, I see the word "sample" displayed in red. Then I select "Save for Future Sessions."...
1
vote
1answer
36 views

How to color actually labels and arrows using xy/xymatrix package

I'm reading actually the xyrefer.pdf guide to give a color to the arrow and to the label. Starting from this MWE, there is not any color for the arrow (for example). \documentclass[a4paper,12pt]{...
1
vote
1answer
40 views

Line break issues with \color command. pdflatex pdfcolorstack inserts boxes?

Coloring commands sometimes change how TeX breaks lines. Here's a minimal example: \documentclass{article} \begin{document} % Used to produce log statements below this snippet. \tracingparagraphs=1 ...
1
vote
0answers
21 views

color within cell interferes with vertical alignment [duplicate]

Adding \color{<value>} inside the rightmost cell of a 2x1 table creates a vertical offset relative to the leftmost cell. Why, and how to remedy it? \documentclass{report} \usepackage{xcolor} %...
3
votes
1answer
67 views

Colorize syllables for 1st graders learning to read

In Germany and possibly other countries, some first graders learn to read using the so-called "syllable method", where the syllables in every word with two or more syllables are colored differently. ...
7
votes
2answers
180 views

Insert text with terminal color escape sequences

I have a log file generated in unix shell, with bunch of shell/terminal color escape sequences. E.g. echo -e '\e[1;34mBLUE TEXT\e[0m' outputs "BLUE TEXT" in blue, and so on. How can insert this log ...
0
votes
1answer
30 views

Incomplete row table colors

Quick question regarding colouring rows in a latex table: I simply want to colour the first row in the following table light gray as in the image. Unfortunately the colour does not seem to fill the ...
1
vote
1answer
44 views

PGFPlots: Mapping CIELab Color Space to a sphere by conversion to RGB color values

After already posting a question about Drawing a sphere and mapping CIELab color space to it (i.e. generally asking if pgfplots allows an axis-dependent color mapping beforehand), I searched all the ...
0
votes
0answers
22 views

Backgroud colour of picture captions

How does one change the background colour of the picture caption? For example, \begin{figure}[h!] \begin{center} \includegraphics[scale=0.5]{model_II_spec.png} \caption{Model II Species} \label{...
0
votes
0answers
36 views

How to change padding in a colored text

I want to color some block of text (multi line), so I took package xcolor and soul. It works, but I want to have some adjustments: first, the colored text shall have some padding around it, so the ...
1
vote
1answer
104 views

PGFPlots: Drawing a sphere and mapping CIELab color space

I'm currently working on a figure including a sphere with PGFPlots, based on this (hopefully usable) Solution, though with a different (kind of exotic) color mapping. My idea: Applying a mapping and ...
2
votes
1answer
50 views

How to compile example from tcolorbox documentation with current TL (2019)?

The definition for marker below is from tcolorbox.doc.s_main.sty. With earlier versions of Texlive (and tcolorbox), this worked fine, but with updated Texlive, it does not. \documentclass{article} \...
0
votes
1answer
14 views

Change font color of whole matrix including the brackets of matrix

I want to change the font color of complete matrix including the matrix braces to red color. The MWE is given below: \documentclass{article} \usepackage{amsmath} \begin{document} \begin{equation}\...
2
votes
1answer
60 views

How can I make text alternate color every line?

I'm not referring to tables, just normal paragraphs of text. I want, for example, every other line to be drawn in red, or otherwise highlighted. My use case is preparing exams for students with ...
0
votes
1answer
33 views

how to change the background color of a figure in latex

I insert a figure in my latex. But I want to make the background of the figure to be blue. How could I achieve that? \begin{figure} [t]%[htbp]%[f] \centering \includegraphics[width= 0.65\linewidth]{....