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

learn more… | top users | synonyms (1)

3
votes
0answers
139 views

Fancy slides latex

I am using fancy slides for a presentation. The problem is that I want to be able to specify some colors with xcolor. When I try to do the usual \usepackage[usenames,dvipsnames]{color} I get an ...
2
votes
0answers
69 views

TikZ: Printing press cannot print document due to RGB colors, layers and transparency

The place I print my thesis needs the PDF file to conform to certain demands. Demands I was not aware of prior to sending them the document. So, here is the challenge: Using PGF/TikZ how can I bulk ...
4
votes
1answer
196 views

Metadata for different colours in PGFPlots

I would like to use PGFPlots to create a plot using three sets of metadata. I figure it would be best to have one set represented by the plot mark and the remaining two by the fill and draw colour ...
9
votes
1answer
211 views

Why does color cause a vertical shift?

this TeX-source \documentclass[a4paper,12pt]{book} \usepackage[usenames,dvipsnames,svgnames,table,x11names]{xcolor} \usepackage{fancyhdr} \pagestyle{fancy} \fancyhead[LO,RE]{} ...
0
votes
0answers
168 views

Cell borders in tables “disappear”

I'm using LyX to edit some tables and TexMaker, but when I set the background color in the cell, the border line "disappear". For example: http://postimg.org/image/xp2xocp7z/ (one of my tables in ...
5
votes
2answers
216 views

Coloured box with tikz

I'd like to break a coloured box when the page which contains it breaks... here is an example which shows this issue: \documentclass[11pt]{report} \usepackage[explicit]{titlesec} ...
5
votes
0answers
129 views

colour cells in a table according to the value

I have seen the following code in response to another similar question that works when the numbers in the table are between 0 and 100. How do I have to modify this code so that it works for numbers ...
4
votes
3answers
237 views

Adding background color to table cells in LyX

I'm doing some tables using LyX and I tried to set a color background in the cells , but I got this error: Undefined control sequence \rowcolor {cyan} & The control sequence at the end ...
2
votes
1answer
70 views

How to color a single cell in a longtable [duplicate]

We are using XeLaTeX and the longtable package to visualize information, one of those reports must have a colored cell. A single cell, not the entire row. An example output is here: Is there a way ...
8
votes
3answers
109 views

Spacing for subscripts in mathmode with \textcolor

It is possible to use \textcolor in math-mode; however, it changes the spacing of subscripts. \documentclass{article} \usepackage[usenames]{xcolor} \begin{document} $Y_i$ vs $\textcolor{red}{Y}_i$ vs ...
3
votes
2answers
58 views

color environments influence spacing

I would like to mark revised parts of a large document in color, and up to now always used \usepackage{xcolor} \newcommand\rev[1]{\textcolor{red}{#1}} to then do Lorem ipsum dolor \rev{git} amet, ...
0
votes
1answer
126 views

How to draw a simple table with colored cells in Beamer

I am trying to draw a simple "array" data structure in Beamer using tabular. I would like to color some of the cells blue. Here is my M(N)WE. \documentclass{beamer} \usepackage[table]{xcolor} ...
3
votes
1answer
102 views

How to define colors in style file (lstlang0.sty)

Per the listings package documentation, I have a file lstlang0.sty in the same directory as my .tex file (well, .lyx file) which defines a new language. I used to have this language definition in my ...
5
votes
1answer
221 views

Why can't I change text color but I can still change the color of font awesome icons?

I have what it seems a very simple question, but I still cannot solve it, and I haven't been able to reproduce the problem outside Friggeri's CV template (sorry for that). The whole thing is trying ...
5
votes
1answer
101 views

Instant preview color in LyX

I'm using the instant preview feature in LyX, which as I understand is based on a LaTeX package of the same name. As I have LyX configured with a dark background - Is there anyway to configure the ...
1
vote
0answers
35 views

Colored vertices on a directed graph with sets of Euler cycles [duplicate]

Is there a way to make the vertices on the following directed graph with a set Euler cycles colored? Provide the TeX code as well as explain how to color vertices!
5
votes
2answers
101 views

How to color equations in TeXify

I am using texify.com to generate images of equations, so that I can put them in emails. I am trying to insert a colored equation, using the following code: {\color{green} dy} = {\color{red} ...
1
vote
0answers
98 views

Coloring rows in table [closed]

I have a problem with coloring table. I would like to color one row, but when I use \rowcolor, then vertical lines among colums disappear (or they become thinner). Is there any possibility of solving ...
1
vote
1answer
125 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
20 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 ...
5
votes
2answers
145 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
543 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
243 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
126 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
192 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
109 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
90 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 ...
4
votes
1answer
78 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
411 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
34 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
729 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. ...
3
votes
2answers
183 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
204 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
64 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
135 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
105 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
117 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
154 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
75 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
104 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} ...
7
votes
2answers
328 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
160 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
894 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
71 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
68 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
154 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
64 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
85 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
224 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
158 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. ------------------ ...