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

learn more… | top users | synonyms (1)

5
votes
1answer
162 views

Using different colors for different keywords in lstlisting

I've looked through a few answers on here, and either they don't work or don't fully answer my question. I have to format some C++ code and I want it to have these colors for these specific keywords ...
3
votes
1answer
82 views

Is it possible to change the box rule thickness of algorithm2e

Is it possible to customize the boxing rule width and color of an algorithm2e float? \documentclass{article} \usepackage{algorithm2e} \begin{document} % \RestyleAlgo{boxed} \RestyleAlgo{boxruled} ...
2
votes
1answer
94 views

!LaTeX Error: Undefined color 'orange'

I have a problem with the following code: \documentclass{article} \usepackage[utf8]{inputenc} \usepackage[czech]{babel} \usepackage{listings} \usepackage{color} \begin{document} \uv{Tento text je v ...
0
votes
1answer
38 views

Changing color on advanced bar chart (pgfplotstable)

I have made a stacked and clustered diagram, based on this brilliant answer: http://tex.stackexchange.com/a/55559/93892. However, I would like to change the colors of the bars. The most important ...
5
votes
1answer
62 views

make soul highlight span lines

The \hl command from the soul package highlights spans of text with a backround color when color is loaded. When used on longer spans of text, some inter-line spacing remains uncolored, which is ...
0
votes
0answers
28 views

Change the color of a PART text of name in \section (\subsection or etc.) [duplicate]

In the example, I used \subsection[sub-section {\color{green}1.1}]{sub-section {\color{green}1.1}} to change the color of a part of text 1.1 to green, which didn't work. I used \color for ...
2
votes
1answer
94 views

is it possible to display color only in PDF viewer, not printed page?

The ocgcolorlinks option to hyperref will let you have colorful links on the screen that are black (or more generally, the textcolor) when printed. Is there a way to have coloured hyperref ...
3
votes
0answers
42 views

Color a subset of digits in SIUNITX

I am writing a presentation with Beamer, where I show the benchmarks of a program I wrote. This involve comparing a lot of number coming from different sources. These numbers can differ only in the ...
4
votes
1answer
51 views

Padding Issue when Coloring Cells of the Latex Table individually

I created the following latex table in booktabs style and colored each cell with a different colour. But in the end, I saw some padding which is not coloured because of the different size of the ...
3
votes
2answers
224 views

Changing color in mathmode in LyX

I know there are \color and \textcolor commands for changing colors in mathmode. However, these commands have two arguments, so when I enter them in LyX, the first argument "swallows" the command and ...
0
votes
2answers
46 views

How do I reference a template colour in beamer?

Say I want to draw a beamercolorbox and have it be coloured with the colour used for block body alerted.bg. How can I do this? I read this question, but it turned out to be unhelpful. I need to ...
1
vote
1answer
84 views

Colored box just around the text

I want to have a rounded box with black border lines and a backgroundcolor, f.e. yellow just around the text, not around the whole line, so the sentence should just continue on the same line. I found ...
2
votes
1answer
79 views

Two-color background

I am creating a poster using Latex and would like to split the background into two parts. Then I was wondering how we can create a background that is two-colored. For example, upper part is red and ...
0
votes
0answers
18 views

Beamer - Change section in head/foot text color [duplicate]

I'm trying to change the font color of the section (shaded and not shaded) using Berlin theme. As far as I know to do so the code should be something like: \setbeamercolor{section in head/foot ...
2
votes
1answer
47 views

\lstinline: color of “#pragma”

I am trying to use \lstinline but it does not work as expected: \documentclass{scrreprt} \usepackage{color, listings} \lstset { language=C, keywordstyle=\color{blue}, } ...
2
votes
1answer
78 views

Transparency inside empheq (color box)

I'm currently writing a formulary for dynamics and searched for a way to box important equations and have them coloured. The answer to my problem was the empheq package - for now. Now I'm facing the ...
1
vote
0answers
66 views

How to color numbers in certain parts of a lstlisting

So, I'm a student and my teacher posted this kind of "how to make XML look cool in LaTeX". We were using it in class but I noticed some errors. For example, when printing numbers inside the labels ...
5
votes
1answer
115 views

Simpler way to add color to equations in math mode?

I was looking for a simpler way to add color to math mode. Specifically, I wanted different parts of an equation to have different colors in order to better correlate with colors in a figure. The ...
0
votes
0answers
31 views

Beamer: cause text to behave as background?

I am creating a slide which starts off with some text; that text will be first in black, then in a light gray for background. Here is my MWE (well, it's a MNE: minumum non-working example): ...
2
votes
1answer
43 views

Alternating coloured rows in table - line width of colouring -

I'm creating a table with alternating coloured rows. However, the colour seems to extend the top- bottom rule of the table, which doesn't look quite right. Also, my header row probably should be a ...
3
votes
1answer
163 views

Draw a class diagramm in black and white

I want to draw a class diagramm (and later on other diagramms) in black and white using LaTeX and Tikz-uml as the default color is a kind of yellow. Is there an easy parameter to attach to the ...
0
votes
0answers
28 views

Beamer puts table borders in weird places with color

I have a table that I would like to alternate the colors on to make it look nicer. My code is as such... \begin{table}[!ht] \centering \adjustbox{max height=\dimexpr\textheight-5.5cm\relax, ...
4
votes
2answers
51 views

Get red green and blue channels of a defined color

In LaTeX one can define colors with the command: \definecolor{somecolor}{RGB}{0,42,14} I was wondering if it is possible to obtain the value for the red, green and blue channels for a given color, ...
2
votes
0answers
63 views

tabularnewline incompatible with rowcolors

I have a huge table I am editing with LyX I tried to use rowcolors to have alternate row colors but it does not work This looks like to depend on the use of \tabularnewline instead of \\ The ...
3
votes
2answers
92 views

Duplicating MS-built Table Formatting in LaTeX

I have a table made in MS Office and I'd like to recreate it using LaTeX. I've attempted a number of solutions using Table+Tabular (using this as a template); this has worked until I try to ...
4
votes
2answers
191 views

Tikz: How to indicate/display overlapping lines

I have the following simple picture: Is there a way to better illustrate the small overlapping interall of LS and LD? I know I could define this area by another line for example and use different ...
2
votes
1answer
142 views

How to fill gantt chart bar with arbitrary color

In the code below I would just like to manually decide to fill the second bar in the chart with a color or hash it! I want to be able to decide which bars to make these changes on a case by case ...
2
votes
1answer
46 views

PGFPlots cycle list skips first definition after every cycle

I got some problems with self-created cycle lists in PGFPlots. As you can see, the plots skip the first definition of my cycle list after every run through the cycle list. Are there any coding ...
4
votes
2answers
134 views

xcolor - What is the equivalent of default text color?

I would like the xcolor color that is equivalent to the default text color in LaTeX. Is this simply black? Or is it some (slightly lighter) shade of grey? Perhaps surprising, I'm having trouble ...
2
votes
2answers
64 views

Is there a possibility to colorize the pdf bookmarks in the sidebar of acrobat reader

I want to colorize my bookmarks in this way. Is there any chance to do this with the hyperref package? Thanks.
1
vote
1answer
159 views

Change cite color to blue in the Legrand Orange Book template

In the code below, that was derived from the Legrand Orange Book template, I wanted to be able to change the cite color. However, when I activated the colorlinks=true, the table of contents (TOC) got ...
2
votes
1answer
96 views

Change the color of the main title without redefining \maketitle

I'm looking for a way to change the color of the main title of a document without redefining the \maketitle. A google search only yields how to systematically change the section titles that does not ...
4
votes
2answers
272 views

plus-minus (\pm) in different colors

I'm trying to get the plus-minus sign (\pm) in different colors. I started with \newcommand{\rgpm}{~\overset{\mathbf{\displaystyle\color{green}+}} and probably could further adjust it with some ...
5
votes
1answer
106 views

Two problems with decimal alignment in tables: null entries and changing color

Output table from the MWE: Problems: 1) When the color of the numeric values are changed we also want the color of the decimal point to change. 2) We want the null entry (last entry in column 1) ...
1
vote
1answer
30 views

Decimal number coloring give unwanted space in lstlisting

I'm trying to set coloring for decimal numbers in lstlisting. Here is my code: \documentclass[border=2pt]{standalone} \usepackage{listings} \usepackage{color} \definecolor{codeblue}{rgb}{0,0,1} ...
2
votes
1answer
78 views

How to not override string style by literate in lstlisting?

I'm trying to do color code listing for java. I use this definition: \usepackage{listings} \usepackage{color} \definecolor{codeviolet}{rgb}{0.65,0.11,0.36} \definecolor{codeblue}{rgb}{0.1,0.21,0.57} ...
8
votes
3answers
325 views

Grey highlighted words

How can I make small, grey-highlighted code - words just like this one in this sentance. Is it possible to put some math in these boxes later? I tried to use soul package but I didnt manage to change ...
2
votes
1answer
49 views

Change pgfplots markers colors and shape

In my MWE below, I am not getting the markers of the plots to colors that I wanted. Also, I would like to change the red squares in the last plot to cyan circles. Thanks. Here is my code: ...
1
vote
2answers
86 views

PDF background color other than white: is it acceptable for formal documents?

In LaTeX, one can change the background color of the whole document easily through the pagecolor package. I was experimenting with it and I've found that setting the background color to be slightly ...
6
votes
1answer
142 views

How to use ConTEXt to typeset Arabic, and color diactrical marks?

I need to typeset Arabic and color different group of letters/diactrical marks in different color. For this purpose, I explored capabilities of XeLaTeX/ArabXeTeX environment, but could not obtain good ...
3
votes
1answer
57 views

How to do simple arithmetic computations with variables to manipulate other input parameters in latex?

I am trying to make a template for my CV. I need to make different color shades for headings, and subheadings many more. I figured out how to make variables in latex such as r,g,b shown in cod below ...
2
votes
2answers
65 views

How to combine \color and \MakeUppercase

I've been tinkering with a .cls file for a bit that defines what my "sections" look like. It looks like this at the moment: % Defines the rSection environment for the large sections ...
0
votes
0answers
32 views

Fonts and color CMYK facing problem on TeXShop

Question 1 I am using LaTeX on Mac OS X with Classic. I have many four color (CMYK) projects in LaTeX. I use colors in CMYK mode. I am attaching three pages our projects. Now, I am using TeXShop on ...
4
votes
2answers
259 views

How can I print multiple pdf pages on top of each other?

I have two pdf pages with text and/or images. I would like to print them on top of each other, on one single page. Text and/or images have to be plotted over each other, transparent (white) regions ...
3
votes
2answers
124 views

Tikz circle edge color not showing

I am trying to plot some circles with a black edge and white face color. The circles are placed on the edge of an ellipse. I cannot figure out why this code is not working: \documentclass{minimal} ...
3
votes
1answer
130 views

Font and background color in LaTeX

I am currently trying to write up some math notes in LaTex, and I would like the background to be that 'sand'-colored background that is often used by some publishers of (especially classic) ...
3
votes
2answers
196 views

PGFPlots: point meta colormap index as fill value

I have the following simple PGFPlots sample \documentclass{standalone} \usepackage{pgfplots} \pgfplotsset{compat=newest} \begin{document} \begin{tikzpicture} \begin{axis}[ xmin=0, xmax=1, ymin=0, ...
9
votes
1answer
160 views

definecolorset of xcolor — problem with color values starting with “f”?

I am trying to write a script (that will be easy) to create a xkcd color set for the package xcolor. Look at this MWE: \documentclass{article} \usepackage{xcolor} % \definecolorset{HTML}{xkcd}{}{% ...
2
votes
0answers
27 views

colored column in tabularx [duplicate]

In a tabularx, I try to set the text color for a complete column as follows: \documentclass{article} \usepackage[papersize={60mm,60mm},margin=5mm]{geometry} ...
4
votes
1answer
69 views

Use frametitle.fg as color scheme does not work on second slide in beamer-class

I get a very strange phenomenon I don't understand here is a MWE \documentclass{beamer} \usetheme{Boadilla} \title{Title} \begin{document} \begin{frame}[plain] \titlepage \end{frame} ...