General ⇒ Defining color font for the whole document
Defining color font for the whole document
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.
NEW: TikZ book now 40% off at Amazon.com for a short time.
And: Currently, Packt sells ebooks for $4.99 each if you buy 5 of their over 1000 ebooks. If you choose only a single one, $9.99. How about combining 3 LaTeX books with Python, gnuplot, mathplotlib, Matlab, ChatGPT or other AI books? Epub and PDF. Bundle (3 books, add more for higher discount): https://packt.link/MDH5p
- localghost
- Site Moderator
- Posts: 9202
- Joined: Fri Feb 02, 2007 12:06 pm
Defining color font for the whole document
Board Rules
Avoidable Mistakes
¹ System: TeX Live 2025 (vanilla), TeXworks 0.6.10
Defining color font for the whole document
xcolor seems to manage colors better than color.
And answering my question, it's trivial

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}
...
N.