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

learn more… | top users | synonyms (1)

1
vote
1answer
46 views

The xcolor package detected undefined color

I was writing a coloured book that requires to define 12 colours. However, sometimes I get !package xcolor Error: Undefined color. However, it does not specifiy any colors went wrong but indicates the ...
1
vote
1answer
15 views

dont apply color in section of Annexs

I create a specific color font for my section and subsection .. \chapterfont{\color{blue}} % sets colour of chapters \sectionfont{\color{purple}} % sets colour of sections ...
4
votes
2answers
104 views

color block of text without repeatedly using /textcolor

I want to color the answers into blue however my current solution is not really viable as each line needs to be colored blue individually due to my use of \par\bigskip messes up \textcolor if its in ...
16
votes
1answer
447 views

Shades of colors

I have defined a new color with \definecolor{MyBlue}{rgb}{0.25,0.5,0.75}. Is it possible to define now "derivatives" of this in term of shades? I would like to use the same color in three different ...
2
votes
1answer
91 views

Set Sidebar Color in Beamer Class (using xelatex)

I'd like to change the color of beamer sidebar, however I don't know which parameter \setbeamercolor{}{} wants for the sidebar color. I'm using \usepackage{xcolor} and specify my own colors like that: ...
4
votes
0answers
75 views

Issues using listings package [closed]

I am using LaTeX to write my internship report (I started to learn it one month ago), and I have some issues using the package listings. I'm not sure if everything is possible: How can I add a ...
2
votes
1answer
123 views

How can I color only Cover page for PhD thesis

Can you help me in formatting my title page (cover page). It is for my PhD thesis. I have to follow this example https://www.dropbox.com/s/clexb8dauxom2k4/tamplate.jpg ... For this purpose I am using ...
1
vote
1answer
66 views

Color is not working properly with XeLaTeX RTL documents?

The following minimal example produced the desired results: \documentclass{article} \usepackage[usenames]{color} \begin{document} black {\color{red} red} black black \end{document} But the ...
1
vote
1answer
48 views

Customizing inline coloring with the fixme package

How can I set the color of annotated fixme text (not the comment itself)? This MWE produces the text under consideration in a blueish color, that is hard to read, I'd like it to be darker and more ...
3
votes
1answer
48 views

Disable `colorlinks` locally (or just for the ToC)

Basically, I want to disable the colorlinks option (from the hyperref package) for the ToC, but keep it enabled for the rest of a (memoir) document. This question has a workaround based on issuing ...
6
votes
1answer
245 views

Create style for a new section

anyone can help me to do something like this? for an informative section in my document
0
votes
0answers
32 views

How to highlight few sentences in a paragraph? [duplicate]

I would like to get a simple result, as the following Is it possible?
14
votes
2answers
520 views

Color gradient fill between three corners of a triangle

Updates Update1: Tried to implement solution by Harish Kumar (below) Update2: Added a real example of what I would like to get in the end. I have a feeling I tried to leave to many things out. ...
4
votes
2answers
164 views

Someone can help me draw this

I want to draw the symbol of my engineering and be able to change the color, anyone can help me with this?
6
votes
4answers
163 views

How to color a cell of a table using multirow and center the cell content?

I have checked for other similar questions. I followed the suggested solution in the question Color in multirows. After implementing this solution, I still have a problem. I want to develop the ...
5
votes
1answer
45 views

Color only subsection header but NOT its toc entry

I'm having hard times trying to color some lines of my document. I want to color just the title of a subsection, but I don't want that the corresponding title in TOC is colored too. What I have now ...
6
votes
1answer
73 views

How to change the color of the short version of the acronym in the list of acronym

I use the Acronym package. In the printed list of acronym (usually put at the beginning of the document) there is the short version of the acronym (in bold font) and after the full name of the acronym ...
4
votes
1answer
77 views

How to make a document with light colors printer friendly?

I have a document with some text in light colors. It's looking good on screen but I need to print it. Unfortunately, once printed on a black and white laser printer, the light blue is no longer ...
5
votes
2answers
101 views

Recreate default colors

How is it possible to specific the colors shown in the sample plot here: The code is below and copied from the site! \begin{tikzpicture} \begin{ternaryaxis}[ ternary limits relative, ...
4
votes
0answers
108 views

TikZ Chromaticity Diagram

I'm trying to make a chromaticity diagram in tikZ, does anyone know how to make one? I want this My issue is not in forming the spectral locus that I can do, right now I'm only using three points ...
5
votes
1answer
66 views

\rowcolor in \NewDocumentCommand

It seems to be impossible to wrap \rowcolor in a macro defined with \NewDocumentCommand, while everything is fine with \newcommand. Is ist possible to fixe this? \documentclass{article} ...
1
vote
0answers
41 views

prevent color from overlapsing cell border

All question I have looked to doesn't help me to solve my problem. Here's my code : \documentclass[a4paper,10pt]{article} \usepackage[utf8]{inputenc} \usepackage[frenchb]{babel} \usepackage{color} ...
6
votes
1answer
98 views

Change the background color of line numbers in a lstlisting?

Consider the following code which deals with a lstlisting. \documentclass{article} \usepackage[T1]{fontenc} \usepackage{listings} \usepackage{xcolor} ...
6
votes
1answer
135 views

Listing with two columns in a single fancy frame

I am playing a little with lstlistings and I wonder whether such a thing would be achievable for all my listings: How to achieve this kind of things? Note : I am searching for a solution I can ...
10
votes
1answer
349 views

Add another color for a section in Friggeri Resume/CV

So I'm writing my CV using the friggery CV template. It looks like this: and can be found here: http://www.latextemplates.com/template/friggeri-resume-cv As you can see the sections all start ...
7
votes
1answer
47 views

Coloured footnotes split across multiple pages

I am typesetting a book with long footnotes, and some phrases or words in footnotes are colored. I ran into a problem for which I have an MWE below. \documentclass{article} \usepackage{lipsum} ...
3
votes
1answer
55 views

White Horizontal Line Longtables

I want to create a table like this. So I used xcolor to give alternating colors as this. This is what I got. Q1 ) Do you know how to generate white vertical rule get the effect shown red ? (I ...
4
votes
1answer
57 views

algorithm2e and color

I am trying to color the background of the caption in algorithm (using algorithm2e). I have modified the original command as follow directly in the .sty file. However, as you can see on the image, ...
2
votes
1answer
47 views

Changing border colors of all tables in a document

I have a document full of tables (think 8-10 tables) - already written. Some are tabulars, others are longtables. I do not want to substantially change the existing code. What is the fastest way (in ...
2
votes
1answer
59 views

Beamer: same colour in the upper part

this code will create two kinds of colours in the upper part of each frame. How can I have only one colour, namely the deep blue? The code: \documentclass[xcolor=dvipsnames,11pt,mathserif]{beamer} ...
3
votes
1answer
88 views

background color of colorbox doesnt fill enclosing framebox entirely?

I am using a colorbox (that contains a parbox) inside a framebox. Inside the parbox there is an itemize environment I need some paddding around the text so I put fboxsep for the colorbox to 6pt ...
5
votes
2answers
134 views

Are there an easy way to coloring tables depending on the value in each cell?

I viewed in this post Conditional format for correlation table a solution to my question, but... Are there any easier way (or alternative) to do this using colors? Thank you. ------------------ ...
3
votes
1answer
147 views

Can we color and rotate a cube?

I want to present a cube to illustrate, and I want to color four of its sides. The colors will be blue, red, green and yellow; the two remaining sides should be clear or white or, perhaps, black. In ...
3
votes
1answer
120 views

How to customize beamer's color

I'm trying to replicate the following colour scheme in beamer, but am having difficulty in doing so: \documentclass[xcolor={dvipsnames}]{beamer} \usetheme{CambridgeUS} ...
9
votes
2answers
296 views

Colorful Logic Gates using Circuitikz

I have to draw following circuit the LaTeX source of which is \documentclass{beamer} \usepackage{circuitikz} \begin{document} \begin{frame} \begin{figure} \centering \begin{circuitikz} \draw (0,0) ...
0
votes
0answers
56 views

Rounded corner box with shading (one side round corner box)

Is possible to get the one side round corner with shaded box through PSTricks? I am using the command \psframe[linewidth=0.5pt,framearc=6,fillstyle=solid, fillcolor=gray!30,linecolor=gray!30] and I ...
12
votes
5answers
303 views

LaTeX Tables: Cell value color based on its sign / conditional cell color

I've a long LaTeX document with many tables. Now I want to show negative values in cell in red color. I wonder how to do globally. My MWE is below: \documentclass{article} \begin{document} ...
0
votes
1answer
85 views

Undefined color in LaTeX code

I have a problem in configuration color for the TeXstudio editor, mine is (LeLaTeX) since I used .eps figure. Always gives me an error (undefined color), this problem recently appeared when the new ...
4
votes
1answer
51 views

Axis part coloring

I try/want to color the x-axes in a special way. I want to get the bottom x-axis red, but not the whole line. Only the 3 parts under the graph have to be colored. I tried it with options separate ...
2
votes
1answer
36 views

Change how hyperlinks are displayed

By using \usepackage{varioref} \usepackage{hyperref} \usepackage{cleveref} one automatically gets hyperlinks in a red box or a green box . Is it possible to change this? For example instead of ...
7
votes
4answers
170 views

Set size of \colorbox for a single character

my question is simple (or not) I want to set the size of the \colorbox command or \fcolorbox command for a single character. The problem is the next: As seen in the image, the height and width are ...
1
vote
1answer
125 views

Biblatex square brackets color

How can I change the square brackets color of references in text using biblatex (numeric style)? I know it can be done with natbib, but not using this package anymore. ...
0
votes
0answers
39 views

psfrag labeling gets url and color?

I am using psfrag command to replace labels in eps with text inside latex. The labels are generated correctly but the images behave like hyperlinked and as result the labels are produced in the color ...
21
votes
2answers
617 views

Change the color of capital letters

Is there a way to define a command that changes the colour of any capital letter in an input string? Most of the results I find when I type "LaTeX string capital" are results about capitalizing the ...
2
votes
1answer
105 views

Make a text box with color?

I'm new user in LaTeX, and I would like to know which is the better code to do a colored squared round box with text in a page? I would like to show important notes for example. Best Regards.
3
votes
1answer
73 views

Switch firstname and familyname colors in moderncv

In the moderncv casual theme, in the header, the family name has a darker color than the first name. How can I make it the other way around, and more generally, set each name to a color of my ...
1
vote
0answers
62 views

Colored Text in PostScript Files [closed]

I am using \textcolor command in the body of my TeX file. I need to generate Postscript file. When I go through the "Option Menu\Configure TeXStudio\Build\PDF chain", every thing is fine and I can ...
6
votes
1answer
114 views

Newsletter Formatting

First post here but I'm trying to create a newsletter. However, I'm having some difficulties. I want it to look similar to this example: http://www.calvin.edu/admin/hr/newsletter/MAY%202012%20(e).pdf ...
3
votes
1answer
109 views

Convert color wavelength to rgb (xcolor)

I have the following color: \definecolor{SEviolet}{wave}{377} Which is a violet with a wavelength of 377nm. How do I convert this value to rgb? The xcolor package goes over some conversions on ...
2
votes
1answer
42 views

How can change the color of the table of contents

What is the best way to change the color of the entire table of contents. I saw a lot of tutorials but it's complicated for me (I am a beginner).