TransWikia.com

Using different page numbering on bookclass, oneside with separate tex files

TeX - LaTeX Asked on May 7, 2021

I’m splitting tex file into 3 part. Part 1 (only cover), Part 2 (Acknowlegement, Foreword), Part 3 (Chapter, Section). And using include{..} for Part 2-3 into Part 1.

So this is my code on my first file:

documentclass[a4paper, 12pt, oneside, openany]{book}
 usepackage[a4paper, inner=4cm, outer=3cm, top=4cm, bottom=3cm]{geometry}
 begin{document}
 thispagestyle{empty} %cover will not showing page number
 frontmatter
    %cover code...
    %acknowlegment, Foreword
    %i want on this part using roman numerals on the bottom center
 mainmatter
    %Place for chapter and section
    % i want to use arabic numeral on the right of top corner
    include{chapter1}
    include{chapter2}
 end{document}

And this is my page numbering template supposed to be:

  1. Cover doesn’t have page number.

  2. Page numbering on the first part using roman numerals only "on the bottom of the page.

  3. Page numbering on the main contents (Chapter 1,2,3,..), using arabic numerals only "on the top right corner"

  4. Page numbering on each first chapter not shown. (Blank page number but still counted)

So, the page numbering must be something like:

ii,iii,iv,v, 2,3,4, 6,7,8,9, 11,…

Page i is the cover

Page 1 is chapter 1

Page 5 is chapter 2

Page 10 is chapter 3, and so on..

I know, actually my template is similar to page numbering on latex by default except each chapter is blank. But, my problem is when i’m using documentclass[a4paper, 12pt, oneside, openany]{book} instead of documentclass[a4paper, 12pt]{book} makes my frontmatter and mainmatter not work, and on the second page only shows arabic numerals instead of roman.

Let me know if my question is so unclear.

Add your own answers!

Ask a Question

Get help from others!

© 2024 TransWikia.com. All rights reserved. Sites we Love: PCI Database, UKBizDB, Menu Kuliner, Sharing RPP