LaTeX forum ⇒ Text FormattingInsert blank page at start of document

Information and discussion about LaTeX's general text formatting features (e.g. bold, italic, enumerations, ...)
mike1264
Posts: 27
Joined: Wed Jul 24, 2013 6:07 pm

Insert blank page at start of document

Postby mike1264 » Thu Jul 24, 2014 12:58 pm

I would like a title page to appear on a right-side page, following a blank page on the left side,in a book set up to start chapters on any page.

  1. \documentclass[10pt,english,british,twoside,openany]{scrbook}
  2. \usepackage{blindtext}
  3. \usepackage[automark,headsepline,footsepline=.25pt]{scrlayer-scrpage}
  4. \pagestyle{scrheadings}
  5. \addtokomafont{pageheadfoot}{\slshape}
  6. \addtokomafont{pagehead}{\tiny}
  7. \addtokomafont{pagefoot}{\small}
  8. \addtokomafont{disposition}{\rmfamily}%JB: rm for chapter headings
  9. \ohead{\leftmark}
  10. \ihead{Ben Francis}
  11. \ofoot{\mytitle}
  12. \cfoot{\pagemark}
  13. \usepackage{microtype}
  14. \usepackage{ragged2e}
  15. \usepackage{graphicx}
  16. \usepackage[british]{babel}
  17. \renewcommand\thepart{\Alph{part}}
  18. \usepackage{fontspec}
  19. \setmainfont{Linux Libertine O}%JB: Just as an example
  20. \renewcommand*{\partpagestyle}{empty}
  21. \usepackage{geometry}
  22. \geometry{paperwidth=5.06in,
  23. paperheight=7.81in,
  24. verbose,
  25. tmargin=0.5in,
  26. bmargin=1in,
  27. inner=0.75in,
  28. outer=0.5in,
  29. headheight=0.1in,
  30. headsep=0.15in,
  31. footskip=0.45in,
  32. twoside}
  33. \newcommand{\mytitle}{Tears in the Rain}
  34.  
  35. \begin{document}
  36. [b]%Blank page needed to appear here to push title to the right hand page[/b]
  37. \title{\mytitle}
  38.  
  39. \frontmatter
  40. \date{}
  41. \maketitle
  42. \begin{titlepage}
  43. \begin{flushright}
  44. {\huge \mytitle}%JB: Those are switches active
  45. %in the current group
  46. % \vspace{0.5in}
  47. % \huge{\raisebox{\depth}{\scalebox{1}[-1]{\mytitle}}} \par\bigskip
  48. % \par\end{flushright}{\huge \par}
  49. \end{titlepage}
  50.  
  51. \begin{titlepage}
  52. %\noindent\includegraphics[width=4in,height=2in]{bensig}
  53. \vspace*{0.5in}
  54. \begin{flushright}
  55. {\Huge{}Tears in the Rain}
  56. \par\end{flushright}{\Huge \par}
  57. \end{titlepage}
  58.  
  59. \begin{titlepage}
  60. \begin{center}
  61. \emph{Copyright}
  62. \end{center}
  63. \begin{center}
  64. \textcopyright{ 2014 Ben Francis All rights reserved.}
  65. \end{center}
  66. \vspace*{0.5in}
  67. \begin{center}
  68. \begin{minipage}[t]{0.5\paperwidth}
  69. No part of this publication may be reproduced, stored
  70. in a retrieval system, or transmitted in any form, or by any means;
  71. mechanical, electrical, photocopying, ... rest of text
  72. \end{minipage}
  73. \end{center}
  74. \vspace*{0.5in}
  75. \begin{center}
  76. ISBN:
  77. \end{center}
  78. \vspace*{0.2in}
  79. \begin{center}
  80. A CIP Record for this book is available from the British
  81. Library.
  82. \end{center}
  83. \vspace*{0.1in}
  84. \begin{center}
  85. Typeset in \LaTeXe
  86. \end{center}
  87. \end{titlepage}
  88.  
  89. \tableofcontents
  90.  
  91. \addchap{Preface}
  92.  
  93. \emph{Tears in the Rain},
  94. set in the emerging hippie Age of Aquarius in the early nineteen
  95. sixties... \marginpar{The times of Love, Peace and Music}
  96. \blindtext[3]
  97.  
  98. \mainmatter
  99. \part{How it all began}
  100. \addchap{Genesis}
  101. \input{./one_one.tex}
  102. \input{./one_two.tex}
  103. \input{./one_three.tex}
  104. \input{./one_four.tex}
  105. \part{How it all ended}
  106. \blinddocument
  107. \blinddocument
  108. \end{document}


Many thanks,
Mike
Last edited by Stefan Kottwitz on Thu Jul 24, 2014 11:53 pm, edited 1 time in total.
Reason: code marked

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

Postby Johannes_B » Thu Jul 24, 2014 2:24 pm

I have tested your example (correcting one little mistake and deleting the input-lines).

All title pages are on right hand pages (odd nunmbers). In the main part, some start at even pages (left hand side).
The smart way: Calm down and take a deep breath, read posts and provided links attentively, try to understand and ask if necessary.

mike1264
Posts: 27
Joined: Wed Jul 24, 2013 6:07 pm

Postby mike1264 » Thu Jul 24, 2014 2:47 pm

Hi Johannes_B ,

Thanks - I wonder if my pdf viewer is reversing the pages :oops: ... hmmm will check.

Mike

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

Postby Johannes_B » Thu Jul 24, 2014 2:56 pm

Set the outer margin to 1.5in, maybe even load package showframe. With the extreme value, it is much much easier to spot the difference.
The smart way: Calm down and take a deep breath, read posts and provided links attentively, try to understand and ask if necessary.

mike1264
Posts: 27
Joined: Wed Jul 24, 2013 6:07 pm

Postby mike1264 » Thu Jul 24, 2014 3:15 pm

Thanks done! My pdf viewer (inside TeXmaker) is reversing the pages :? When I view the same document in an external pdf viewer the pages are in the right order and the right place.

Mike

esdd
Posts: 36
Joined: Sat Jan 25, 2014 9:13 pm

Postby esdd » Thu Jul 24, 2014 3:29 pm

Your copyright information are on a right hand page and the table of contents starts on a left hand page. Do you want this?
If not: there are additional commands (\extratitle,\uppertitleback, \lowertitleback,...) to format the title pages. Have a look at the KOMA-Script documentation.

mike1264
Posts: 27
Joined: Wed Jul 24, 2013 6:07 pm

Postby mike1264 » Thu Jul 24, 2014 3:52 pm

Thanks - will have a look.

Mike


Return to “Text Formatting”

Who is online

Users browsing this forum: No registered users and 4 guests