PDF を挿入し、その上に章の見出しを配置し​​ます (PDF にはこのために空白が予約されています)

PDF を挿入し、その上に章の見出しを配置し​​ます (PDF にはこのために空白が予約されています)

フォローアッププロジェクトにTrello.com PrintをPDFとして挿入する

最初のページに十分な余白があり、次のページには余白がない PDF を作成しました。すべてのページにページ番号のための十分な余白があります (そして正しく表示されます)。

この余白に を\chapter{PDF Name}表示したいのですが、(現在のように) ほぼ空のページと次のページから始まる PDF は表示されません。 これを実現するにはどうすればよいでしょうか?

\documentclass[11pt]{report}
\usepackage{hyperref}
\usepackage{float}
\usepackage[top=1in, bottom=1in, left=1in, right=1in]{geometry}
\usepackage{titlesec}
\titleformat{\chapter}[display]
{\normalfont\huge\bfseries}{\chaptertitlename\ \thechapter}{20pt}{\Huge}   
\titlespacing*{\chapter}{0pt}{-10pt}{20pt}
\usepackage{pdfpages}

\begin{document}
\appendix
\chapter{Epics \& User Stories}
\label{apx:scrumboard}
\includepdf[pages=-, pagecommand={\thispagestyle{plain}}]{scrumbordExport.pdf}

\end{document}

答え1

最も簡単なのは、次の操作を\includepdf2 回実行することです。

\documentclass[11pt]{report}
\usepackage{hyperref}
\usepackage{float}
\usepackage[top=1in, bottom=1in, left=1in, right=1in]{geometry}
\usepackage{titlesec}
\titleformat{\chapter}[display]
{\normalfont\huge\bfseries}{\chaptertitlename\ \thechapter}{20pt}{\Huge}   
\titlespacing*{\chapter}{0pt}{-10pt}{20pt}
\usepackage{pdfpages}

\begin{document}

\appendix

\includepdf[
  pages=1,
  pagecommand={\chapter{Epics \& User Stories}\label{apx:scrumboard}\thispagestyle{plain}},
]{scrumbordExport.pdf}

\includepdf[
  pages=2-,
  pagecommand={\thispagestyle{plain}},
]{scrumbordExport.pdf}

\end{document}

関連情報