\listfiles
\documentclass[paper=a4,parskip=half-,DIV=12]{scrartcl}
\usepackage{nexus-otf}
\usepackage{listings,xcolor,url}
\lstset{basicstyle=\small\ttfamily}
\usepackage{dtk-extern}
\usepackage{fancyvrb}

\begin{document} 
\title{The Nexus font -- Corporate Design Font of Freie Universität Berlin}
\author{Herbert Voß -- \url{Herbert.Voss@fu-berlin.de}}
\maketitle

\tableofcontents




\section{Package options}

\subsection{\texttt{pro} option}
Instead of using the default TrueType Version it uses the OpenType Pro version of Nexus Sans:


\begin{externalDocument}[
%  grfOptions={width=0.9\linewidth},
  frame,compiler=lualatex,
  crop,
  force=true,
  runs=1,code,docType=latex,
  showFilename,
%  align=\centering,
  lstOptions={columns=fixed}]{Nexus}
\documentclass{article}
\pagestyle{empty}
%StartVisiblePreamble
\usepackage[pro]{nexus-otf}
%StopVisiblePreamble
\setmonofont{DejaVuSans Mono}[Scale=MatchLowercase,FakeStretch=0.9]
\begin{document}
0000111122223333444455556666777788889999 abcdefghijklmn\par
\sffamily
0000111122223333444455556666777788889999 abcdefghijklmn
\end{document}
\end{externalDocument}

\typeout{Running: pdffonts}%

\ShellEscape{/usr/bin/pdffonts Nexus-1.pdf> Nexus-1.fonts}

\footnotesize
\VerbatimInput{Nexus-1.fonts}

\normalsize


The Sans-Pro version has by default lining figures. To get the same behaviour use the 
optional argument \texttt{osf}:

\begin{externalDocument}[
%  grfOptions={width=0.9\linewidth},
  frame,compiler=lualatex,
  crop,
  force=true,
  runs=1,code,docType=latex,
  showFilename,
%  align=\centering,
  lstOptions={columns=fixed}]{Nexus}
\documentclass{article}
\pagestyle{empty}
%StartVisiblePreamble
\usepackage[pro,osf]{nexus-otf}
%StopVisiblePreamble
\setmonofont{DejaVuSans Mono}[Scale=MatchLowercase,FakeStretch=0.9]
\begin{document}
0000111122223333444455556666777788889999 abcdefghijklmn\par
\sffamily
0000111122223333444455556666777788889999 abcdefghijklmn
\end{document}
\end{externalDocument}


\subsection{\texttt{math} option}
Instead of using the default Latin Modern Math it uses Pagella Math:


\begin{externalDocument}[
%  grfOptions={width=0.9\linewidth},
  frame,compiler=lualatex,
  crop,
  force=true,
  runs=1,code,docType=latex,
  showFilename,
%  align=\centering,
  lstOptions={columns=fixed}]{Nexus}
\documentclass{article}
\pagestyle{empty}
%StartVisiblePreamble
\usepackage[math]{nexus-otf}
%StopVisiblePreamble
\setmonofont{DejaVuSans Mono}[Scale=MatchLowercase,FakeStretch=0.9]
\begin{document}
\[ \int\limits_1^{\infty}\frac{1}{x^2} \symup dx=1 \]
\end{document}
\end{externalDocument}


\subsection{\texttt{lining} or \texttt{lf} option (linig figures)}
Oldstyle numbers (option \texttt{osf} or \texttt{oldstyle}) are the default.
With \texttt{lining} or \texttt{lf} one get normal figures, but only for the Sans Serif version of
the Pro font.

\begin{externalDocument}[
%  grfOptions={width=0.9\linewidth},
  frame,compiler=lualatex,
  crop,
  force=true,
  runs=1,code,docType=latex,
  showFilename,
%  align=\centering,
  lstOptions={columns=fixed}]{Nexus}
\documentclass{article}
\pagestyle{empty}
%StartVisiblePreamble
\usepackage[pro,lining]{nexus-otf}
%StopVisiblePreamble
\setmonofont{DejaVuSans Mono}[Scale=MatchLowercase,FakeStretch=0.9]
\begin{document}
01234567890 \textsf{0123456789}
\end{document}
\end{externalDocument}


\subsection{Scaling with \texttt{scaleRM} and \texttt{scaleSF}}


\begin{externalDocument}[
%  grfOptions={width=0.9\linewidth},
  frame,compiler=lualatex,
  crop,
  force=true,
  runs=1,code,docType=latex,
  showFilename,
%  align=\centering,
  lstOptions={columns=fixed}]{Nexus}
\documentclass{article}
\pagestyle{empty}
%StartVisiblePreamble
\usepackage[ScaleRM=1.1,ScaleSF=1.5]{nexus-otf}
%StopVisiblePreamble
\setmonofont{DejaVuSans Mono}[Scale=MatchLowercase,FakeStretch=0.9]
\begin{document}
011111234567890 \textsf{011111123456789}\par
\sffamily
011111234567890 \textsf{011111123456789}
\end{document}
\end{externalDocument}






\section{The Serif-Series}

A test with the Nexus font 0123456789 -- --- fl ffl fi ffi\\% ok
\textit{A test with the Nexus font 0123456789 -- --- fl ffl fi ffi}\\
\textbf{A test with the Nexus font 0123456789 -- --- fl ffl fi ffi}\\
\textsc{A test with the Nexus font 0123456789 -- --- fl ffl fi ffi}\\% ok
\textbf{\textit{A test with the Nexus font 0123456789 -- --- fl ffl fi ffi}}\\
\textbf{\textsc{A test with the Nexus font 0123456789 -- --- fl ffl fi ffi}}\\
%{\fontseries{bc}\selectfont\textit{\textsc{Ein Test mit der Nexus-Schrift 0123456789 fi ffl %ffi}}}\\
%{\fontseries{mc}\fontshape{sl}\selectfont Ein Test mit der Nexus-Schrift 0123456789 fi ffl ffi}\\


\section{The Sans Serif series}
\sffamily
A test with the Nexus font 0123456789 -- --- fl ffl fi ffi\\% ok
\textit{A test with the Nexus font 0123456789 -- --- fl ffl fi ffi}\\
\textbf{A test with the Nexus font 0123456789 -- --- fl ffl fi ffi}\\
\textsc{A test with the Nexus font 0123456789 -- --- fl ffl fi ffi}\\% ok
\textbf{\textit{A test with the Nexus font 0123456789 -- --- fl ffl fi ffi}}\\
\textbf{\textsc{A test with the Nexus font 0123456789 -- --- fl ffl fi ffi}}\\



\iffalse
\fontfamily{fnxx}\fontseries{eb}\selectfont
Ein Test mit der Nexus-Schrift 0123456789\\% ok
\fontshape{it}\selectfont
Ein Test mit der Nexus-Schrift 0123456789\\% ok
\fontshape{sc}\selectfont
Ein Test mit der Nexus-Schrift 0123456789\\% ok
\fi%


%
%\sffamily
%Ein Test mir der Nexus-Schrift\\
%\textbf{Ein Test mir der Nexus-Schrift}\\

\end{document}


\DeclareOptionX{tabular}[true]{\@nameuse{Nexus@tabular#1}}
\DeclareOptionX{tf}[true]{\@nameuse{if#1}\Nexus@tabulartrue\else\Nexus@tabularfalse\fi}
\DeclareOptionX{proportional}[true]{\@nameuse{if#1}\Nexus@tabulartrue\else\Nexus@tabularfalse\fi}
\DeclareOptionX{pf}[true]{\@nameuse{if#1}\Nexus@tabulartrue\else\Nexus@tabularfalse\fi}

\newcommand*\nexusRM@scale{1}  
\newcommand*\nexusSF@scale{1}
\DeclareOptionX{ScaleRM}{\renewcommand*{\nexusRM@scale}{#1}}
\DeclareOptionX{ScaleSF}{\renewcommand*{\nexusSF@scale}{#1}}
\DeclareOptionX{scaled}{\renewcommand*{\nexusRM@scale}{#1}\renewcommand*{\nexusSF@scale}{#1}}
\DeclareOptionX{scale}{\renewcommand*{\nexusRM@scale}{#1}\renewcommand*{\nexusSF@scale}{#1}}
\fi


