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

learn more… | top users | synonyms (1)

2
votes
1answer
159 views

printing colored borders of hyperref package (latex)

I Want to print the borders of hyperref package in LaTeX. Using the package \usepackage{hyperref}, in the pdf file, some borders (red, green, etc) appears. When the document is printed the borders ...
4
votes
1answer
731 views

XeTeX giving option clash error [duplicate]

I'm trying to clear a maddening error from this .tex file: % % Syllabus template for use with http://kjhealy.github.com/latex-custom-kjh % \documentclass[11pt,article,oneside]{memoir} %% ...
4
votes
1answer
682 views

Showing grid on top of plot fill with PGFplots?

I have a plot with a pass/fail metric, and wish to show this clearly by having to seperate colors in the plot. To make the data stand out, I have a background grid to the axis tick marks. However, ...
10
votes
3answers
309 views

Defining a macro for “real” colored delimiters

I recently looked up J. van Hoorn's question on How to color delimiters in Math Mode, and so I decided to test my LaTeX knowledge by trying to define a new appropriate command: ...
3
votes
0answers
584 views

Changing the colour of Beamer \titlepage using a .sty file

I've been looking for an answer everywhere to this, but so far, nothing seems to have worked. What I would like to do is change the background colour and font colour of the \titlepage command, but to ...
1
vote
1answer
1k views

Exact green color of example in Beamer

I'd would like to use the same green colour as in the example mode. Does it coincide with \definecolor{darkgreen}{rgb}{0,0.5,0}? Is it possible to use it without defining a new color? (Maybe using ...
1
vote
0answers
31 views

Citation colour vs parentheses colour [duplicate]

I have used Audrey's code to cite something of the form: \citet[p.~42]{smth}. This code is excelent if someone wants to have the parentheses affected as well. Now, I ask if it is possible to have the ...
13
votes
2answers
2k views

Tables with colored cells and dashed lines

I would like to draw a table with some colored cells and dashed horizontal lines. Here is my first attempt using the colortbl package and the arydshln package: \documentclass[12pt]{article} ...
5
votes
0answers
63 views

Different citation colour for page number [duplicate]

I try to cite a specific page in LaTeX using the following command: \cite[p.~42]{Friedberg1995}. I use colorlinks and I have set a blue colour for my citations. After the compilation takes place I ...
4
votes
2answers
676 views

Various \textcolor within lstlisting?

How can you set various words in your lstlisting to various text colors? For instance, I want the word "fail" to appear in red and the word "pass" in green. I have the feeling there should be some ...
17
votes
2answers
837 views

XeLaTeX and TikZ - how do I ensure my PDFs are using the CMYK color model?

The place I want to print my document at needs the PDF to be provided in CMYK. The document is mostly text, except for a few graphs and plots which are done in TikZ or pgfplots. As suggested in this ...
3
votes
1answer
308 views

How to create a table where one cell spans all the columns and the text wraps properly?

I need to create a table like this: table with two columns and width equal to width of the page; border around whole table; first row spanning two columns; with background color, bold font and ...
0
votes
1answer
139 views

Whitespace as wide as a character [duplicate]

I would like to produce whitespace as wide as a particular character. One trick I have figured out is to use {\color{white} x} (if for example this would produce whitespace as wide as the character x) ...
4
votes
1answer
576 views

Problem with compilation (color)

I have this code in LaTeX (the .cls file is HERE): \documentclass[thesis=B,czech]{FITthesis}[2012/06/26] \usepackage[utf8]{inputenc} \usepackage{graphicx} \usepackage{dirtree} ...
3
votes
1answer
458 views

Putting shade in part of a figure in `picture` environment

I was trying to draw the some diagram by using the picture environment. I want to put shade certain part of the figure, namely inside of the rectangle (with curved corners) created in the left hand ...
9
votes
2answers
4k views

Package xcolor Error: Undefined colors “Maroon”/“Royal Blue” when master has PDF included classicthesis 3.1

I am using classicthesis 3.1 in Lyx 2.0.6. When I include PDFs in the master document, I receive the following error: ! Package xcolor Error: Undefined color `Maroon'. See the xcolor package ...
4
votes
0answers
203 views

Latex - picture color and minted color

I'm using minted package. If logo (top-picture) contains green, code color change. \definecolor{codecolor}{RGB}{108,247,10} ...
10
votes
1answer
489 views

Store black and white information in a generated pdf

Last time when I printed my thesis at a copy shop the nice girl asked me if my pdf has some kind of color information stored inside. She explained to me that their printers can detect black and white ...
3
votes
1answer
789 views

How to disable color gradient between block title and block body in Beamer?

I'm using the "Warsaw theme" in my beamer slides, so how could I Disable color gradient between block title and block body; Disable the block's shade; I don't want to use the "Berkeley theme" which ...
5
votes
1answer
273 views

converting a hyperlinked pdf \includepdf to black and white

Most recent scientific articles come with hyperlinks within the document (generally linking citations to the references; e.g. this file). These are often coloured. When including them into a TeX ...
6
votes
0answers
142 views

Does it make sense to convert lightgray into cmyk for more legible printing results? Does this necessitate choosing a (different and) darker colour? [closed]

In my document I'm using the colour lightgray which looks nice on screen, but is barely decipherable when printed (with a BW-laser-printer). Using the xcolor pkg: Would it make sense to try and ...
3
votes
1answer
2k views

Undefined control sequence with \green and \red

The following is table.tex: \documentclass{article} \usepackage{color} \begin{document} \pagestyle{empty} \begin{tabular}{ l | r } Problem & Expansions \\ \hline {\green Unit} Grid ...
3
votes
1answer
226 views

How to color the font of a single row in a table, while using a paragraph column?

I tried to color the text of the headers of my tables. Sadly it doesn't work properly as soon as you use it with paragraph columns. Below is my MWE presented. The header in the first table is as I ...
4
votes
2answers
291 views

How to color my (custom) lines/rules in a table contained by mdframed?

As a follow up to my recent question: Now I'd like to put some color on to that line/rule. In the MWE below, \arrayrulecolor{blue}\mycline{1-1} throws an error (undefined control sequence with respect ...
4
votes
2answers
297 views

How do I solve “Undefined color `\dtlpie@segcolix '”?

I have the following LaTeX file: \documentclass{article} \usepackage[pdftex,active,tightpage]{preview} \setlength\PreviewBorder{2mm} \usepackage{datapie} %\usepackage{xcolor} ...
4
votes
2answers
2k views

Coloured shadowed boxes around equations

When I want to highlight some important result, I traditionnally put my equations in boxes: \begin{equation} boxed{\Delta = b^2-4ac} \end{equation} I would like to have a more fancy thing: to be ...
4
votes
1answer
589 views

Change Color of extra ticks grid

I got a nice an d tidy plot with the help of pgfplot using groupeplot. Now I want to insert some extra ticks with different color than the major grid...everything works pretty well except the color ...
7
votes
2answers
181 views

Is there a way to show the version of a document as seen by a colour blind reader?

I’m creating a number of coloured grids with TikZ, which look something like this: This exercise is designed to demonstrate reflections and rotational symmetry. It’s important that the individual ...
1
vote
1answer
388 views

Toggle border links in table of contents

I'm using the amsart class and would like to know how to in the "Contents" output, to only have sections' page numbers with clickable colored borders and the sections' names completely neutral (i.e. ...
3
votes
2answers
190 views

Making a table-like structured information block in LaTeX

I want to layout some information in a structured, table-like, or form-like manner. Basically, each 'block' has multiple fields like Title, Description, and other things, and I want to display them ...
2
votes
1answer
558 views

Changing font color in a table adding unwanted extra spacing

I haven't been able to find a solution, so I'm hoping for any suggestions. When I try to change the font color in my table, I get extra spacing above and below the lines with the color-changed font. ...
1
vote
1answer
161 views

punctuation color in references

I have used the following command to change the color of references in the text to blue: \hypersetup{ colorlinks, pdfborder=0 0 0, linkcolor=blue, citecolor=blue} however; the parentheses, ...
3
votes
1answer
886 views

Changing color and fonts of itemize

How can I change the font and color of a particular command in a LaTeX document? For example I want all the text that follows the \item tag to be gray and the font should be different from the rest ...
3
votes
1answer
5k views

Table cell color overlaps cell border

As the graphic and MWE below show, some of colored my table cells are obscured the cell colors. I'd appreciate help fixing this. \documentclass[english]{article} \usepackage[T1]{fontenc} ...
2
votes
1answer
263 views

Colored background for \sidebar in Memoir

I am looking to set a background color for my sidebars in the memoir class. Is there a way to do this? I am looking to add a light grey background to my side notes so that they stand out. Other ...
18
votes
1answer
245 views

Elements that looks different when printed with colours or in BW

Is there the possibility with LaTeX of having some element that change if it is printed with colours or in black and white? I was thinking about the rectangles around links with hyperref that are ...
3
votes
1answer
523 views

Changing font colour in fncychap

I am using the Lenny chapter style from fncychap and I would like to change the colour of the chapter number. I found "How do you change the font when using fncychap?" and followed the recommendations ...
9
votes
1answer
6k views

Change ModernCV section style to make them look like Friggeri CV

I am using for my Resume the ModernCV template, but I would like to bring in some of the amazing FriggeriCV style of the title of the sections: I love the text half coloured and half black with each ...
6
votes
1answer
321 views

Color Itemize inside tabular or minipage

What I'm trying to do is actually introducing a column in a beamer mode the as the second one next to it is in grey (transparent effect). But it will color only what is before the itemize. ...
5
votes
1answer
235 views

Defining color in minipage makes it too big for the current page

If I uncomment the first line of the minipage, the minipage is then too big to fit on the page. What's happening here? \documentclass{article} \usepackage{xcolor} \usepackage{lipsum} ...
4
votes
3answers
304 views

What's a better way to define individual link colours for a url in a macro?

I've got a document where I'd like two colours of links - cyan for links in headers that since it's brighter, and navy blue for links in the main body which is more subtle/less distracting. I already ...
7
votes
2answers
300 views

Typesetting a table to look like a spreadsheet

Continuing in my efforts to create particular computing environments in LaTeX, I'm now try to coerce a table to look like a spreadsheet. It needs All columns other than the first having equal width ...
2
votes
2answers
591 views

Table row height, text vertical center and color

So I have the table in the following working example. I used the solution at Column padding in tables but still the text inside each cell is not centered vertically … Besides, I wanted to give it a ...
28
votes
3answers
780 views

Documenting on code revisions

I have made modifications to a few files of a C++ program. I would like to document on these changes in a nice LaTeX report, by showing exactly what I modified and explaining why I did so. Since ...
2
votes
1answer
162 views

Shorter way to color indices of a matrix?

I've made a bordermatrix with brackets [] instead of (), now there are these indices on the top and left side. In my case on the top they are u_1,v_1,u_2,v_2 and so on. On the left side they are ...
23
votes
1answer
525 views

How can I highlight ligatures?

I'd like to highlight all the ligatures used in a document similar to the image below as an attempt to show off some of TeX's tender loving care for the font being used. Is there a way to do this ...
2
votes
0answers
307 views

XeTeX Arabic vowels

I would like to demonstrate declension in the Arabic language by coloring a single vowel or letter. I found some solutions to color a single letter, however the connections would break. So again I'm ...
13
votes
1answer
2k views

pdftooltip from pdfcomment package: Using LaTeX code in tooltip

I work as a Physics teacher and I am writing a "Problem-Solution-Book" with hyperlinks from problems to solutions and backreferencing -- all of it works pretty good. Now I wanted to introduce ...
4
votes
1answer
936 views

More sophisticated syntax highlighting of Prolog code

I'm wondering, does listings allow you to define your own syntax highlighting, and if so, how sophisticated is its system? Here's a minimal example: \documentclass{article} \usepackage{listings} ...
3
votes
2answers
157 views

Using \color in a paragraph column inside a tabular environment results in a line break [duplicate]

Some of my documents are compiled into multiple outputs. Some Versions contain certain parts, while other versions contain only a placeholder. For this purpose I have a macro \markup that colors its ...