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

learn more… | top users | synonyms (1)

1
vote
1answer
43 views

Is it possible to use TikZ shading with XeLaTeX? [duplicate]

When adding the second solution to this answer, I initially tried to compile with XeLaTeX so that I could use fontspec. However, that didn't work, although compiling with LuaLaTeX did. I've now ...
2
votes
0answers
23 views

Listings - Getting the colors right for custom language

I have lots of bookkeeping transactions that I would like to typeset in a color coded format. I am using the listings package to accomplish what I want. I tried the following code. ...
0
votes
0answers
27 views

Splitting commands over multiple lines [on hold]

We have a command used to typeset things in a specific font and colour. Sometimes, what is given to this command is large and it needs to be split into multiple lines within the same align or ...
6
votes
2answers
146 views

Section numbers colored

I want to color the section and subsection numbers in my document. I tried the solution here http://tex.stackexchange.com/a/193186/80972 but it doesn't work for me. Here's an example using that ...
0
votes
3answers
63 views

Taylor's diagrams package : set color of individual elements

In Paul Taylor's diagrams package, is it possible to set the color of specific elements in a diagram? If so, how? I have tried using \color{a_color}. It changes the color of part of the diagram, but ...
0
votes
0answers
26 views

Understanding some tabu code

I'm catching up on LaTeX after a period away. Herewith part of a programme: \documentclass[12pt]{report} \usepackage{tabu,multirow,hyperref,colortbl,xcolor} \begin{document} \begin{tabu} ...
4
votes
1answer
31 views

Matching width of colorbox with caption to the corresponding table

Please have a look at the following MEW: \documentclass[demo]{article} \usepackage[english]{babel} \usepackage{graphicx} \usepackage{xcolor,booktabs,caption} \begin{document} ...
1
vote
1answer
23 views

cline missing after coloring and text overlap in tabular

My code and what I got, \documentclass{article} \usepackage{ragged2e} \usepackage[utf8]{inputenc} \usepackage[letterpaper, top=0.5in, bottom=0.5in, left=1.55in, right=1.55in]{geometry} ...
0
votes
2answers
21 views

unwanted table coloring issue [duplicate]

First thing first, my code, \documentclass{article} \usepackage{ragged2e} \usepackage[utf8]{inputenc} \usepackage[letterpaper, top=0.5in, bottom=0.5in, left=1.55in, right=1.55in]{geometry} ...
0
votes
0answers
21 views

Defining specific color for certain symbols in PHP using listings package

Problem: Trying to give certain symbols in PHP a specific color using the listings package. For instance, I want to be able to give <?php and ?> a specific color, while giving the object arrow ...
1
vote
1answer
13 views

Multirow line width

I'm having an issue with this code \begin{table}[H] \begin{longtable}{| p{4cm} | p{2cm} | p{7cm} |} \hline \multicolumn{3}{| p{14cm} |}{\cellcolor{lightgray} \centering \textbf{Iniciar ...
2
votes
2answers
107 views

Changing Colors of Document

I have a many pdf documents written in standard LaTeX format. I was interested, is it possible to make my pages be black but my text be white? In other words, invert black/white, I am curious how nice ...
2
votes
2answers
189 views

How to make a two level colored box with text?

I need some help to create boxes with two layers, color and text (as in the picture) that fit into textline. I thought about using tcolorbox but didn't work out for me yet. It is "needed" (it is not ...
0
votes
1answer
28 views

Color midrule in tabularx [duplicate]

I have created a table using tabularx. Can I color the \midrule instead of having it colored black as default?
1
vote
1answer
27 views

\columncolor overwrites table lines

When I fill columns of my table with a color, it overwrites some of the lines. Is there a way to avoid it? \documentclass[slidetop,11.5pt,xcolor=table]{beamer} \usepackage{tikz} ...
0
votes
0answers
16 views

Option clash: using pdfpages with xcolor [duplicate]

I am using \usepackage[table]{xcolor} to alternate table row colors in my thesis. I have tried to include a .pdf file as an Appendix using pdfpages, however LyX tells me there is a option clash with ...
5
votes
1answer
85 views

Add text inside a box inside another box

Problem: Trying to create a label for programming code by using text inside a color box inside another color box. However, I am not sure of the best practices regarding putting one box inside the ...
1
vote
0answers
26 views

Define listings for PHP

Problem: 1) Getting the following error messages: (a) Package Listings Error: Couldn't load requested language (b) Package Listings Error: language phpalsodigit undefined. 2) Unable to figure out ...
5
votes
1answer
117 views

Changing color in foreach

I'm trying to create a picture like this: where I have a grid and I depict the boxes shifting by colors changing. I was hoping I could achieve this effect easily in Tikz with a foreach (I am very ...
1
vote
2answers
61 views

Better table code and coloring table

First thing, I got a table, which looks fine in PDF, but sort of "ugly" in code, and I would like to present as below, \documentclass{article} \usepackage{ragged2e} \usepackage[utf8]{inputenc} ...
3
votes
2answers
100 views

How to change the color of the memoir epigraph rule?

Package memoir has an \epigraph command to typeset “Inspirational” quote at start of chapter. While the manual explains how to modify the thickness of the line that is drawn between quote and author, ...
1
vote
1answer
47 views

Change the color of bullets in a frame using pause

I want to change the color of a bulletted list in a frame using \pause command (or equivalent like \onslide), i.e. my list is first displayed in black and I want it gray on the next step. What I am ...
0
votes
1answer
14 views

Remove colored frame around doi in revtex

In this MWE, I obtain light-blue (cyan?) borders around the doi despite all options to hyperref and \hypersetup. \documentclass{revtex4-1} \usepackage[hidelinks,colorlinks=false]{hyperref} ...
1
vote
3answers
114 views

Venn diagram with customized colors in overlapping regions [duplicate]

I actually want to reproduce the following Venn diagram: For this, it is important that the central overlapping zone is yellow; it would be nice to reproduce the other overlapping colors too... ...
0
votes
0answers
24 views

\cellcolor only colours part of my cell

I'm fairly new to Latex and need some help with a table I am making. I want to mark the fourth row from category II fray, but it only marks part of cell. \begin{table}[h] \centering ...
2
votes
1answer
19 views

Figure label in one color, figure text in another as a document rule

By adding the following package with parameters, all captions for tables, figures etc. change color, font-size and distance between label and text: %Caption formatting ...
1
vote
0answers
23 views

Can't change the color for citations in elsevier style

I wish to change the color by default of the citations in the Elsevier template without having to touch the style sheet. Is this possible? Here is a MWE: ...
0
votes
0answers
12 views

IEEE Template Colors Issue

I'm using an IEEE LaTeX template for paper publication. On IEEE journal web site, there is a SAMPLE.tex : paper sample latex file. IEEE.cls : to be used as a documant class, which containes all ...
2
votes
0answers
41 views

Python console code with minted

I am using minted to highlight source code in my document. I have defined \definecolor{codeyellow}{RGB}{255,251,204} \newminted{python}{linenos,breaklines,frame=lines,bgcolor=codeyellow} in the ...
0
votes
0answers
11 views

Conditional formatting of tables [duplicate]

I would like to format a row like shown in the screenshot taken from excel: The cells are color shaded based on how big a fraction of the column is represented by the cell. Is there an easy way to ...
1
vote
3answers
140 views

Aligned equations in a colored box

I would like to put a set of aligned equations into a colored box. After a quick search on tex.stackexchange, I have found the following solution to put (apparently) one equation in a color box : ...
0
votes
1answer
25 views

Latex reference obtaining a section including color

I have the code: \definecolor{amaranth}{rgb}{0.9, 0.17, 0.31} \titleformat{\section} [runin] {\color{amaranth}\sffamily\filright} {\thesection} {0.5em} {} ...
0
votes
0answers
56 views

Interactive change of font color [duplicate]

I need any solution of the next problem: The font must change its color if a user clicks on block, text, hyperlink or something else. It would be great if it will not demand 2 compilations or more. ...
1
vote
1answer
17 views

Color in bleed using pagecolor and crop

I use XeTeX, Version 3.1415926-2.4-0.9998 (TeX Live 2012/W32TeX). I am using the crop package to add bleed and crop marks to a document. This works fine for pages with white background, but how do I ...
3
votes
2answers
60 views

Avoid Option clash for package xcolor

I've looked at other questions about option clash for package xcolor to no avail. Tried putting xcolor before hyperref and tikz, tried adding options [usenames, dvispsnames] to documentclass, and I ...
2
votes
0answers
54 views

'parula' colormap in pgfplots

I try to implement 'parula' Matlab colormap in pgfplots drawings. Here is the MWE for that palette with 10 points for interpolation: \documentclass{article} \usepackage{pgfplots} \pgfplotsset{ ...
1
vote
3answers
146 views

How to inject a color into boxed objects?

Consider the following MWE. I want to give a color (red) to the boxed object (Hello). Unfortunately, it does not work as expected as if the boxed objects are shielded. How to remove such a shield? ...
0
votes
1answer
34 views

Change the colors used in pgf-umlcd

Is it possible to change the colors used in the pgf-umlcd package used to model UML class diagrams? The default yields a yellow background and a red border. However I'd like to use black and white ...
0
votes
0answers
43 views

Colour correcting a presentation for a projector

Projectors are notoriously bad at showing images and I'm wondering if anyone has been able to correct the colours/brightness in a pdf to compensate for this? In my case I've got access to the ...
3
votes
2answers
86 views

A single row background colour

Below is my code. How do I add a background colour to the first row (only the first row, please)? \begin{table}[!htb] \centering \begin{tabular}{c c c} \toprule ...
0
votes
1answer
32 views

Can I change linenumber colour?

I've tried adding the lineno package to my document. It's nice but I would like to make the numbers a different colour, like a light grey or blue, if possible. Can I do this in my style document ...
1
vote
1answer
64 views

how to construct table inside table in latex

I would like to construct a table look like the picture below in latex:
1
vote
2answers
71 views

How to use color declarations in titles?

How can I use color declarations when setting the title of a document? I tried \title{\color{blue} Colors in typesetting} but I get an error from LaTeX. Update: The error reads as followed: ...
0
votes
0answers
30 views

Font color affects spacing

I'm in the process of doing some changes to a paper based on the review comments. I want to have a command that simply highlights with red color the changes that I do, but when the command is changed ...
2
votes
2answers
78 views

Color text in a table

Is there a way to color text in an entire table without using environment tabu? For example, change the color of text in every cell to red.
1
vote
1answer
59 views

Align colored numbers in table

How to align colored numbers in the last line with other numbers in the same column? \documentclass{beamer} \usepackage[utf8]{inputenc} \usepackage[T1]{fontenc} \usepackage{amsmath} ...
2
votes
1answer
26 views

How are the colors for certain schemes defined in moderncv?

Unfortunately, I'm not able to find this information in moderncv.cls... There is only written: % colors %------- \definecolor{color0}{rgb}{0,0,0}% main default color, normally left to black ...
1
vote
2answers
37 views

Changing color of cites with hypersetup not working

I'm trying to change the colors of my cites. I would like to get a light blue color for them. I tried using hypersetup but it seems not to work. Here is my MWE: ...
3
votes
2answers
144 views

Color of the navigation bar in beamer (theme Goettingen)

How can I change the color of the navigation bar in beamer? I am using "Goettingen" theme. I tried several changes, but that did not work... CODE: \documentclass{beamer} ...
0
votes
0answers
28 views

problem colour image in latex [beamer]

I have a problem : I'm using pdfLateX in beamer presentation. Build and view is: DVI->PS->PDFCHAIN also have this in preamb: \usepackage{graphicx} % Allows including images When I'm importing a ...