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

learn more… | top users | synonyms (1)

0
votes
1answer
59 views

Html color in mdframed

I want to make mdframed with linecolor set using HTML color model. How can i do it? I want something like \begin{mdframed}[linecolor=\color[HTML]{FF0013}] text \end{mdframed}
1
vote
1answer
31 views

Misaligned fancyhdr footer when using color [duplicate]

Strangely, using {\color{}} in \lfoot{} is causing my footer parts to misalign. This code \documentclass[11pt,a4paper]{article} \usepackage{fancyhdr} \usepackage[pdftex]{color,graphicx} ...
2
votes
1answer
136 views

How to fill logic gates in circuitikz?

How can you specify a fill color for logic gates in circuitikz? It does not work as I would have expected: \documentclass{standalone} \usepackage{circuitikz} \begin{document} \begin{circuitikz} ...
2
votes
1answer
60 views

color text in bibliography text

I am trying to make blue color text in some of the bibliography. I have tried with the following code. It does not work. Please help me. //myReference.bib file @article{nature, author = ...
14
votes
2answers
403 views

“Drill holes” using glyphs or TikZ's even odd rule for text

I know how to use TikZ even and odd rule, but what I need is to apply it on a node text. Compare I need the text to be punched out such that when I use the resulting pdf on top of a background, the ...
6
votes
1answer
199 views

! LaTeX Error: Undefined color `BLACK'

i have written all the text in black color, but i get this error several times in the same page: ! LaTeX Error: Undefined color `BLACK'. i tried to solve it by writting this: ...
2
votes
1answer
76 views

How to change colortheme?

I am using theme Warsaw but I do not like the colortheme crane, how can I change the colortheme to LightCyan as in the first answer of this question? How do I color table columns and rows? ...
3
votes
1answer
83 views

When I used color in a cell of a take, then this cell become wider

When I used color in a cell of a take, then this cell become wider. How to solve it? The code is here: \documentclass{beamer} \usepackage[utf8x]{inputenc} \usepackage{default} ...
3
votes
2answers
122 views

Drawing a Venn-Style-Diagramm underlying a Graph with TikZ

I want to draw a graph (the data structure) such that certain subgraphs form a sunflower (a notion from combinatorics). In other words I want to indicate that the sets overlap in the middle ...
3
votes
1answer
83 views

How to avoid rowcolour being applied to \caption in longtabu environment

I have used the following code to create table using tabu package, I have applied alternate row colours to the table using \rowcolors command. The issue is the colour fill is applied to the caption of ...
0
votes
1answer
66 views

Beamer: change default color of item's indicator in itemize

I'm using beamer with \usecolortheme{dolphin} and all the items' indicators in itemize (e.g., bullets, numbers, etc.) are blue (which is the main color of the dolphin theme). What's the command to ...
1
vote
0answers
51 views

Any tool to improve contrast of study materials?

I see many slides of my study materials which are done by WYSIWYG and colored with many colours to improve the contrast. To improve contrast with colors, I think is not necessarily the best way to go. ...
1
vote
1answer
74 views

Colouring cells of tables without xcolor

Are there any decent alternatives to xcolor if I want to colour cells in a table? I want to highlight certain cells depending on my data, but not entire rows or columns. I'm using Knitr and am having ...
2
votes
1answer
71 views

How do I color the page number in a partial TOC?

I am writing a thesis and have the first two pages of each chapter colored gray with white text, before starting with the sections on white pages. I now want a partial TOC in each chapter, on these ...
2
votes
2answers
57 views

Underbrace color change using \only<> and \textcolor{}{} slightly shifts the content

I am making a presentation using beamer and am trying to make underbrace{}{} appear using \textcolor{}{} and \only<>. I use the code \documentclass{beamer} \usepackage{bm} % Just some ...
6
votes
4answers
193 views

How to color only a “tilde” accent on a letter? [duplicate]

I would like to color only a "tilde" on my letters. I read how to do this with Umlauts or other accent, but for my expression it seems different I think. Here is my expression : \widetilde{E}^w So, ...
4
votes
2answers
110 views

Last xe(la)tex colors text in white in some circumstances

Last xe(la)tex: XeTeX, Version 3.14159265-2.6-0.99991 (preloaded format=xelatex 2014.6.19) (the one shipped with TeX Live 2014) colors text in white in some circumstances: in the following MWE file ...
10
votes
1answer
149 views

Use \cellcolor in \tabulary

The \cellcolor command from package colortbl doesn't seem to have any effect in a tabulary environment, though it works in tabular. Here is a minimal example: \documentclass[a4paper]{article} ...
2
votes
1answer
56 views

Removing the effect of color table, after the table ends

I am using color tables in my document, as it produces very nice results. Further to that I use some equations using cases environment. I see that the colors from the color table get mixed up with ...
3
votes
0answers
115 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
68 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
179 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
210 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
147 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
198 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
119 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
187 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
65 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
102 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
55 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
100 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
94 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
184 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
98 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
98 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
93 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
119 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
18 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
133 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
502 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
200 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
116 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
180 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
107 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
79 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
67 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
372 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
33 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
696 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. ...