签名行和问候之间的空间——增加页脚和文本之间的可用空间

签名行和问候之间的空间——增加页脚和文本之间的可用空间

我要提交一封求职信,我发现这个结尾的格式和风格我非常喜欢;但是,由于某种原因,我无法强制将签名行和问候之间的空间变大。

理想情况下,这也意味着减少正文和页脚之间的空白空间;有人知道如何做到这一点吗?提前谢谢!

供您参考,我正在使用该包fancyhdr

请参阅下面的代码片段以更好地理解该问题 在此处输入图片描述

以及使用的代码

\documentclass[12pt]{article}

\usepackage{graphicx} 
\usepackage[inkscapearea=page]{svg} 

\usepackage[
    letterpaper,
    margin=1in,
    headsep=.5in,
    footskip=.5in,
    showframe
]{geometry}

\usepackage[utf8]{inputenc}
\usepackage[T1]{fontenc}

\usepackage{XCharter}
\usepackage{hyperref}
\hypersetup{
    colorlinks,
    citecolor=blue,
    filecolor=green,
    linkcolor=teal,
    urlcolor=coolblack,
    linktoc=all
}
\definecolor{teal}{rgb}{0.0, 0.5, 0.5}
\definecolor{coolblack}{rgb}{0.0, 0.18, 0.39}

\usepackage{fancyhdr}

\makeatletter
\def\headrule{{\if@fancyplain\let\headrulewidth\plainheadrulewidth\fi
\hrule\@height\headrulewidth\@width\headwidth
\vskip 2pt
\hrule\@height.5pt\@width\headwidth
\vskip-\headrulewidth
\vskip-1.5pt}}
\makeatother

\fancypagestyle{firstpage}{
    \fancyhf{}
    \renewcommand{\headrulewidth}{1.5pt}
    \renewcommand{\footrulewidth}{1pt}
}

\fancypagestyle{subsequentpages}{
    \fancyhf{}
    \renewcommand{\headrulewidth}{1pt}
    \renewcommand{\footrulewidth}{1pt}
}

\AtBeginDocument{\thispagestyle{firstpage}}
\pagestyle{subsequentpages}

\usepackage{tabto,ulem,booktabs}
\usepackage{textcomp}

\begin{document}

...

\begin{flushright}
    Sincerely yours,\\
    \hfill
    Signature: \parbox[t]{.5\linewidth}{\rule[-3pt]{\linewidth}{.4pt}}
\end{flushright}

\end{document}

答案1

将评论转换为 MWE - 如果符合要求,请接受带有绿色勾号的答案并点赞

在此处输入图片描述

平均能量损失

\documentclass[12pt]{article}

\usepackage{graphicx} 
\usepackage[inkscapearea=page]{svg} 

\usepackage[
letterpaper,
margin=1in,
headsep=.5in,
footskip=.5in,
showframe
]{geometry}

\usepackage[utf8]{inputenc}
\usepackage[T1]{fontenc}

\usepackage{XCharter}
\usepackage{hyperref}
\hypersetup{
    colorlinks,
    citecolor=blue,
    filecolor=green,
    linkcolor=teal,
    urlcolor=coolblack,
    linktoc=all
}
\definecolor{teal}{rgb}{0.0, 0.5, 0.5}
\definecolor{coolblack}{rgb}{0.0, 0.18, 0.39}

\usepackage{fancyhdr}

\makeatletter
\def\headrule{{\if@fancyplain\let\headrulewidth\plainheadrulewidth\fi
        \hrule\@height\headrulewidth\@width\headwidth
        \vskip 2pt
        \hrule\@height.5pt\@width\headwidth
        \vskip-\headrulewidth
        \vskip-1.5pt}}
\makeatother

\fancypagestyle{firstpage}{
    \fancyhf{}
    \renewcommand{\headrulewidth}{1.5pt}
    \renewcommand{\footrulewidth}{1pt}
}

\fancypagestyle{subsequentpages}{
    \fancyhf{}
    \renewcommand{\headrulewidth}{1pt}
    \renewcommand{\footrulewidth}{1pt}
}

\AtBeginDocument{\thispagestyle{firstpage}}
\pagestyle{subsequentpages}

\usepackage{tabto,ulem,booktabs}
\usepackage{textcomp}

\begin{document}
    \vspace*{\fill}
    \begin{flushright}
        Sincerely yours,\\      
        \vspace{1.5\baselineskip}       
        \hfill
        Signature: \parbox[t]{.5\linewidth}{\rule[-3pt]{\linewidth}{.4pt}}
    \end{flushright}
    
\end{document}

相关内容