Take the 2-minute tour ×
TeX - LaTeX Stack Exchange is a question and answer site for users of TeX, LaTeX, ConTeXt, and related typesetting systems. It's 100% free, no registration required.

Is it possible to render a PDF in sepia tones, both the font color and overall document background? Preferably using pdflatex.

The final effect could be something like this screenshot of Pocket in sepia mode.

Screenshot of Pocket app with sepia theme

share|improve this question
2  
What do you mean exactly? Font color, backgrounds, figures or something different? Do you have an example picture of what you want to achieve? –  Tom Bombadil Jun 19 '12 at 10:13
    
@benregn To do this well, you need to colour the font. Maybe you can use the chikenize package. –  Keks Dose Jun 19 '12 at 10:36
    
@TomBombadil: I added a screenshot. KeksDose: I cannot seem to find that package. –  benregn Jun 19 '12 at 10:48
7  
From the "Fishing with dynamite" series: we could submit the final .pdf file to ImageMagick's convert and apply the -sepia-tone effect, say $ convert -sepia-tone 80% -density 400 mydoc.pdf -resize 25% newdoc.pdf. The drawback of this approach is that ImageMagick will convert every single page of the document to an image, apply the sepia effect and then add it to the final .pdf file (not to mention the huge file size). Some screenshots from Marco's mdframed manual: here and here. :) –  Paulo Cereda Jun 19 '12 at 11:40
    
@PauloCereda: Hehe, nice one! –  Jake Jun 19 '12 at 12:29
add comment

1 Answer 1

up vote 20 down vote accepted

With the standard xcolor package, you can set the background color of your document using \pagecolor, and the text color using \color.

Here's a sample using the colors from your screenshot:

\documentclass[11pt]{article}
\usepackage{xcolor}

\definecolor{myBGcolor}{HTML}{F6F0D6}
\definecolor{myTextcolor}{HTML}{4F452C}
\pagecolor{myBGcolor}
\color{myTextcolor}

\begin{document} 
When people face an uncertain situation\ldots
\end{document}
share|improve this answer
4  
Sepia color exists; \usepackage[dvipsnames]{xcolor} \color{Sepia} and for the background I like \definecolor{fondpaille}{cmyk}{0,0,0.1,0} \pagecolor{fondpaille!90!black} –  Alain Matthes Jun 19 '12 at 16:13
add comment

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.