%%
%% This is file `nxtbrief.lco',
%% generated with the docstrip utility.
%%
%% The original source files were:
%%
%% nxtlatex.dtx  (with options: `nxtbrief')
%% 
%% This is a generated file.
%% 
%% Copyright (C) 2025 Volker Reichenberger.
%% 
%% This file is part of the nxtlatex package.
%% 
%% This file may be distributed and/or modified under the conditions
%% of the LaTeX Project Public License, either version 1.3c of this
%% license or (at your option) any later version.
%% The latest version of this license is in
%%    https://www.latex-project.org/lppl.txt
%% and version 1.3c or later is part of all distributions of LaTeX
%% version 2008 or later.
%% 
\ProvidesFile{nxtbrief.lco}[2026/03/10 v1.0 NXT letter class option]

\KOMAoptions{
  fontsize=12pt,
  foldmarks=MPvb,
  backaddress=plain,
  pagenumber=footright,
  refline=nodate
}

\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}
\RequirePackage{fontawesome}
\RequirePackage[colorlinks=true,linkcolor=]{hyperref}
\RequirePackage[parfill]{parskip}

\@addtoplength{firstheadvpos}{4mm}
\setkomavar{fromlogo}{%
  \hspace*{-5mm}\IfFileExists{logo.png}{%
    \includegraphics[width=81mm]{logo.png}}{}}
\setkomavar{firsthead}{\usekomavar{fromlogo}\hfill}

\setkomavar{backaddress}{%
  Karsten Bier, NXT, Hochschule Reutlingen, 72762 Reutlingen}

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

\setkomavar{location}{%
  \footnotesize
  \begin{tabular}[t]{l@{}}
    {}\\[4mm]
  \end{tabular}%
  \\[85mm]
  {\footnotesize\sffamily
  \begin{tabular}[t]{l@{}}
    \usekomavar{date}\\[22mm]
    \textbf{\usekomavar{fromname}}\\[5mm]
    NXT\\
    Nachhaltigkeit und Technologie\\
    Hochschule Reutlingen\\
    Alteburgstraße 150\\[0mm]
    72762 Reutlingen\\[5mm]
    \faPhoneSquare\\[0mm]
    \usekomavar{fromphone}\\[5mm]
    \Large\faMobile\\[0mm]
    \usekomavar{frommobilephone}\\[5mm]
    \faAt\\[0mm]
    \usekomavar{fromemail}\\[5mm]
    \faHome\\[0mm]
    nxt.reutlingen-university.de
  \end{tabular}%
  }
  \vfill
  {\usekomafont{pagenumber}{\thepage}/\usekomafont{pagenumber}{\pageref{LastPage}}}
}

\renewcommand{\pagemark}{%
  {\usekomafont{pagenumber}{\thepage}/%
   \usekomafont{pagenumber}{\pageref{LastPage}}}}
\setkomavar{firstfoot}{\hfill}

\@setplength{sigindent}{0pt}
\renewcommand{\raggedsignature}{\raggedright}
\endinput
%%
%% End of file `nxtbrief.lco'.
