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

learn more… | top users | synonyms (1)

3
votes
1answer
133 views

titleformat has no effect!

I have tried to specify the color for my section as shown here, but it has no effect. What am I doing wrong? MWE: \documentclass[10pt,letterpaper]{article} \usepackage{lipsum} \usepackage{multirow} ...
0
votes
2answers
239 views

Color and efficient vector graphics

I want to use complex monocolor vector graphics but I would like to be able to specify the color inside my latex source. Solutions : Use a pdf, but I can't specify the color afterwards. Perhaps a ...
7
votes
1answer
10k views

Changing color and header of beamer with CambridgeUS

How to change the red color for - the titles - the topics How to adjust the position of the header1 and 2? \documentclass{beamer} \usetheme{CambridgeUS} % Set Color ============================== ...
3
votes
2answers
64 views

Breqn color and background options ignored?

I have this simple latex code: \documentclass{article} \usepackage{color} \usepackage{breqn} \begin{document} \begin{dmath}[background={red}] 1+1=2 \end{dmath} \end{document} However using ...
5
votes
2answers
820 views

Getting a particular kind of page border using background package

I am doing my project report using latex, and the format requires a particular kind of page border around each page. (Its a black thick box enclosing a thin box). I saw this question, Multiple border ...
22
votes
2answers
729 views

How to divide document for black and color printing?

Most of my document is black text, but there is a color figure here and there. I would like to print the text on a black and white printer, and the figures on a color printer. I know i could just ...
4
votes
2answers
279 views

How can I avoid the gap between \cellcolor-colored cells created by \tabucline?

I'm trying to partially separate rows from one another using \tabucline. The line encompasses column 3-6. Since the line's width is neither part of the upper, nor the lower row, there is going to be ...
1
vote
0answers
35 views

How to set foreground (text) color in xcolor table? [duplicate]

How do I pick the foreground (text) color in xcolor table for the whole row? such that the letters appear white with blue background in this table (instead of black which is bad for constrast): ...
6
votes
1answer
1k views

Change TikZ nodes color to grayscale

Say you have some code like this: \documentclass{standalone} \usepackage{tikz} % \PassOptionsToPackage{monochrome}{xcolor} \begin{document} \begin{tikzpicture} % \selectcolormodel{gray} ...
2
votes
1answer
314 views

Beamer: how to change the mini frames coloring

I want to do the following changes to the mini frames coloring: All previous frames almost the same solid color as the background so that the squares are barely visible. The current frame and all ...
4
votes
1answer
190 views

Including spotcolors in a DVI file

Consider, the PDF is generated using dvi-ps-pdf. Is there an easy way to add spotcolor in a dvi file, so that the resulting PDF contains the spotcolor. I know that using pdflatex this is possible. ...
5
votes
1answer
838 views

Getting Yellow Background color on link

can anybody tell me how to apply a yellow background color on pdf links (especially on hovering the mouse over the link). For example, I would like to have the same yellow background effect that ...
2
votes
3answers
1k views

How to change the color of symbols (mobile, email, homepage, etc) in moderncv?

I'm able to style the contents (color, font size), but I can't change the color of the symbol. Here's the code I'm working with: \documentclass[10pt,a4paper]{moderncv} ...
7
votes
1answer
452 views

Beamer: how to change the mini frames from circles to rectangles

I would like to change the mini frames from circles to rectangles and also make the already viewed symbols the same color as the background and future symbols the color of foreground. ...
2
votes
1answer
4k views

Beamer: changing footline background color

I would like to make the footline color black and the text white. I found this: Beamer: Background Color for Footline but didn't understand how it applied to my example. \documentclass{beamer} ...
3
votes
1answer
278 views

Center displayed, boxed equation within environment

I would like to center, with respect to the page margins, a displayed equation that is boxed and is within either an enumerate or itemize environment. Below is an example of what I have. Notice that ...
4
votes
1answer
4k views

Set the width of a fcolorbox

Hi a very basic question I'm sure, but is there a way to tell \fcolorbox in xcolor to draw the box of a certain width. For example with \fbox I would do \documentclass{article} \usepackage{xcolor} ...
1
vote
1answer
848 views

opacity and shading of an ellipse

I am making a picture of the tidal force effects on the Earth. My current picture is decent but I would like where the bulging occurs on the edges to be little bit darker in blue, but I don't want ...
5
votes
1answer
818 views

LyX table border colour

I have a multi-row table in LyX, with black horizontal borders at the top and bottom of the table. I would like to insert other horizontal borders inside the table that are grey rather than black. ...
4
votes
1answer
121 views

Matching Brackets in TeX output

Is there any ways or features to make pdf-files using one of TeX systems so that when I move the cursor to one of brackets (either open or closed brackets) in pdf, then the bracket and the other ...
4
votes
1answer
86 views

colors in tablecells in LaTeX

I'm making a tabular and I want some of the cells to be colored. So I searched how to make colored cells. I now have the following: \documentclass{article} \usepackage{xcolor,colortbl} ...
5
votes
3answers
361 views

How can I make footnote text color match body text color?

How can I modify the following code to also make the footnote text blue (globally, for all footnotes), like the body text? \documentclass{article} \usepackage{color} \begin{document} \color{blue} ...
3
votes
2answers
710 views

Create a new environment that uses a verbatim environment

Consider the following: \documentclass{article} \usepackage{environ} \usepackage{verbatim} \usepackage{color} \NewEnviron{vred}{% \color{red} \begin{verbatim} \BODY \end{verbatim} } ...
10
votes
3answers
3k views

How to change the color of bullets in a list

How can I change the color of bullets in a book? \documentclass{book} \usepackage{pifont} \usepackage{xcolor} \definecolor{myblue}{RGB}{0,29,119} \begin{document} \begin{dinglist}{110} ...
8
votes
1answer
4k views

Creating additional color for moderncv

I'm trying to create an additional color for moderncv, but am seeing unexpected behaviour. I've created a file called moderncvcolorburgundy.sty, by copying the file for the purple color. I've changed ...
10
votes
2answers
213 views

Two colors in one hyperlink

As usual writing a few documents. As one can see having too much color and gloss in a document is never good. Therefore having boxes, and a myriad of colors in the hyperlinks is a bad idea. I really ...
7
votes
1answer
1k views

How to use color in `caption` package?

I am using caption package to customize captions in my thesis. My current code is: \usepackage[width=0.6\textwidth ,font={small, sf,it},labelfont=bf, labelsep=endash, ...
4
votes
1answer
170 views

Good-looking luminosity function plot

I'm trying to make a good-looking photopic luminosity function plot. So I want to make colored plot, but its colormap should depend on X values. Is it possible with pgfplots? I'll also appreciate any ...
5
votes
2answers
446 views

Error using Minted for syntax highlighting in custom document class

I am writing Master thesis in LaTeX and want to use minted package for source code syntax highlighting. I have installed it successfully and minimal example from minted documentation works just fine. ...
5
votes
1answer
2k views

Alternate Row colors in longtable

I am using the method proposed by Nikos Alexandris in "How to apply alternate row coloring in a longtable in LyX?" works to a limited extent but the shaded rows does not fill the whole width of page. ...
4
votes
1answer
1k views

lstlisting in a box?

My problem is that I am trying to write a document with coloured sections for examples. Examples can contain code listings. Somehow I can't seem to combine a background colouring with a listing, or ...
3
votes
0answers
301 views

Regular expressions in listings [closed]

I'm looking for a possibility to use regular expression in listings. I'd like to highlight each N thats followed by 4 decimal numbers for example N1234. How can I achieve that? Here is an example: ...
6
votes
1answer
3k views

Cell coloring (highlighting) with in-out effects in a table in beamer

I need cell coloring (or highlight effect) in a cell of a table in beamer after a click (I mean, I am planning to talk about something in that frame and I will emphasize just a number in a cell at the ...
2
votes
0answers
223 views

RGB EPS figures appear as CMYK in LaTeX [closed]

When I make EPS figures in Matlab and/or Illustrator, they look RGB, however, in the DVI file and in the subsequent PDF or PS file it appears CMYK. When I open up the figures outside of LaTeX, they ...
15
votes
5answers
10k views

How to draw a square of 1cm in LaTeX filled with color?

How to draw a square of 1cm in LaTeX filled with colour? I found mdframed and framebox does this, but there need to write text inside it. I just need to draw a box.
6
votes
2answers
168 views

Highlighting code like one would in a SE post

When posting on SE, users can "highlight" code by using the ` symbol. Is there any way to get that in LaTeX? My intention is to highlight segments of code or particular functions. To be clear, I'm ...
3
votes
2answers
146 views

Background color for existing floats (e.g. w/o defining a new environment)?

I'm trying to make all my figures (including caption) backgrounded with a decent color. I already found these questions with some nice answers: How to set a background color of figure environment? ...
6
votes
1answer
2k views

Adding words to lstlisting for Python langaue

I wish to add a few keywords to some python code inserted into a latex document. I want to make 'True' & 'False' appear yellow and also some module calls such as 'ttk' appear red. I have tried ...
1
vote
1answer
276 views

lstlisting: how to align highlighted code

I want to define a couple of new commands in order to highlight parts of my code (this is actually for a trace dump, not for a programming language). My problem is that I can't seem to make the ...
4
votes
1answer
221 views

Redefining formatting commands to add colors

I'm writing a document, and I'd like for all bold text to be red. I was wondering how I could renewcommand the textbf command so that it would be wrapped in \textcolor{red}? Thanks
9
votes
1answer
520 views

Filling the arrow tip and not the path using two different colors

I have a small problem with some arrows but I can't seem to find a solution. Please note that this question is different from Setting fill color for TikZ arrow tips only (and not the path itself), ...
0
votes
1answer
574 views

Rowcolors and tabularx: Colors not reset in each new table [duplicate]

I'm having an issue with rowcolors from the xcolor package. Whenever I use rowcolors before a table, it seems that the row counter does not reset with each tabularx environment. I read that ...
4
votes
2answers
8k views

Set background color of a box with predefined width

I would like to have something like a minipage with colored background, i.e. a box where you can predefine the width and the background color. My attempt \colorbox{green}{\begin{minipage}{\slwidth} ...
0
votes
0answers
54 views

How to put a legend for \cellcolor{blue!25} in my table caption? [duplicate]

I would like to put a reference to \cellcolor{blue!25} in the table's caption. Is it possible? Also why is the table so massive even in a makebox? I don't want to use resize, looks unprofessional. ...
8
votes
1answer
1k views

cancel with different colors

I have equations with a lot of terms and I would like to be able to specify the reason of the cancelation of those terms using a color code (for example : red if the term is null, blue if it cancels ...
6
votes
1answer
271 views

Included PDF gets corrupted after Acrobat’s color conversion

I found a strange error … I’m typesetting a musical score with Sibelius 7. And to add some text and notes I use LaTeX (i.e. xelatex but the error is the same with pdflatex). To get a complete PDF of ...
17
votes
2answers
375 views

If a letter is white on white background, does a printer see it?

In preparation for press printing, I would like to produce a version of a document for printing a glossy varnish layer, where all the text is "missing", but the images and other elements are at the ...
14
votes
4answers
879 views

Color the faces of a graph

I want to modify the image (see code below) by shading in the regions formed by the dashed lines that contain a black dot. The goal is to obtain something like How can I shade these regions? ...
4
votes
1answer
274 views

Using Coloured Dots for References

I'm writing a document which contains multiple copied entries of several online dictionaries. In order to make the references simple enough, I thought of assigning each dictionary a colour and to put ...
1
vote
1answer
3k views

Undefined control sequence with Color Package in Custom LaTeX document class

I have the following class file shown here: % \NeedsTeXFormat{LaTeX2e} \ProvidesClass{puseniorthesis} [2008/05/02 v1.4.1 Princeton University Thesis class] \RequirePackage{setspace} ...