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

learn more… | top users | synonyms (1)

0
votes
0answers
38 views

Framing and colorizing a LaTeX command [duplicate]

I normally use \verb|\LaTeXe| to typeset the command \LaTeXe in my document. But now I want to frame or/and colorize the command \LaTeXe. How can we do that? \documentclass{article} ...
3
votes
1answer
67 views

How to put equation side by side equations?

My MWE, \documentclass[a4paper,11pt]{article} \usepackage{empheq} \usepackage[svgnames]{xcolor} \definecolor{backcolor}{RGB}{255,255,170} \newcommand*\mybox[1]{% ...
1
vote
1answer
17 views

How to make a custom legend with a squared box followed by a text?

I'm trying to make one of that legends that we can find in some graphics such as bar plots. Just to clarify, I'm not displaying a plot. I have to present a schedule, which is defined trough a ...
4
votes
1answer
68 views

Colors in xcolor and color models

I did an experiment on the different color models available in xcolor together with the predefined colors. I observe that the colors vary alot depending on the color model. WHY? Why does the colors ...
9
votes
5answers
238 views

Can one avoid typing double quotes in this TikZ-involving macro?

I need to draw many similar complicated colored shapes; I made a macro for them, and it works, but to call it I seemingly have to place several color names in double quotes. Can I avoid this? The ...
7
votes
2answers
184 views

How can I write a conditional coloring command that distinguishes variables within sectioning commands vs those within the body text?

Question Is it possible to write a conditional statement for commands that change them based on where they appear in the document? Example Situation When command appears in the body, it should be ...
1
vote
1answer
18 views

How to change the color of \StageDir in Dramatist?

I'm writing a play and I would like to give the directions different colours. However, when trying the obvious: \usepackage{xcolor} \\\ \def\stdir{\color{red} \StageDir} \\\ \begin{drama} \\\ ...
2
votes
1answer
56 views

How can I write a conditional coloring command that distinguishes variables within titles vs within the body text with titlesec/titletoc/tocloft?

Question Is it possible to write a conditional statement for commands that change them based on where they appear in the document, yet is fully compatible with the titlesec package and the tocloft ...
4
votes
1answer
81 views

Plotting in random color within axis environment

I want to plot lots of (50, to be precise) function (Brownian motions, if you want to know) in one TikZ axis environment, with each line with a different randomly chosen color. I achieved to do it, ...
0
votes
0answers
35 views

Different style/color for some specific references using natbib

I need to differentiate some specific references from the others, for both the text and the reference list at the end of the document. Let's say I want the "regular" ones in blue and the specific ...
4
votes
2answers
53 views

New line inside color area

I'm trying to enter new line inside colour area like this $\color[rgb]{0,0,1}{P(A) = a +\newline b +\newline c +\newline d}$ But it does not work, why? And how do I solve it? Thanks!
3
votes
2answers
110 views

Coloured swatch per chapter

I know that this should be possible, but I'm not sure how to go about it. I would like to have a small rectangle appear on each page (outside edge), which runs right up to the edge of the page, and ...
1
vote
1answer
39 views

How do I change the font color in my source window?

I am using Texshop 2.47 currently. Versions beyond that are not recommended for my OS. I'd like to change the font colors in my source window. In particular I want something easier on the eyes ...
4
votes
2answers
92 views

Color-filled box in text area with size corresponding to font size

Is it possible to construct a small, color-filled box in text among ordinary text? The size of the box should correspond to the font size. I need it because I need to construct a legend for some ...
1
vote
0answers
119 views

How to draw a squeezed ellipse with fading color on a sphere surface with TikZ?

Ideally, I would like to draw something like part (c) of the image below: . Here, I narrow down the question to how to draw an ellipse on the surface of a sphere with fading color as shown on part (b) ...
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 ...
3
votes
2answers
49 views

Boxed caption and figure, with colored caption

I'm trying to recreate a figure and caption effect from a journal. An example of it can be seen on PDF version of Figure 1 from this article: It's basically a large grey bordered box that goes ...
4
votes
1answer
990 views

ADDING white space to an image?

I'm new to beamer and am trying to make a presentation. When inserting an image, the output is satisfactory, except when I try to insert a .pdf! The white space in the image disappears. Initially, the ...
11
votes
0answers
87 views

Reference a node's color by using node name

I am trying to use a node name to reference the node's color. I am not sure if this is even possible. I have a TikZ mindmap: \documentclass{article} \usepackage{tikz} ...
1
vote
1answer
40 views

Setting color theme and special characters

I'm pretty comfortable with LaTeX, but today I began to use the Beamer class and I'm finding some difficulties just right at the begining. So... I got two questions. But first I'll show you guys my ...
3
votes
2answers
71 views

Adjusting exact height of the table rows

I am trying to adjust exact height of the row in my table, but the output is not good: \documentclass[a4paper]{article} \usepackage{array} \usepackage{color, colortbl} ...
6
votes
1answer
106 views

Fully Customized Table in Latex

Is it possible to have a customized table in LaTeX that has the following features? Be able to define Width and/or Height for specific row/column Be able to highlight/color a specific row or column ...
9
votes
1answer
5k 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 ...
2
votes
2answers
57 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
29 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
35 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
122 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
29 views

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

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
51 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
2answers
112 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 ...
3
votes
1answer
85 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 ...
3
votes
1answer
46 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
69 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
1answer
56 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}% ...
20
votes
1answer
1k views

Pre-defined color cycles à la RColorBrewer?

When I have multiple line plots in pgfplots, the colors of the lines cycle through a few colors (my guess is the colors are blue, red, black and dark khaki) before repeating with different marks. See ...
2
votes
0answers
91 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 ...
0
votes
0answers
29 views

Classicthesis and LyX: Color of citation Author [#ID, p. 10]

I am using classicthesis with LyX. Usually, citations are colored in green. But when I choose the type Author [#ID, p. 10], that is, I add p. 10 in the Text afterwards box, the whole citation apart ...
1
vote
1answer
87 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 ...
3
votes
1answer
74 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 ...
2
votes
1answer
60 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
143 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 ...
9
votes
2answers
6k views

Change Colour on Chapter/Section headings {Lyx}

I am using Lyx and Layout report for my thesis. I would like to change the colour of chapters sections and subsections (only the headings) from black to blue. I attach a screenshot in order to ...
4
votes
2answers
120 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 ...
28
votes
3answers
770 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 ...
5
votes
1answer
95 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
28 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 ...
5
votes
1answer
131 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 ...
15
votes
3answers
5k views

How to colour multiple paragraphs?

I have a set of commands in my document's preamble that look like this: \newcommand{\nathaniel}[1]{\textcolor{blue}{[#1]}} \newcommand{\anotherAuthor}[1]{\textcolor{darkgreen}{[#1]}} They are to ...
2
votes
0answers
47 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 ...
4
votes
1answer
83 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 ...