# nxtlatex -- LaTeX classes and themes for faculty NXT

**Version:** 1.0
**Date:** 2026-03-10
**License:** LPPL 1.3c
**Author:** Volker Reichenberger <volker.reichenberger@reutlingen-university.de>
**CTAN:** https://ctan.org/pkg/nxtlatex

## Description

The `nxtlatex` package provides LaTeX tools for the faculty
*NXT Nachhaltigkeit und Technologie* (Sustainability and Technology)
at Reutlingen University, Germany. It comprises three components:

- **nxtthesis** -- A thesis class based on KOMA-Script `scrreprt`.
  Requires LuaLaTeX. Provides a title page with institution metadata,
  font options (TeX Gyre, Libertinus), and a standard declaration of
  independent work.

- **nxtbrief** -- A letter-class option (LCO) for KOMA-Script
  `scrlttr2`. Supports pdfLaTeX, XeLaTeX, and LuaLaTeX.
  Uses the Libertinus font family.

- **beamerthemenxt** -- A Beamer presentation theme in the NXT
  corporate design. Requires LuaLaTeX and the Aptos font.

In addition, the OpenType font `NXT_Logo.otf` is included, which
provides the NXT logo as a typographic glyph.

## Files

| File                   | Description                            |
|------------------------|----------------------------------------|
| `nxtlatex.dtx`         | Documented source (all components)     |
| `nxtlatex.ins`         | Docstrip install script                |
| `nxtthesis.cls`        | Generated thesis class                 |
| `nxtbrief.lco`         | Generated letter class option          |
| `beamerthemenxt.sty`   | Generated Beamer theme                 |
| `NXT_Logo.otf`         | NXT logo OpenType font (OFL 1.1)       |
| `NXTThesisBeispiel.tex`| Example document for nxtthesis        |
| `beispielbrief.tex`    | Example document for nxtbrief         |
| `beispielfoliennxt.tex`| Example document for beamerthemenxt  |
| `README.md`            | This file                              |

## Installation

Run

```
latex nxtlatex.ins
```

to generate `nxtthesis.cls`, `nxtbrief.lco`, and `beamerthemenxt.sty`.
Copy these files together with `NXT_Logo.otf` into a directory
where TeX can find them, e.g.:

```
~/texmf/tex/latex/nxtlatex/
```

Then run `texhash` (or `mktexlsr`) to update the TeX file database.

## Usage

### nxtthesis

```latex
\documentclass[german,gyre]{nxtthesis}
\title{Title}
\author{Author Name}
\adresse{Street, ZIP City}
\matrikelnummer{1234567}
\akademischergrad{Bachelor of Science}
\studiengang{Sustainable Technology}
\abgabedatum{31 March 2026}
\erstpruef{Prof. Dr. First Examiner}
\erstpruefbezeichnung{First examiner}
\zweitpruef{Prof. Dr. Second Examiner}
\zweitpruefbezeichnung{Second examiner}
\begin{document}
\maketitle
...
\eigenständigkeitserklärung
\end{document}
```

### nxtbrief

```latex
\documentclass[nxtbrief]{scrlttr2}
\usepackage[ngerman]{babel}
\begin{document}
\setkomavar{fromname}{Prof. Dr. Name}
\begin{letter}{Recipient\\Address}
\opening{Dear Sir or Madam,}
...
\closing{Kind regards}
\end{letter}
\end{document}
```

### beamerthemenxt

```latex
\documentclass{beamer}
\usetheme{NXT}
\begin{document}
\frame{\titlepage}
\begin{frame}{Title}
  \begin{itemize}
    \item Item
  \end{itemize}
\end{frame}
\end{document}
```

## Customisation

The `nxtbrief` and `beamerthemenxt` components are designed for
Reutlingen University's NXT faculty but can be adapted for other
institutions:

- In `nxtbrief.lco`, update `\setkomavar{backaddress}` and
  `\setkomavar{location}` with your institution's details.
- In `beamerthemenxt.sty`, redefine `\nxtBeamerSkyline` and
  `\nxtBeamerUniversityLogo` to point to your own graphics:
  ```latex
  \renewcommand{\nxtBeamerSkyline}{my-skyline.pdf}
  \renewcommand{\nxtBeamerUniversityLogo}{my-logo.pdf}
  ```
  Missing graphics files are silently ignored.
- In `nxtthesis`, redefine `\fakultaet` and `\hochschule`.

## Building the documentation

```
pdflatex nxtlatex.dtx
makeindex -s gind.ist nxtlatex.idx
makeindex -s gglo.ist -o nxtlatex.gls nxtlatex.glo
pdflatex nxtlatex.dtx
pdflatex nxtlatex.dtx
```

Or simply run `make` (see `Makefile`).

## License

Copyright (C) 2025 Volker Reichenberger.

This work 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 font `NXT_Logo.otf` is licensed under the
SIL Open Font License, Version 1.1 (OFL-1.1).
