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 :

  1. \documentclass[a4paper,12pt, english]{report}
  2.  
  3. \usepackage{graphicx}
  4. \usepackage{subfigure}
  5. \usepackage{caption}
  6.  
  7.  
  8.  
  9. \usepackage{longtable}
  10. \usepackage{amsfonts,amsthm,amssymb}
  11. \usepackage{fancyhdr}
  12. \usepackage{multirow}
  13. \usepackage{color}
  14. %\usepackage{geometry}
  15. \usepackage[left=1.5in, right=1in, top=1.2in, bottom=1in, includefoot, headheight=20pt]{geometry}
  16.  
  17. \usepackage{lscape}
  18. \usepackage{stmaryrd}
  19.  
  20. \usepackage[utf8]{inputenc}
  21. \usepackage[hyperindex]{hyperref}
  22.  
  23. \usepackage{lettrine}
  24. \usepackage[T1]{fontenc}
  25. \usepackage{eurosym}
  26. \usepackage{fourier}
  27. \usepackage{url}
  28.  
  29. \usepackage{gensymb}
  30. \usepackage{enumerate}
  31. \usepackage{nicefrac}
  32.  
  33. \usepackage{tabu}
  34. \usepackage{array,multirow,makecell}
  35.  
  36. \usepackage[titletoc]{appendix}
  37.  
  38. \usepackage{afterpage}
  39.  
  40.  
  41. %\usepackage[backend=biber,style=chem-rsc,articletitle=true,urldate=iso8601,date=iso8601]{biblatex}
  42. \usepackage[backend=biber, style=numeric, sorting=ynt]{biblatex}
  43. \addbibresource{bibliography.bib}
  44.  
  45.  
  46. %\usepackage{amsmath}
  47. \newcommand*\textfrac[2]{
  48. \frac{\text{#1}}{\text{#2}}
  49. }
  50.  
  51. \usepackage{nomencl,etoolbox,siunitx,ragged2e}
  52.  
  53.  
  54. %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
  55. %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
  56.  
  57. % Header and footer
  58.  
  59. \pagestyle{fancy}
  60.  
  61. \fancyhead{}
  62. \fancyhead[L]{\small{MA Thesis : CFD, Explodrone}}
  63. \fancyhead[R]{\small{\textbf{Page \thepage}}}
  64. \fancyhead[C]{\small{Chapter \thesection }}
  65. \fancyfoot{}
  66. \fancyfoot[L]{\textsc{\small{Nathasha SAMARAKONE}}}
  67. %\fancyfoot[CO,RO]
  68. \rfoot{\small{March -- August 2016}}
  69. %\cfoot{\includegraphics[scale=0.03]{FIGURES/appa/logo_onera.jpg} \includegraphics[scale=0.03]{FIGURES/appa/logo_upmc.png}}
  70.  
  71. \renewcommand{\headrulewidth}{2pt}
  72. %\setlength{\skip\footins}{4cm}
  73. \renewcommand{\footrulewidth}{1pt}
  74.  
  75. %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
  76. %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
  77.  
  78. \usepackage{eso-pic}
  79.  
  80. \newcommand{\HRule}{\rule{\linewidth}{0.5mm}}
  81. \newcommand{\blap}[1]{\vbox to 0pt{#1\vss}}
  82. \newcommand\AtUpperLeftCorner[3]{%
  83. \put(\LenToUnit{#1},\LenToUnit{\dimexpr\paperheight-#2}){\blap{#3}}%
  84.  
  85. }
  86. \newcommand\AtUpperRightCorner[3]{%
  87. \put(\LenToUnit{\dimexpr\paperwidth-#1},\LenToUnit{\dimexpr\paperheight-#2}){\blap{\llap{#3}}}%
  88. }
  89. \vspace{-5.00cm}
  90. \title{\small{a} \\\vspace{0.5cm}\LARGE{ a}}
  91. \author{By \textsc{a} \\ Paris, March -- August 2016}
  92. \date{\today}
  93. \makeatletter
  94.  
  95. %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
  96. \begin{document}
  97.  
  98. \begin{titlepage}
  99. % \AddToShipoutPicture{%
  100. % \AtUpperLeftCorner{1.5cm}{2cm}{\includegraphics[scale=0.1]{FIGURES/appa/logo_onera.jpg}}
  101. % \AtUpperRightCorner{1.5cm}{1.5cm}{\includegraphics[scale=0.13]{FIGURES/appa/logo_upmc.png}}
  102.  
  103. % }
  104.  
  105. \begin{center}
  106. \vspace*{0.7cm}
  107. \textsc{\@title}
  108. \HRule
  109. \vspace*{0.5cm}
  110. \large{\@author}
  111. \end{center}
  112.  
  113. \vspace*{-0.3cm}
  114.  
  115. \vfill
  116.  
  117.  
  118. \begin{flushleft}
  119. Supervisor : \textsc{a}\\
  120. a \\
  121. a \\
  122. a
  123. \end{flushleft}
  124.  
  125. \end{titlepage}
  126.  
  127. %\clearemptydoublepage
  128.  
  129. %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
  130. %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
  131.  
  132. \ClearShipoutPicture
  133.  
  134. \pagenumbering{roman} \setcounter{tocdepth}{2}
  135.  
  136. \afterpage{\null\newpage}
  137.  
  138. \chapter{1}
  139. aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa
  140.  
  141. \end{document}


Enjoy your week !

Coline

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

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: 4044
Joined: Thu Nov 01, 2012 4:08 pm

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

  1. \documentclass[a4paper,12pt, english]{report}
  2.  
  3. \usepackage{graphicx}
  4. \usepackage{subfigure}%JB: Deprecated for a decade, better use subcaption
  5. \usepackage{caption}
  6.  
  7.  
  8.  
  9. \usepackage{longtable}
  10. \usepackage{amsfonts,amsthm,amssymb}
  11. \usepackage{fancyhdr}
  12. \usepackage{multirow}
  13. \usepackage{color}
  14. %\usepackage{geometry}
  15. \usepackage[left=1.5in, right=1in, top=1.2in, bottom=1in, includefoot, headheight=20pt]{geometry}
  16.  
  17. \usepackage{lscape}
  18. \usepackage{stmaryrd}
  19.  
  20. \usepackage[utf8]{inputenc}
  21.  
  22. \usepackage{lettrine}
  23. \usepackage[T1]{fontenc}
  24. \usepackage{eurosym}
  25. \usepackage{fourier}
  26. \usepackage{url}
  27.  
  28. \usepackage{gensymb}
  29. \usepackage{enumerate}
  30. \usepackage{nicefrac}
  31.  
  32. \usepackage{tabu}
  33. \usepackage{array,multirow,makecell}
  34.  
  35. \usepackage[titletoc]{appendix}
  36.  
  37. \usepackage{afterpage}
  38.  
  39.  
  40. %\usepackage[backend=biber,style=chem-rsc,articletitle=true,urldate=iso8601,date=iso8601]{biblatex}
  41. \usepackage[backend=biber, style=numeric, sorting=ynt]{biblatex}
  42. \addbibresource{bibliography.bib}
  43.  
  44.  
  45. %\usepackage{amsmath}
  46. \newcommand*\textfrac[2]{
  47. \frac{\text{#1}}{\text{#2}}
  48. }
  49.  
  50. \usepackage{nomencl,etoolbox,siunitx,ragged2e}
  51.  
  52.  
  53.  
  54. % Header and footer
  55.  
  56. \pagestyle{fancy}
  57.  
  58. \fancyhead{}
  59. \fancyhead[L]{\small MA Thesis : CFD, Explodrone}
  60. \fancyhead[R]{\small \textbf{Page \thepage}}% a bold page number? Who is reading this?
  61. \fancyhead[C]{\small Chapter \thesection }% CHapter Number of Section? Doesn't make any sense at all.
  62. \fancyfoot{}
  63. \fancyfoot[L]{\textsc{\small Nathasha SAMARAKONE}}
  64. %\fancyfoot[CO,RO]
  65. \rfoot{\small{March -- August 2016}}
  66. %\cfoot{\includegraphics[scale=0.03]{FIGURES/appa/logo_onera.jpg} \includegraphics[scale=0.03]{FIGURES/appa/logo_upmc.png}}
  67.  
  68. \renewcommand{\headrulewidth}{2pt}
  69. %\setlength{\skip\footins}{4cm}
  70. \renewcommand{\footrulewidth}{1pt}
  71.  
  72.  
  73. \usepackage{showframe}%JB
  74. \usepackage{blindtext}%JB
  75. \usepackage[hyperindex]{hyperref}%JB I put that at the end of the preamble, where it should be.
  76. \begin{document}
  77.  
  78. \begin{titlepage}
  79. \centering
  80. \vspace*{-15ex}
  81. \includegraphics[scale=0.1]{example-image-1x1}
  82. \hfill
  83. \includegraphics[scale=0.1]{example-image-1x1}
  84.  
  85. \vspace*{3.7cm}
  86. {\scshape {\small Bachelor Report\par} \vspace{0.5cm}{\LARGE The title of the work, probably about some rotating stuff \par}}
  87. \rule{\linewidth}{0.5mm}\par
  88. \vspace*{0.5cm}
  89. {\large
  90. By \textsc{a} \\
  91. Paris, March -- August 2016\par}
  92.  
  93. \vspace*{-0.3cm}
  94.  
  95. \vfill
  96.  
  97.  
  98. \begin{flushleft}
  99. Supervisor : \textsc{a}\\
  100. a \\
  101. a \\
  102. a
  103. \end{flushleft}
  104.  
  105. \end{titlepage}
  106.  
  107. %\clearemptydoublepage % Absolutely useless in a onesided document
  108.  
  109.  
  110.  
  111. \cleardoublepage% Just in case the document is printed twosided sometime
  112. \pagenumbering{roman} \setcounter{tocdepth}{2}
  113.  
  114. %\afterpage{\null\newpage}% What is that supposed to do?
  115.  
  116. \chapter{Wombat}
  117. %aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa %JB What's that supposed to be? Something like the following?
  118. \blindtext[10]
  119.  
  120. \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

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: 4044
Joined: Thu Nov 01, 2012 4:08 pm

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

  1. \documentclass[a4paper,12pt, english]{report}
  2.  
  3. \usepackage{graphicx}
  4. \usepackage{subfigure}%JB: Deprecated for a decade, better use subcaption
  5. \usepackage{caption}
  6.  
  7.  
  8.  
  9. \usepackage{longtable}
  10. \usepackage{amsfonts,amsthm,amssymb}
  11. \usepackage{fancyhdr}
  12. \usepackage{multirow}
  13. \usepackage{color}
  14. %\usepackage{geometry}
  15. \usepackage[left=1.5in, right=1in, top=1.2in, bottom=1in, includefoot, headheight=20pt]{geometry}
  16.  
  17. \usepackage{lscape}
  18. \usepackage{stmaryrd}
  19.  
  20. \usepackage[utf8]{inputenc}
  21.  
  22. \usepackage{lettrine}
  23. \usepackage[T1]{fontenc}
  24. \usepackage{eurosym}
  25. \usepackage{fourier}
  26. \usepackage{url}
  27.  
  28. \usepackage{gensymb}
  29. \usepackage{enumerate}
  30. \usepackage{nicefrac}
  31.  
  32. \usepackage{tabu}
  33. \usepackage{array,multirow,makecell}
  34.  
  35. \usepackage[titletoc]{appendix}
  36.  
  37. \usepackage{afterpage}
  38.  
  39.  
  40. %\usepackage[backend=biber,style=chem-rsc,articletitle=true,urldate=iso8601,date=iso8601]{biblatex}
  41. \usepackage[backend=biber, style=numeric, sorting=ynt]{biblatex}
  42. \addbibresource{bibliography.bib}
  43.  
  44.  
  45. %\usepackage{amsmath}
  46. \newcommand*\textfrac[2]{
  47. \frac{\text{#1}}{\text{#2}}
  48. }
  49.  
  50. \usepackage{nomencl,etoolbox,siunitx,ragged2e}
  51.  
  52.  
  53.  
  54. % Header and footer
  55.  
  56. \pagestyle{fancy}
  57.  
  58. \fancyhead{}
  59. \fancyhead[L]{\small MA Thesis : CFD, Explodrone}
  60. \fancyhead[R]{\small \textbf{Page \thepage}}% a bold page number? Who is reading this?
  61. \fancyhead[C]{\small Chapter \thesection }% CHapter Number of Section? Doesn't make any sense at all.
  62. \fancyfoot{}
  63. \fancyfoot[L]{\textsc{\small Nathasha SAMARAKONE}}
  64. %\fancyfoot[CO,RO]
  65. \rfoot{\small{March -- August 2016}}
  66. %\cfoot{\includegraphics[scale=0.03]{FIGURES/appa/logo_onera.jpg} \includegraphics[scale=0.03]{FIGURES/appa/logo_upmc.png}}
  67.  
  68. \renewcommand{\headrulewidth}{2pt}
  69. %\setlength{\skip\footins}{4cm}
  70. \renewcommand{\footrulewidth}{1pt}
  71.  
  72.  
  73. \usepackage{showframe}%JB
  74. \usepackage{blindtext}%JB
  75. \usepackage[hyperindex]{hyperref}%JB I put that at the end of the preamble, where it should be.
  76. \begin{document}
  77.  
  78. \pagenumbering{alph}
  79. \begin{titlepage}
  80. \centering
  81. \vspace*{-15ex}
  82. \includegraphics[scale=0.1]{example-image-1x1}
  83. \hfill
  84. \includegraphics[scale=0.1]{example-image-1x1}\hspace{-4em}
  85.  
  86. \vspace*{3.7cm}
  87. {\scshape {\small Bachelor Report\par} \vspace{0.5cm}{\LARGE The title of the work, probably about some rotating stuff \par}}
  88. \rule{\linewidth}{0.5mm}\par
  89. \vspace*{0.5cm}
  90. {\large
  91. By \textsc{a} \\
  92. Paris, March -- August 2016\par}
  93.  
  94. \vspace*{-0.3cm}
  95.  
  96. \vfill
  97.  
  98.  
  99. \begin{flushleft}
  100. Supervisor : \textsc{a}\\
  101. a \\
  102. a \\
  103. a
  104. \end{flushleft}
  105.  
  106. \end{titlepage}
  107.  
  108. \null\stepcounter{page}\thispagestyle{empty}
  109. % \clearemptydoublepage % Absolutely useless in a onesided document
  110.  
  111.  
  112.  
  113. \cleardoublepage% Just in case the document is printed twosided sometime
  114. \pagenumbering{roman} \setcounter{tocdepth}{2}
  115.  
  116. %\afterpage{\null\newpage}% What is that supposed to do?
  117.  
  118. \chapter{Wombat}
  119. %aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa %JB What's that supposed to be? Something like the following?
  120. \blindtext[10]
  121.  
  122. \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

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 3 guests