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

learn more… | top users | synonyms (1)

3
votes
1answer
18 views

How to change text color a particular reference in the bibliography in latex? (using ieee transactions bibliography style)

I want the a particular reference in the bibliography list to take on a different color, say, blue. These are some minimum working examples. This is my latex file: \documentclass{article} ...
2
votes
1answer
23 views

Background color of the block of text

I want to have something like given in the picture. Borders above and below of the box are optional. I tried \colorbox, but it doesn't work. \documentclass{report} \usepackage{color} ...
4
votes
2answers
47 views

Table Row Color Covers Text

I am trying to create a table with alternating row colors using the xcolor package with the [table] option. The following example demonstrates that the row coloring (uncommenting the \rowcolors..) ...
2
votes
1answer
41 views

CMR Font selection and fancy header formatting?

I am trying to accomplish the following: Chapters like "Chapter1" in CMCSC10 font between two thin lines After that Chapter name like "Introduction" in CMR17 font The paragraph body in CMR12 font I ...
2
votes
0answers
29 views

Monochrome vs grayscale in scientific journals? [on hold]

Many scientific journals accept only black&white articles. Does this mean that only monochrome (black and white only) articles or also grayscale (gray is OK) article are OK?
2
votes
3answers
34 views

Colored frame in includegraphics environment

I like using \includegraphics[<your options>,frame]{image} to create a tight border around my images. How can I change the color of the border? Minimal working example: ...
2
votes
0answers
20 views

Bad interaction between xcolor and chronosys package

I use the excellent chronosys. For some reason all of my colored charts became black. After a protracted debugging exercise I traced this to the use of HTML as one model in the xcolor package. Am I ...
2
votes
2answers
56 views

pstricks with “colorfunction” in a tikz loop

Trying to make a spiral of vectors (rotating arrow as a function of x-position) I came across tikz for making a proper loop. Concerning other loop solutions I had problems to apply more complicated ...
1
vote
1answer
27 views

How to do sidewaystable

I have a very broad table in one of my appendices LaTeX so I wanted to have it sideways. However, when I use sidewaystable, the table is placed on another page directly after my appendix, leaving my ...
9
votes
2answers
9k views

Changing background color of text in Latex

How can I make change a text background in LaTeX? For example using Latex code \textsc{Extra Curricular Achievements}\\ I get However, I want the background of this heading to be changed so that ...
0
votes
2answers
30 views

Set color of title page with memoir

I'm writing a report with memoir and would like to set the color of the title page. The pagecolor package looks promising but I can't figure out how to set the color of only the first of two pages in ...
4
votes
1answer
28 views

Every \newtcbox{\FOO} with a certain text-color?

Imagine having a certain tcolorbox (manual) named FOO, called for via: \documentclass{article} \usepackage[most]{tcolorbox} \newtcbox{\FOO}{colback=red,colframe=blue} \begin{document} ...
5
votes
2answers
479 views

FancyHeader (Mis-)placement

I'm using the following settings for fancyhdr in a two-page book-derived documentclass: \pagestyle{fancy} \fancyhf{} \fancyhead[LO]{\sffamily \footnotesize \rightmark} \fancyhead[RE]{\sffamily ...
14
votes
1answer
629 views

Color gradient filling along a path

I want to make the gradient color to follow the pipe curve below rather than to span from the left to the right. The following MWE shows the default behavior which is not what I'm looking for. ...
6
votes
1answer
167 views

Color RGB in LaTeX

Please, I'd like to use the blue color RGB (0,32,96) in LaTeX. How can I do this? I find this on the web: \definecolor{ultramarine}{rgb}{0.07, 0.04, 0.56} But it is not the right color I ...
4
votes
0answers
157 views

ConTeXt: Use url parameter to hyperlink bibliography title references

Background A technical design document includes a number of citations. It would be convenient to include hyperlinks to the cited documents in the bibliography. The bibtex entries include articles, ...
2
votes
1answer
28 views

Colorful prebreak and postbreak tokens with listings package

I want to get colorful prebreak and postbreak tokens with listings package, but the following code doesn't work: \documentclass{article} \usepackage{xcolor,listings} \begin{document} ...
4
votes
2answers
74 views

Problems with pattern color

Why in the following MWE in all shapes the pattern color is as in the first one regardless that it is defined differently? %%%% pattern-color \documentclass[tikz,border=5mm]{standalone} ...
2
votes
1answer
36 views

How to change the color of TOC part font using tocloft

I have customised my toc using tocloft for everything from chapter down to subsection, but I cant work out how to change the color of the part font, how do you renew this command? I have read the ...
10
votes
2answers
297 views

Coloring Arab suffix without losing connection

How can I change the color of Arab word endings without losing the connections? It's just ugly and loses readability. I'm using Tex Live 2012: arabxetex with xelatex but any package and/or engine is ...
14
votes
1answer
365 views

Arabic with colored vowels and colored suffix … possible?

is it possible to do this with XelaTex? (Im using texmaker): I already tried some of the suggestions posted here, for instance by using Arabtex. But I wanted to this with arabic type text and not ...
17
votes
2answers
576 views

Getting verbatim with soft grey background, as in tex.stackexchange

Given a verbatim as on below, \begin{verbatim} This is an awesome verbatim \end{verbatim} which is displayed with no background on the compiled pdf page : This is an awesome verbatim I would ...
2
votes
2answers
90 views

How to change color?

How to change the colour of the ball in which the item numbers are written?. Help me please.
0
votes
0answers
25 views

Coloured box around page number extending to border of page

My documentclass is 'scrreprt' with the option 'twoside' I would like to put a coloured box around the page numbers that extends to the right or left border of the page, without changing the width of ...
2
votes
1answer
45 views

Beamer background and text

I have provided a minimal example of the output I have shown below: \documentclass [compress]{beamer} \newcommand\Fontvi{\fontsize{6}{7.2}\selectfont} \usepackage{remreset} \usepackage{textpos} ...
19
votes
1answer
249 views

How can I color parentheses depending on the nesting level (like emacs' rainbow-delimiters)?

Is it possible to have a custom setup for lstlistings for LISP-like languages and have matching parentheses coloured with a same colour taken from a palette? What I am looking for is something like ...
0
votes
0answers
11 views

Coloured cells in Tabular printing over table lines [duplicate]

I'm using Tabular and XColor to color some cells of a table, but some of the coloured cells are "printed above" the lines of the table (see attached image, which shows part of the table). How could I ...
3
votes
1answer
48 views

Color Mixing/Overlapping Mechanism

Ideally I would imagine that if I overlap the red, yellow, blue three glasses, then I would see more or less a black color in the overlapped region. However by doing this in LaTeX, it seems I was ...
2
votes
1answer
39 views

Adding a different colored line to each row of a table

It is possible to get colored \hlines with the example provided below. However, there are several issues with this implementation: It needs a \newcommand for every color, which then has to be used ...
2
votes
1answer
43 views

error: option clash for package xcolor

When trying to load I get the error message 'Option clash for package xcolor'. I have already understood that this is because other packages I loaded before also automatically load this package. All I ...
4
votes
2answers
93 views

tcolorbox incompatibe with color package?

I am trying to add a tcolorbox into my Xelatex document but it does not seem to work. I tracked the problem to the color package which if disabled produces the box. However I need to use the color ...
0
votes
1answer
23 views

How to change the color of label after figure and table in the context?

I wanna write "Figure 1.1" in lyx. I can change the color of "figure" through text style>>customize, but the "1.1" always appears in black and I wanna have both of them in blue. How I can do ...
1
vote
1answer
79 views

Table of contents is red

The problem goes away in the minimal example I created if I remove this: \usepackage[colorlinks=true ,urlcolor=blue,urlbordercolor={0 1 1}]{hyperref} However, in my real document, I have links that ...
3
votes
1answer
129 views

two-coloured hyphenation

I want to teach a child reading German. For that purpose I want to produce texts in which the different syllables are marked in two different colours, a common technique to facilitate reading for slow ...
1
vote
1answer
47 views

Wrong string color in embedded code

My problem is that when I use the correct quotation marks ``'', lstset does not recognize strings in my code and thus does not color-code them. When I use standard double quotes "", the leading ...
3
votes
1answer
93 views

Background color across the entire textwidth for chapter headings - koma script

I have a very similar question to this old (and already answered) one: Giving headlines a background color spanning across the entire typearea However, the solutions provided there only work for ...
2
votes
1answer
38 views

Can I have a pgfgantt chart with different colors per bar?

I'm making a timeline for my thesis proposal using the pgfgantt package, and I'd like for each aim to use different coloured bars. Here's the current version. \documentclass[12pt]{article} ...
5
votes
4answers
165 views

How to change the background color within a page

I have a one page document like below. I would like the background color would be green, then I would like change it to yellow. Is it possible? \documentstyle{article} \begin{document} ...
1
vote
0answers
24 views

Color of dash gaps in tabular and dash endpoint alignment?

I am using the \usepackage[table]{xcolor} and the \rowcolors{...}{...}{...} command to get rowwise alternating background colors in my tables. Now i wanted to have dashed vertical lines and came ...
2
votes
1answer
26 views

I cannot control SolutionColor in exam \shadedsolution

I would like to choose solution color shading (green), and tried the following \documentclass[a4paper]{exam} \usepackage[utf8]{inputenc} \usepackage[T1]{fontenc} \usepackage[danish]{babel} ...
9
votes
3answers
1k views

Changing the colour of the text with itemize

I'm creating my own beamer theme. I can change the colour of the bullets using \setbeamercolor{}. But how can I change the colour of the text after the bullets? I would like to use it in a .sty file. ...
5
votes
1answer
84 views

color / xcolor bug – changing geometry

Can you reproduce this xcolor bug? \documentclass{article} \usepackage{xcolor} \begin{document} $X_{a}^{b}$\par $X_{\color{red}a}^{b}$ \end{document} pdfLaTex, LuaLaTex, XeLaTex, all create the ...
5
votes
2answers
253 views

Change Color of Proof

I'm using the \begin{proof} of the amsthm package. And I want to change the color of everything in this environment. Currently, I use {\color{blue} \begin{proof} ... \end{proof}}. But I need to do ...
0
votes
0answers
26 views

Footline formatting - spacing and color of the shortitle

I am having trouble with the footline - I couldn't find the answer. How can I make the space between my name and affiliation (bottom left)? How do I change the color of "Introduction and ...
0
votes
2answers
48 views

how to change a colour of a specific word in a line?

Actually I want to change colour of specific word in a line in a presentation \documentclass{article} \usepackage{xcolor} \begin{document} \begin{frame} What I have here \begin{itemize} ...
3
votes
0answers
20 views

What is the best approach regarding .cfg files for the LaTeX graphics bundle?

The manual for the 'graphics' LaTeX bundle includes instructions for setting up the right conditions for the use of colour and the inclusion of graphics in documents. For example, on page 2, it says ...
0
votes
0answers
26 views

Missing files with color (graphics) and xcolor packages?

I've tried this in the preamble: \usepackage[usenames,dvipsnames,svgnames,table]{xcolor} Obtaining this a demand for: tex\latex\xcolor\svgnam.def I checked, it wasn't in the xcolor folder downloaded ...
4
votes
1answer
178 views

Is there a way to iterate over all defined colors without mentioning them again?

Situation Let's say I have defined some colors. I'd like to produce a test page that functions as a color-key for developers. Example The defined colors colora, colorb, and colorc should be ...
0
votes
1answer
54 views

LaTeX: chapter & section title (background) colour

I wanted to make my chapter and ((sub)sub)section titles as follows (compiling by XeTeX-ing): White chapter title on background RGB 10,30,96 (defined as "ugentblauw") (Sub(sub))section title RGB ...
3
votes
1answer
45 views

Making an environment with the same text color as the background

I am looking to type up some solutions to math problems. However, I do not want someone who just looks at the document to be able to see the solution; I want the students to be able to see the ...