My question concern the line numbers when using the dinbrief package.
I want to have page numbers like page 1 of 2 and so on.
I tried also the LastPage package, but without success.
The dinbrief package is quite old and seems not be maintained... but I love it.
Question: How to get managed the page numbering?
If you have any hints or optimizations, they will be appreciated.
% vim: ts=4 syntax=tex tenc=utf8 fenc=utf8
\NeedsTeXFormat{LaTeX2e}
\documentclass[10pt]{dinbrief}
\usepackage[a4paper, left=2.5cm, width=12.5cm, height=26cm, marginparwidth=5cm, marginparsep=.1ex]{geometry}
\usepackage{fontspec, xunicode, xltxtra}
\usepackage{polyglossia}
\usepackage{lipsum}
\usepackage{fancyhdr}
\usepackage{color}
\usepackage{setspace}
\usepackage[final,protrusion=true]{microtype}
\fancypagestyle{default}{%
\renewcommand{\headrulewidth}{0pt}%
\fancyhf{}%
\fancyfoot[C]{\footnotesize Seite \thepage\ von \pageref{lastpage}}%
}
\setmainfont[Numbers={OldStyle},Ligatures={Common}]{OfficinaSansITCStd}
\setmainlanguage{german}
\definecolor{markcolor}{cmyk}{0.8,.55,0,0.6}
\definecolor{black}{rgb}{.0,.0,.0}
\newcommand{\markkey}[1]{\color{markcolor}{\bfseries\ #1}\color{black}\hspace{1ex}}
\newcommand{\normalspacing}{\setstretch{1.5}}%
\newcommand{\bkbrk}{|\hspace{1ex}}
\backaddress{Vorname Nachname\hspace{2ex}\bkbrk\\Straße 1\hspace{2ex}\bkbrk\\11000 City}
\newcommand\marginalien{
\vspace{7em}
\scriptsize
\raggedleft
%\normalspacing
%\raggedright
Vorname Nachname\\
Straße 1\\
11000 City\\[1em]
\markkey{E-Mail}name@domain.com\\
}
\nobackaddressrule
\signature{Vorname Nachname}
%\place{City}
%\date{2007-10-11}
%\yourmail{}
%\sign{unsere zeichen, unsere Nachricht von}
%\phone{tel}
% \writer{Sachbearbeiter}
\centeraddress
\bottomtext{bottom text}
\nowindowrules
%\windowrules
% Faltmarkierungen
%\nowindowtics
\windowtics
% entsprechend DIN 676 von 1976
%\disabledraftstandard
% entsprechen DIN 676 vom 1991
\enabledraftstandard
%\setaddressllcorner{abstand vom linken rand}
%\setaddressllhpos{abstand vom linken rand}
%\setaddressvpos{abstand vom oberen rand}
%\addresshigh
\addressstd
\subject{\bfseries{Ein Subjekt}}
\begin{document}
\normalspacing
\begin{letter}{Company\\Street 1\\11000 City}
\pagestyle{default}
\marginpar{\marginalien}
\opening{Sehr geehrter Herr Mustermann,}
\lipsum[1]
\closing{Mit freundlichen Grüßen}
\end{letter}
\label{lastpage}
\end{document}



\fancyfoot[C]{\footnotesize Seite \thepage\ von \pageref{lastpage}}%, yes the same for all pages – Jan 23 '14 at 22:50