summaryrefslogtreecommitdiff
path: root/support/lyluatex/lyluatexmanual.cls
diff options
context:
space:
mode:
authorNorbert Preining <norbert@preining.info>2019-09-02 13:46:59 +0900
committerNorbert Preining <norbert@preining.info>2019-09-02 13:46:59 +0900
commite0c6872cf40896c7be36b11dcc744620f10adf1d (patch)
tree60335e10d2f4354b0674ec22d7b53f0f8abee672 /support/lyluatex/lyluatexmanual.cls
Initial commit
Diffstat (limited to 'support/lyluatex/lyluatexmanual.cls')
-rw-r--r--support/lyluatex/lyluatexmanual.cls41
1 files changed, 41 insertions, 0 deletions
diff --git a/support/lyluatex/lyluatexmanual.cls b/support/lyluatex/lyluatexmanual.cls
new file mode 100644
index 0000000000..8e1a85d290
--- /dev/null
+++ b/support/lyluatex/lyluatexmanual.cls
@@ -0,0 +1,41 @@
+%Lyluatex LaTeX class for the manual.
+%
+% Copyright (C) 2015-2019 jperon and others (see CONTRIBUTORS.md)
+% License: MIT
+% This file is part of lyluatex.
+
+\NeedsTeXFormat{LaTeX2e}
+\ProvidesClass{lyluatexmanual}[2019/05/27 v1.0f] %%LYLUATEX_DATE LYLUATEX_VERSION
+
+\LoadClass{lyluatexbase}
+
+\RequirePackage{fontspec}
+\RequirePackage{microtype}
+\RequirePackage{libertine}
+\setmonofont[Scale=MatchLowercase,StylisticSet=1]{InconsolataN}
+\defaultfontfeatures{
+ Ligatures=TeX,
+ Scale=MatchLowercase,
+ Numbers=Proportional,
+ Numbers=OldStyle
+}
+\frenchspacing
+
+\RequirePackage{makeidx}
+\makeindex
+
+\newcommand{\linkexample}[2]{
+ \addcontentsline{toc}{subsection}{#2}
+ \hypertarget{#1}{}
+}
+
+
+\newcommand{\lyluatexmanualdate}{
+ \directlua{
+ local PC = string.char(37)
+ local date_fmt = PC..'Y-'..PC..'m-'..PC..'d'
+ local p = io.popen('git log -n1 --date=short --format='..PC..'"ad"', 'r')
+ tex.sprint(p and p:read('*a') or os.date(date_fmt))
+ if p then p:close() end
+ }
+} \ No newline at end of file