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

learn more… | top users | synonyms (1)

2
votes
2answers
59 views

Colored text in a dcolumn table

I want to highlight text in a table using my own color definitions. The table is a dcolumn table. It doesn't work, I get the error messages ! Missing } inserted. and ! Extra }, or forgotten $. three ...
0
votes
0answers
35 views

How to make colored labels in feynMF/feynMP

There are several ways of adding a label to the vertex, e.g. as in code below. It is documented how to make the colored polygons or lines, as done for the V2, but I couldn't find anything about making ...
1
vote
1answer
45 views

Change general color when using \textbf{}

I am trying to change the color to red everytime I use the function \textbf{}. Is there a possible way to do it globally, i.e. when I type \textbf{} it changes to the desire color automatically, ...
7
votes
1answer
125 views

Why does using color break superscript/subscript horizontal spacing?

The below snippet, within an equation array environment, gives the subsequent rendering: F\left[C^{(n-k)}_{P_{ji}}\right] But when I add color to the snippet (using the color package) as below ...
1
vote
0answers
38 views

Lyx: text style on a paragraph only works for one line [closed]

I'm trying to color some paragraphs in my document. I applied the text style on a full paragraph, however in the created PDF only the first line of every wanted paragraph is actually colored. Facts: ...
2
votes
1answer
77 views

How does one create a coloured footnote environment?

Is there any way to create coloured footnote environments? Or to edit the footnote environment so it creates coloured footnotes?
3
votes
1answer
104 views

Maintaining text colour change in a breakable tcolorbox

I try to maintain the current text colour in breakable boxes from tcolorbox, but the manual clearly states (see manual of the current version, section 15.2, page 292, version 3.34) • If your text ...
2
votes
1answer
51 views

Get unicolor background navigation bar in Beamer's singapore theme

I would like to get the background color of the navigation bar in a single color rather than the default color gradient. Is there any way to do this?
3
votes
1answer
48 views

Black border with tikz shapes

I have a tikz triangle to which I am trying to add the border. For some reason, I see the black border on two sides but not on the third. Can you please help me figure out why? Below is the MWE: ...
3
votes
2answers
120 views

Creating shapes like circle, rotated squares, and triangle without tikz

In the previous post, I got help with creating boxes with black borders and custom fills. How can I create other shapes like triangles, circles, rotated squares, etc. with custom fills. I do not ...
2
votes
1answer
58 views

Boxes with black borders

I am here referring to an old post: Inline boxes: alternative to pifont's non-filled-but-shadowed box? For all the boxes, how can I define a black border? \documentclass[11pt,a4paper]{article}% ...
3
votes
1answer
83 views

Defining Moleskine paper colour

I use Moleskine journals and I really like the colour of the paper. I find it quite good for the eyes compared to the pure white, nonetheless I have no idea how to reproduce this color in LaTeX. An ...
0
votes
0answers
56 views

How to check conflicts happening between packages [duplicate]

I am not sure whether there are many people having the same problem with me or not. The thesis includes several of the .tex files as chapters, sections, parts, etc. Now I would like to refine or add ...
2
votes
1answer
77 views

Adding background color to active sections of beamer sidebar

I have designed a theme for my beamer presentation which has sidebar in it. Now I want to add background color for active items in the sidebar. How can I do that? Following picture shows what I ...
0
votes
1answer
150 views

Problem with crosswords

While making a crosswords in LaTeX, I found out I am unable to do two things: A part of it must be blue. Two letters must be visible in the unsolved version. Can anybody tell me how to do these ...
1
vote
1answer
106 views

Fading effect in navigation bar

\hpagecolor[color1]{color2} changes the background color gradually from color1 on the left to color2 on the right. If only color2 is given, the background will be in that color, fading from left to ...
4
votes
2answers
127 views

How to save the current color in PGF/TikZ?

In TikZ/PGF, we can obtain the current line width using \pgflinewidth. Unfortunatelly there is no (as far as I know) \pgfstrokecolor, \pgffillcolor, \pgfstrokeopacity and \pgffillopacity. My main ...
2
votes
0answers
99 views

Cross-referencing on 2 kinds of end-footnotes (separated and with different coloured numbers)

In the beginning I used parnotes and endnotes to distinguish between the 2 seperated kinds of end-footnotes: Attention: to be able to compile the first "grey box" of trial code, one must download ...
5
votes
1answer
100 views

How to save the current colour

If I want to gray out large swaths of text in a report, I know that I can use the xcolor package's \color{black!50} command: How to change color for a block of texts? ...
0
votes
1answer
29 views

Is it possible to change the color character by character in Lyx?

I know that it is possible to change the color of blocks of text, however I seem to be having trouble changing it character by character. I know it is possible to do it in LaTeX, but I'm not sure if ...
2
votes
0answers
56 views

Listings: color numbers only out of keywords

With the listings package, I would like to color the integers out of strings and comments and out of keywords too. The question for coloring numbers has been asked several times. Some answer handle ...
5
votes
1answer
100 views

Beamer headline miniframes - two different colors

I am working with the Dresden style of beamer. When I use smoothbars I get the color combination that I would like to have. However, when I change to miniframes I cannot get the correct color ...
1
vote
1answer
68 views

How to color an entire algorithm environment in LaTeX?

The entire algorithm environment needs to be colored in blue. While this can be done in a report or article environment, I am unable to get it done in the IEEE Journal templates. @Masroor : Thanks ...
2
votes
1answer
92 views

Color fade a line in tikzpicture

I had already a similar question. I know now how to color fade rectangles. But I was trying now for almost an hour and I couldn't figure out how to do a fading for a line. \documentclass{article} ...
5
votes
1answer
136 views

Problem with defining own sectioning with color gradient

I want to define a special sectioning type for my CV. But I have problem which I can't figure out myself. I got the following code which produces the section heading with a color gradient how I would ...
1
vote
1answer
47 views

how to add color images in latex file

This is a follow-up of my previous question regarding loading image using latex command. @erik kindly informed me that latex only supports images in eps format. I converted my JPG file to an eps file ...
4
votes
2answers
214 views

Color gradient in tikzpicture from top to bottom corner

Is there the possiblity to make a color gradient in the rectangular box in the following example from the bottom left to the top right corner (both in linear or radial shape)? \documentclass{article} ...
3
votes
1answer
103 views

Section heading in moderncv with color gradient

I'm creating a new CV using moderncv at the moment. But I'm modifying the package to get a (at least in my opinion) better fitting result. I'm looking for a way to make the section heading with a ...
2
votes
2answers
35 views

hyperrefs in textcolor

I have used hyperref (with xcolor) and \hypersetup{ linkcolor=black, filecolor=black, urlcolor=black, citecolor=black } for quite some time now. However, in a coloured text this looks ...
1
vote
1answer
74 views

Change background colour of toolbars in TeXstudio

With How do I change color settings in TeXStudio? and Anyone willing to share his/her custom dark theme for TeXstudio? I managed to change the colour of the editor (in this case to a darker theme to ...
5
votes
1answer
122 views

Edit-proof, Consistent Use of Colour

I'm sorry if this is a vague question. I'm writing something (I'm not at liberty to share yet) that involves a lot of complicated ideas and I'm experimenting with the use of coloured text and ...
5
votes
1answer
39 views

Incompatible color package and defining a xfloat environment -> “ Too many }'s”

I am pepping up a thesis. Among others I am using a package based on Modified UDO thesis by; Jose A. Flores, November 2011. Unfortunately, I cannot find the original. One part of the package seems to ...
3
votes
2answers
111 views

Table caption inside tabular environment

I would like to write a table with latex which looks as similar as possible to this one here but I do not know how to add the caption to the header of the table as seen down below: I reach as far ...
1
vote
0answers
55 views

Bad colors in table using baposter

I'm trying to assign specific colors to table cells in a poster (baposter). Unfortunately they are reproduced different in the pdf. As they have to match the colors of my graphs I need precisely the ...
4
votes
1answer
166 views

Change firstname and familyname colors in moderncv classic & add a line below that & put the title below the line

I'm using the classic theme of moderncv (version 1.1) but would like to tweak a bit the header (but I'm too dumb to do that). How to make name/family name colors look like in the casual theme (i.e. ...
1
vote
0answers
74 views

xcolor colors showing only black [closed]

I recently did a clean install of my OS and ever since I can't get xcolor to work on my .tex documents this is a minimal .tex file I have: \documentclass{article} \usepackage{xcolor} ...
4
votes
2answers
76 views

How to change the colour of a tag in align?

I'm having the following article: \documentclass{article} \usepackage{amsmath} \begin{document} \begin{align*} d(x, y) &= d(y, x) \tag{symmetry} \\ &\leq d(y, z) + d(z,x) ...
6
votes
1answer
279 views

Color each letter in document

I am trying to define a command that changes the color of every letter in the whole document to a specified color. I already tried different approaches from this thread, but I was not able to color ...
3
votes
2answers
76 views

Problem with align inside tabular environment when using xcolor

I'm trying to build a table with multiple numbered equations inside, hence I used the align environment. On the other hand, I need to color some cells, so I included the xcolor package with the table ...
2
votes
2answers
62 views

Efficiently colouring block of table cells

I made a table with the following code and the hhline package: \documentclass{article} \usepackage{hhline} \begin{document} \begin{tabular}{l || l l l l l | l} & 1 & 2 & 3 & 4 & 5 ...
0
votes
1answer
49 views

pdfLaTeX producing blank output

Very odd situation. Can't give an MWE as I am using a custom class that I wrote (I cannot distribute it publicly because of the rights for some of the code I have included for logos, etc. - not easy ...
0
votes
1answer
91 views

tikz-Picture in classicthesis-LyX v4.1

I exported a plot from MATLAB using matlab2tikz into a file testfig.tikz. As written here, I included \usepackage{pgfplots} \pgfplotsset{compat=newest} \pgfplotsset{plot coordinates/math ...
2
votes
2answers
54 views

Change letter colour without losing letter spacing

I am designing a poster with XeLaTeX and want a word with custom letter spacing and where each letter is a different colour. The example below shows the problem: the first word is spaced as I want but ...
2
votes
1answer
44 views

Using \cellcolor in powerdot

I'm trying to highlight some cells in a table in powerdot and \cellcolor doesn't work. How can I color some cells or rows in powerdot. This is the table I used in a report and I'm trying to add to my ...
3
votes
0answers
26 views

Specifying Colors Per Page

Using the leaflet package, I am trying to create a flyer for a document. I have specified the background color NavyBlue for pages 1, 2, 4, and 5. Unfortunately, the default text color, black, is ...
0
votes
1answer
50 views

How to reset the font color to black for the entire document?

The font color of Contents section and List of Figures and List of Tables sections is blue in color in the existing preamble. How can I change this back to black?
3
votes
2answers
65 views

Different colours (>2) for the bullets in itemize environment

I would like to have a itemize list using several different item colors, at least three. Basically something like described here taking the direction Alan Munn suggested: \documentclass{article} ...
0
votes
1answer
90 views

How put color in all math mode?

I want to put all math mode in a color, for example, red. But I don't know how to do that. In this web I found how to do it, but in Beamer, I want do it too in Article, Book, etc. Thanks for your ...
1
vote
1answer
51 views

Customizing background color in List of Corrections with the FiXme package

Suppose I'm using the FiXme package: \usepackage{fixme} \fxsetup{ status=draft, author= , layout=inline, theme=color} \definecolor{fxnote}{rgb}{0,0,0} % black ...
2
votes
1answer
81 views

Getting undefined control sequence with a simple \color{red}\sout{text}} command

I'm running the following simple code which contains two commands that are pretty much the same ({\color{red}..). However, I can't figure out why the second one gives an "undefined control sequence" ...