Questions tagged [color]

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

Filter by
Sorted by
Tagged with
5 votes
2 answers
575 views

Colored sub and super-scripts are misaligned

The title basically describes the problem. Here is a minimal example: \documentclass{article} \usepackage{xcolor} \begin{document} $$X_{\color{red}{135}}^{\color{cyan}{345}}$$ \end{document} ...
David E Speyer's user avatar
3 votes
0 answers
1k views

Recommendations for color palettes [closed]

To make my thesis look more consistent I would like to use a single color palette. I want to use it to prepare all drawings, charts etc. However, I could not find any resources with reasonable ...
Ingo's user avatar
  • 19.6k
33 votes
3 answers
14k views

\includegraphics PDF, color problem

I'm using pdflatex, and use \includegraphics to include content of figures from PDF. PDF are exported from InkScape. \begin{figure} [!h] \centering \includegraphics[height=3cm]{fig/SUSAN.pdf} ...
user avatar
22 votes
1 answer
16k views

How to draw a double-color line with tikz

I would like to draw a rectangle with a double color border: the border should be a line dashed with two alternating colors (blue and red, for example). Is it possible?
zar's user avatar
  • 545
2 votes
1 answer
5k views

Background color in Verbatim

I've to use the yellow background for data values in the following code. \usepackage \begin{Verbatim}[commandchars=\\\{\}] \color{blue}DATA \color{black}Heart; \color{blue}INPUT \color{black}X Y @@; \...
MYaseen208's user avatar
  • 8,515
12 votes
1 answer
3k views

\cancel draws under thing being canceled

I'm trying to use \cancel from the cancel package to strike out some colored text but it is apparent that the diagonal line is drawn first so it doesn't do a very good job of canceling. Minimal ...
TH.'s user avatar
  • 61.6k
12 votes
2 answers
4k views

Options and suggestions for hyperref font?

Background I am interested in finding and implementing a more aesthetically pleasing style for the hyperlinks in my document. I have read through the documentation, but I find both the colored text ...
David LeBauer's user avatar
3 votes
3 answers
818 views

Incompatibility between the `footnote` and `xcolor` packages

The following code fails to build: \documentclass{book} \usepackage{footnote} \usepackage{xcolor} \begin{document} \chapter{My first chapter} \parbox{110mm}{ Here is a footnote\footnote{The ...
raphink's user avatar
  • 31.4k
1 vote
2 answers
2k views

Draw a rectangle

How to draw a highlighted box around a bulleted item.
user4852's user avatar
  • 653
7 votes
1 answer
639 views

Problems with multi-page \lstlistings and \footnotes with the liuthesis document class

Using the liuthesis document class described at http://www.control.isy.liu.se/student/exjobb/liuthesis/liuthesis.html (download link: http://www.control.isy.liu.se/student/exjobb/liuthesis/liuthesis....
user avatar
7 votes
3 answers
3k views

amsthm environment and colorbox

I'd like to customize the amsthm command a little bit but I cannot find the relevant lines in the (undocumented?) .sty. How can I put a colorbox on the name of the environment \newtheoremstyle{...
pluton's user avatar
  • 16.2k
18 votes
6 answers
8k views

Set \strut height

I'm using quite a few \colorbox and \colorfbox in a document but they weren't sitting at the same heights (because some words contained g and this seemed to push the box down. The solution I found (...
twistedpixel's user avatar
2 votes
1 answer
2k views

Two color line in gnuplot

Is there any way to plot a line graph where each series is plotted with two alternating colors? For example, say I was plotting the population of bees over time and I wanted the line to alternate ...
josh's user avatar
  • 123
27 votes
3 answers
26k views

beamer: change individual bullet color in itemize list

Is there a "nice" way to change the color of individual bullet points? For example imagine a list like this: \begin{itemize} \item A \begin{itemize} \item pro 1 \item con 1 \item pro ...
user avatar
28 votes
3 answers
22k views

Link formatting: colors, underlines in moderncv

Following the excellent advice in this site, I have started using moderncv for writing the new version of my CV. Unfortunately, after converting to PDF, my http links work (clicking on them leads to ...
Adam Matan's user avatar
7 votes
3 answers
14k views

Change border color of a \boxed equation?

I recently asked this question. The solution worked for me but I have a problem. cropped images are as small as possible. I would like to have a gif that bounds to borders of box of the equation. so I ...
sorush-r's user avatar
  • 2,697
10 votes
4 answers
3k views

How can I set the background color of the rows and columns of a matrix node in Tikz?

I have a matrix where some cells have nodes while others don't, with rows and columns of varying size depending on the biggest nodes in them. In this matrix, I would like to have the background of ...
Mário's user avatar
  • 1,161
11 votes
1 answer
8k views

Color running over text in multirow column

I have a simple table with 2 multirow cells. However when I apply background color, it covers the lower portion of the multirow cells and cuts through the middle of my text entry which is obviously ...
user avatar
5 votes
1 answer
3k views

Preparing a beamer poster: how to create a border box?

I am preparing a poster with LaTeX using beamerposter, following the examples of the beamerposter site. In these examples, the title is themed with a background color. I would like to have the title ...
YuppieNetworking's user avatar
1 vote
0 answers
601 views

Problem with losing some table borders when using colors [duplicate]

Possible Duplicate: Is there a way to make standard LaTex PDF output look good on screen as well I'm trying to make colored rows in my table but for some reason table borders become invisible on ...
user avatar
4 votes
2 answers
1k views

Figure environment not working with included file (extra } or forgotten endgroup)

I've spent hours on this issue. I hope someone can help me. I'm running into some kind of interference when I try to use the figure environment (Likewise for table, might be related to floats). I ...
Aaron's user avatar
  • 83
28 votes
3 answers
11k views

Option cmyk for xcolor package does not produce a CMYK PDF

I am trying to produce a CMYK PDF file to pass onto a printshop. When I use the [cmyk] option for the xcolor package, the colours in the resulting PDF do look muted and less vibrant as is the case ...
chandra's user avatar
  • 2,990
43 votes
5 answers
4k views

Coloring combining characters without changing color of a base character

Problem I am trying to find out is there a good way to paint combining characters without changing the color of the base character they are combined with. My actual problem case is to make some ...
ojs's user avatar
  • 905
9 votes
3 answers
15k views

Setting background colour for part of a page

I am designing a business card using the memoir class and hints given here and am trying out various background effects. Specifically, I would like to change the background for the last third of the ...
chandra's user avatar
  • 2,990
9 votes
2 answers
2k views

How do I backcolor in verbatim?

I have some code I want to typeset as verbatim (lstlisting would be ok as well) - but I want to highlight some parts of it via a different background color, i.e. something like this: \begin{verbatim} ...
maxschlepzig's user avatar
  • 11.9k
14 votes
2 answers
5k views

Conflict between color, graphicx and libertine

Compiling the following with pdflatex (TeXLive 2009/Debian on Ubuntu 10.04 "Lucid Lynx") \documentclass{article} \usepackage{ifpdf} \ifpdf \usepackage[T1]{fontenc} \usepackage{libertine} % ...
kahen's user avatar
  • 2,125
1 vote
1 answer
756 views

Using Sweave to include lattice graphics - issues with colour

I am using Sweave and the R package nlme: when including lattice graphics, (encapsulated in the print() command), the .eps files that are generated are all in black and white. The original graphic, (...
user avatar
28 votes
3 answers
15k views

Coloring columns in a table with colortbl and booktabs

I have created a rather complicated table with some columns that I want to color. For the table, I chose the booktabs and tabularx packages. For coloring the columns, I use colortbl. The problem that ...
YuppieNetworking's user avatar
6 votes
3 answers
673 views

Adding colour to table cells when decimals are aligned with arrays and {.} used in the column definition

I've got a table (below) that aligns the decimal points of my data - I wish to highlight a value (2 adjacent cells), however this leaves a white space where the decimal point is! If I increase the ...
user avatar
4 votes
2 answers
3k views

Custom itemize environment which takes color as argument

Using beamer, I would like to change the color of the itemize bullet according to a passed argument, something like \begin{myitemize} \item[red] no \item[green] yes \end{myitemize} Is ...
tipus's user avatar
  • 41
6 votes
1 answer
4k views

Apply gradient (shading) background to algorithm listing

Background A number of source files are included within floating algorithm boxes. The source files are PNG images with a transparent background. The document is edited using LyX. Problem The source ...
Dave Jarvis's user avatar
  • 11.3k
10 votes
2 answers
4k views

Fill the left 1/3 of the title page with color?

This is my first time to try and write documentation by using LaTeX. The generated PDF is quite impressive, but there is one thing I have no idea of how to do it: I would like to have the left 1/3 of ...
murphytalk's user avatar
16 votes
2 answers
21k views

Section and subsection colors using titlesec

Im trying to alter the colors on my section, subsection and subsubsection. I do so using the titlesec page: \titleformat*{\section}{\Large\bfseries\sffamily\color{red}} \titleformat*{\subsection}{\...
Toroo's user avatar
  • 641
3 votes
1 answer
3k views

Colored chapter titles with the quotchap package

I already changed the chapter numbers using \definecolor{chaptergrey}{} But there must be some way to change the chapter titles also. Someone knows how?
Elmer's user avatar
  • 2,174
4 votes
1 answer
1k views

Change font colour of bringhurst chapterstyle in memoir

I would like to change the colour of chapter titles in bringhurst chapterstyle. The following should work, but apparantly I have misunderstood something and am not able to get it to work, and would ...
learnr's user avatar
  • 535
9 votes
3 answers
16k views

Colored fancy boxes

I am trying to produce some fancy boxes. I have found the fancybox package that does the boxes I want. What I can't find now is: How do I change their background color? I would also like to make the ...
Tiago Veloso's user avatar
  • 4,509
131 votes
2 answers
17k views

PDF colour model and LaTeX

(Strictly speaking, this is a question about XeLaTeX and the xcolor package but I’m assuming that the issue is actually with the color model of PDF.) I’m having the problem that colours in my PDF don’...
Konrad Rudolph's user avatar
21 votes
3 answers
19k views

Changing style of alert environment in beamer

I would like to specify a background color in the alert environment. I can, for example, use \setbeamercolor{alerted text}{fg=blue} to change the colour of the alterted text to blue, but this \...
user avatar
5 votes
2 answers
373 views

How do I capture the existing color of a group?

My question is a follow-up of my answer to this question Color underline a formula My answer would have been much better, if I could save the color of the text and then restore it. Is it possible ...
Yiannis Lazarides's user avatar
25 votes
5 answers
20k views

Color underline a formula

I want to underline different parts of a formula with different colors. What is the best possible option? Soul seems only to provide one color per document.
user avatar
1 vote
1 answer
2k views

New command to insert a couple of red XXX as placeholder?

I seem to misunderstand the documentation, as \newcommand\ph{\textcolor{red}{XXX}} causes pdflatex to halt. I'm not sure if this is the error: ! Argument of \sf@@subfloat has an extra }. And I ...
None's user avatar
  • 463
34 votes
3 answers
16k views

Color merged and regular cells in a table individually

In a LaTeX table with merged cells, how can I color each cell with a different color? %% LyX 1.6.7 created this file. For more info, see http://www.lyx.org/. %% Do not edit unless you really know ...
denilw's user avatar
  • 3,126
1 vote
1 answer
1k views

Colors that work well with beamer color scheme albatross

Is there a color scheme made using \definecolor that defines colors that work well with the beamer color scheme albatross?
denilw's user avatar
  • 3,126
3 votes
1 answer
3k views

In beamer use colors that are already defined in a given color scheme

I'm using a table with alternating colors in beamer. Is there a way to base the colors I use on the palette that is already defined? In this way if I switch color themes the colors should still go ...
denilw's user avatar
  • 3,126
19 votes
3 answers
10k views

Use xcolor for colored tables in a beamer slide

How can I use a table with alternately colored rows like this in a beamer slide? There seems to be a conflict with beamer and xcolor. I am using LyX too, bonus marks for something that works well in ...
denilw's user avatar
  • 3,126
9 votes
2 answers
4k views

Border on page's edge

How can I make a black border close to pages edge ?
user avatar
28 votes
2 answers
3k views

How can I put a coloured outline around fraction lines?

I use the contour package to put thick white outlines around labels in graphs, so they remain readable above the grid lines without taking up too much space. Unfortunately, the package is not able to ...
Jake's user avatar
  • 230k
8 votes
3 answers
1k views

How to prevent Beamer from changing the normal text color when I change the footnote color?

When I change the footnote color in Beamer using \setbeamercolor{footnote}{fg=blue}, I end up also inadvertently changing the normal text color on all other slides. To make things even stranger, the ...
user avatar
3 votes
3 answers
3k views

Change the color of numberings in inline itemization

\begin{inparaenum}[1)] \item number one item \item number two item \item number three item \end{inparaenum} Is it possible to change the color of the number, When I use \textcolor{red}...
Aku's user avatar
  • 10.8k
89 votes
3 answers
122k views

Change the background color of a frame in Beamer

How can I change the background color of one frame in my Beamer document? I tried doing \begin{frame} \setbeamercolor{background canvas}{bg=violet} % frame contents here \end{frame} but it ...
Sophie Alpert's user avatar