在以下设置中如何使 footskip 为零?

在以下设置中如何使 footskip 为零?

在以下设置中如何使 footskip 为零?

\documentclass[a4paper,11pt]{scrartcl}
\usepackage[utf8]{inputenc} 
\usepackage[english]{babel}
\usepackage{fancyhdr}


\renewcommand{\footrulewidth}{0pt}
\fancyhf{}
\pagestyle{fancy}
\fancyhead[R]{Page \thepage}
\fancyhead[L]{\nouppercase{\leftmark}}

答案1

我不确定,但我猜您想减少底部边距?

使用最新版本的 KOMA-Script,您可以将其设置usegeometry为类选项。然后,您可以加载geometry并设置footskip=0pt或选项nofoot

\documentclass[a4paper,11pt,
  usegeometry% <- added
]{scrartcl}
\usepackage[utf8]{inputenc} 
\usepackage[english]{babel}
\usepackage[footskip=0pt]{geometry}% <- added
\usepackage{fancyhdr}

\fancyhf{}
\pagestyle{fancy}
\fancyhead[R]{Page \thepage}
\fancyhead[L]{\nouppercase{\leftmark}}

%\usepackage{showframe}% to show the page layout
\usepackage{blindtext}% only for dummy text
\begin{document}
The footskip is \the\footskip.

\Blinddocument
\end{document}

但这不会改变底部边距的大小。所以我想你想做类似的事情

\documentclass[a4paper,11pt,
  usegeometry% <- added
]{scrartcl}
\usepackage[utf8]{inputenc} 
\usepackage[english]{babel}
\usepackage[nofoot,
  bottom=2cm% <-
]{geometry}% <- added
\usepackage{fancyhdr}

\fancyhf{}
\pagestyle{fancy}
\fancyhead[R]{Page \thepage}
\fancyhead[L]{\nouppercase{\leftmark}}

%\usepackage{showframe}% to show the page layout
\usepackage{blindtext}% only for dummy text
\begin{document}

The footskip is \the\footskip.

\Blinddocument
\end{document}

结果:

在此处输入图片描述

相关内容