Take the 2-minute tour ×
TeX - LaTeX Stack Exchange is a question and answer site for users of TeX, LaTeX, ConTeXt, and related typesetting systems. It's 100% free, no registration required.

For my next essay, I got some requriements from my teacher. The layout concerning headlines and footlines should be like this (as there is no adequate Times New Roman I chose 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}

The text is printed in the right corner below, but it does not fit completely below the footnotes. In a "pdflatex"- run you will see that the "version" line goes beyond the defined 2cm.

Another part is the font size of the "\fancyfoot[R]" part, which has to be 9 pt. I know that the parameter \footnotesize already contains this size.

Which settings do I have to change?

share|improve this question
1  
welcome to tex.sx. Your question is quite hard to understand, you comment on using Arial but there are no font settings in your supplied code, It is always helpful if you make the examples complete (small) documents so that we can run them. If I run your code I get ! Undefined control sequence. \f@ncyorf -> page \thepage \addspace are you using an additional package that defines this?, please make your example show the problem described. –  David Carlisle Apr 14 '13 at 21:17
1  
To get 9pt text change the 11pt option you are using to 10pt (or just remove as 10pt is the default) then use \small. The other parts of the question need a working example I think. –  David Carlisle Apr 14 '13 at 21:22
add comment

2 Answers

up vote 3 down vote accepted

The requirements seem contradictory: it's quite difficult to have a bottom margin of 2cm where all that information should find its place.

However, here's the idea:

\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}

Notice \footnotesize for setting the font size in the footer. With a tabular you have more control over the various elements. There is no \addspace command in the LaTeX kernel; in order to get today's date use \today. The lipsum package is just for generating text, the lastpage package is required.

enter image description here

share|improve this answer
    
The "footskip" value in the geometry-package is a good start, some adjustments and measurement with a rule will do that (e.g. if you use 45pt you don't see anything of the foot line). Also thank you for the tabular approach. –  PWillms Apr 14 '13 at 21:53
add comment
\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}
share|improve this answer
add comment

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.