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

learn more… | top users | synonyms (1)

5
votes
1answer
293 views

Add background pattern to tikzpicture vertical bars

How do I replace the blue backgrounds as indicated in the picture with a diagonal and grid pattern respectively? I currently can't find a neat solution for my kind of graph. Code ...
9
votes
1answer
387 views

PDF Colour Space and ConTeXt

Background Trying to create a PDF that includes a vectorized cover page having transparent colours. I would like the PDF to have the same appearance in Acrobat Reader, Firefox PDF Viewer, Foxit ...
12
votes
0answers
113 views

Text collage (word cloud) in LaTeX? [duplicate]

There are some automatic method (package, class, macro) in LaTeX to do a text collage similar to that showed in the image? If not, is would be possible without too much manual work?. The ...
3
votes
0answers
46 views

Pgfplots bar chart - One plot, different colors [duplicate]

Is there a possibility to color bars of one plot in different colors? \begin{tikzpicture} \begin{axis}[ xbar, xmin=0, width=12cm, height=3.5cm, enlarge y limits=0.5, xlabel={\#participants}, ...
3
votes
2answers
2k views

Underline and color URL in LuaLaTex

I was wondering how I can underline and color URL in LuaLaTex. I was able to add underline but could not change the URL and the underline to blue. Font is Calibri. Thanks! % code used in LuaLaTex ...
5
votes
2answers
416 views

How to color certain commands/environments?

My goal is to achieve colorings in the output document, that are similar to the syntax highlighting I use in my editor, so switching between the editing and viewing the document becomes easier on the ...
10
votes
1answer
231 views

How to change color of menukeys?

I cannot understand how to change the colors of the text in the menus typeset using menukeys. A minimal example (taken from the menukeys manual) follows: \documentclass[12pt]{article} ...
3
votes
2answers
304 views

newenviroment error: Extra }, or forgotten \endgroup \begin{gbox}

\noindent \colorbox{gray!25}{ \begin{minipage}{\textwidth} \vskip0.5cm \leftskip0.5cm \rightskip0.5cm Text Here! \\\end{minipage}} Code above works fine, but I don't ...
2
votes
1answer
4k views

Change line color and thickness and line spacing

I am new to LaTeX and I am creating a resume. I have added a black line. 1)However, I would like to know how to specify a color and line thickness for this line? 2) I would like to know how to ...
2
votes
1answer
235 views

Conflict between glossaries and siunitx (possibly via hyperref) when defining color

I'm in the process of writing my thesis which has a large glossary. The hyperref and glossaries package allow for linking and colouring the references, which is great. Unfortunately the large number ...
1
vote
1answer
344 views

Changing align environment tag styles and colors [duplicate]

I'm using amsmath and amsfonts to typeset my homework, and since it will be read on a screen, I would like to make \tag{comments inside equations} differently colored, and optimally downsize them by a ...
4
votes
1answer
140 views

Specify color of the first row in table (in “newenvironment”)

I am using an specific style for my tabulars and I am looking to specify automatically the color of the text in the first row. Currently I must specify manually the color of the text of each cell in ...
8
votes
1answer
379 views

Need some help getting started with TikZ, groupplots and color mapping of matrix

I used Python to make the plot shown below (saved as png). It should have a common colorbar and all data is read from a h5 file, but I thought saving it to a txt file or something using a Python ...
3
votes
0answers
38 views

Matching cmyk colors in plot to LaTeX [duplicate]

I'm plotting something using the Python package matplotlib and I'm using the matplotlib.cm.rainbow colormap. I need to match the same colors in my LaTeX document, but I'm having a difficult time ...
7
votes
1answer
12k views

Beamer how to change color of infolines and frame title

How could I change the color of color of infolines and frame title in beamer. I am using this now \documentclass[xcolor=dvipsnames]{beamer} \usetheme{CambridgeUS} \useinnertheme{rectangles} ...
6
votes
1answer
600 views

How to match cmyk colors between matplotlib and LaTeX

I'm plotting something using matplotlib and I'm using the matplotlib.cm.rainbow colormap. I need to match the same colors in my LaTeX document, but I'm having a difficult time making the colors match ...
6
votes
1answer
1k views

Change the color of background of code of Matlab

I use the following code in LaTeX to input the code Matlab there but I want to change the color of the background: \usepackage{textcomp} \usepackage{listings} \lstdefinestyle{customc}{ ...
7
votes
1answer
2k views

Beamer: changing background color leaves white lines above and below title

It must be simple but I don't find the last missing bit. I'm making a beamer presentation where I want single slides with a different background color. However, when I set the background color using ...
2
votes
2answers
246 views

Variable parameters in xcolor package

This doesn't work and I'm having trouble thinking of a minimum working example, but I'd like to do something like this where I have a parameter to a command as a variable: \usepackage{xcolor} ...
8
votes
3answers
433 views

How do I create unadorned color bars without a plot?

I want to create color bars of the type used by Kenneth Moreland in his excellent paper, "Diverging Color Maps for Scientific Visualization". They are unadorned and look like this: Any idea how he ...
6
votes
1answer
97 views

Color package interferes with sections

I would like to use the color package to define custom color for listings background but when I include it it creates nasty side effect on my numbered section headers (only section, not lower levels). ...
9
votes
2answers
158 views

How to use \pdfcolorstack?

Consider this code: \chardef\Color=\pdfcolorstackinit page direct{0 g} \pdfcolorstack \Color push {1 0 0 rg 1 0 0 RG} red \pdfcolorstack \Color pop {} black \hrule height 1pt width 50pt \bye I try ...
10
votes
1answer
997 views

Specific colour in equation links

In hyperref package, is it possible to specify a specific color for equation links different than other link colors ? Following are present color specifications that I am using for hyperref package ...
4
votes
1answer
146 views

Strange color in PSTricks

I draw a figure in pstricks, the code is here: \documentclass{minimal} \usepackage[dvipsnames]{pstricks} \definecolor{bg}{cmyk}{0,0,0.1,0} \begin{document} ...
2
votes
1answer
2k views

Cell color partially overriding cell border

I am using \cellcolor to give a background to some cells. The cell color is partially coming over the border of the cell as you can see in the screenshot. This is my LaTeX code for the table. ...
6
votes
1answer
288 views

Color transition from title to main body

I've been scouring the internet for an answer to this question, unsuccessfully. I couldn't find it here. If there is an answer already, sorry and please direct me to it. I'm trying to customize my ...
5
votes
2answers
355 views

Color legend in Y axis

I have the following multiple y-axis plot that results in the image on the top image. However, I want to add a sort of legend in each of the Y axis, similar to what I manually drew in the bottom ...
1
vote
0answers
680 views

Packages multirow and columncolor give ugly stripes

I have two problems on one slide. This is an example: \documentclass{beamer} \usepackage{graphicx} \usepackage{tabulary} \usepackage{colortbl} \usepackage{multirow} \usepackage{xcolor} ...
5
votes
1answer
433 views

Color of bar plot depending on the bar height (pgfplot)

Does there exist any command to make the bar color depend on the bar size ? For example, the color of a bar of size x (between 0 and 100) should be filled of x percent of black, as displayed below. ...
2
votes
0answers
31 views

Why does the subtitled Ck, keep overwriting on the line number of the algorithm? [closed]

\documentclass[dvipsnames,svgnames]{beamer} \usepackage{algpseudocode} \usepackage{eulervm} \usepackage[most]{tcolorbox} \setbeamercovered{transparent=40} \usefonttheme[onlymath]{serif} ...
5
votes
1answer
132 views

How do I cause a faded out version of certain lines of code and highlight a few. (See example)

I need to know how the first 4 lines of code, are faded, the and how the Ck and Ck' are made with different colors. It'd be of great help if I could get the code for just saw the first 4-5 lines. ...
6
votes
1answer
308 views

pgfplots: changing dashed line dash locations

Is it possible to have one set of dashed lines fill the gap of another set? The black is just barely sticks out from the purple. I would like the black to fill the gap in the purple. ...
5
votes
1answer
1k views

Set math fonts to predefined color

I am trying to define math text is some predefined color as in my preamble: \setbeamercolor{math text}{pmsGreen} \everymath{\color{pmsGreen}} \everydisplay{\relax \ifx \\\@eqncr \else ...
5
votes
1answer
438 views

Color part of text and captions

is it possible to color in red part of a text and/or of a caption (let's say, just some words)? I tried to create the environment: \newenvironment{redtext}{\color{red}}{\ignorespacesafterend} ...
6
votes
1answer
387 views

Setting the color of a draw command inside foreach

I am trying to draw colored lines with a foreach loop. The command I use to draw the line creates a colored line if I use it standalone. Once I put it inside the foreach loop, I only get a black line. ...
3
votes
1answer
86 views

Use of the color package changes the height of the text block

Here is the packages in my documents: \documentclass[12pt,twoside]{article} \usepackage{amsmath} \usepackage{amsfonts} \usepackage{amssymb} \usepackage{color} \renewcommand{\baselinestretch}{1} ...
10
votes
3answers
4k views

Table with TikZ

I should create a table like the one here as example. I think that the best way to do a table like this one is generate some labels and use them to colorize the nodes in order to make it more ...
0
votes
0answers
214 views

Control Auctex Preview colors

In the Auctex Preview Appearance section in customize, it is possible to set "Preview Reference Face". This is the only place I can find where the colour of the small .png files created by Preview ...
1
vote
1answer
267 views

Syntax highlighting for SPARQL query in a listing? (works fine in minted environment but not in listing with mint)

I can do syntax highlighting in the minted environment, for any SPARQL query using this Pygments lexer thanks to this answer. My problem is how to get SPARQL syntax highlighting to work with mint in ...
5
votes
1answer
796 views

crossing out using different colour

How to cross out a sentence using a horizontal line in a colour different from the text? I found this useful question about how to cross out a sentence, but I cannot figure out how to use colour with ...
3
votes
1answer
590 views

Rochester theme: changing headline not working

I have Rochester theme presentation (beamer), and I want to change the color of the headline bar. I've searched all around, and found that \setbeamercolor{headline}{bg=red} should theoretically ...
9
votes
1answer
8k views

What are structural elements? Customizing the mechnism of beamer color theme

When I search the Internet, I can find many pieces of code including \usecolortheme[named=XXX]{structure}. If I add it to my presentation, I can see maybe there are some changes. I would like to know ...
10
votes
1answer
8k views

Creating colorful plot using latex terminal of gnuplot?

Most output terminals of gnuplot draw different lines in a plot in different colors. I'm trying to create a plot inside my pdf document using gnuplot's latex terminal and the lines are only ...
2
votes
1answer
126 views

Tabular environment for specified width, bg and font colorings by row?

I'm looking for a tabular-type environment which will allow me to: Specify the total width (like tabular* or tabularx, tabulary) Allow an individual row to have a specific background color (like ...
4
votes
1answer
332 views

Can the font of chords be changed (“songs” package)?

In the songs package, it's possible change the font of chords? For example: Garamond font for lyrics and Computer Modern for chords? Or change the color of chords, for example: lyrics-black, ...
8
votes
2answers
80 views

Check equality between colors

Consider the following: \colorlet{mycolour1}{black} AND \colorlet{mycolour2}{black} How do I use a command like \ifthenelse{\equal{mycolour1}{mycolour2}}{TRUE}{FALSE} In other words, how can I ...
5
votes
1answer
1k views

Define colour transparency in relation to existing colour

Background Using ConTeXt to develop a nice theme where users can change the colour scheme, but still get the same "feeling" for the output, primary, secondary, and tertiary colours are defined. For ...
2
votes
1answer
241 views

change latex glossary page number color

In the glossary chapter, I want to change the page number color from black to blue. How to do that ? Is there an option in the \usepackage{glossaries} entry ? \usepackage{glossaries} ...
4
votes
1answer
466 views

How to avoid shading of connection bars in TikZ mindmap

I am trying very hard since a while to draw a mindmap where shading of connection bars is avoided and where the connection bar's color is specified by me. For instance, I would like to draw two green ...
5
votes
1answer
121 views

Weird problem with pdfpages and fbox

I'm trying to get a colored background for my page numbers, and it works okay - except when I want it to show on pdf pages (which is where it's most important). This also happens on the last page of ...