Theses, Books, Title pagesRemove blank page after custom \part for latex template " The Legrand Orange Book"

Classicthesis, Bachelor and Master thesis, PhD, Doctoral degree
Post Reply
crchmatefis
Posts: 6
Joined: Tue Dec 13, 2016 3:11 am

Remove blank page after custom \part for latex template " The Legrand Orange Book"

Post by crchmatefis »

Hi, I want to know how to remove the blank page that is generated after the \ part command.
thanks for your time.

Attached file with the entire structure of the book
Attachments
book_2.zip
(318.27 KiB) Downloaded 588 times

Recommended reading 2024:

LaTeXguide.org • LaTeX-Cookbook.net • TikZ.org
LaTeX Beginner's Guide LaTeX Cookbook LaTeX TikZ graphics TikZによるLaTeXグラフィックス
User avatar
Johannes_B
Site Moderator
Posts: 4182
Joined: Thu Nov 01, 2012 4:08 pm

Remove blank page after custom \part for latex template " The Legrand Orange Book"

Post by Johannes_B »

Book chapters usually start on a right hand page, meaning an odd-numbered page. You can use option openany and LaTeX will be able to start on left pages as well.
The smart way: Calm down and take a deep breath, read posts and provided links attentively, try to understand and ask if necessary.
crchmatefis
Posts: 6
Joined: Tue Dec 13, 2016 3:11 am

Remove blank page after custom \part for latex template " The Legrand Orange Book"

Post by crchmatefis »

Johannes_B wrote:Book chapters usually start on a right hand page, meaning an odd-numbered page. You can use option openany and LaTeX will be able to start on left pages as well.
Hello,
I tried with openany but not function, I think that when the \part command is left in the odd page, it then generates a blank page. When part is left blank, it does not generate a blank page afterwards. Maybe you can solve that \part does not generate a blank page followed by it does not matter if part is left in even or odd page.

Custom \part it is found in the structure.tex code going from line 362 to 422.
User avatar
Vel
Site Moderator
Posts: 463
Joined: Fri Jun 29, 2012 1:20 am

Remove blank page after custom \part for latex template " The Legrand Orange Book"

Post by Vel »

Hey,

There's 2 \newpage commands in the PART HEADINGS block in structure.tex, on lines 412 and 417. The first is to make sure the part page is a separate page from what follows and the second is if the book is twoside and the second page is even to add an empty page. Remove these as you like!

Cheers,
Vel
Founder and administrator of LaTeXTemplates.com and LaTeXTypesetting.com
User avatar
Vel
Site Moderator
Posts: 463
Joined: Fri Jun 29, 2012 1:20 am

Remove blank page after custom \part for latex template " The Legrand Orange Book"

Post by Vel »

Hey,

Ok the above doesn't actually do what you want to do with the twoside and openany options. I found a solution here: http://stackoverflow.com/questions/1358 ... or-chapter

Do this in main.tex:

Code: Select all

%----------------------------------------------------------------------------------------
%	PART
%----------------------------------------------------------------------------------------

\makeatletter\@openrightfalse

\part{Part One}

%----------------------------------------------------------------------------------------
%	CHAPTER 1
%----------------------------------------------------------------------------------------

\chapterimage{chapter_head_2.pdf} % Chapter heading image

\chapter{Text Chapter}
\@openrighttrue\makeatother 

\section{Paragraphs of Text}\index{Paragraphs of Text}
I tested it in the latest version of the template and it works, you will have to do it per \part command.

Cheers,
Vel
Founder and administrator of LaTeXTemplates.com and LaTeXTypesetting.com
crchmatefis
Posts: 6
Joined: Tue Dec 13, 2016 3:11 am

Remove blank page after custom \part for latex template " The Legrand Orange Book"

Post by crchmatefis »

Thanks Vel...
crchmatefis
Posts: 6
Joined: Tue Dec 13, 2016 3:11 am

Remove blank page after custom \part for latex template " The Legrand Orange Book"

Post by crchmatefis »

Hi Vel,

I tell you that there is a warning in this template that I have not been able to solve. When compiling I have the following warning; Label multiply defined, I can't use references because when I use them I get numerically disordered references. How do I solve the problem of references?
crchmatefis
Posts: 6
Joined: Tue Dec 13, 2016 3:11 am

Remove blank page after custom \part for latex template " The Legrand Orange Book"

Post by crchmatefis »

crchmatefis wrote:Thanks Vel...
I tell you that there is a warning in this template that I have not been able to solve. When compiling I have the following warning; Label multiply defined, I can't use references because when I use them I get numerically disordered references. How do I solve the problem of references?
crchmatefis
Posts: 6
Joined: Tue Dec 13, 2016 3:11 am

Remove blank page after custom \part for latex template " The Legrand Orange Book"

Post by crchmatefis »

Vel wrote:Hey,

Ok the above doesn't actually do what you want to do with the twoside and openany options. I found a solution here: http://stackoverflow.com/questions/1358 ... or-chapter

Do this in main.tex:

Code: Select all

%----------------------------------------------------------------------------------------
%	PART
%----------------------------------------------------------------------------------------

\makeatletter\@openrightfalse

\part{Part One}

%----------------------------------------------------------------------------------------
%	CHAPTER 1
%----------------------------------------------------------------------------------------

\chapterimage{chapter_head_2.pdf} % Chapter heading image

\chapter{Text Chapter}
\@openrighttrue\makeatother 

\section{Paragraphs of Text}\index{Paragraphs of Text}
I tested it in the latest version of the template and it works, you will have to do it per \part command.

Cheers,
Vel
I tell you that there is a warning in this template that I have not been able to solve. When compiling I have the following warning; Label multiply defined, I can't use references because when I use them I get numerically disordered references. How do I solve the problem of references?
Post Reply