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

learn more… | top users | synonyms (1)

7
votes
0answers
38 views

TikZ: Mixing color with white and setting opacity with a white background yields different results

I noticed that 25% opacity with a white background yields a different result for me than mixing 75% white into the color. Why is that, and what would be the correct way to not have opacity but the ...
3
votes
2answers
82 views

Asymptote: How can I mix two colours

In latex, I can mix two colours like RoyalBlue!25!white. In asymptote I want to use the same color. How do I do this? MWE where I would like to replace the RoyalBlue color of the material by the ...
5
votes
0answers
73 views

Watercolor in tikz

Is it possible to fill a shape with a coloring that looks like watercolor like in this image using tikz or pgfplots? Src: http://bartoszmilewski.com/2015/07/29/representable-functors/
1
vote
1answer
18 views

Changing the colour of *some* references

I am using \usepackage[colorlinks=true,linkcolor=black,linktoc=page]{hyperref} and the citations come out green, while the page numbers in the table of contents, figure and equation numbers come out ...
2
votes
0answers
39 views

Fontcolor not working when footnote is continued at next page [closed]

In the beginning of my document, directly after \begin{document}, I put \color{red}. Unfortunatelly, on some pages, this does not work. I found the cause, but not the cure: Footnotes which are too ...
1
vote
1answer
35 views

Adding color to table of contents and section headings

Is there a way to: In the table of contents have the "Chapter" appear in a color other than black ? Is there a way to change the "section" color? A MWE: \documentclass[12pt,twoside]{memoir} %-- ...
4
votes
1answer
55 views

Change font blackness

\documentclass{article} \usepackage{fontspec,kantlipsum} \begin{document} \fontspec[Scale=0.9]{Trebuchet MS} \kant[1] \end{document} I'm using XeLaTeX but the text is way to black, it's like if I ...
1
vote
1answer
17 views

color one cell that has a multicolumn in it

Hi I want to colour the cell with "SMI" in it. \documentclass[]{book} \usepackage{tabularx} % LINE-A \usepackage{booktabs} \usepackage{colortbl} \begin{document} \begin{table}[h] \begin{center} ...
0
votes
1answer
47 views

Color Underline Section Headings

I would like to underline section headings using different colors (e.g. red for section, yellow for subsection). So far I have only achieved to change the text color of the headings (see code), but I ...
1
vote
1answer
47 views

Background color of legend in graphics made with tikzpicture/pgfplots

I'm using tikzpicture and pgfplots to make graphics. And, I'm wanting a beamer presentation with black font and white writing. When I'm plotting the graph, the legend box is just a white box and I ...
1
vote
0answers
16 views

How to use custom colorscheme with `\tdplotsphericalsurfaceplot` from `tikz-3dplot`

As the title suggest I am trying to use a different color scheme than is currently the default in the tikz-3dplot package for the \tdplotsphericalsurfaceplot command if one uses the option ...
2
votes
2answers
63 views

beamer: itemize do not honor text color

I understand that each \item within an itemize does not honor the text color because it is within its own group. Anyhow, I have a program that generates for me a bunch of boxes, one of which is ...
2
votes
1answer
36 views

beamer: column background color

How do I change the background color of a column in Beamer? (the entire column) (This is a simple question, but for the life of me, I cannot not find an answer.) Example: \documentclass[t]{beamer} ...
4
votes
1answer
37 views

Change color of a reference in bibliography

I am using {thebibliography} and I wanted to make one reference in blue font. I use \color{blue} but the problem is that the reference is in blue font but the number is still in black font. Does ...
2
votes
1answer
31 views

How to change color and thickness of headsepline and fromrule in scrlttr2?

I want to change the color and thickness of headsepline and fromrule using the standard scrlttr2 class with the options: headsepline=on fromrule=aftername
2
votes
1answer
58 views

Setting beamer color in region between title bar and canvas

How does one control the color of the region between the title bar and the canvas in beamer? When the color of the background canvas is darkened there is a white bar between title and canvas. MWE ...
4
votes
2answers
86 views

Compilable custom environment when in the body text becomes uncompilable when defined as a new environment

I attempted to make a table which has gray backgound cells except for the first column and the first row colored blue. The following code successfully generates the desired output (although I do not ...
6
votes
1answer
83 views

LaTeX — how to read current value of color?

I want to save the current text colour, then change it, then change back to the original. I was thinking of doing something like: \def\oldcolor{old colour here} % save colour \color{red} ...
6
votes
2answers
74 views

Changing the color of a “-” symbol within the align environment

I need to highlight a "-" sign together with the term next to it in an equation which is inside the align environment. In principle, I need something like this: but with the minus sign highlighted ...
4
votes
2answers
110 views

Package todonotes: How can I change the textcolor?

Consider following MWE: \documentclass{article} \usepackage{blindtext} \usepackage[colorinlistoftodos,prependcaption,textsize=tiny]{todonotes} \presetkeys% {todonotes}% ...
5
votes
1answer
74 views

Create a custom font style for beamer

How can I create a custom font style for beamer? How can I then change the color of this style and the normal font color globally? I'd like to write e.g.: \begin{frame} \HighlightedText{I am ...
3
votes
1answer
57 views

Add an \hline to every \\ using colortbl and/or [table]{xcolor}

I'm creating my own tabular environment to speed up my work and to enable others to quickly use my styles and templates. One of the things I do is force an \hline on every row. I accomplish this ...
3
votes
2answers
87 views

Color with Table Environment

Please have a look at the following code: \documentclass[12pt]{report} \usepackage[]{graphicx} \usepackage[]{xcolor} \usepackage{booktabs} \begin{document} \colorbox{yellow!20}{ \begin{table} ...
2
votes
1answer
27 views

Colored text for a theorem statement in beamer poster

I'm using a modified version of the template found here and I followed the advice given here to have theorems typeset in "inline" mode, instead of "block" mode. What I need now is to modify the font ...
1
vote
0answers
28 views

Add a color for a specific class

I have the following C# Code public class MeasurementData { #region Public Properties public int ADC { get; set; } public double Latitude { get; set; } public double Longitude { get; ...
0
votes
1answer
43 views

Color citation using biblatex : in-text + references (issue with postnote + bibliography)

I want to color my citations using biblatex alphabetic citation style. However, I do not to only color the "key" (as it is the case in this paper) but the whole block including : opening bracket (or ...
1
vote
1answer
61 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
30 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. ...
6
votes
2answers
164 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
73 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
30 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
44 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
28 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
24 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
25 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
18 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
110 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
202 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
35 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
42 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
95 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
27 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
134 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
65 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
108 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
51 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
22 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
134 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
29 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 ...