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.

I don't see any (big) logo on the title page of document class. I'm using the example of report in TeXnicCenter.

How can I include a logo on all pages?

\documentclass[a4paper,twoside,10pt]{report}

%% Deutsche Anpassungen %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
\usepackage[ngerman]{babel}
\usepackage[T1]{fontenc}
\usepackage[ansinew]{inputenc}

\usepackage{lmodern} %Type1-Schriftart für nicht-englische Texte

\usepackage{graphicx} %%Zum Laden von Grafiken

%%
\usepackage{a4wide} %%Kleinere Seitenränder = mehr Text pro Zeile.
\usepackage{fancyhdr} %%Fancy Kopf- und Fußzeilen
\usepackage{longtable} %%Für Tabellen, die eine Seite überschreiten
\renewcommand{\headrulewidth}{0pt}
\fancyhead[L]{}
\fancyhead[R]{
\includegraphics[width=4cm]{Logo.jpg}
}

\title{ABC}
\author{Dipl.-Ing. ABC}

\begin{document}

\maketitle

\pagestyle{plain} %%Ab hier die Kopf-/Fusszeilen: headings / fancy / ...

\end{document}
share|improve this question
2  
You should use the pagestyle of fancyhdr and not plain: pagestyle{fancy}. –  Ulrike Fischer Dec 20 '12 at 12:34
    
Changed but nothing happend –  user31177 Dec 20 '12 at 12:59
    
You won't get a logo on the title page. Add some text after \pagestyle{fancy} and look at page 2. –  Ian Thompson Dec 20 '12 at 13:08
    
The default cover pages are cr*p, for a reason, because almost everyone's requirements are different, it would be futile. You need to build your own. –  Nicholas Hamilton Dec 20 '12 at 13:17
    
You naturally need also some text for a second page. On the title page the logo will not show as it uses \thispagestyle{empty}. But you can redefine the empty style, see Redefining plain style in fancyhdr documentation. Or use the titlepage environment to design your own title page. –  Ulrike Fischer Dec 20 '12 at 13:17
show 1 more comment

1 Answer

up vote 7 down vote accepted

The report class uses an \pagestyle{empty} for the title page. You need to redefine that page style

\fancypagestyle{empty}{
  \renewcommand{\headrulewidth}{0pt}
  \fancyhead[L]{}
  \fancyhead[R]{\includegraphics[width=4cm]{Logo.jpg}}
}

This gives a MWE of

\documentclass{report}

\usepackage[demo]{graphicx}
\usepackage{fancyhdr}

\fancypagestyle{empty}{
  \renewcommand{\headrulewidth}{0pt}
  \fancyhead[L]{}
  \fancyhead[R]{\includegraphics[width=4cm]{Logo.jpg}}
}

\title{ABC}
\author{Dipl.-Ing. ABC}

\begin{document}
\maketitle
\end{document}
share|improve this answer
2  
TBH I don’t like this approach. I would prefer to define a new fancypagestyle, let’s say justlogo and then add \thispagestyle{justlogo} directly before \maketitle. So if one by any chance needs an empty page, he does not get a bad surprise when applying \thispagestyle{empty}. –  Speravir Dec 20 '12 at 17:34
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.