2

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}
6
  • 2
    You should use the pagestyle of fancyhdr and not plain: pagestyle{fancy}. Dec 20, 2012 at 12:34
  • Changed but nothing happend
    – user31177
    Dec 20, 2012 at 12:59
  • You won't get a logo on the title page. Add some text after \pagestyle{fancy} and look at page 2. Dec 20, 2012 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. Dec 20, 2012 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. Dec 20, 2012 at 13:17

1 Answer 1

7

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}
1
  • 3
    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, 2012 at 17:34

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .