Stack Exchange Network

Stack Exchange network consists of 174 Q&A communities including Stack Overflow, the largest, most trusted online community for developers to learn, share their knowledge, and build their careers.

Visit Stack Exchange

Questions tagged [color]

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

0
votes
0answers
25 views

Different colors for each bib file and custom prefix [Elsevier]

I have multiple bib files. I would like to use different text colors for all the references mentioned in different bib files. Secondly, I would like a custom prefix for each bib file. Please let me ...
0
votes
1answer
33 views

Different colors for each bib file and custom prefix

I have multiple bib files. I would like to use different text colors for all the references mentioned in different bib files. Secondly, i would like a custom prefix for each bib file. Please let me ...
2
votes
1answer
17 views

Tikz | How to change line color of histogram

I am trying to follow this answer for drawing a historgram. I was able to change the fill color of the histogram but I was not able to change the line color of the bars. Question: What do I have to ...
1
vote
0answers
32 views

TikZ node text color not working with latest MiKTeX release [duplicate]

Please consider the following MWE: \documentclass{article} \PassOptionsToPackage{usenames,dvipsnames,svgnames,table}{xcolor} \usepackage{xcolor} \usepackage{tikz} \begin{document} \par Text before ...
0
votes
0answers
31 views

How to mark the space between words

I would like to make the space between words of a text "more visible". Is there a way to colorize the word-space in a text?
3
votes
1answer
48 views

why \textcolor works but not \color in tex4ht?

In this MWE \documentclass{article} \usepackage{xcolor} \usepackage{pifont}% http://ctan.org/pkg/pifont \newcommand{\cmark}{\ding{51}} \newcommand{\xmark}{\ding{55}} \begin{document} Why this is ...
1
vote
0answers
25 views

Using the % percent sign in lstlisting breaks text coloring

In my lstlisting, If I use a % sign, the highlighting for the rest of the file no longer works. \subsection{Dereferencing pointers} \par When you dereference a pointer, you are going to the ...
4
votes
2answers
179 views

How does one make just one word in the title a different color? [duplicate]

The following works to give the title all in black: \title{The Title} But this does not work to make the first word in the title red: \title{{\color{red}The} Title} How does one make just one word ...
5
votes
1answer
66 views

tikzpicture won't render 'usable' PS code

I use tikz (and tikzpicture) a fair bit, but files that used to compile fine before the latest slew of updates to pgf, and pstricks, no longer seem to do so (at least, on my MikTeX installation). The ...
1
vote
0answers
14 views

table cell colored with multirow lets text disapear behind next colored cell

I stumbled over something i do not know how to solve. I don't even know about layers in latex but is seams like my text is disapearing behind a colored cell beneth it and that because i use a ...
0
votes
0answers
18 views

longtabu X-columns break with xcolor [duplicate]

Hello I have a few longtabu's in a document, some of those use xcolor to slightly alternate the row color. I have been using something similar as below for more than a year now, but updating my ...
2
votes
1answer
54 views

LaTeX equation that has white text on a transparent background

I would like to create a LaTeX equation that has white text on a transparent background, so that I can use it on an array of dark backgrounds in PowerPoint/Keynote. \color{white} \nopagecolor \begin{...
2
votes
0answers
16 views

Multi-page footnote disrupts main text color, and pdfcolfoot not helpful

Original situation: I have several documents with text color changging in various frequency (few lines to many pages for each color). There are numerous footnotes in between, that should be colored ...
2
votes
1answer
56 views

Automatic change of the color for each \part

With reference to a question previously asked, Replace \part of the appendix of Legrand Orange Book with letters of the alphabet instead of arabic numbers I would like to understand which commands ...
3
votes
3answers
147 views

How to fill a right-angle mark with a color?

I fails to fill the right-angle mark with green color as follows. \documentclass[12pt]{standalone} \usepackage{pst-eucl,pst-calculate} \begin{document} \begin{pspicture}(-.6,-1)(4.85,4) \def\b{3} \...
1
vote
1answer
42 views

Trouble transferring code snippets (table)

My latex knowledge is poor. I am trying to transfer this code snippet: \documentclass{article} %\documentclass[leqno]{uicthesi} \usepackage{amsmath} \usepackage[initials]{amsrefs} \usepackage[...
1
vote
1answer
18 views

Changing the color of \ref within the same document

Is there a way to reference things with \ref using a different color than with what \hypersetup assigns it? That is, I would like to reference a theorem with blue text in general, but at some point I'...
12
votes
1answer
978 views

Creating a Falcon's logo

I have been trying to trying to replicate this logo for my team (not to mention in LaTeX ofcourse:-)): So where I am now: \documentclass[11pt]{standalone} \usepackage{tikz} \usepackage{pgfplots}% ...
3
votes
1answer
88 views

xcolor breaking \[ and align environments inside tabu

I'm having trouble with a "Bad math environment delimiter" when using certain math environments inside tabu. Minimal example: \documentclass[a4paper,12pt]{scrreprt} \usepackage{xcolor} \usepackage{...
0
votes
0answers
42 views

Alternative to \textcolor{}{}

For my recent document, I have many words that I want to have a different color. For that, I use the expression \textcolor{color}{word}. It takes me a lot of time. I'm wondering if there is a ...
0
votes
1answer
26 views

Coloring edges of a polygon differently

I would like to draw a regular 21 polygon, where the edges are labelled and have arrows in the middle using different colors. This is what I have done so far using this code \documentclass[...
1
vote
1answer
47 views

Coloring a path in a circuit

I have edited my code according to the answer. \documentclass{article} \usepackage{tikz} \usepackage{circuitikz} \begin{document} \begin{figure} \begin{center} \begin{circuitikz} \draw (0,2.5) ...
3
votes
1answer
171 views

longtabu and color compatibility

After last update of TeX Live packages this code won't compile: \documentclass{article} \usepackage{longtable,tabu} \usepackage{color} \begin{document} \begin{longtabu} to \linewidth {llX} a &...
1
vote
1answer
33 views

Color the sides of a 3D box

I have wrote this latex code to draw a 3D box. \documentclass{article} \usepackage{tikz} \usepackage{circuitikz} \begin{document} \begin{figure} \begin{center} \begin{circuitikz} \draw (0,0) to[...
6
votes
2answers
80 views

Get default text color

I want to go (back) to the default text color. If the default color is black then I can use \color{black}. But I'm looking for a command for the general case where black may or may not be the default ...
0
votes
0answers
35 views

Locking Fields in Digital Signature 2

I am trying to use eforms to create a pdf where digital signature can be applied. Each document may have more than one digital signature field, i.e so the document can be passed from person to person. ...
15
votes
2answers
400 views

Bug or feature: tikz interprets color specification differently for rectangles

When drawing a rectangle, Tikz interprets color in two different ways, depending on in which order it is specified among the options. In the example below: When color is specified first, as in the ...
0
votes
0answers
41 views

Colouring aligned math text with macros

I would like to have coloured text-generating macros that i can use inside an align* environment. However, the two seem conflicting. Here's a MWE describing the issue. \documentclass{article} \...
0
votes
1answer
41 views

Is it possible to outline questions like this, and what are some other options?

I am writing some math homework in LaTex and I would like to format somehow like this: 10.2) Question Statement My Answer Meaning, I would like the question statement stand out, either in a ...
6
votes
2answers
125 views

How to change only the color of numbers (and not units) with numprint?

This question is related to this one: Colour only the text in a tabularx environment I want to write as a succession of equality in blue (only the numbers) so that each line of the table has a ...
5
votes
2answers
83 views

Colour only the text in a tabularx environment

Edit: This question is related to this one: How to change only the color of numbers (and not units) with numprint? I tried the solution given here, but it enlarges the line spacing of the table as ...
3
votes
1answer
83 views

How to draw colored text, multiline, monospaced

Wondering how to draw this using different colors (such as each letter a different color) so that it appears in the document like this: / \ / ___| / ___|_ _|_ _| / _ \ \___ \| | | | | | / ...
3
votes
1answer
54 views

Problems with textcolor in tcolorboxes with page breaks

When I use colored text (textcolor) in a - breakable - tcolorbox the color is restored to black after a page break. What must be changed to have, say, blue text within the whole tcolorbox? \...
1
vote
0answers
91 views

“Use of \@startpbox doesn't match its definition.” Error on a Table [duplicate]

I am getting the following error during compilation "Use of @startpbox doesn't match its definition." for all my tables in tabular and tabularx environment. The relevant portions of my document ...
1
vote
1answer
22 views

How to change the color of a section in ACM template?

I am trying to change the color of the name of a section in ACM template. \section{\color{red} My Section} I have found this solution but it did not work. It gives the error of Undefined color RED ...
0
votes
0answers
12 views

Color text across environments [duplicate]

I would like to color text with \textcolor{red}{b} across environment. Interlock color definition outside environment such as the below example does not work. \textcolor{red}{ \begin{itemize} \item ...
1
vote
1answer
55 views

frametitle with the new colors

I want to use madrid theme and I want to achieve the horizontal shading effect in the frametitle with the colors like the following picture I try as follows by using the following two answers (a1, a2)...
10
votes
1answer
278 views

Tabu very recently stopped working with color/xcolor or with fancyvrb

Below is a MWE with a tabu table that compiled perfectly fine up until I updated packages today (Dec. 16, 2018) with TeX Live Utility. \documentclass[11pt]{article} \usepackage{amsmath} \usepackage{...
11
votes
1answer
136 views

Test if Current Color is Black

The MWE below does exactly what I want via the \TypsetInBlueOnlyIfCurrentColorIsBlack macro: \TypsetInBlueOnlyIfCurrentColorIsBlack is intended to change the color of its parameter to blue, only if ...
4
votes
1answer
65 views

ConTeXt: xtables zebra stripe

Background Set up zebra striping using extreme tables. The ConTeXt tables are generated by converting an ASCII Markdown table via pandoc. Minimum Example \starttext \startplacetable[] \...
3
votes
1answer
92 views

Error caused by tabular environment suddenly started happening on a previously working file

I'm working on a pretty big document with a lot of \usepackage and custom commands. I'm using texlive 2018 on both my laptop with Linux Mint 17 and my desktop with Windows 10. After updating texlive ...
4
votes
0answers
76 views

Problem with xcolor package

With the folowing file \documentclass{article} \usepackage[table]{xcolor} %\usepackage{array} \begin{document} \newcolumntype{N}{p{1.5cm}} \begin{tabular}[c]{cN} One & Two \end{tabular} \...
10
votes
1answer
625 views

Why white transparent color becomes grey?

I'm trying to make a figure which use transparency in tikz. The figure consists in two overlapping rectangles. One which fading to the right and the other to the left. The rectangle fading to the ...
2
votes
1answer
99 views

Option clash for package xcolor - undetermined problem

I have a problem with LaTeX packages. My problem seems to be with xcolor, and very close from this question, but the their solution do not work for me. Unfortuntly, even if I put \usepackage[table,...
0
votes
2answers
66 views

Color inline code

I'm able to compile the following in Overleaf for the desired inline code-coloring effect: \documentclass{article} \usepackage{minted} \usepackage{xcolor} \definecolor{codeblue}{rgb}{0,0.3,0.6} \...
1
vote
0answers
46 views

Transparent package alters tikz color opacity [duplicate]

When using the package transparent for some elements in text, it has a huge side effect: it alters the colors also in any TikZ image of the document. This is the result without using the package: \...
1
vote
1answer
29 views

Is it possible to change the color of the section heading and the number associated with it for just one section?

Currently, I have \section{{\color{red} Conclusion}} \label{sec:conclusion} This results in the word "Conclusion" to turn into red. But, the section number VI still appears in black. Is there a way ...
3
votes
1answer
57 views

\everymath and \underline color

I use \everymath to change the color of all maths (blue). However, beyond my expectation, this color happens to automatically apply for any underlined texts. Please kindly instruct me how to solve ...
4
votes
1answer
90 views

TikZ arrow tip is drawn with two colors

This is my code (ConTeXt, but I think that's not relevant here): \usemodule[tikz] \usetikzlibrary{positioning,fit,shapes,calc,arrows.meta,decorations.markings} \tikzset{ arr/.style = { -{Stealth[...
17
votes
5answers
4k views

How to draw A ⊕ B ⊕ C as a Venn diagram?

You see my code and please answer my two questions: \documentclass{article} \usepackage{amsmath,amssymb,mathptmx} \usepackage{pstricks} \usepackage{pst-node} \usepackage{auto-pst-pdf} \begin{document}...