表紙、概要、序文、謝辞を含むレポートがあります。これらのページには番号が付けられていません。残りのページにはいくつかの章が含まれており、これらのページにはすべて番号が付けられています。しかし、今日、表紙と概要の間に 2 つの PDF 情報ページを追加しました。そのため、ページ番号がおかしくなりました。紙の上では、これらのページには番号が印刷されていないため、すべて問題ありませんが、PDF リーダーを使用してデジタル形式でドキュメントを表示すると、ページ番号は最初の PDF ページから 1 から始まり、次に含まれる PDF ページは 2 ページ目になります。元のドキュメントの要約、序文、謝辞のページはすべて 1 ページ目になっています。
このような:
[code]
Frontpage = {page 1}
[Included PDF1] = Page 2
[Included PDF2] = Page 3
Abstract = Page 1
Preface = Page 1
Acknowledgement = Page 2
TOC = Page 3
[/code]
以前は TOC までのすべてのページに番号が付けられていませんでしたが、現在は明らかに間違った値のページ番号が付けられています。\pdfinclude コマンドが原因であると確信しています。番号付けは謝辞または TOC ページから開始し、カウンターをリセットせずに続行したいと思います。以前はそのようにしていましたが、組み込まれた PDF ページによって何らかの理由で番号付けが乱れ、番号付けされていないページにページ番号 1 が強制的に付けられます。
これを次のように通常のページ番号に戻すにはどうすればよいですか?
[code]
Frontpage = {no page number}
[Included PDF1] = {no page number}
[Included PDF2] = {no page number}
Abstract = Page {no page number}
Preface = Page 1
Acknowledgement = Page 2
TOC = Page 3
[/code]
最小限のコード例:
[code]
\documentclass[12pt]{report}
\usepackage{hyperref}
\usepackage{pdfpages}
\begin{document}
\input{./texfrontpage.tex}
\includepdf[pages={1,2}]{./pdf/information-page-one.pdf, ./pdf/information-page-two.pdf}
\begin{abstract}
Interesting stuff.
\end{abstract}
\chapter*{Preface}
\addcontentsline{toc}{section}{Preface}
\chapter*{Acknowledgement}
\addcontentsline{toc}{section}{Acknowledgement}
\tableofcontents
\chapter{Introduction}
\chapter{Background}
\chapter{Results}
\chapter{Conclusion}
\end{document}
[/code]
明確に言うと、含まれている 2 つの PDF ファイルのページ番号を含めたり、ページ番号をリセットしたりするつもりはありません。ページ番号は、謝辞の序文ページからカウントを開始したいのです。これは、ページ番号 1 を持つ最初の実際のページである必要があります。それより前のすべてのページにはページ番号が付いてはなりません。
答え1
ここに解決策があります\pagenumbering{gobble}
。\pagenumbering{arabic}
\documentclass[12pt]{report}
\usepackage{hyperref}
\usepackage{pdfpages}
\begin{document}
\pagenumbering{gobble}
\input{./texfrontpage.tex}
\includepdf[pages={1,2}]{./pdf/information-page-one.pdf, ./pdf/information-page-two.pdf}
\begin{abstract}
Interesting stuff.
\end{abstract}
\pagenumbering{arabic}
\chapter*{Preface}
\addcontentsline{toc}{section}{Preface}
\chapter*{Acknowledgement}
\addcontentsline{toc}{section}{Acknowledgement}
\tableofcontents
\chapter{Introduction}
\chapter{Background}
\chapter{Results}
\chapter{Conclusion}
\end{document}