0

I am customizing this overleaf template for my thesis but I want it two sided. However, if I change oneside to twoside in the book class there is a mysterious first page appearing before the front page, with the number 2 at the bottom. Putting

\cleardoublepage

before including the front page doesn't work. The solution given by @Werner here, that is, to include

usepackage{atbegshi}% http://ctan.org/pkg/atbegshi
\AtBeginDocument{\AtBeginShipoutNext{\AtBeginShipoutDiscard}}

in the preamble, also doesn't work. Increasing the margin inside geometry package settings doesn't work. What can I do? Any help is much appreciated.

As requested by David, I manage to get the very minimal version of the template and the problem comes from the use of \justify from the ragged2e package.

\documentclass[twoside]{book}
\usepackage{ragged2e}
\begin{document}
\justify
\begin{titlepage}
      ...TITLE PAGE...
\end{titlepage}
\end{document}
Filburt
  • 159
  • Apologize @DavidCarlisle, I added a small code with the problem. Thanks for the help. – Filburt Feb 09 '21 at 22:11
  • 1
    actually I was a bit harsh to say no information given you had the link, but still pointing to the external template isn't the most helpful form:-) – David Carlisle Feb 09 '21 at 22:13

2 Answers2

1

\justify is like \center and should never be used in the command form, they are the internal implementations of \begin{justify} and \begin{center}.

The declaration form is \justifying (but should almost never be needed as justification is the default. However \justifying does not cause the extra page.

David Carlisle
  • 757,742
  • That was indeed a misuse of \justifying. This is a related question: https://tex.stackexchange.com/questions/369549/justifying-text-in-overleaf-template – Filburt Feb 09 '21 at 22:31
1

Using \documentclass[11pt,twoside,openright]{book}

(1) Comment %\AtBeginDocument{\AtBeginShipoutNext{\AtBeginShipoutDiscard}}

(2) Do not use \justify

\begin{document}
%\justify
%frontmatter
\frontmatter
\pagestyle{empty} %disable headers and footers
\pagenumbering{roman} %use roman page numbering in the frontmatter

\input{frontmatter/frontpage}

Simon Dispa
  • 39,141