Tagged Questions

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

learn more… | top users | synonyms (1)

0
votes
1answer
207 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
43 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
392 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
261 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
50 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
669 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
154 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
162 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
81 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
146 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
304 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
62 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
86 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
44 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
397 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
104 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
87 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
107 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
131 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
174 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
256 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
81 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
1k 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 ...
1
vote
1answer
62 views

Error in compiling using color package [closed]

I am preparing my dissertation. I am using pdfLaTeX. Document compiles fine, until I try to use \usepackage[dvipsnames,usenames]{color} . Everything shuts down. I can access the ...
3
votes
1answer
245 views

TikZ: transparency causes problems with the color black (opacity, transparency, color model, Adobe Reader)

I want to have a fill color with transparency but I also want the text to be perfectly opaque. But somehow it does not work. \documentclass{article} \usepackage{tikz} \usetikzlibrary{shapes,} ...
2
votes
2answers
81 views

XeTeX \color runaway argument

\documentclass[11pt,a4paper] {article} %\usepackage{fontspec} \usepackage{listings} \usepackage{xcolor} %\setmainfont[BoldFont=黑体]{宋体} %\XeTeXlinebreaklocale "zh" %\XeTeXlinebreakskip = 0pt plus 1pt ...
2
votes
1answer
95 views

Scaling color in PStricks?

Is there a way to scale/remap/transform the colors in a pstricks picture? More detailed: I have some pstricks code which uses grayscale colors. I want to remap the colors from [0,1] to [a,b], where 0 ...
7
votes
2answers
179 views

Highlighting text through stacked colored underlines

I have sentences in which characters have been "marked" by some people and not by others. I'd like to present the markings simultaneously. Stacked colored underlining (in which a line represents each ...
6
votes
1answer
133 views

Set the font color of a section title formatted with leftmargin

I am trying to set the font color of a section title that is formatted with leftmargin. When I don't use the leftmargin format, the font color changes correctly, but once I add the leftmargin format ...
7
votes
1answer
161 views

Problem with spacing after \[…\] environment when using the \textcolor{} command

I'm getting odd spacing/indentation behavior when the \textcolor command is combined with the \[ ... \] environment. I did find a fix by putting % in a couple places, as outlined below, but I'd like ...
3
votes
1answer
139 views

Displaying the horizontal and vertical lines of a table after coloring rows

How can I re-show each line in the following table after coloring the row? \documentclass[english,a4paper,12pt]{report} \usepackage[T1]{fontenc} \usepackage{graphicx} \usepackage[latin9]{inputenc} ...
6
votes
1answer
177 views

Automatically convert colored PGFPlots in the appendix to grayscale

My document contains a lot of colored PGFPlots, which are generated from external data files. In order to save costs when printing, I would like to automatically convert the color of every PGFPlot in ...
12
votes
2answers
167 views

Is there a way to typeout to the console using ANSI colors?

I'm trying to colorize diagnostic outputs to the console in order to make my stuff more visible in the endless stream of messages that LaTeX spits out. Example However, all of my efforts like, for ...
5
votes
1answer
273 views

How to achieve this Beamer style?

I think the attached slide used the following beamer settings: \usetheme[]{Frankfurt} % or berlin \usecolortheme{beaver} % red color However, I have several questions: How to customize the ...
0
votes
0answers
143 views

Change the color of the “remark” environment in Beamer

I would like to change the color (bg and fg) of the remark environment in a Beamer document. I have setup my document using: \usetheme{AnnArbor} \usecolortheme{crane} I read in some other question ...
2
votes
1answer
111 views

Beamer with XeLaTeX on TexLive2013: enumerate numbers in black

Using TeX Live 2013, with this combination: Beamer (version 3.26) Copenhagen theme. Compiled with XeLaTeX. Using enumerate environment. I get the numbers (usally as white font inside blue circle) ...
3
votes
1answer
512 views

Color highlighting text and environments in LyX

I am using LyX 2.0.5 with document class article and 'Theorems (AMS)' in the modules. I am wondering if it is possible to make it so that the titles of different environments will be highlighted in ...
2
votes
0answers
59 views

change math color except in titles in beamer

I have used \setbeamercolor{math text}{fg=blue} to turn all my text in mathmode in blue. However I have also math in titles (and subtitles) and I would prefer the formulas to have the same color as ...
5
votes
1answer
108 views

Overlapping colour filling with PSTricks

Consider the following diagram: \documentclass{article} \usepackage[T1]{fontenc} \usepackage[margin = 2cm]{geometry} \usepackage{pstricks} \usepackage{rotating} \usepackage{microtype} ...
21
votes
3answers
868 views

Umlaut dots in a different color

Is there an easy way to do the dots of an o-umlaut in a different color than the o? I've already tried using the textcolor function in the color package, but I suspect that's the wrong way to go. I ...
0
votes
1answer
107 views

color of index in thesis is red

I really don't know why my index is red. I don't use color in any part of the code. Someone can help me?I have to finish it by tomorrow!!Thank you very much The code is: ...
8
votes
1answer
238 views

Why do colours defined using CMYK give inconsistent results in TikZ mindmaps?

Background I was trying to draw a mindmap using the tikz mindmap library for possible use in a beamer presentation. The Problem Depending on my choice of colours, the colour of nodes does not ...
10
votes
2answers
317 views

make enumerated button in TikZ

Is it possible to make an enumerated button, similar to the ones shown in the figure below? I will be using them as pictures in an external document (not TeX).
0
votes
0answers
38 views

How to get beamercolor for block? [duplicate]

Suppose I have a block like this: \begin{block}{My awesome block} It really is awesome! It has a header and a body, both areas filled with fancy colors! \end{block} I want to use the background ...
7
votes
1answer
274 views

Color and legend for 3d surface

I'm trying to plot a 3d surface using pgfplots and this is what I have done so far: \usepgfplotslibrary{patchplots} \begin{tikzpicture} \begin{axis}[% width=12cm,height=12cm, xlabel={$J_1$}, ...
3
votes
1answer
104 views

How to make background in tabular cell (vertical lines)?

is there any way to make the following two horizontal lines on the background of a cell? Cell should contain either a blue or green horizontal line in the middle. Or the third option is both. Here ...
3
votes
2answers
146 views

How to explicitly set the color to transparent/nothing in the options of mdframed?

Is it possible to explicitly set the backgroundcolor option in mdframed package, so that the background stays transparent (or, let's say "empty")? It could be \begin{mdframed}[backgrouncolor = ***] ...