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.

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

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

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.
http://tex.stackexchange.com/questions/108745/text-does-not-fit-foot-line-space
tex.stackexchange.com
crawl=CC-MAIN-2016-26
78898
application/http; msgtype=response
sha1:ZEUG7BYEC4VSFIOHK6EFJ3MHFERL7IQM
<urn:uuid:0fdc65fa-dcc8-4915-91f9-5fbfed8cdcce>
2016-06-28T13:15:47Z
151.101.129.69
sha1:2LQEVCVQB73SHYC75O3WZDI65YUBIDW6
<urn:uuid:f62903e8-732b-494f-988f-fff032485e53>
http://tex.stackexchange.com/questions/108745/text-does-not-fit-foot-line-space
response
<urn:uuid:40598c48-ef73-4765-8eaf-738c218a135b>
robots: classic
hostname: ip-10-164-35-72.ec2.internal
software: Nutch 1.6 (CC)/CC WarcExport 1.0
isPartOf: CC-MAIN-2016-26
operator: CommonCrawl Admin
description: Wide crawl of the web for June 2016
publisher: CommonCrawl
format: WARC File Format 1.0
conformsTo: http://bibnum.bnf.fr/WARC/WARC_ISO_28500_version1_latestdraft.pdf