Articles of color

Create custom colored PGFPlots ybar with consistent spacing

I am trying to create a ybar graph that has consistent spacing between a set of columns. I have obtained the color scheme I need in the following example, based off guidance from this question on here \documentclass{memoir} \usepackage[left=1.5in, right=1in, top=1in, bottom=1in, headsep=0.1in, head=0.4in, includehead, includefoot, marginparsep=0in, marginparwidth=0in,footskip=0.4in]{geometry} \usepackage{graphicx} \usepackage{pgfplots} \usepackage{xcolor} \pagecolor{black} \pgfplotsset{width=7cm,compat=1.5.1} \usepackage{siunitx} \sisetup{inter-unit-product={}\cdot{},sticky-per=true,multi-part-units=single,separate-uncertainty=true,list-units=single,range-units=single,detect-all,detect-weight=true,detect-inline-weight=math} […]

Automatically choosing preset color schemes in pgfplots based on number of entries

This is really more of a question to satisfy personal curiosity than to solve a real problem. When choosing the colour schemes for my plots, I try to select colours that will work well with the amount of items involved in the plot. This means using sets of colours that are above all aesthetically pleasing, […]

Newsletter Formatting

First post here but I’m trying to create a newsletter. However, I’m having some difficulties. I want it to look similar to this example: This is a MWE of what I’ve managed to generate so far. \documentclass[10pt]{article} \usepackage{times} \usepackage[hmargin=1cm,bmargin=2cm,tmargin=4cm,centering]{geometry} \usepackage{graphicx} \usepackage{amssymb} \usepackage{here} \usepackage{color} \usepackage{framed} \usepackage{multicol} \usepackage{wrapfig} \usepackage{lipsum} \usepackage[none]{hyphenat} \definecolor{boxgray}{RGB}{139,137,137} \definecolor{darkgreen}{RGB}{25,170,75} \usepackage{tikz} \usepackage{tikzpagenodes} \usepackage{atbegshi} \newcommand\Header{% […]

Colored strings by listings package

I’m trying to type my C++ homework by LaTeX in order to prepare it as a pdf file. I want to have my keywords in blue, my numbers in violet and my strings in reddish brown. I could do the two first by looking up the documentation and other questions here, but I have no […]

MetaPost: Randomly generated number, distinct from previously generated number

Overview Looking to create random page background colours where the same background colour never appears more than once in succession (i.e., red, green, blue, green, blue, red, etc. — never red, red, green, blue, blue). Code Example showing the issue: % Randomize the seed without having to delete the tuc file. \ctxlua{math.randomseed( os.time() )} \setupcolors[state=start] […]

Wrong color with hsb color series in xelatex

I tried to use hsb color series provided by xcolor package in the following code: \documentclass{standalone} \usepackage[table]{xcolor} \begin{document} % example one \definecolorseries{test}{hsb}{step}{blue}[hsb]{.041667,0,0}% 1/24 \resetcolorseries[12]{test}% \rowcolors[\hline]{1}{test!!+}{test!!+} \begin{tabular}{c} \number\rownum\\ \number\rownum\\ \number\rownum\\ \number\rownum\\ \number\rownum\\ \number\rownum\\ \number\rownum\\ \number\rownum\\ \number\rownum\\ \number\rownum\\ \number\rownum\\ \number\rownum\\ \number\rownum\\ \number\rownum\\ \number\rownum\\ \number\rownum\\ \end{tabular} % example two \definecolorseries{test}{hsb}{step}{blue}[hsb]{.0416667,0,0}% 1/24 \resetcolorseries[12]{test}% \rowcolors[\hline]{1}{test!!+}{test!!+} \begin{tabular}{c} \number\rownum\\ \number\rownum\\ \number\rownum\\ \number\rownum\\ […]

Citation colour with Beamer + Hyperref + Natbib

I’m using natbib for citation with a custom bibstyle. I’m working on a presentation using LaTeX beamer and for some reason the citation marker doesn’t have the colour that is specified to hyperref. The citation marker is black instead of green. I’ll give you a MWE: \documentclass{beamer} \hypersetup{ colorlinks, citecolor=green, linkcolor=red } \usepackage{filecontents} \begin{filecontents}{mybib.bib} @ARTICLE{Bar2011, […]

How to change color in an environment?

I have an environment defined as follows: \usepackage{framed} \usepackage{listings} \usepackage{color} \usepackage{tikz} \usetikzlibrary{shapes.arrows} \usetikzlibrary{backgrounds} \usetikzlibrary{positioning} \usetikzlibrary{arrows} \definecolor{gray}{gray}{0.3} \definecolor{darkgreen}{rgb}{0,0.55,0} \definecolor{purple}{rgb}{0.5,0,1} \newenvironment{comment}{ \medskip \begin{framed} \color{red} {\textbf{I say: }} }{ \end{framed} \medskip } After leaving the environment the color is not restored and so it is still red. Should I restore it explicitly somewhere?

Beamer color doesn't match

I am trying to get the color R0, G130, B202 into beamer. It should look like this: But the following Beamer document: \documentclass{beamer} \definecolor{PMSProcessBlue}{rgb}{0,130,202} \setbeamercolor{frametitle}{fg=PMSProcessBlue} \setbeamercolor{framesubtitle}{fg=PMSProcessBlue} \setbeamercolor{normal text}{fg=PMSProcessBlue} \begin{document} \begin{frame}{All}{Sub} words \end{frame} \end{document} produces a much lighter color: Is there a reason for this? Thank you.

Seemingly trivial: verbatim, newenvironment, and colorbox

I am, once again, trying to achieve what seems like a trivial goal. I want to use \newenvironment to define a verbatim environment with a background color. I need to define my own environment because I need to run extra commands when opening the environment. Here’s what I have so far: \newenvironment{response}{% % here, run […]