LaTeX forum ⇒ Theses, Books, Title pagesRemove blank page after custom \part for latex template " The Legrand Orange Book" Topic is solved

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

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

Postby crchmatefis » Tue Dec 13, 2016 3:20 am

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 59 times

Tags:

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

Postby Johannes_B » Tue Dec 13, 2016 9:04 am

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: 3
Joined: Tue Dec 13, 2016 3:11 am

Postby crchmatefis » Tue Dec 13, 2016 7:45 pm

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: 454
Joined: Fri Jun 29, 2012 1:20 am

Postby Vel » Wed Dec 14, 2016 2:13 pm

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: 454
Joined: Fri Jun 29, 2012 1:20 am

Postby Vel » Thu Dec 15, 2016 1:12 pm

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:

  1. %----------------------------------------------------------------------------------------
  2. % PART
  3. %----------------------------------------------------------------------------------------
  4.  
  5. \makeatletter\@openrightfalse
  6.  
  7. \part{Part One}
  8.  
  9. %----------------------------------------------------------------------------------------
  10. % CHAPTER 1
  11. %----------------------------------------------------------------------------------------
  12.  
  13. \chapterimage{chapter_head_2.pdf} % Chapter heading image
  14.  
  15. \chapter{Text Chapter}
  16. \@openrighttrue\makeatother
  17.  
  18. \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: 3
Joined: Tue Dec 13, 2016 3:11 am

Postby crchmatefis » Tue Dec 20, 2016 8:47 pm

Thanks Vel...


Return to “Theses, Books, Title pages”

Who is online

Users browsing this forum: No registered users and 2 guests