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.
Learn LaTeX easily with newest books:
The LaTeX Beginner's Guide: 2nd edition and perfect for students writing a thesis
The LaTeX Cookbook: 2nd edition full of practical examples for mathematics, physics, chemistry, and more
LaTeX Graphics with TikZ: the first book about TikZ for perfect drawings in your LaTeX thesis
- 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.