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

learn more… | top users | synonyms (1)

15
votes
5answers
7k views

How to draw a square of 1cm in LaTeX filled with color?

How to draw a square of 1cm in LaTeX filled with colour? I found mdframed and framebox does this, but there need to write text inside it. I just need to draw a box.
11
votes
2answers
244 views

How to color delimiters

I have some special delimiters that I want to add to a glossary, those get hyperlinks and colors etc. However when i want to use those delimiters, using \left, \right and \middle becomes impossible. I ...
3
votes
2answers
90 views

\llap mystery with TeX--XeT

Consider \documentclass{article} \usepackage{xecolor} % loads fontspec by default \setmainfont{Times New Roman} \begin{document} \fontsize{60}{70}\selectfont TEST\llap{\textxecolor{red}{TEST}} ...
2
votes
1answer
22 views

Problem with color in \part heading

Below is my code, where the myBox definition interferes with the color of the heading I define for my part style. Any ideas why the horizontal line in the \part heading becomes blue? I want it to be ...
2
votes
1answer
37 views

KOMA-Script: How to colour just the section numbers

I have added a splash of colour to my thesis and found it looked quite nice. The theme is: Chapter and Section headings are a dark blue, and the numbering is a brighter blue. I managed to do this for ...
16
votes
1answer
5k views

Colors and legend in groupplots/barplot

In order to compare three items I use the groupplot command. For each item I have n different criteria to compare. Is it possible to set the color for each criteria itself? Meaning the first bar in ...
17
votes
4answers
806 views

How to shade text in different colors?

I need a single character in two colors. Figuring I could use the shadings library of TikZ, I followed the manual (section 23.4.1, the TikZ example): \documentclass{article} \usepackage{tikz} ...
1
vote
1answer
22 views

Change footer and header background color for style simple in powerdot

I am using the style simple for creating slides with powerdot: \documentclass[style=simple]{powerdot} \begin{document} \begin{slide}{First slide} Hello world! \end{slide} \end{document} While ...
2
votes
0answers
38 views

Problem with framelines in tables

I am having a problem with LaTeX at the moment, which I seem completely incapable of solving. I am trying to create a simple table which has 4 columns and (should have in the end) 36 rows, including a ...
1
vote
0answers
75 views

Displaying authors in color bibtex

If I call a reference by \citet{xxx}, it appears in my document as Author [number], where the number appears in the color I defined in \hypersetup{citecolor=red} while Author and [] appear in black ...
1
vote
1answer
80 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 ...
0
votes
0answers
23 views

Ref using \hyperref[]{}, no color

I am using the hyperref package and are currently trying to reference using: \hyperref[label]{text and \ref{something}} The ref works fine, however, my other ref's (using eg. \ref{tab:no1}) are set ...
18
votes
2answers
382 views

Colored margin with vertical text

What I'd like to reproduce on LaTeX can be seen on the picture below. I am writing my master thesis (book style) and I'd like to add a colored margin on every page (on the right for the right pages ...
0
votes
0answers
32 views

Filling a cell of the table with color and preserving the border

I used \cellcolor{} to fill the cell of my table. However, the black borders of the cell disappears. The tex viewer shows borders, but I don't see the borders when I open as a pdf. Can you help me ...
1
vote
0answers
12 views

libpng warnings about sRGB profiles - determine which files are meant and disable warning [duplicate]

After some LaTeX or system updates, I get these new warnings for something that was typeset perfectly before: libpng warning: iCCP: Not recognizing known sRGB profile that has been edited Since ...
3
votes
2answers
86 views

Colored horizontal line between two text

How I can get color horizontal line between two text ? I am using command \rule{16cm}{1mm}., Can any one suggest how to change the color of horizontal line.
0
votes
0answers
13 views

How to combine bigdelim and alternate row coloring inside a longtable in LyX? [duplicate]

It seems that it's quite a conflict to use some big (multirow) delimiter (bigdelim) and applying alternate row coloring inside a longtable at the same time (using LyX). The following example ...
3
votes
1answer
39 views

Change Character Color in listing

I want to change some special character's color in listing for example all Parenthesis be red. I don't want to make them keywords they should have different color. is it possible?
2
votes
2answers
63 views

Matlab2Tikz FaceColor Surfplot

I would like to export a surf plot, whose face color is for example green, out of MATLAB R2014a to latex with the aid of matlab2tikz. Unfortunately when i run pdflatex the face color now ranges from ...
4
votes
2answers
94 views

Barplot: alternating colors, bars side by side

I'd like to have a barplot with bars side-by-side and with alternating colors. It should look like the ouput of the code below, just with alternating bar colors. (Got the idea from here) ...
5
votes
2answers
90 views

Understanding what contour package does

In contour package, the macro \con@put is defined as: \newcommand*\con@put[3]{% \rlap{\hskip#1\raisebox{#2}[0pt]{#3}}% } But if one changes that \rlap to \llap, then you no longer get contour. ...
0
votes
1answer
40 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
19 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} ...
3
votes
1answer
64 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 ...
2
votes
1answer
78 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
28 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 = ...
3
votes
1answer
200 views

TikZ: transparency causes problems with the color black (opacity, transparency, color model, Adobe Reader)

I want to have a fill color with transparency but I also want the text to be perfectly opaque. But somehow it does not work. \documentclass{article} \usepackage{tikz} \usetikzlibrary{shapes,} ...
14
votes
2answers
357 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 ...
5
votes
1answer
62 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: ...
1
vote
1answer
45 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
81 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} ...
1
vote
1answer
63 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 ...
3
votes
2answers
102 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 ...
0
votes
1answer
28 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
47 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. ...
2
votes
1answer
48 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
39 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 ...
4
votes
1answer
136 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 ...
10
votes
3answers
331 views

How to color just the `\vec` symbol?

How do I color only the vector symbol in \vec f? I'm using beamer, so xcolor is already loaded. Extra "points" to an answer that also explains how to fish..and not only gives me the fish. Thanks!
21
votes
0answers
413 views

Documenting on code revisions

I have made modifications to a few files of a C++ program. I would like to document on these changes in a nice LaTeX report, by showing exactly what I modified and explaining why I did so. Since ...
6
votes
4answers
181 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
0answers
80 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 ...
5
votes
1answer
171 views

converting a hyperlinked pdf \includepdf to black and white

Most recent scientific articles come with hyperlinks within the document (generally linking citations to the references; e.g. this file). These are often coloured. When including them into a TeX ...
10
votes
1answer
110 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
49 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
62 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
56 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 ...
6
votes
1answer
2k views

Rounded corner colored box around figure

I'm trying to get Rounded corner grey-colored box around figures. One solution would be to use \usepackage{float} \floatstyle{boxed} \restylefloat{figure} but this results in black box around a ...
9
votes
1answer
202 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]{} ...
5
votes
2answers
156 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} ...