GeneralDefining color font for the whole document

LaTeX specific issues not fitting into one of the other forums of this category.
Post Reply
nunolf
Posts: 14
Joined: Wed Jul 18, 2007 1:41 pm

Defining color font for the whole document

Post by nunolf »

Hi guys

I want to produce a document (book) using a text font color different from black (I think is the default value), to say 90% gray.

Of course this is easily doable under latex! Can you guys point me to a good package for managing the colors? I read something about the color package, but got the idea that it was more suited to change the color of some sentences, not the overall text color.

Thanks,
N.

Recommended reading 2024:

LaTeXguide.org • LaTeX-Cookbook.net • TikZ.org
LaTeX Beginner's Guide LaTeX Cookbook LaTeX TikZ graphics TikZによるLaTeXグラフィックス
User avatar
localghost
Site Moderator
Posts: 9201
Joined: Fri Feb 02, 2007 12:06 pm

Defining color font for the whole document

Post by localghost »

What about the xcolor package? Should be something like the \textcolor command. Just search the documentation for this.
How to make a "Minimal Example"
Board Rules
Avoidable Mistakes[/size]

¹ System: openSUSE 42.2 (Linux 4.4.52), TeX Live 2016 (vanilla), TeXworks 0.6.1
nunolf
Posts: 14
Joined: Wed Jul 18, 2007 1:41 pm

Defining color font for the whole document

Post by nunolf »

Great!
xcolor seems to manage colors better than color.

And answering my question, it's trivial :oops:
Just have to define the color, and b4 starting the real stuff, call the new color.
Just for the record:

Code: Select all

\documentclass[11pt,pdftex]{book}
\usepackage{xcolor}
\definecolor{bookColor}{cmyk}{0	, 0  , 0   , 0.90}  % 0.90\% of black
\color{bookColor}
\begin{document}
...
Cheers,
N.
Post Reply