| 1 |
%Luaoptions LaTeX class for the manual. |
| 2 |
% |
| 3 |
% Copyright (C) 2015-2026 the lualatex-tools Project |
| 4 |
% License: MIT |
| 5 |
% This file is part of luaoptions. |
| 6 |
|
| 7 |
\NeedsTeXFormat{LaTeX2e} |
| 8 |
\ProvidesClass{luaoptionsmanual}[2026/05/20 v0.9] %%LUAOPTIONS_DATE LUAOPTIONS_VERSION |
| 9 |
|
| 10 |
\LoadClass{luaoptionsbase} |
| 11 |
|
| 12 |
\RequirePackage{fontspec} |
| 13 |
\RequirePackage{microtype} |
| 14 |
\RequirePackage{libertine} |
| 15 |
\setmonofont[Scale=MatchLowercase,StylisticSet=1]{InconsolataN} |
| 16 |
\defaultfontfeatures{ |
| 17 |
Ligatures=TeX, |
| 18 |
Scale=MatchLowercase, |
| 19 |
Numbers=Proportional, |
| 20 |
Numbers=OldStyle |
| 21 |
} |
| 22 |
\frenchspacing |
| 23 |
|
| 24 |
\RequirePackage{makeidx} |
| 25 |
\makeindex |
| 26 |
|
| 27 |
\newcommand{\linkexample}[2]{ |
| 28 |
\addcontentsline{toc}{subsection}{#2} |
| 29 |
\hypertarget{#1}{} |
| 30 |
} |
| 31 |
|
| 32 |
\makeatletter |
| 33 |
\newcommand{\luaoptionsmanualdate}{% |
| 34 |
\begingroup |
| 35 |
\edef\x{\endgroup |
| 36 |
\noexpand\luaoptions@extractdate |
| 37 |
\csname [email protected]\endcsname |
| 38 |
\noexpand\@nil}% |
| 39 |
\x |
| 40 |
} |
| 41 |
\def\luaoptions@extractdate#1 #2\@nil{#1} |
| 42 |
|
| 43 |
\newcommand{\luaoptionsmanualversion}{% |
| 44 |
\begingroup |
| 45 |
\edef\x{\endgroup |
| 46 |
\noexpand\luaoptions@extractversion |
| 47 |
\csname [email protected]\endcsname |
| 48 |
\noexpand\@nil}% |
| 49 |
\x |
| 50 |
} |
| 51 |
\def\luaoptions@extractversion#1 v#2\@nil{#2} |
| 52 |
\makeatother |