I'm writing a book in LaTeX and I need to do the headers with the publisher's stye. That styles uses an image in every header but with two different texts: the even pages contain the title of the book and the odd pages contain the title of the chapter. It's something like this
And this is what I have for now.
How can I make the headers with an predertmined image but with different texts depending on the chapter?
This is a MWE of my book.
Code: Select all
\documentclass[letterpaper,reqno]{book}
\listfiles
\usepackage{makeidx}
\usepackage[spanish,es-nosectiondot]{babel}
\usepackage[utf8]{inputenc}
\usepackage{infwarerr}
\usepackage{color}
\usepackage{verbatim}
\usepackage[text={168mm,240mm},centering]{geometry}
\usepackage{amssymb,amsmath,amsthm}
\usepackage{epsfig,graphicx,psfrag,float}
\usepackage{ltxcmds}
\usepackage[pdf]{pstricks}
\usepackage{pstricks-add,pst-math,pst-xkey,pst-pdf,auto-pst-pdf}
\usepackage[all]{xy}
\usepackage{tocloft}
\usepackage{fancyhdr}
\usepackage{enumerate}
\usepackage{hyperref}
\makeindex
\renewcommand{\cftchappresnum}{Capítulo }
\renewcommand{\cftchapaftersnum}{}
\renewcommand{\cftchapaftersnumb}{\\ }
\renewcommand{\cftchapnumwidth}{0mm}
\renewcommand{\chaptermark}[1]{\markboth{Algebra}{\chaptername\ \thechapter.\ #1}}
\begin{document}
\pagenumbering{roman}
\tableofcontents
\pagenumbering{arabic}
\addcontentsline{toc}{chapter}{Prefacio}
\include{EnsayoPrefacio}
\include{Ensayos}
\include{Index}
\printindex
\end{document}