我需要使用 openright仅有的在前面的内容。使用
\documentclass[12pt, letterpaper]{book}
\begin{document}
\frontmatter
\chapter{First Chapter at front matter} % This must be page i
\chapter{Second Chapter at front matter} % This must be page iii
\mainmatter
\chapter{First Chapter at main matter} % This must be page 1
\chapter{Second Chapter at main matter} % This must be page 2
\end{document}
我在所有文档中都获得了 openright 并使用
\documentclass[12pt, letterpaper, oneside]{book}
\begin{document}
\frontmatter
\chapter{First Chapter at front matter} % This must be page i
\chapter{Second Chapter at front matter} % This must be page iii
\mainmatter
\chapter{First Chapter at main matter} % This must be page 1
\chapter{Second Chapter at main matter} % This must be page 2
\end{document}
我在所有文档中都得到了 openany。
答案1
在后面添加此内容\frontmatter
:
\makeatletter
\@openrightfalse
\makeatother
代码:
\documentclass[12pt, letterpaper]{book}
\begin{document}
\frontmatter
\chapter{First Chapter at front matter} % This must be page i
\chapter{Second Chapter at front matter} % This must be page iii
\makeatletter
\@openrightfalse
\makeatother
\mainmatter
\chapter{First Chapter at main matter} % This must be page 1
\chapter{Second Chapter at main matter} % This must be page 2
\end{document}