LaTeX forum ⇒ Text FormattingRemove blank page

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

Remove blank page

Postby mike1264 » Thu Jul 24, 2014 8:17 pm

Hi,
For a book layout I am trying to publish a 'copyright page' on a left page and a 'table of contents' on a right page. At the moment my code prints a title page (right) [correct] then adds an empty interleaf page (left) [wrong] then the copyright page (right) [wrong] and a table of contents (left) [wrong]. Can anyone suggest a way of getting rid of the interleaf page?

  1. \documentclass[10pt,english,british,twoside,openany]{scrbook}
  2. \usepackage{blindtext}
  3. \usepackage[automark,headsepline,footsepline=.25pt]{scrlayer-scrpage}
  4. \usepackage{microtype}
  5. \usepackage{ragged2e}
  6. \usepackage{graphicx}
  7. \usepackage[british]{babel}
  8. \pagestyle{scrheadings}
  9. \addtokomafont{pageheadfoot}{\slshape}
  10. \addtokomafont{pagehead}{\tiny}
  11. \addtokomafont{pagefoot}{\small}
  12. \addtokomafont{disposition}{\rmfamily}% rm for chapter headings
  13. \ohead{\leftmark}
  14. \ihead{Ben Francis}
  15. \ofoot{\mytitle}
  16. \cfoot{\pagemark}
  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,paperheight=7.81in,
  23. verbose,
  24. tmargin=0.5in,
  25. bmargin=1in,
  26. inner=0.75in,
  27. outer=0.5in,
  28. headheight=0.1in,
  29. headsep=0.15in,
  30. footskip=0.45in,
  31. twoside}
  32. \newcommand{\mytitle}{Tears in the Rain}
  33.  
  34. \begin{document}
  35. \title{\mytitle}
  36. \frontmatter
  37. \date{}
  38. \maketitle
  39. \begin{titlepage}
  40. \begin{flushright}
  41. {\huge \mytitle}%JB: Those are switches active
  42. \par\end{flushright}{\huge \par}
  43. \end{titlepage}
  44.  
  45.  
  46. \begin{titlepage}
  47. \noindent\includegraphics[width=4in,height=2in]{../images/bensig}
  48. \vspace*{0.5in}
  49. \begin{flushright}
  50. {\Huge{}Tears in the Rain}
  51. \par\end{flushright}{\Huge \par}
  52. \end{titlepage}
  53.  
  54. \begin{titlepage}
  55. \begin{center}
  56. \emph{Copyright}
  57. \end{center}
  58. \begin{center}
  59. \textcopyright{ 2014 Ben Francis All rights reserved.}
  60. \end{center}
  61. \vspace*{0.5in}
  62. \begin{center}
  63. \begin{minipage}[t]{0.5\paperwidth}
  64. No part of this publication may be reproduced, stored in a retrieval system, or transmitted in any form, or by any means;
  65. mechanical, electrical, photocopying, scanning, recording or otherwise, without prior written consent from the publishers. Every effort has been made to contact all copyright holders. The author and publisher will gladly rectify any omissions.
  66. \end{minipage}
  67. \end{center}
  68. \vspace*{0.5in}
  69. \begin{center}
  70. ISBN:
  71. \end{center}
  72. \vspace*{0.2in}
  73. \begin{center}
  74. A CIP Record for this book is available from the British
  75. Library.
  76. \end{center}
  77. \vspace*{0.1in}
  78. \begin{center}
  79. Typeset in \LaTeXe
  80. \end{center}
  81. \end{titlepage}
  82.  
  83. \tableofcontents
  84.  
  85. \addchap{Preface}
  86.  
  87. \emph{Tears in the Rain}, set in the emerging hippie Age of Aquarius in the early nineteen sixties... % input pref.file here
  88.  
  89. \mainmatter
  90. \part{Genesis}
  91. \addchap{One}
  92. \input{./one_one.tex} %need path to files
  93. \input{./one_two.tex}
  94. \input{./one_three.tex}
  95. \input{./one_four.tex}
  96. \addchap{Two}
  97. \input{./two_one.tex}
  98. \input{./one_two.tex}
  99. \input{./one_three.tex}
  100. \input{./one_four.tex}
  101. \part{How it all ended}
  102. % input rest of book
  103. \end{document}


Many thanks,
Mike

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

Postby esdd » Fri Jul 25, 2014 1:47 pm

Use only one titlepage environment for the titlepage and the copyright page and insert \clearpage and \thispagestyle{empty} between them:

  1. \documentclass[10pt,
  2. %english, % removed because of british
  3. british,twoside,openany]{scrbook}
  4. \usepackage{blindtext}
  5. \usepackage[automark,headsepline,footsepline=.25pt]{scrlayer-scrpage}
  6. \usepackage{microtype}
  7. \usepackage{ragged2e}
  8. \usepackage[demo]{graphicx}
  9. \usepackage[british]{babel}
  10. \pagestyle{scrheadings}
  11. \addtokomafont{pageheadfoot}{\slshape}
  12. \addtokomafont{pagehead}{\tiny}
  13. \addtokomafont{pagefoot}{\small}
  14. \addtokomafont{disposition}{\rmfamily}% rm for chapter headings
  15. \ohead{\leftmark}
  16. \ihead{Ben Francis}
  17. \ofoot{\mytitle}
  18. \cfoot{\pagemark}
  19. \renewcommand\thepart{\Alph{part}}
  20. \usepackage{fontspec}
  21. \setmainfont{Linux Libertine O}
  22. \renewcommand*{\partpagestyle}{empty}
  23. \usepackage{geometry}
  24. \geometry{paperwidth=5.06in,paperheight=7.81in,
  25. verbose,
  26. tmargin=0.5in,
  27. bmargin=1in,
  28. inner=0.75in,
  29. outer=0.5in,
  30. headheight=12pt,% enlarged as suggested by scrlayer-scrpage
  31. headsep=0.15in,
  32. footskip=0.45in,
  33. twoside}
  34. \newcommand{\mytitle}{Tears in the Rain}
  35.  
  36. \begin{document}
  37. \title{\mytitle}
  38. \author{}% avoid the missing author warning
  39. \date{}
  40. \frontmatter
  41. \maketitle
  42. \begin{titlepage}
  43. \begin{flushright}
  44. {\huge \mytitle}
  45. \par\end{flushright}{\huge \par}
  46. \end{titlepage}
  47.  
  48.  
  49. \begin{titlepage}
  50. \noindent\includegraphics[width=4in,height=2in]{../images/bensig}
  51. \vspace*{0.5in}
  52. \begin{flushright}
  53. {\Huge{}Tears in the Rain}
  54. \par\end{flushright}{\Huge \par}
  55. %\end{titlepage}
  56. %
  57. %\begin{titlepage}
  58. \clearpage % added code
  59. \thispagestyle{empty} % added code
  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 in a retrieval system, or transmitted in any form, or by any means;
  70. mechanical, electrical, photocopying, scanning, recording or otherwise, without prior written consent from the publishers. Every effort has been made to contact all copyright holders. The author and publisher will gladly rectify any omissions.
  71. \end{minipage}
  72. \end{center}
  73. \vspace*{0.5in}
  74. \begin{center}
  75. ISBN:
  76. \end{center}
  77. \vspace*{0.2in}
  78. \begin{center}
  79. A CIP Record for this book is available from the British
  80. Library.
  81. \end{center}
  82. \vspace*{0.1in}
  83. \begin{center}
  84. Typeset in \LaTeXe
  85. \end{center}
  86. \end{titlepage}
  87.  
  88. \tableofcontents
  89.  
  90. \addchap{Preface}
  91.  
  92. \emph{Tears in the Rain}, set in the emerging hippie Age of Aquarius in the early nineteen sixties... % input pref.file here
  93.  
  94. \mainmatter
  95. \part{Genesis}
  96. \addchap{One}
  97.  
  98. \end{document}


Best regards
Elke

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

Postby mike1264 » Fri Jul 25, 2014 2:20 pm

Hi Elke,

Thank you very much indeed. Your suggestion works brilliantly!

Much appreciated,
Mike

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

Postby mike1264 » Fri Jul 25, 2014 2:38 pm

Elke,
One small question - how do I insert a blank page before a 'part' page in the same document?

Thanks,
Mike

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

Postby esdd » Sat Jul 26, 2014 8:10 am

If the part page should be a right hand page:

  1. ...
  2. \cleardoubleoddpage
  3. \part{Part title}
  4. %\cleardoubleoddpage
  5. ...


Best regards
Elke


Return to “Text Formatting”

Who is online

Users browsing this forum: No registered users and 3 guests