LaTeX forum ⇒ Theses, Books, Title pagesNot make header and footer appear on blankpages Topic is solved

Classicthesis, Bachelor and Master thesis, PhD, Doctoral degree
Colin93
Posts: 57
Joined: Mon Apr 04, 2016 2:55 pm

Not make header and footer appear on blankpages

Postby Colin93 » Thu Jul 07, 2016 3:52 pm

Hi everyone

I'm currently writing my MA thesis. I'd like to have an empty page after my title page but without the header and footer appearing... I've tried moving away the commands that make the header and footer but to no avail... What should I do ? Here's a sample of my code :

\documentclass[a4paper,12pt, english]{report}

\usepackage{graphicx}
\usepackage{subfigure}
\usepackage{caption}



\usepackage{longtable}
\usepackage{amsfonts,amsthm,amssymb}
\usepackage{fancyhdr}
\usepackage{multirow}
\usepackage{color}
%\usepackage{geometry}
\usepackage[left=1.5in, right=1in, top=1.2in, bottom=1in, includefoot, headheight=20pt]{geometry}

\usepackage{lscape}
\usepackage{stmaryrd}

\usepackage[utf8]{inputenc}
\usepackage[hyperindex]{hyperref}

\usepackage{lettrine}
\usepackage[T1]{fontenc}
\usepackage{eurosym}
\usepackage{fourier}
\usepackage{url}

\usepackage{gensymb}
\usepackage{enumerate}
\usepackage{nicefrac}

\usepackage{tabu}
\usepackage{array,multirow,makecell}

\usepackage[titletoc]{appendix}

\usepackage{afterpage}


%\usepackage[backend=biber,style=chem-rsc,articletitle=true,urldate=iso8601,date=iso8601]{biblatex}
\usepackage[backend=biber, style=numeric, sorting=ynt]{biblatex}
\addbibresource{bibliography.bib}
 

%\usepackage{amsmath}
\newcommand*\textfrac[2]{
  \frac{\text{#1}}{\text{#2}}
}

\usepackage{nomencl,etoolbox,siunitx,ragged2e}


%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%

% Header and footer

\pagestyle{fancy}

\fancyhead{}
\fancyhead[L]{\small{MA Thesis : CFD, Explodrone}}
\fancyhead[R]{\small{\textbf{Page \thepage}}}
\fancyhead[C]{\small{Chapter \thesection }}
\fancyfoot{}
\fancyfoot[L]{\textsc{\small{Nathasha SAMARAKONE}}}
%\fancyfoot[CO,RO]
\rfoot{\small{March -- August 2016}}
%\cfoot{\includegraphics[scale=0.03]{FIGURES/appa/logo_onera.jpg} \includegraphics[scale=0.03]{FIGURES/appa/logo_upmc.png}}

\renewcommand{\headrulewidth}{2pt}
%\setlength{\skip\footins}{4cm}
\renewcommand{\footrulewidth}{1pt}

%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%

\usepackage{eso-pic}
 
\newcommand{\HRule}{\rule{\linewidth}{0.5mm}}
\newcommand{\blap}[1]{\vbox to 0pt{#1\vss}}
\newcommand\AtUpperLeftCorner[3]{%
\put(\LenToUnit{#1},\LenToUnit{\dimexpr\paperheight-#2}){\blap{#3}}%

}
\newcommand\AtUpperRightCorner[3]{%
\put(\LenToUnit{\dimexpr\paperwidth-#1},\LenToUnit{\dimexpr\paperheight-#2}){\blap{\llap{#3}}}%
}
\vspace{-5.00cm}
\title{\small{a} \\\vspace{0.5cm}\LARGE{ a}}
\author{By \textsc{a} \\ Paris,  March -- August 2016} 
\date{\today}
\makeatletter

%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
\begin{document}

\begin{titlepage}
 %   \AddToShipoutPicture{%
%      \AtUpperLeftCorner{1.5cm}{2cm}{\includegraphics[scale=0.1]{FIGURES/appa/logo_onera.jpg}}
%      \AtUpperRightCorner{1.5cm}{1.5cm}{\includegraphics[scale=0.13]{FIGURES/appa/logo_upmc.png}}
      
%    }
 
    \begin{center}
        \vspace*{0.7cm}
        \textsc{\@title}
        \HRule
        \vspace*{0.5cm}
        \large{\@author} 
    \end{center}
 
    \vspace*{-0.3cm}

\vfill


\begin{flushleft}
Supervisor : \textsc{a}\\
a \\
a \\
a
\end{flushleft}

\end{titlepage}

%\clearemptydoublepage

%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%

\ClearShipoutPicture

\pagenumbering{roman} \setcounter{tocdepth}{2}

\afterpage{\null\newpage}

\chapter{1}
aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa

\end{document}


Enjoy your week !

Coline

Recommended reading 2021:

LaTeXguide.org • LaTeX-Cookbook.net
LaTeX Beginner's Guide LaTeX Cookbook
User avatar
Johannes_B
Site Moderator
Posts: 4183
Joined: Thu Nov 01, 2012 4:08 pm

Not make header and footer appear on blankpages

Postby Johannes_B » Sun Jul 10, 2016 12:02 pm

I don't think the headers and footers are your problem. There isn't supposed to be a blank page to begin with. What are you trying to achieve in the loong run? Do you want to print on both sides of the paper?

Regarding the titlepage, please have a look at How to custmise my titlepage.
The smart way: Calm down and take a deep breath, read posts and provided links attentively, try to understand and ask if necessary.

User avatar
Johannes_B
Site Moderator
Posts: 4183
Joined: Thu Nov 01, 2012 4:08 pm

Not make header and footer appear on blankpages

Postby Johannes_B » Sun Jul 10, 2016 12:26 pm

\documentclass[a4paper,12pt, english]{report}

\usepackage{graphicx}
\usepackage{subfigure}%JB: Deprecated for a decade, better use subcaption
\usepackage{caption}



\usepackage{longtable}
\usepackage{amsfonts,amsthm,amssymb}
\usepackage{fancyhdr}
\usepackage{multirow}
\usepackage{color}
%\usepackage{geometry}
\usepackage[left=1.5in, right=1in, top=1.2in, bottom=1in, includefoot, headheight=20pt]{geometry}

\usepackage{lscape}
\usepackage{stmaryrd}

\usepackage[utf8]{inputenc}

\usepackage{lettrine}
\usepackage[T1]{fontenc}
\usepackage{eurosym}
\usepackage{fourier}
\usepackage{url}

\usepackage{gensymb}
\usepackage{enumerate}
\usepackage{nicefrac}

\usepackage{tabu}
\usepackage{array,multirow,makecell}

\usepackage[titletoc]{appendix}

\usepackage{afterpage}


    %\usepackage[backend=biber,style=chem-rsc,articletitle=true,urldate=iso8601,date=iso8601]{biblatex}
\usepackage[backend=biber, style=numeric, sorting=ynt]{biblatex}
\addbibresource{bibliography.bib}


    %\usepackage{amsmath}
\newcommand*\textfrac[2]{
\frac{\text{#1}}{\text{#2}}
}

\usepackage{nomencl,etoolbox,siunitx,ragged2e}



      % Header and footer

\pagestyle{fancy}

\fancyhead{}
\fancyhead[L]{\small MA Thesis : CFD, Explodrone}
\fancyhead[R]{\small \textbf{Page \thepage}}% a bold page number? Who is reading this?
\fancyhead[C]{\small Chapter \thesection }% CHapter Number of Section? Doesn't make any sense at all.
\fancyfoot{}
\fancyfoot[L]{\textsc{\small Nathasha SAMARAKONE}}
  %\fancyfoot[CO,RO]
\rfoot{\small{March -- August 2016}}
      %\cfoot{\includegraphics[scale=0.03]{FIGURES/appa/logo_onera.jpg} \includegraphics[scale=0.03]{FIGURES/appa/logo_upmc.png}}

\renewcommand{\headrulewidth}{2pt}
  %\setlength{\skip\footins}{4cm}
\renewcommand{\footrulewidth}{1pt}


\usepackage{showframe}%JB 
\usepackage{blindtext}%JB 
\usepackage[hyperindex]{hyperref}%JB I put that at the end of the preamble, where it should be. 
\begin{document}

\begin{titlepage}
	\centering
	\vspace*{-15ex}
\includegraphics[scale=0.1]{example-image-1x1}
\hfill
\includegraphics[scale=0.1]{example-image-1x1}

\vspace*{3.7cm}
{\scshape {\small Bachelor Report\par} \vspace{0.5cm}{\LARGE The title of the work, probably about some rotating stuff \par}}
\rule{\linewidth}{0.5mm}\par
\vspace*{0.5cm}
{\large
By \textsc{a} \\ 
Paris,  March -- August 2016\par}

\vspace*{-0.3cm}

\vfill


\begin{flushleft}
Supervisor : \textsc{a}\\
a \\
a \\
a
\end{flushleft}

\end{titlepage}

  %\clearemptydoublepage % Absolutely useless in a onesided document



\cleardoublepage% Just in case the document is printed twosided sometime
\pagenumbering{roman} \setcounter{tocdepth}{2}

%\afterpage{\null\newpage}% What is that supposed to do? 

\chapter{Wombat}
%aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa %JB What's that supposed to be? Something like the following? 
\blindtext[10]

\end{document}
The smart way: Calm down and take a deep breath, read posts and provided links attentively, try to understand and ask if necessary.

Colin93
Posts: 57
Joined: Mon Apr 04, 2016 2:55 pm

Re: Not make header and footer appear on blankpages

Postby Colin93 » Mon Jul 11, 2016 10:21 am

Hi Johannes_B

I just want a blank page without header and footer after my title page. And then Contents, Figures and the rest. No I don't want to print on both sides of the paper.

Thanks again !


Coline

User avatar
Johannes_B
Site Moderator
Posts: 4183
Joined: Thu Nov 01, 2012 4:08 pm

Not make header and footer appear on blankpages  Topic is solved

Postby Johannes_B » Mon Jul 11, 2016 11:22 am

\documentclass[a4paper,12pt, english]{report}

\usepackage{graphicx}
\usepackage{subfigure}%JB: Deprecated for a decade, better use subcaption
\usepackage{caption}



\usepackage{longtable}
\usepackage{amsfonts,amsthm,amssymb}
\usepackage{fancyhdr}
\usepackage{multirow}
\usepackage{color}
%\usepackage{geometry}
\usepackage[left=1.5in, right=1in, top=1.2in, bottom=1in, includefoot, headheight=20pt]{geometry}

\usepackage{lscape}
\usepackage{stmaryrd}

\usepackage[utf8]{inputenc}

\usepackage{lettrine}
\usepackage[T1]{fontenc}
\usepackage{eurosym}
\usepackage{fourier}
\usepackage{url}

\usepackage{gensymb}
\usepackage{enumerate}
\usepackage{nicefrac}

\usepackage{tabu}
\usepackage{array,multirow,makecell}

\usepackage[titletoc]{appendix}

\usepackage{afterpage}


    %\usepackage[backend=biber,style=chem-rsc,articletitle=true,urldate=iso8601,date=iso8601]{biblatex}
\usepackage[backend=biber, style=numeric, sorting=ynt]{biblatex}
\addbibresource{bibliography.bib}


    %\usepackage{amsmath}
\newcommand*\textfrac[2]{
\frac{\text{#1}}{\text{#2}}
}

\usepackage{nomencl,etoolbox,siunitx,ragged2e}



      % Header and footer

\pagestyle{fancy}

\fancyhead{}
\fancyhead[L]{\small MA Thesis : CFD, Explodrone}
\fancyhead[R]{\small \textbf{Page \thepage}}% a bold page number? Who is reading this?
\fancyhead[C]{\small Chapter \thesection }% CHapter Number of Section? Doesn't make any sense at all.
\fancyfoot{}
\fancyfoot[L]{\textsc{\small Nathasha SAMARAKONE}}
  %\fancyfoot[CO,RO]
\rfoot{\small{March -- August 2016}}
      %\cfoot{\includegraphics[scale=0.03]{FIGURES/appa/logo_onera.jpg} \includegraphics[scale=0.03]{FIGURES/appa/logo_upmc.png}}

\renewcommand{\headrulewidth}{2pt}
  %\setlength{\skip\footins}{4cm}
\renewcommand{\footrulewidth}{1pt}


\usepackage{showframe}%JB 
\usepackage{blindtext}%JB 
\usepackage[hyperindex]{hyperref}%JB I put that at the end of the preamble, where it should be. 
\begin{document}

\pagenumbering{alph}
\begin{titlepage}
	\centering
	\vspace*{-15ex}
\includegraphics[scale=0.1]{example-image-1x1}
\hfill
\includegraphics[scale=0.1]{example-image-1x1}\hspace{-4em}

\vspace*{3.7cm}
{\scshape {\small Bachelor Report\par} \vspace{0.5cm}{\LARGE The title of the work, probably about some rotating stuff \par}}
\rule{\linewidth}{0.5mm}\par
\vspace*{0.5cm}
{\large
By \textsc{a} \\ 
Paris,  March -- August 2016\par}

\vspace*{-0.3cm}

\vfill


\begin{flushleft}
Supervisor : \textsc{a}\\
a \\
a \\
a
\end{flushleft}

\end{titlepage}

\null\stepcounter{page}\thispagestyle{empty}
%  \clearemptydoublepage % Absolutely useless in a onesided document



\cleardoublepage% Just in case the document is printed twosided sometime
\pagenumbering{roman} \setcounter{tocdepth}{2}

%\afterpage{\null\newpage}% What is that supposed to do? 

\chapter{Wombat}
%aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa %JB What's that supposed to be? Something like the following? 
\blindtext[10]

\end{document}
The smart way: Calm down and take a deep breath, read posts and provided links attentively, try to understand and ask if necessary.

Colin93
Posts: 57
Joined: Mon Apr 04, 2016 2:55 pm

Re: Not make header and footer appear on blankpages

Postby Colin93 » Tue Jul 12, 2016 12:19 pm

Thanks again !


Return to “Theses, Books, Title pages”

Who is online

Users browsing this forum: No registered users and 1 guest