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

learn more… | top users | synonyms (1)

4
votes
2answers
184 views

Is there a way to set colors of hyperref links and urls differently in headings / sections than in the body?

I know hypersetup from hyperref needs to be added before \begin{document} but after \usepackage{hyperref} and \usepackage{bookmark}. For example, you can inject it like the following to ensure this: ...
1
vote
0answers
19 views

texmaker commenting in math mode colors

Can you set the color of comments in math mode to be grey like normal comments? For instance \begin{array}{cl} \min & \tr XBX^T \\ \text{s.t.} & |Xe-2e|^2=0, \\ & ...
0
votes
1answer
25 views

How can I define more color commands properly for \pslegend in pst-plot

I am plotting a multi-curve graph by using pst-plot, and naturally need different color to label each curve in legend, by using \pslegend command. However, I find I can only use a number of ...
3
votes
0answers
29 views

\maxsizebox resets color in TikZ \node

While trying to fix an issue in menukeys I think I found a possible bug in adjustbox: It seems to reset the text color in the node. In the following picture all words in the first line should be red, ...
2
votes
0answers
39 views

How do I change the color of the color below the header?

I want the color of number 2 to be the same as the color of number 1. This is the code that I've used: \documentclass[xcolor=dvipsnames]{beamer} \usetheme{Darmstadt} ...
0
votes
0answers
19 views

Colouring Specific Blocks of Rows in a Table

I have my table formatted how I want it. Just want to colour in the A-Type multi-rows, and the C-Type multi-rows; to distinguish them from the B-Type. I wish to have them coloured grey, but only a ...
0
votes
1answer
26 views

Colored tabular - line not showing

\begin{tabular}{| p{10cm} | c |} \hline & \\ {\bf Requirement:} & {\bf Categorie:} \\ & \\ \hline & {\cellcolor{green}}\\ text & {\cellcolor{green}{\bf Must Have}} \\ & ...
2
votes
1answer
37 views

Only a few characters of an arabic word in a different color

Can we get for example only the last character of an arabic word written in a red color. I use the arabi package with pdfLatex
3
votes
2answers
31 views

verbatim inside macro with color

Consider the following minimal non-working example (comment the line with the \test{..} to compile. I'd like to have a \verb+something+ inside my \test{} environment. How can I achieve that? ...
1
vote
1answer
34 views

How to colour a cell and keep the contents in maths-mode?

I am trying to colour certain table cells in some siunitx S columns. The cell colour change with xcolor/colortbl works, but it seems to also change the cell contents to text-mode, which has ...
2
votes
0answers
46 views

speckled colors in latex

I saw last week a presentation that was made with keynote and which was showing cells filled with speckled colours. Is there a way to get speckled colours in latex/beamer ? Until now I was only able ...
3
votes
2answers
102 views

Baseline of a cell with a rule is messed up because of \color

I have a table (tabulary) in which some cells are only filled with a rule. This rule is 1ex thick and I want that the bottom of the rule matchs the baseline (of all cells of the row). I've found that ...
2
votes
2answers
108 views

Color area inside curved lines in tikz

I drew this picture with the following code \documentclass{standalone} \usepackage{tikz} \begin{document} \begin{tikzpicture} \node (mth) [align=center] at (0,0) {parameter space ...
0
votes
1answer
39 views

All section titles in one uniform color in friggeri Latex CV

do you know how to change the colors of the section titles in the friggeri cv? I would like for them to be in one color and also the entire word, not only the first three letters. Is there any ...
1
vote
1answer
33 views

Increasing font size makes coloring of last table column incomplete

My table is aligned to the left by using \hskip-1.50cm. When I increase the font size from 10pt to 12pt, the table's layout shifts to the right and understandably so. The alternating rowcolors do not ...
3
votes
1answer
42 views

Setting a custom RGB background color in beamer

I believe I've correctly followed the manual in defining a custom background color in the example below. But as the example shows, the background color is black rather than an extremely pale ...
4
votes
1answer
88 views

Remove Border form Tikz SMart Diagram

I want to remove border, set the box background to dark in the diagram below. I got no help from the document. \begin{center} \smartdiagramset{ set color list={blue,green,orange}, % border=none, ...
2
votes
1answer
41 views

How to use 'BoldFeatures' to colorize bold texts, but override that color for individual text strings?

In my document preamble I use the following code to set my desired font and at the same time to set as default text colors different gray values for italic, bold and bold-italic text: ...
3
votes
1answer
51 views

Modifying colors of beamer theme Madrid: Title, footer author box and Dates and Slides

I writing a latex presentation using madrid and beaver theme. I want to change the color of the Title of the Presentation, Background box of the institute, font color of footer title, page number and ...
1
vote
1answer
61 views

color for beamer

Could you help me to change the color for beamer. I'll defend my PhD thesis next friday and we have to follow some orientation for presentation's format in our university. So, I'm using ...
0
votes
1answer
36 views

Color in between lines - table

I wanna make a table with colors. How I do a table with colors that only the interleaved lines have color?
7
votes
2answers
132 views

How I can align 2 arrays?

I want to get rid of indentation on the first image to make it as a second. \documentclass{beamer} \usepackage{tikz} \usepackage{amssymb,amsmath} \usepackage{tikzpagenodes} \usepackage{lipsum} ...
2
votes
2answers
37 views

How to change the color environment tasks in latex?

\begin{tasks}(3) \task {\color{red} $3x^3 - 21x$} \task {\color{red} $5x^6 + 15x^4$} \task {\color{red} $4x^3 + 10x^2 - 2x$} \end{tasks} How to change the color number tasks. Please, help!
1
vote
1answer
47 views

Adding colour to a cell

I have the following preamble: \documentclass{article} \usepackage{colortbl} \usepackage[table]{xcolor} \usepackage[many]{tcolorbox} \usepackage{efbox} \efboxsetup{linecolor=fucsia!100, ...
2
votes
2answers
63 views

Inserting a box with shaded background text, in plain TeX.

I'm using Plain TeX and trying to create a box that has a shaded background, containing a mixture of both mathmode and textmode TeX. It would be great if I could add colour to the background (i.e. ...
1
vote
0answers
40 views

Using color in expex gives “Missing \cr” error

Update: The expex developer, John Frampton, has added color functionality to a pre-release version. Those interested in beta-testing should email him for the code. Original Question: Trying to print ...
3
votes
3answers
88 views

Triangle arrows with text above

I would like to use black and white triangle arrows with text above like these: I guess that I have to combine /longrightarrow /xrightarrow{W} and /rightarrowtriangle but I don't know how to do ...
2
votes
1answer
60 views

How to change colour of Navigation Bar in Beamer

Does any one know how to change colour of Navigation Bar in Beamer. I have used the following in preamble \documentclass{beamer} \mode<presentation> { \usetheme{Warsaw} ...
3
votes
1answer
28 views

How to change the colour of the all lines in tabularx?

I have a LaTeX document, where I have a tabularx environment, and I need to change all lines in the table to grey. I have tried this command \arrayrulecolor{grey}\hline, but it changed just the colour ...
4
votes
1answer
66 views

Fix color transition from block title to body

I'm trying to set up a block with my own colors, but the transition from the block title to the body just looks horrible. I already had a look at remove Beamer block transition, the code obviously ...
0
votes
0answers
10 views

\rowcolor overwrites vertical table border [duplicate]

\documentclass[a4paper]{article} \usepackage[margin=0.5in]{geometry} \usepackage[english]{babel} \usepackage[utf8x]{inputenc} \usepackage{amsmath} \usepackage{graphicx} ...
4
votes
1answer
100 views

How does this partial-string color-highlighting code work?

I'm using the awesome-cv class, which highlights the first three letters of the section heading like so: The code that produces this effect looks like this: \RequirePackage{xcolor} ...
1
vote
0answers
52 views

How to pass a color as an argument [closed]

Before explaining my problem, sorry if this is a repeated question, but I was not been able to find one answered/asked question in which the problem was the same as mine. In order to create a ...
5
votes
0answers
59 views

How to apply colour options to the contents of TikZ nodes when the content includes \sbox{}\usebox{}?

Thanks to Sašo Živanović for helping to identify the problem which arises as a result of my trying to apply options such as blue or text=blue to nodes within Forest trees which include turnstiles from ...
4
votes
2answers
94 views

Change the color of title

I successfully changed a color of sections and subsections to my defined one. However I'd like to change the \title with the same way, but \titlefont{•} doesn't work (and I guess it's not supposed ...
1
vote
1answer
36 views

Can't change the colour of the line in the header (fancyhdr)

I'm trying to change the colour of the line in my header to the grey, and I don't know how to do it correctly. \documentclass{article} \usepackage[utf8]{inputenc} \usepackage[russian]{babel} % ...
6
votes
1answer
105 views

creating function in TikZ that can break up and interpret string

I find myself needing to draw a bunch of simple patterns with a few colors, as in the example below. \begin{tikzpicture}[scale=1.5] \draw[style=help lines,step=1cm] (-2.3,-2.3) grid (2.3,2.3); ...
3
votes
1answer
22 views

How to get xcolor colour mixing to work in newcommand

I want to set the colour of a table cell using the argument passed into a command, but it doesn't seem to have any effect. Here's my code: \PassOptionsToPackage{table}{xcolor} \documentclass{beamer} ...
2
votes
0answers
41 views

Highlight first rows and first columns of a pgfplotstable

I'm trying to change the background color of the cells FOO and BAR and also the ones with the values (1 and 2) in the following MWE: \documentclass[12pt]{article} ...
2
votes
0answers
61 views

Draw a matrix with Latex

I did a matrix with Latex, but I do not know how how to do the colored square. Any idea please? Thank you \documentclass{article} \usepackage[table]{xcolor} \usepackage{collcell} ...
2
votes
0answers
54 views

Sphere shading in cmyk colours

I'm trying to make a sphere in cmyk colours. In rgb, the spheres are nicely overlapping as expected. Is the solution using @Christian Feuersänger suggestion here? \documentclass{standalone} ...
2
votes
1answer
34 views

color (solid) individual nodes in tikzpicture matrix

in the following MWE, I create a 'Coates diagram' I use for one of my classes. What I haven't been able to figure out is...how to colour the individual nodes? I want them to be solid, say, RGB-based ...
1
vote
0answers
29 views

Automatically coloring entries in toc if they contain only default images

Introduction I am working on a document with many images named in it. These images get inserted into the .pdf if they are located at the folder I told LaTeX to look in. If there is no such image it ...
3
votes
1answer
44 views

Coloring toc page numbers

I'm using book class and I'm trying to achieve a toc which titles and page numbers are all clickable and hyperlinked to their corresponding sections, but with the characteristic that the page numbers ...
0
votes
0answers
10 views

Missing some vertical and horizontal lines n tabular environment with colour [duplicate]

I have about 20-30 tables, and sometimes the vertical/horizontal lines and borders won't show after I have added >{\columncolor[gray]{0.8}}. \noindent ...
2
votes
1answer
33 views

Change the section color in europecv for “Personal information”

For changing the color of section titles I do this in europecv: \newcommand{\mycvsection}[1]{\ecvsection{\textcolor{BrickRed}{#1}}} This way the section title is red when I use: ...
8
votes
1answer
75 views

Strange tikz problem (memoir vs xcolor vs tikz)

Consider the MWE below, on a fully updated TeX Live 2015, this gives me this error: /opt/texlive/2015/texmf-dist/tex/generic/pgf/libraries/pgflibraryarrows.meta.co de.tex:208: You can't use `\unskip' ...
2
votes
1answer
50 views

Color Box Theorem Headtitle only

I want to put a colored box in every theorem, example etc. Only the headtile and not it's contents. I've found an answer here which works for simple tetx. But is does not work for theorems, examples ...
2
votes
1answer
41 views

Colored horizontal lines in algorithm2e

I'm trying to colorize the 3 horizontal lines appearing at the top and bottom of the algorithm below. I haven't been able to find similar issues in the internet. Could you please advise? ...
0
votes
1answer
67 views

Resolve rowcolor and column separator clash?

I want to create a table with Text aligned around the separator "V-" and color it using \rowcolor. The normal column separator @{V-} doesn't work with \rowcolors, thus I'm searching for a way to do it ...