LaTeX style for Leipzig University 'official' letters
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 

116 lines
3.1 KiB

%
% version 1.0 15 january 2018 MH
%
\ProvidesFile{unibrief.lco}[letter-class-option file]
\KOMAoptions{
fontsize=10pt,
foldmarks=MPvb,
backaddress=plain,
pagenumber=footright,
refline=nodate
}
% font stuff
\RequirePackage{iftex}
\ifpdftex
\RequirePackage{libertine}
\RequirePackage[libertine]{newtxmath}
\RequirePackage[T1]{fontenc}
\else\ifxetex
\RequirePackage{fontspec}
\RequirePackage{unicode-math}
\setmainfont[
Extension=.otf,
UprightFont={*-Regular},
BoldFont={*-Bold},
ItalicFont={*-Italic},
BoldItalicFont={*-BoldItalic}]{LibertinusSerif}
\setmathfont[Scale=MatchUppercase]{LibertinusMath-Regular.otf}
\else\ifluatex
\RequirePackage{fontspec}
\RequirePackage{unicode-math}
\setmainfont[
Extension=.otf,
UprightFont={*-Regular},
BoldFont={*-Bold},
ItalicFont={*-Italic},
BoldItalicFont={*-BoldItalic}]{LibertinusSerif}
\setmathfont[Scale=MatchUppercase]{LibertinusMath-Regular.otf}
\fi\fi\fi
\RequirePackage[stretch=10]{microtype}
\RequirePackage{lastpage}
\RequirePackage{graphicx}
% logo
\@addtoplength{firstheadvpos}{4mm}
\setkomavar{fromlogo}{%
\hspace*{-5mm}\includegraphics[width=81mm]{logo}}
\setkomavar{firsthead}{\usekomavar{fromlogo}\hfill}
\setkomavar{backaddress}{Universit{\"a}t Leipzig, Fakult{\"a}t f{\"u}r Mathematik und Informatik, 04081 Leipzig}
\setlength{\oddsidemargin}{\useplength{toaddrhpos}}%
\addtolength{\oddsidemargin}{-1in}%
\setlength{\textwidth}{12.7cm}
\@setplength{locvpos}{\useplength{firstheadvpos}}
\@setplength{locwidth}{46mm}
\@setplength{lochpos}{10mm}
\@setplength{locheight}{27.2cm}
\@setplength{backaddrheight}{1.4cm}
% rechte Spalte
\setkomavar{location}{%
\begin{tabular}[t]{l@{}}
{}\\[2mm]
\textbf{Fakult{\"{a}}t f{\"{u}}r}\\
\textbf{Mathematik und Informatik}\\[2pt]
\textbf{Mathematisches Institut}\\[2pt]
\usekomavar{fromname}
\end{tabular}%
\\[45mm]
{\small
\begin{tabular}[t]{l@{}}
Telefon \usekomavar{fromphone}\\
Telefax \usekomavar{fromfax}\\
\usekomavar{fromemail}\\[12mm]
\usekomavar{date}\\[22mm]
\textbf{Universit{\"a}t Leipzig}\\[1mm]
\textrm{Fakult{\"{a}}t f{\"{u}}r Mathematik}\\
\textrm{und Informatik}\\[1mm]
\textrm{Mathematisches Institut}\\[1mm]
Augustusplatz 10\\[0mm]
04109 Leipzig\\[5mm]
\textbf{Telefon}\\[0mm]
+49\,341\,97-32100\\[5mm]
\textbf{Fax}\\[0mm]
+49\,341\,97-32199\\[5mm]
\textbf{E-Mail}\\[0mm]
matinf@math.uni-leipzig.de\\[5mm]
\textbf{Web}\\[0mm]
www.math.uni-leipzig.de\\[5mm]
\textbf{Postfach intern}\\[0mm]
PF~211101\\[8mm]
\end{tabular}%
}
\vfill
{\usekomafont{pagenumber}{\thepage}|\usekomafont{pagenumber}{\pageref{LastPage}}}
}
% page numbers
\renewcommand{\pagemark}{{\usekomafont{pagenumber}{\thepage}|\usekomafont{pagenumber}{\pageref{LastPage}}}}
\setkomavar{firstfoot}{\hfill}
% signature left aligned
\@setplength{sigindent}{0pt}
\renewcommand{\raggedsignature}{\raggedright}
\endinput
%--------------------------------EOF----------------------------------------------