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

learn more… | top users | synonyms (1)

3
votes
2answers
185 views

Someone can help me draw this

I want to draw the symbol of my engineering and be able to change the color, anyone can help me with this?
6
votes
4answers
213 views

How to color a cell of a table using multirow and center the cell content?

I have checked for other similar questions. I followed the suggested solution in the question Color in multirows. After implementing this solution, I still have a problem. I want to develop the ...
5
votes
1answer
70 views

Color only subsection header but NOT its toc entry

I'm having hard times trying to color some lines of my document. I want to color just the title of a subsection, but I don't want that the corresponding title in TOC is colored too. What I have now ...
6
votes
1answer
149 views

How to change the color of the short version of the acronym in the list of acronym

I use the Acronym package. In the printed list of acronym (usually put at the beginning of the document) there is the short version of the acronym (in bold font) and after the full name of the acronym ...
4
votes
1answer
108 views

How to make a document with light colors printer friendly?

I have a document with some text in light colors. It's looking good on screen but I need to print it. Unfortunately, once printed on a black and white laser printer, the light blue is no longer ...
5
votes
2answers
118 views

Recreate default colors

How is it possible to specific the colors shown in the sample plot here: The code is below and copied from the site! \begin{tikzpicture} \begin{ternaryaxis}[ ternary limits relative, ...
4
votes
0answers
164 views

TikZ Chromaticity Diagram

I'm trying to make a chromaticity diagram in tikZ, does anyone know how to make one? I want this My issue is not in forming the spectral locus that I can do, right now I'm only using three points ...
5
votes
1answer
75 views

\rowcolor in \NewDocumentCommand

It seems to be impossible to wrap \rowcolor in a macro defined with \NewDocumentCommand, while everything is fine with \newcommand. Is ist possible to fixe this? \documentclass{article} ...
1
vote
0answers
111 views

prevent color from overlapsing cell border

All question I have looked to doesn't help me to solve my problem. Here's my code : \documentclass[a4paper,10pt]{article} \usepackage[utf8]{inputenc} \usepackage[frenchb]{babel} \usepackage{color} ...
7
votes
2answers
395 views

Change the background color of line numbers in a lstlisting?

Consider the following code which deals with a lstlisting. \documentclass{article} \usepackage[T1]{fontenc} \usepackage{listings} \usepackage{xcolor} ...
6
votes
1answer
164 views

Listing with two columns in a single fancy frame

I am playing a little with lstlistings and I wonder whether such a thing would be achievable for all my listings: How to achieve this kind of things? Note : I am searching for a solution I can ...
10
votes
1answer
952 views

Add another color for a section in Friggeri Resume/CV

So I'm writing my CV using the friggery CV template. It looks like this: and can be found here: http://www.latextemplates.com/template/friggeri-resume-cv As you can see the sections all start ...
7
votes
1answer
75 views

Coloured footnotes split across multiple pages

I am typesetting a book with long footnotes, and some phrases or words in footnotes are colored. I ran into a problem for which I have an MWE below. \documentclass{article} \usepackage{lipsum} ...
3
votes
1answer
72 views

White Horizontal Line Longtables

I want to create a table like this. So I used xcolor to give alternating colors as this. This is what I got. Q1 ) Do you know how to generate white vertical rule get the effect shown red ? (I ...
4
votes
1answer
170 views

algorithm2e and color

I am trying to color the background of the caption in algorithm (using algorithm2e). I have modified the original command as follow directly in the .sty file. However, as you can see on the image, ...
2
votes
1answer
67 views

Changing border colors of all tables in a document

I have a document full of tables (think 8-10 tables) - already written. Some are tabulars, others are longtables. I do not want to substantially change the existing code. What is the fastest way (in ...
2
votes
1answer
90 views

Beamer: same colour in the upper part

this code will create two kinds of colours in the upper part of each frame. How can I have only one colour, namely the deep blue? The code: \documentclass[xcolor=dvipsnames,11pt,mathserif]{beamer} ...
3
votes
1answer
266 views

background color of colorbox doesnt fill enclosing framebox entirely?

I am using a colorbox (that contains a parbox) inside a framebox. Inside the parbox there is an itemize environment I need some paddding around the text so I put fboxsep for the colorbox to 6pt ...
5
votes
2answers
159 views

Are there an easy way to coloring tables depending on the value in each cell?

I viewed in this post Conditional format for correlation table a solution to my question, but... Are there any easier way (or alternative) to do this using colors? Thank you. ------------------ ...
3
votes
1answer
191 views

Can we color and rotate a cube?

I want to present a cube to illustrate, and I want to color four of its sides. The colors will be blue, red, green and yellow; the two remaining sides should be clear or white or, perhaps, black. In ...
3
votes
1answer
312 views

How to customize beamer's color

I'm trying to replicate the following colour scheme in beamer, but am having difficulty in doing so: \documentclass[xcolor={dvipsnames}]{beamer} \usetheme{CambridgeUS} ...
9
votes
2answers
574 views

Colorful Logic Gates using Circuitikz

I have to draw following circuit the LaTeX source of which is \documentclass{beamer} \usepackage{circuitikz} \begin{document} \begin{frame} \begin{figure} \centering \begin{circuitikz} \draw (0,0) ...
0
votes
0answers
103 views

Rounded corner box with shading (one side round corner box)

Is possible to get the one side round corner with shaded box through PSTricks? I am using the command \psframe[linewidth=0.5pt,framearc=6,fillstyle=solid, fillcolor=gray!30,linecolor=gray!30] and I ...
13
votes
5answers
517 views

LaTeX Tables: Cell value color based on its sign / conditional cell color

I've a long LaTeX document with many tables. Now I want to show negative values in cell in red color. I wonder how to do globally. My MWE is below: \documentclass{article} \begin{document} ...
0
votes
1answer
248 views

Undefined color in LaTeX code

I have a problem in configuration color for the TeXstudio editor, mine is (LeLaTeX) since I used .eps figure. Always gives me an error (undefined color), this problem recently appeared when the new ...
4
votes
1answer
57 views

Axis part coloring

I try/want to color the x-axes in a special way. I want to get the bottom x-axis red, but not the whole line. Only the 3 parts under the graph have to be colored. I tried it with options separate ...
2
votes
1answer
45 views

Change how hyperlinks are displayed

By using \usepackage{varioref} \usepackage{hyperref} \usepackage{cleveref} one automatically gets hyperlinks in a red box or a green box . Is it possible to change this? For example instead of ...
7
votes
4answers
544 views

Set size of \colorbox for a single character

my question is simple (or not) I want to set the size of the \colorbox command or \fcolorbox command for a single character. The problem is the next: As seen in the image, the height and width are ...
1
vote
1answer
307 views

Biblatex square brackets color

How can I change the square brackets color of references in text using biblatex (numeric style)? I know it can be done with natbib, but not using this package anymore. ...
0
votes
0answers
54 views

psfrag labeling gets url and color?

I am using psfrag command to replace labels in eps with text inside latex. The labels are generated correctly but the images behave like hyperlinked and as result the labels are produced in the color ...
21
votes
2answers
709 views

Change the color of capital letters

Is there a way to define a command that changes the colour of any capital letter in an input string? Most of the results I find when I type "LaTeX string capital" are results about capitalizing the ...
2
votes
1answer
165 views

Make a text box with color?

I'm new user in LaTeX, and I would like to know which is the better code to do a colored squared round box with text in a page? I would like to show important notes for example. Best Regards.
3
votes
1answer
202 views

Switch firstname and familyname colors in moderncv

In the moderncv casual theme, in the header, the family name has a darker color than the first name. How can I make it the other way around, and more generally, set each name to a color of my ...
1
vote
0answers
92 views

Colored Text in PostScript Files [closed]

I am using \textcolor command in the body of my TeX file. I need to generate Postscript file. When I go through the "Option Menu\Configure TeXStudio\Build\PDF chain", every thing is fine and I can ...
6
votes
1answer
152 views

Newsletter Formatting

First post here but I'm trying to create a newsletter. However, I'm having some difficulties. I want it to look similar to this example: http://www.calvin.edu/admin/hr/newsletter/MAY%202012%20(e).pdf ...
3
votes
1answer
311 views

Convert color wavelength to rgb (xcolor)

I have the following color: \definecolor{SEviolet}{wave}{377} Which is a violet with a wavelength of 377nm. How do I convert this value to rgb? The xcolor package goes over some conversions on ...
2
votes
1answer
64 views

How can change the color of the table of contents

What is the best way to change the color of the entire table of contents. I saw a lot of tutorials but it's complicated for me (I am a beginner).
1
vote
2answers
91 views

Equivalent color for \colorbox{gray} as for \cellcolor[gray]{0.8}

In my table I have used \cellcolor[gray]{0.8} and I would like to mark some words in my text with the same color. I have tried \colorbox{gray}, but the resulting box in the text is too dark. How can I ...
1
vote
1answer
74 views

Creating a Color Key?

How can I create a colour key in LaTeX to show what the colours of this table mean?
1
vote
1answer
50 views

Using tabularx and xcolor

Is tabularx compatible with xcolor? I did the following: \documentclass{memoir} \usepackage[svgnames,hyperref,]{xcolor} % colors for hyperref \begin{document} \begin{tabularx}{1.00\linewidth}{X} ...
3
votes
3answers
457 views

Filling rectangle in TikZ with more than one color

To draw a rectangle and fill it in gray in TikZ: \draw [fill=gray,very thick] (0,0) rectangle (2,1); Now, I want to fill it in both gray and yellow. The best way would be if I can make diagonal ...
1
vote
0answers
107 views

Displaying authors in color bibtex

If I call a reference by \citet{xxx}, it appears in my document as Author [number], where the number appears in the color I defined in \hypersetup{citecolor=red} while Author and [] appear in black ...
2
votes
1answer
96 views

color multirow in a table

I am trying to color a multirow in my table, but withou success until now: \documentclass{scrartcl} \usepackage[utf8]{inputenc} \usepackage{multirow} \usepackage{hhline} \usepackage{colortbl} ...
1
vote
0answers
117 views

Using `\hhline` coloring cells of a table

Sorry for this simple question. I am trying to color some cells of my table. Unfortunately, if I color two neighbouring cells, the lines of the table disappear. I have found some questions about this ...
6
votes
2answers
137 views

Seemingly trivial: verbatim, newenvironment, and colorbox

I am, once again, trying to achieve what seems like a trivial goal. I want to use \newenvironment to define a verbatim environment with a background color. I need to define my own environment because ...
5
votes
1answer
182 views

Adding Background color to Columns [duplicate]

I am using a two column article and I want to have a background color for only the columns instead of the entire page. How can I do that ? I am using the following template. I would also like to have ...
1
vote
0answers
290 views

Color for one entry of the bibliography [closed]

How to add color to one entry of the bibliography ? I'm using BibTex. In my .bib file the following doesn't produce red : {\color{red} @article{FFT, author = "FFT" } }
5
votes
1answer
55 views

pdftooltip color assign

How can we assign a color for the pdftooltip ? For example I want the text CD to be blue. How can I get the color of my choice in RGB? \documentclass{article} \usepackage{pdfcomment}% ...
5
votes
2answers
91 views

captionsetup url color select

I've changed my caption font color to gray as seen in the screenshot below. My problem is that references is black (which I've chosen in the hypersetup), how do I change this to be gray as the rest of ...
11
votes
1answer
2k views

pgfplots line colors

Is it possible to make pgfplots use a predefined color map while plotting multiple lines, I currently have 9 samples that I want to plot, but don't want to type different colors for each one. Right ...