文字不適合腳線空間

文字不適合腳線空間

對於我的下一篇論文,我收到了老師的一些要求。標題和腳註的佈局應該是這樣的(因為沒有足夠的 Times New Roman 我選擇了 Arial):

\documentclass[a4paper, 11pt, oneside, titlepage]{article}
\usepackage[a4paper, left=2.5cm, right=2.5cm, top=2.5cm, bottom=2cm]{geometry}
\linespread{1.25}   
\usepackage[ansinew]{inputenc}
\usepackage[ngerman]{babel} 
\usepackage[scaled]{helvet}                                                                 
\usepackage[T1]{fontenc}
%\usepackage{lastpage}
\usepackage{fancyhdr}

\pagestyle{fancy}
\fancyhead{}
\renewcommand{\headrulewidth}{0pt} %remove standard line
\fancyfoot[C]{}                    %remove some standard stuff
\fancyfoot[R]{ 
        %page \thepage\addspace of \pageref{LastPage} \\
        %This line seems to work in the original document.
        topic \\
        my name \\
        version: \date{today}
}

\begin{document}
Dies ist ein Test.
\end{document}

文字印在下面的右角,但與腳註下方不完全吻合。在“pdflatex”運行中,您將看到“版本”線超出了定義的 2 公分。

另一部分是「\fancyfoot[R]」部分的字體大小,必須是 9 pt。我知道參數 \footnotesize 已經包含這個大小。

我必須更改哪些設定?

答案1

這些要求似乎是矛盾的:很難有 2 公分的底部邊距來容納所有資訊。

然而,這個想法是這樣的:

\documentclass[a4paper, 11pt, oneside, titlepage]{article}
\usepackage[a4paper,
 left=2.5cm,
 right=2.5cm,
 top=2.5cm,
 bottom=2cm,
 footskip=45pt, % this is needed to make room for the footer
]{geometry}
\usepackage{lastpage}
\usepackage{fancyhdr}
\pagestyle{fancy}
\fancyhead{}
\renewcommand{\headrulewidth}{0pt} %remove standard line
\fancyfoot[C]{}                    %remove some standard stuff
\fancyfoot[R]{\footnotesize
  \begin{tabular}[b]{@{}r@{}}
  topic \\
  my name \\
  version: \today\\[3pt]
  page \thepage\space of \pageref{LastPage} \\
  \end{tabular}
}

\usepackage{lipsum}
\begin{document}
\lipsum[1-10]
\end{document}

\footnotesize設定頁腳字體大小的注意事項。透過 a,tabular您可以更好地控制各種元素。\addspaceLaTeX 核心中沒有命令;為了獲得今天的日期使用\today.該lipsum包僅用於生成文本,該lastpage包是必需的。

在此輸入影像描述

答案2

\documentclass[a4paper, 11pt, oneside, titlepage]{article}
\usepackage[a4paper, left=2.5cm, right=2.5cm, top=2.5cm, bottom=2cm]{geometry}
\usepackage{fancyhdr}
\pagestyle{fancy}
\fancyhead{}
\renewcommand{\headrulewidth}{0pt} %remove standard line
\fancyfoot[C]{}                    %remove some standard stuff
\fancyfoot[R]{ \footnotesize
        page \thepage\\ %\addspace of \pageref{LastPage} \\
        topic \\
        my name \\
        version: \date{today}
}



\begin{document}


Bla, bla.

\end{document}

相關內容