次のページに新しい余白を設定するにはどうすればいいですか?

次のページに新しい余白を設定するにはどうすればいいですか?

ドキュメントの最初のページに配置する必要がある大きなフッターがあります。 フッターを収めるために、ジオメトリ パッケージを使用して下余白を増やしました。

ヘッダー/フッターの操作には、 を使用していますfancyhdr。を使用せずに、テキストのページ\newgeometry{bottom=2cm}で を再度使用し、テキストの 2 ページ目がどこから始まるかを推測するにはどうすればよいですか?2nd\newpage

LaTexは次のページでコマンドを実行できますか?

\NextPageExecute{\newgeometry{bottom=3cm}}

問題は解決します。MWE は次のとおりです。

\documentclass{article} 

\usepackage{xcolor}
\usepackage{lipsum}

\usepackage[left=2cm,right=2cm,top=2cm,bottom=3cm]{geometry}

% Header customization, get the reference to the last page. 
\usepackage{fancyhdr, lastpage}
\pagestyle{fancy}

% Header customization, get the reference to the last page. 
\usepackage{fancyhdr, lastpage}
% Fancy pagestyle for the rest of the document.
\pagestyle{fancy}
\lhead{My form 11/17}
\rhead{Page \thepage of \pageref{LastPage}}
% Remove the horizontal line from the header.
\renewcommand{\headrulewidth}{0pt}
% Remove everything from the footline.
\cfoot{}

\definecolor{CUSTOM}{HTML}{00529e}

% Set the header and footer style. 
\fancypagestyle{empty}{%
  \fancyhf{}% Clear header/footer
  \lhead{My form 11/17}
  \rhead{Page \thepage of \pageref{LastPage}}
  \lfoot{
    Something something. \\
    Memo text. \\ 
    Some address information. \\
    Telephone numbers. \\
  }
  \rfoot{
    \textcolor{CUSTOM}{\Huge{HUGE TEXT}}
  }
}


\begin{document}

\thispagestyle{empty}

\lipsum

\lipsum

\lipsum

\end{document}.

最初のページは次のようになります。

ここに画像の説明を入力してください

2 ページ目には、不必要に大きなフッター スペースがあります。

ここに画像の説明を入力してください

答え1

このafterpageパッケージはまさにあなたが求めていることを実行します。3cm最初のページと (たとえば) 他のページのみの下余白が必要なので、デフォルトのレイアウトを にして、最初のページのみで を使用すること2cmをお勧めします(の後に が続きます)。2cm\newgeometry\restoregeometry\clearpage\afterpage

\documentclass{article} 

\usepackage{xcolor}
\usepackage{lipsum}
\usepackage{afterpage}

\usepackage[left=2cm,right=2cm,top=2cm,bottom=2cm]{geometry}% 2cm bottom (usual)

% Header customization, get the reference to the last page. 
\usepackage{fancyhdr, lastpage}
\pagestyle{fancy}

% Header customization, get the reference to the last page. 
\usepackage{fancyhdr, lastpage}
% Fancy pagestyle for the rest of the document.
\pagestyle{fancy}
\lhead{My form 11/17}
\rhead{Page \thepage of \pageref{LastPage}}
% Remove the horizontal line from the header.
\renewcommand{\headrulewidth}{0pt}
% Remove everything from the footline.
\cfoot{}

\definecolor{CUSTOM}{HTML}{00529e}

% Set the header and footer style. 
\fancypagestyle{empty}{%
  \fancyhf{}% Clear header/footer
  \lhead{My form 11/17}
  \rhead{Page \thepage of \pageref{LastPage}}
  \lfoot{
    Something something. \\
    Memo text. \\ 
    Some address information. \\
    Telephone numbers. \\
  }
  \rfoot{
    \textcolor{CUSTOM}{\Huge{HUGE TEXT}}
  }
}

\begin{document}
\newgeometry{left=2cm,right=2cm,top=2cm,bottom=3cm} % Change to 3cm bottom (temp)
\thispagestyle{empty}
\afterpage{\restoregeometry\clearpage}
% CONTENT HERE

\lipsum

\lipsum

\lipsum

\end{document}

ページ1:

ページ1

2ページ:

2ページ

関連情報