2
votes
1answer
220 views

ConTeXt: Change the default text colour for entire document

Background I am looking to change the text colour for a document from black to a different dark colour. Problem The documentation shows how to change individual colours for a text document, but ...
7
votes
1answer
153 views

ConTeXt+MetaPost: Non-conflicting random background and foreground colours

Overview Looking to create a page that has a random (and non-consecutively repeating) background colour with titles that are also random. Problem The code has two problems. First, generating a ...
7
votes
1answer
158 views

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, ...
8
votes
1answer
177 views

MetaPost: Adjust colour value (brightness/luminosity)

Background In MetaPost, colours can be lightened or darkened by calling the transparency function. However, this allows other colours to show through, which isn't necessarily desirable all the time. ...
5
votes
1answer
97 views

ConTeXt: Randomly lighten or darken a colour within a threshold

Overview Looking to randomize the colours of squares of a checkerboard so that some are slightly lighter and some are slightly darker, relative to another colour. Problem The following sets a base ...
9
votes
1answer
272 views

PDF Colour Space and ConTeXt

Background Trying to create a PDF that includes a vectorized cover page having transparent colours. I would like the PDF to have the same appearance in Acrobat Reader, Firefox PDF Viewer, Foxit ...
5
votes
1answer
477 views

Define colour transparency in relation to existing colour

Background Using ConTeXt to develop a nice theme where users can change the colour scheme, but still get the same "feeling" for the output, primary, secondary, and tertiary colours are defined. For ...
6
votes
1answer
335 views

Set margin background colour for all chapter pages

Problem The \setupbackgrounds macro has the ability to change the background colour of the margins, from the top of the page to the bottom: \setupbackgrounds[footer,header,text][rightmargin][ ...
7
votes
1answer
164 views

Why is pdflatex automatically loading a ConTeXt package and crashing

If I process the following MWE with pdflatex (TeXLive 2012, Linux) \documentclass{article} \usepackage{color} \def\mymacro#1{#1} \begin{document} \pdfinfo{/Title (Some text \textbf{This macro causes ...
4
votes
1answer
150 views

Change color of links created with \in, \at, etc

By default the link color of references created with \in or \at is red. How can this color be globally changed, so that all links have the same color (e.g. blue)? \setupinteraction ...
1
vote
1answer
308 views

How to make gray-colored text in ConTeXt beta?

As I know, in ConTeXt stable, one can use \color[gray:3]{} to display the text inside the brackets with a very light gray color, e.g.: \setupcolor[rgb] \starttext \color[gray:3]{This is some ...
1
vote
1answer
317 views

Different default color for each font in ConTeXt

Is there a way to specify the color along with the font name when using simplefonts? At the moment, I use the following to setup my default fonts. \usemodule[simplefonts] \setmainfont[Ubuntu] ...
6
votes
1answer
720 views

CMYK ConTeXt colors in TikZ

Colors defined via the internal \definecolor macro in ConTeXt cannot be used in TikZ when the CMYK system is used. Is there a way to convert them or tick a setting so that TikZ can use them? Minimal ...
5
votes
1answer
611 views

Background color of cells in ConTeXt

I'd like to set the background colors for cells to indicate their relations. How can I do this in ConTeXt?