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

learn more… | top users | synonyms (1)

3
votes
0answers
58 views

Function to create a Chapter color

I am writing a project for a course and I want to make each Part's Chapters' first page to have a different color on the side. This is my code. (I put % (comment) in the problem for the code to run.) ...
6
votes
1answer
64 views

Why is the start row of \rowcolors ignored in tabularx?

Seems like \rowcolors when used for a {tabluarx} doesn’t work properly: The specific number of the first row to be colored is ignored. This si not the case for a normal {tabluar}. In both tables ...
4
votes
1answer
62 views

Table cell with unwanted black background

I'm trying to create the following table, but the first cell has a black background. How can I get rid of it? I need alternate colors and multiple rows feature provided by tabularx. ...
2
votes
1answer
22 views

xr-hyper link color does not follow hypersetup

I am using the xr-hyper package to reference labels in another document. The linking is working properly. However, I noticed that colors of the xr-hyperlinks are not following the colors defined in ...
4
votes
1answer
113 views

Highlight Text with Background Color

I try to highlight text with \texttt font and background color (somehow like the highlighting on StackExchange: this). I tried with a colorbox, but the problem is that it doesn't support line breaks, ...
2
votes
1answer
66 views

LaTeX - mdframed shadow color/opacity

I currently have a problem with the mdframed shadow color. If I set the shadowcolor parameter to black, the shadow will actually be grey (I guess because it is not fully opaque...), as seen on the ...
0
votes
1answer
47 views

Beamer and monochrome-xcolor

When using the monochrome option for xcolor in a Beamer presentation, the canvas background shows up as entirely black when compiling with pdflatex, but would be entirely white if compiled with ...
1
vote
1answer
45 views

Append “handout” option to white-out answer environments

I cannot seem to find a solution for a simple problem. I would like for my slide handouts to white out the text in Answer blocks for printing. (Though this possibly allows students to highlight ...
1
vote
1answer
53 views

highlight several successive paragraphs, including tables

I want to do s.t. which seems like it ought to be trivial, but I've tried for two days without success (much of the time trying methods I found here). Conceptually, I want to highlight an arbitrarily ...
2
votes
1answer
43 views

coloring section rule using sectsty package

I would like to change the color of section rule, as it obtained using sectsty package. Here is what I have: \documentclass{article} \usepackage{xcolor,sectsty,lipsum} ...
6
votes
2answers
139 views

How to plot anomaly using two colors in a single plot with pgfplot?

I want to create a line plot using a table data included in the MWE. The thing is that, using this data, I want that the plot looks like the next figure: i.e., with different color areas for one ...
2
votes
1answer
38 views

How to color text inside of a \def

I am trying to color some text inside an xdef command. I am getting the following error: Use of \@undeclaredcolor doesn't match its definition. Does anybody know how to resolve this? Thanks! edit: ...
0
votes
1answer
50 views

Change background colour of toolbars in TeXstudio mac

Have the same question as posted here Change background colour of toolbars in TeXstudio just that I'm on an OSX device With How do I change color settings in TeXStudio? and How can I set a dark ...
1
vote
1answer
53 views

What would be a good way to approach making a table-like diagram with text at varying angles?

I want to make the following diagram in LaTeX: I started to approach making it in a table, with \usepackage[table]{xcolor} being used for colors, but it seemed to become overly complex. What would ...
2
votes
1answer
118 views

Undefined Color under TikZ code

The Problem is '!Package xcolor Error: Undefined Color 'Black'. See the xcolor package documentation....' Perhaps is a simple mistake due to the fact that I'm a newby. Using MiKteX, xcolour package ...
1
vote
0answers
36 views

Color the text of an item while using task

i am using task to make multiple columns, now I would like to color the text including the index. I have been able to color the text but not the index as follows \begin{tasks}[counter-format ...
3
votes
2answers
84 views

Defining coloring area in Tikz

After much work i figured out how to make assymetric sets. Now i am having much trouble defining where the coloring should fill. As you can see in the pic when i fill in the color it fills ...
7
votes
1answer
214 views

Show all colored words at the end of document

Is there any way to show all colored words at the end of a document? Say I'm marking definitions as red and theorems as blue. Is it possible to make a list of "keywords" where all red words is ...
12
votes
3answers
564 views

Partially transparent gray chronoevents in my chronosys timeline? Or using any other Plain-TeX, LaTeX, LuaLaTeX, or even a XeLaTex package or method?

While putting together a "traditional" timeline, I kludged together a means of coloring my boxes in chronosys, but I would like the event boxes to be partially transparent. This would allow better ...
5
votes
3answers
157 views

Change the page color starting at page x

I need to be able to change the background color of a document and the pagecolor package seems like a good fit. However, what I also need is a command that allows me to color all pages that start at a ...
0
votes
1answer
64 views

Trims missing with colored page

I am using memoir and showtrims as an option. using \onepagecolor makes the trims disappear. Any ideas? Here is a MWE: \documentclass[12pt,showtrims]{memoir} \usepackage{lipsum} \usepackage{xcolor} ...
2
votes
1answer
31 views

\cellcolor extent slightly off when \multicolumn also in use

I am trying to color-code cells of a large matrix that may either contain a number or a symbol. (MWE at end.) The numbers are supposed to be flush right within their cell, but the symbols are ...
0
votes
0answers
46 views

How to color math symbols in beamer with lyx

I know there are answers to do that in latex. But is there a similar implementation in lyx?
4
votes
1answer
121 views

How to create a colour option in custom beamer theme?

I have used this answer from the question about how to design a beamer theme from scratch to design a Beamer theme to look like a university presentation (Powerpoint) template. There are 3 colour ...
0
votes
0answers
22 views

How to add a rule/command to not color text in <> in tcblisting?

I have the following listing with some code inside: \documentclass{article} \usepackage[T1]{fontenc} \usepackage{beramono} \usepackage{xcolor-solarized} \usepackage[many,listings]{tcolorbox} ...
7
votes
0answers
69 views

Included PDFs alter Beamer colors

I am compiling a Beamer presentation on Ubuntu using PDF figures output from Inkscape. The colors on certain slides are wrong. This appears to be caused by including certain figures, and based on my ...
10
votes
4answers
401 views

Using \textbf vs. \mathbf in Math mode

Is there any preference for using \textbf or \mathbf in math mode; or \textbf works exactly the same as \mathbf in math mode? I know for example, the \textit does not work in some cases in math mode, ...
1
vote
1answer
43 views

Does option xcdraw to package xcolor do any good nowadays?

Package xcolor has an option xcdraw whose documentation is: Option xcdraw uses PostScript commands to draw frames and color boxes in case of the dvips driver and PDF code to draw frames in case of ...
1
vote
1answer
21 views

Set Keywords in two specific colors inside of a codeblock

Is it possible to set two Colors to Keywords inside of a Codeblock? I have the current settings for my Codeblock \lstset{language=[Sharp]C, captionpos=b, %numbers=left, %Nummerierung ...
2
votes
2answers
60 views

tiki pyramid hierarchy colour

I have a tiki pyramid hierarchy, however I was wondering whether there was a way of filling the different tiers with colours. My current code is: \documentclass{article} \usepackage{tikz} ...
3
votes
1answer
43 views

How to freely modify color of bookest package?

I would like to use the bookest class because it suits very nicely my needs, however, I would like to modify the color in the headings and titles etc. In the bookest documentation it mentions the ...
2
votes
1answer
98 views

Plain TeX plus OPmac macro: setting page (background) color

Synopsis: add macro to set page-background in TeX + OPmac Out of http://petr.olsak.net/opmac-tricks-e.html#coltext ...the OPmac tips and tricks additional macro listing to the core opmac.tex macro ...
2
votes
1answer
95 views

Creating a heatmap using calculations and tabular environment

I know there exists pgf, and many people uses this to create heatmaps. I however am not allowed to use this package. I therefore want to create a command that enables me to color the different cells. ...
4
votes
1answer
79 views

Can't get color or textcolor to work

I'm new to latex. I'm using a template on overleaf.com. I'm trying to change the color of some of the text, but it remains grey. Here's a simplified sample of the tex file: ...
3
votes
1answer
22 views

Change the color of the link which is generated by \htmladdnormallink

I try to write a book, and I'm beginner with some functions in LaTeX. I already have looked for this question even I looked in hyperref manual and I have not found anything about how to change the ...
1
vote
1answer
55 views

remove space between columns in longtabu with rowcolors

I use the ltxtable package to create long tables with variable width columns. Using this I want to completely remove the space between to table columns by doing this: \documentclass{scrbook} ...
1
vote
3answers
77 views

How would I get custom-colored equation numbers as simply as possible?

In a continuation of efforts to create a complete SAE technical paper class file, I need a little help finding the easiest way to create colored equation numbers. In my class file, I already define ...
2
votes
2answers
104 views

Change the color of the chapter number (Oxford Thesis Template)

I'm writing my PhD thesis and I am using the Oxford Thesis Template. I would like to change the color of the chapter number (which is grey) in the beginning of this chapter. You can find the Oxford ...
0
votes
0answers
103 views

Change color in Latex

How can I change the color of a sentence in latex ? I also want to write my university seat number and name at the bottom of my page. How do I do that? P.S. : Noob at Latex.
0
votes
1answer
57 views

How to format complex section header

I've got several question, all relating to the below image. Within my .cls file I am trying to style the section headers like so: My first question was how do I stop \sections from being numbered. ...
1
vote
1answer
78 views

How to change font color of a row in tabularx?

I have a table and I want a font color of 5th and 6th row be red. What I'm doing right now is changing the color of each cell in these rows, is there any command which can change font color in a row, ...
5
votes
2answers
88 views

How to use \usepackage{pst-barcode}

When using \usepackage {pst-barcode} I get error : \documentclass[10pt,a4paper,twoside,openany]{book} \usepackage[spanish]{babel} \usepackage[dvipsnames,x11names]{pstricks}% Options for xcolor ...
2
votes
1answer
50 views

Multicol and text background color

I am searching means to create a multicol document in which each column has a background color like illustrated below. The colored areas (red rectangles) should be filled with the background color. ...
4
votes
2answers
54 views

Change color line in hline

Recently I asked a question about how to draw a line under titles but this line should be flexible is a picture is included or not. I am trying to change the color of this line but nothing works? ...
1
vote
1answer
51 views

Beamer. Block. How to reset \setbeamercolor{block title} and \setbeamercolor{block body}?

After using a block with customized colors \setbeamercolor{block title}{use=structure,fg=white,bg=red!75} \setbeamercolor{block body}{use=structure,fg=black,bg=red!30} How can you reset to the ...
1
vote
1answer
57 views

Changing the color of paragraph and caption text together

I have a question about paragraph text colour and caption text colour. I want to change the text colour of a part of my paper which has many figures but when I use \color command, it only changes ...
2
votes
2answers
78 views

Color-box behind inline text / inline math without vertical space

I'd like to provide a ‘background-colour’ for spans of code or math inline with text, in the same way that CSS allows. I've tried to do this with \colorbox, but unfortunately, that seems to add ...
8
votes
3answers
89 views

Section title formatting also in the toc

I have searched the web to no avail trying to figure out how to redefine the section title format in a way that will be transmitted to the way that same chapter appears in the Table of Contents. I ...
2
votes
2answers
72 views

\colorbox{color}{text} display issue with same math expressions but different syntax

My following LaTeX file in MikTeX' TeXworks editor on my Windows 8.1 is showing the highlighted content with different sizes when the highlighted content is inside quadratic formula but not when it's ...
2
votes
3answers
70 views

A table with fixed width columns, coloured both background and text

I am trying to create a table which has all three traits, mentioned in the title, at once. I tried tabular with individual \color for each column, tabu with \rowfont, and custom column definitions ...