Stack Exchange Network

Stack Exchange network consists of 175 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.

1
vote
1answer
26 views

Latex beamer: get colour used in theme

I would like to reuse colours defined by a beamer theme and the colour theme. For example, if I use \usetheme{Berkeley} \usecolortheme{beetle} how can I find out what the colour is that is used in ...
2
votes
1answer
114 views

Coloring in a multirow

I am using TexStudio with Bibtex. I want to color a multirow table. While, I have seen some questions put up earlier in this forum about that, however still I am not able to resolve the problem. The ...
1
vote
0answers
37 views
+50

How do I customize Circuit_macros in listings?

MWE; \documentclass{article} \usepackage{xcolor} \usepackage{listings} \definecolor{Others}{RGB}{0,110,40} % Green \definecolor{Character}{RGB}{146,76,157} % Purple \definecolor{Number}{RGB}{176,...
3
votes
1answer
29 views

Transparent row colours in tabularx environment using XeLaTeX

I'm trying to build a table with alternating row colours, with one of the colours slightly transparent. I have the table layout working as intended, however I cannot figure out a way to get the row ...
1
vote
1answer
17 views

\rowcolor not working in latex IEEEtrans

I am trying to colour rows in some tables in a latex IEEEtran article but the colouring does not show at all, and no error is thrown as well. Here is the snippet of code I used: \usepackage{array, ...
2
votes
1answer
20 views

Color background for title row in csvsimple

Assume a simple example centered on the csvsimple package. \documentclass{standalone} \usepackage{csvsimple} \usepackage{fp} \usepackage{xcolor} \begin{filecontents*}{input.csv} Foo,Bar,Baz,...
7
votes
2answers
699 views

Draw a palette box in LaTeX

Is there a way to build a structure like the following in Latex? They're probably just boxes, but I have very little experience with Latex and I'm not sure how to get this result.
5
votes
2answers
119 views

A specific format for nice tables

With this code: \documentclass[a4paper,12pt]{article} \usepackage{mathtools,amssymb} \usepackage{booktabs, isotope} \begin{document} \begin{center} \begin{tabular}{lcc} \toprule \textbf{Osservabile} &...
5
votes
2answers
69 views

Change label caption color of a single figure

Is it possible to change the caption color in a single figure without changing the color labels of other figures? I have used this code Change color of figure caption text but every figure is ...
10
votes
1answer
142 views

About the definition of textcolor

I was curious and found the following definition for the macro textcolor defined in the package xcolor: \def\textcolor#1#{\@textcolor{#1}} \def\@textcolor#1#2#3{\protect\leavevmode{\color#1{#2}#3}} ...
0
votes
0answers
35 views

Longtable - Changing Font Color of Header Row doesnt extend to all cells

I am using longtable package as most of the tables that I use tend to go on for multiple pages. What I want is now that the header row should be filled with blue colour and white text. The remainder ...
5
votes
4answers
314 views

Global variable Array

I have control_array.tex and 10 templateA.tex, templateB.tex, ... TeX files. In control_array.tex: ArrayName = [Name1,Name2,...Name10] ArrayColor = [Color1,Color2,...Color10] With Array in ...
0
votes
0answers
31 views

modify color in latex in overleaf

There is this cv template on overleaf and I am trying to modify the color of the links that the CV has. If I change from initial (from namesection) \href{https://www.pgr-me.github.io}{\bf https://...
0
votes
0answers
34 views

miniltx color conflict

I am using Plain TeX for a document that has illustrations and uses colored type. I find that when I load both miniltx and color I get an error message on the console. Looking at the files where the ...
3
votes
1answer
27 views

What does the notation \usepackage[table,xcdraw]{xcolor} mean? Which package arguments into which?

I saw an argument in a file that displayed: \usepackage[table,xcdraw]{xcolor} I am a bit confused what is getting parsed into which. It seems that the material in [] are usually options for xcolor. ...
0
votes
0answers
28 views

Formatting of C language using listings

Consider the following code segment in C: int llvm_test_diagnostic_handler(void) { LLVMContextRef C = LLVMGetGlobalContext(); LLVMContextSetDiagnosticHandler(C, &diagnosticHandler, &...
0
votes
0answers
50 views

How to change the color of editor in Texworks [duplicate]

I want to change the color from white to black in Texworks. The output pdf remain white, I means the editor back ground. I can do it !! Thank you for letting me know: memorandum 1) Make a mystyle....
3
votes
1answer
47 views

How to get a colored packed itemize list in ConTeXt?

Consider the following MWE: \setupitemize[color=green,packed] \starttext \startitemize \item Test one \item Test two \stopitemize \stoptext As you ...
5
votes
2answers
76 views

Color table rows and columns

I have a table whose rows are set to alternate between white and gray using xcolor's \rowcolors{2}{white}{gray!10}. I also want to highlight a column of that table, sos that it looks something like ...
1
vote
1answer
53 views

Writing Nukleotide motifs

Is there a way to write nukleotide motifs like the one in the picture? There are 4 letters and each is color coded. If there are multiple options for one position all options are written underneath ...
1
vote
2answers
36 views

Change color of equation hyperrefs with each section

Similar to two previous posts of mine, I want the color of the reference to a formula to be the same color as the theorems etc in that section. MWE \documentclass[a4paper,twoside,ngerman]{article} \...
2
votes
0answers
115 views

Create an adapted \color macro for RTL mode (pdflatex and xelatex)

This is a complement to these questions: Colors bizarre results with right to left text Change color method used with beamer My aim is to create a macro like \color which can be used in RTL mode (...
1
vote
1answer
48 views

Define bclogo environment that changes color with each section

For my theorems and section titles, I use i.e. \usepackage{listofitem} \setsepchar{,} \readlist\mycolors{amaranth,blue,orange,purple} \definecolor{amaranth}{HTML}{a82337} \definecolor{orange}{HTML}{...
2
votes
1answer
35 views

Use customized color in \href

Problem I am now updating my CV and I want to replace the ugly block outside the hyperlink with the customized color. I read and tried the solution provided in these answers and websites (anwser1, ...
1
vote
0answers
34 views

Use same color for all text

I saw other answers, but no one has achieved what I want. I need to print my work, and I want all the text colors to be black. I'm using packages that change's font color like \url{} or \cite{} and ...
3
votes
2answers
81 views

Change font within Chapter Title - e.g. first part black, second red

Since I often use one document in two forms, lets say in form 1 and form 2, I would like to label that accordingly in the chapter headings and have parts in a different color. So the questions is, how ...
2
votes
1answer
33 views

Having multiple section with different color which have the same environment

I'm having trouble changing the sections's colors. They all have the same environment rSection defined below : \newenvironment{rSection}[1]{ \sectionskip \MakeUppercase{\bf #1} % Section title ...
5
votes
1answer
33 views

Color until line break (without luatex)

I need to create a command based on \color with a result like this \documentclass{article} \usepackage{xcolor} % \def\costumcol#1{.....} \begin{document} sample text sample text sample text ...
0
votes
1answer
68 views

A label in color box with fix width and height

I want to have a small size color box with a label in it. This color box should have a fix width and length. I have tried with \crule[blue]{24mm}{6mm}, which can have the fixed size but I don't know ...
1
vote
1answer
33 views

Change color method used with beamer

We have many issues when using xcolor with right to left text (pdflatex and xelatex) Colors bizarre results with right to left text The answer suggest to use the command from fontspec package {\...
0
votes
0answers
25 views

Multiple colored paragraphs: recognize position in PDF

I'm using this answer to color multiple paragraphs, i.e. I use \newcommand{\nathaniel}[1]{{\leavevmode\color{blue}[#1]}} and then \nathaniel{ paragraph 1 paragraph 2 paragraph 3 } ...
5
votes
2answers
159 views

Incompatibility between pgfplots and xcolor since last MiKTeX update [duplicate]

Please consider the following MWE: \documentclass{article} \PassOptionsToPackage{prologue,usenames,dvipsnames,svgnames,table}{xcolor} \usepackage{xcolor} \usepackage{pgfplots} \pgfplotsset{...
1
vote
1answer
18 views

Change only the colour of the (bracketed part) of the title of a theorem

How may I change only the colour of the title of a theorem, i.e. the part that appears in brackets after say, "Theorem", "Definition" etc. when using the amsthm package? I have tried passing \color{...
0
votes
1answer
26 views

The numbers are erased in the table

The numbers are erased when I color the cell, because how do I solve it? \documentclass[]{article} \usepackage[table]{xcolor} \usepackage{multirow} \usepackage{boldline} \begin{document} \...
3
votes
1answer
58 views

How can I create a color registration test page with latex?

For color registration there is the special color registration black, which uses 100% of all colors used in print. This way misalignment can be easily spotted: How can I create a color registration ...
3
votes
2answers
32 views

How to change the colour of the line when I strike out a sentence

I have the following MWE \documentclass{standalone} \usepackage{soul} \usepackage{xcolor} \begin{document} \st{I want to strike out this sentence} using a red line and I want to replace it with ...
2
votes
1answer
37 views

Fill the symbol with defined rgb color

I have different symbols represent different cases for my study such as \triangledown, \vartriangle and \circ. I wanted to change the color of the symbol to represent different cases using rgb. I ...
2
votes
1answer
25 views

How do I alter all text colour within a space?

I've written a command to `hide' text, equations, and content, by changing its colour (e.g. to all white). Based on the discussion in [1] I'm using the command: \newcommand{\hi}[1]{{\leavevmode\...
0
votes
0answers
34 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
34 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
24 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
44 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
35 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
52 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
28 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
191 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
2answers
128 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
16 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
23 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
74 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{...