| 1 |
%Luaoptions LaTeX class. |
| 2 |
% |
| 3 |
% Copyright (C) 2015-2026 the lualatex-tools Project |
| 4 |
% License: MIT |
| 5 |
% This file is part of lualatex-tools. |
| 6 |
|
| 7 |
\NeedsTeXFormat{LaTeX2e} |
| 8 |
\ProvidesClass{luaoptionsbase}[2026/05/20 v0.9] %%LUAOPTIONS_DATE LUAOPTIONS_VERSION |
| 9 |
|
| 10 |
\LoadClass[DIV=11]{scrartcl} |
| 11 |
\RequirePackage{blindtext} |
| 12 |
\RequirePackage{libertine} |
| 13 |
\RequirePackage{listings} |
| 14 |
\RequirePackage{minted} |
| 15 |
\RequirePackage{pgffor} |
| 16 |
\RequirePackage{fancyvrb} |
| 17 |
\RequirePackage[colorlinks=true]{hyperref} |
| 18 |
|
| 19 |
|
| 20 |
% Common formatting elements for manual and examples |
| 21 |
\usepackage{xcolor} |
| 22 |
\newcommand{\highlight}[1]{\textcolor{blue}{#1}} |
| 23 |
\newcommand{\cmd}[1]{\highlight{\texttt{\textbackslash #1}}} |
| 24 |
\newcommand{\option}[1]{\highlight{\texttt{#1}}} |
| 25 |
\newcommand{\lyMargin}[1]{% |
| 26 |
|
| 27 |
\medskip |
| 28 |
\hspace*{-1em}% |
| 29 |
\noindent% |
| 30 |
\highlight{#1} |
| 31 |
\nopagebreak |
| 32 |
} |
| 33 |
|
| 34 |
\newcommand{\lyOption}[2]{\lyMargin{\texttt{#1} {\small \emph{(#2)}}\index{#1}}} |
| 35 |
\newcommand{\lyCmd}[1]{% |
| 36 |
\lyMargin{\texttt{\textbackslash #1}\index{\textbackslash #1}}} |
| 37 |
\newcommand{\lyIssue}[1]{\lyMargin{\textbf{\textcolor{red}{#1}}}} |