Skip to content

Instantly share code, notes, and snippets.

Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save kmuto/83b55cf0e2834c149db56a4916a163af to your computer and use it in GitHub Desktop.
Save kmuto/83b55cf0e2834c149db56a4916a163af to your computer and use it in GitHub Desktop.
\renewcommand\frontmatter{%
\if@openright
\cleardoublepage
\else
\clearpage
\fi
\@mainmatterfalse
\setcounter{page}{3}
% \pagenumbering{roman}}
}
\renewcommand\mainmatter{%
\cleardoublepage
\@mainmattertrue
% \pagenumbering{arabic}}
}
@kmuto
Copy link
Author

kmuto commented Jul 1, 2018

jsbookのfrontmatter・mainmatterでのナンバリングまわりは固定になっていて書き換えられないので、まるごと全体を置き換えるしかない。
setcounterして3にしないと、p.1表紙・p.2大扉はカウント外で1になってしまう(これのほうがいいという場合はsetcounterをコメントアウト)。

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment