#Blank page between frontmatter and mainmatter

1 messages · Page 1 of 1 (latest)

real gate
#

Greetings everyone.
I'm here because I'm facing this wee trouble in typesetting a [openany]book class document I'm writing, that it inserts a blank page between the ToC and the first chapter for no apparent reason beyond having the first page of mainmatter start at an odd page:

    \tableofcontents

    \newpage
    \mainmatter
    \pagenumbering{arabic}
    \pagestyle{commonhf}
    %--------------------------------------------------------------------------

    \chapter{Mechanical Changes and Additions}

Now, I can see the good reason behind this, but I'd still like to be able to bypass that, because I expect my document to be printed by mostly enthusiasts and I don't want it to waste their paper.

tropic schooner
#

That is because a book has two sides, as opposed a scrollable "one-sided" PDF

#

ah okay you've edited

real gate
#

I understand, but it's an enthusiast document and I'd hate to see people's paper wasted for no reason, and generally have it seamlessly work on paper of any size. I don't mind going against book formatting conventions for that.

tropic schooner
#

then you should pass oneside to book

#

if saving paper matters then make it more like a scrollable one-sided PDF

real gate
#

Probably should have attached it earlier but here's the full file.

tropic schooner
#

and forget about recto/verso config.

real gate
tropic schooner
#

ok then the next solution i would suggest is to redefine mainmatter

#

which starts with cleardoublepage

#

which is the culprit here

real gate
#

I see. May I request where I can find relevant documentation for the redefinitions?

tropic schooner
#

oh actually don't even worry about redefinition

#
\tableofcontents
    
- \mainmatter
+ \makeatletter \@mainmattertrue \makeatother
\pagenumbering{arabic}
\pagestyle{commonhf}
#

this is all you need

real gate
#

That works. Thanks a lot for this.

tropic schooner
#

no worries

real gate
#

Do I have to do anything to mark this as resolved?

tropic schooner
#

nah let it be

real gate
#

Alright. Thanks again. And have a great day.