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

learn more… | top users | synonyms (1)

4
votes
1answer
104 views

How to change the paper color(background color) in tikz class

How to change the paper color(background color) in tikz class kindly help me to change color \documentclass{scrartcl} \usepackage[usenames,x11names,dvipsnames,svgnames]{xcolor} ...
5
votes
2answers
137 views

Different colors for itemize in blocks and outside, in Beamer?

I would like to obtain what I describe in the following MWE, that is the itemize symbol should be black outside blocks; blue in normal blocks; red in alert blocks; green in example blocks. MWE: ...
0
votes
0answers
27 views

Autocompletion colors in TexStudio

I am currently trying to customize my TexStudio editor to look a little bit more like what I'm used to from IntelliJ's Darcula theme. However I cannot find where I can change the colors during ...
2
votes
2answers
67 views

Bicolored font (main color and background)

I want to write some text on tikzpicture with bi-colored font: each character will be display in main color but each character will be doubled (like bold) with an other color. The result I want to ...
2
votes
1answer
103 views

Table with different colors removes vertical and horizontal lines

I have a table in my documentation, where i'm switching the rowcolor between white(default) and gray. Those rows, where the color is changed with \rowcolor{gray}, disabling the horizontal and vertical ...
4
votes
3answers
201 views

Simplest way to get a colored rectangle behind text? [duplicate]

I'd like to display a grey rectangle behind text, so that certain parts of the text are more recognisable. I will do this to highlight problems' body. I found various packages, like fancytooltips or ...
1
vote
1answer
68 views

Problem in listings, colored split command

MWE: \documentclass[a4paper,11pt]{book} \usepackage{color} \usepackage{listings} \lstdefinelanguage{mytex}[LaTeX]{TeX}{ alsoletter={\\}, morekeywords=[3]{\\mbox,}, ...
2
votes
1answer
96 views

How to color these circles in TikZ? [duplicate]

How can I color the output of this MWE like the screenshot? \documentclass{book} \usepackage{tikz} \begin{document} \begin{center} \begin{tikzpicture} \draw [thick] (3.25,-2) circle (1.5cm) ...
2
votes
1answer
92 views

Colored LaTeX command in verbatim

MWE, \documentclass[a4paper,11pt]{book} \usepackage[T1]{fontenc} \usepackage[utf8]{inputenc} \usepackage{lmodern} \title{} \author{} \begin{document} \maketitle \tableofcontents \chapter{} ...
6
votes
4answers
261 views

How to define lighter/darker color from already defined color in TeX?

I am new in TeX, so question may be little silly. Is any chance to use already defined color to define new color which will be darkner or lighter? I want to use only TeX. So i have defined color like ...
4
votes
1answer
88 views

Color functional groups in chemfig syntax

I want to color simple functional groups in organic molecules using the chemfig package. I've come up with a solution that achieves what I want (MWE), but I find it very cumbersome. I thought it could ...
4
votes
1answer
69 views

Is it possible to color only one side of a cube in PSTricks?

I have this cube, implemented as follows: \documentclass[class=minimal,border=0pt]{standalone} \usepackage{pst-plot} \usepackage{pstricks-add} \usepackage{amsmath} \usepackage{pst-ob3d} ...
6
votes
1answer
101 views

Changing FONT color in headline

I am wondering how can I change the font color in the headline of my presentation? I saw from Beamer how to change color of infolines and frame title how to change the color of the bar but not the ...
4
votes
1answer
79 views

Remove color of acronyms used in an equation

I use the acronyms package to define mathematic symbols like this: \begin{acronym}[long] \acro{v}[$\vec{v}$]{View direction vector} \end{acronym} I do this with lots of others where it is faster to ...
2
votes
1answer
104 views

Control colors and shading of navigation circles in Beamer top line

I am preparing a presentation in Beamer using \useoutertheme{miniframes} and \useinnertheme{circles}, and my own modded version of the default colortheme. I want to have a Frankfurt-like navigation ...
2
votes
1answer
154 views

pgfplots: Color a 3D surf plot based on y-value

I'm not sure if things have changed since version 1.7, but this is the closest thing I could find. I'm wondering if there's an easier way to use the y-value with a colormap to determine the color, or ...
1
vote
0answers
77 views

How to place a color gradient text node inside a tikzpicture (absolute positioning)

I want to put a color gradient to a "Desired Text Only" but then I want to be able to position it inside a tikzpicure. I already checked this thread describing a way to put gradient color to a section ...
2
votes
1answer
54 views

CMYK and RBG in one document

Imagine the PDF file that you create from the tex sources has to have all colors defined in RGB because the PDF is meant to be read on screen. One would do: ...
3
votes
2answers
75 views

Define command that either does \kill or \textcolor

I have some paragraphs in my thesis, that will stay in there until just before it is finished. They should be marked as non-important to my supervisor. Then I'd like to remove those paragraphs all at ...
3
votes
2answers
72 views

Color in Table with Multicolumn and Multirow - How to achieve?

Yet another question, this time with coloring the table. This is the code for the table I got with your help here: \documentclass{article} \usepackage{multirow} \begin{document} \begin{table}[h] ...
6
votes
2answers
167 views

\cellcolor is taking too much space in a matrix

I would like to highlight a row, a column and a specific cell in a matrix. I ended up using \cellcolor. My problem is that \cellcolor is taking too much space, therefore the matrix borders are being ...
3
votes
0answers
146 views

Handwritten parchment. Quill style

I want to know a few fonts that look like this: I want to know what are the colors that were used to write with quill or some colors that could be used in the document. I would like to split the ...
5
votes
3answers
371 views

Change default colour used in Boadilla

I am making a beamer presentation using Boadilla style. However, I would like to change the default blue colour. Is there a quick fix for this, please? Thank you! The following is my code. ...
2
votes
1answer
32 views

Having several different colored borders for internal links

My question is: Is is possible to change the color of the borders of one or several internal links in LaTeX, without changing them all? I know it is possible to define a different colored borders for ...
2
votes
1answer
82 views

Typeset colored terminal output using minted

I need to reproduce the output of a command in a LaTeX document. The command uses ANSI escape codes to produce colored output. I'd like to use minted, but using \inputminted{shell}{coloredoutput} ...
3
votes
1answer
100 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
47 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 ...
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} ...
4
votes
1answer
114 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 ...
3
votes
1answer
108 views

How to change the color of bibitems?

I'm showing my references at the end of my beamer presentation. \documentclass[compress]{beamer} \begin{document} \frame{ \begin{thebibliography}{1}\scriptsize \bibitem{Test} Test, Me, ...
9
votes
6answers
319 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 ...
1
vote
1answer
28 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
76 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 ...
7
votes
2answers
208 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
104 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
68 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!
4
votes
2answers
135 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 ...
3
votes
2answers
145 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 ...
3
votes
2answers
75 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
112 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, ...
1
vote
1answer
60 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 ...
11
votes
1answer
140 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
102 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
93 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} ...
5
votes
1answer
133 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 ...
1
vote
0answers
246 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) ...
2
votes
2answers
79 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
83 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
103 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
142 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 ...