문서의 첫 번째 페이지에 배치해야 하는 큰 바닥글이 있습니다. 이를 맞추기 위해 기하학 패키지를 사용하고 아래쪽 여백을 늘렸습니다.
머리글/바닥글 조작을 위해 fancyhdr
. 텍스트의 두 번째 페이지가 시작되는 위치를 사용하거나 추측하지 않고 텍스트 페이지 \newgeometry{bottom=2cm}
에서 다시 사용하려면 어떻게 해야 합니까 ?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}.
첫 번째 페이지는 다음과 같습니다.
그리고 두 번째 페이지에는 불필요하게 큰 바닥글 공간이 있습니다.
답변1
패키지 afterpage
는 당신이 찾고 있는 것을 정확하게 수행합니다. 3cm
첫 번째 페이지와 (예를 들어) 다른 곳에서는 아래쪽 여백 만 원하므로 기본 레이아웃을 사용 하고 첫 번째 페이지에서만 사용하는 2cm
것이 좋습니다 (다음에 in ).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:
2 쪽: