summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--.gitignore4
-rw-r--r--beamer/flake.nix105
-rw-r--r--beamer/slides.md64
-rw-r--r--beamer/template.latex563
-rw-r--r--flake.nix16
5 files changed, 752 insertions, 0 deletions
diff --git a/.gitignore b/.gitignore
new file mode 100644
index 0000000..506b6e1
--- /dev/null
+++ b/.gitignore
@@ -0,0 +1,4 @@
1result
2result-*
3
4/*/flake.lock
diff --git a/beamer/flake.nix b/beamer/flake.nix
new file mode 100644
index 0000000..3bfc9b3
--- /dev/null
+++ b/beamer/flake.nix
@@ -0,0 +1,105 @@
1{
2 description = "My epic presentation";
3
4 inputs.nixpkgs.url = "github:NixOS/nixpkgs/nixos-unstable";
5 inputs.beamertheme-metropolis = {
6 url = "github:matze/mtheme";
7 flake = false;
8 };
9 inputs.draculaTheme = {
10 url = "github:dracula/pygments";
11 flake = false;
12 };
13
14 outputs = { self, nixpkgs, beamertheme-metropolis, draculaTheme, }:
15 let
16 pkgs = nixpkgs.legacyPackages.x86_64-linux;
17 in
18 {
19
20 packages.x86_64-linux.pygments = pkgs.python3Packages.pygments.overrideAttrs (oldAttrs: {
21 postPatch = ''
22 cp ${draculaTheme}/dracula.py pygments/styles/
23 sed -i 's/bg:.\+ //' pygments/styles/inkpot.py
24 '';
25 });
26
27 defaultPackage.x86_64-linux =
28 let
29 beamertheme-metropolis' = pkgs.stdenvNoCC.mkDerivation {
30 pname = "texlive-beamertheme-metropolis";
31 version = "${builtins.substring 0 8 beamertheme-metropolis.lastModifiedDate}-${beamertheme-metropolis.shortRev or "dirty"}";
32
33 src = beamertheme-metropolis;
34
35 outputs = [ "out" "doc" ];
36
37 nativeBuildInputs = with pkgs; [
38 (texlive.combine {
39 inherit (texlive)
40 scheme-small
41 enumitem
42 fileinfo
43 latexmk;
44 })
45 ];
46
47 passthru = {
48 pname = "beamertheme-metropolis";
49 tlType = "run";
50 };
51
52 DESTDIR = placeholder "out";
53
54 dontConfigure = true;
55 };
56 in
57 pkgs.runCommand "slides"
58 {
59 src = ./.;
60 nativeBuildInputs = with pkgs; [
61 pandoc
62 self.packages.x86_64-linux.pygments
63 fira-code
64 which
65 (texlive.combine {
66 inherit (texlive)
67 scheme-medium
68 latexmk
69
70 beamercolorthemeowl
71
72 fvextra pgfopts minted catchfile upquote xstring framed;
73 beamertheme-metropolis = { pkgs = [ beamertheme-metropolis' ]; };
74 })
75 ];
76
77 FONTCONFIG_FILE = pkgs.makeFontsConf {
78 fontDirectories = with pkgs; [ lmodern freefont_ttf fira fira-code ];
79 };
80 } ''
81 unpackFile $src
82 cd */
83 chmod -R u+w .
84
85 pandoc slides.md -t beamer -so slides.tex \
86 --template=template.latex \
87 --lua-filter=${pkgs.pandoc-lua-filters}/share/pandoc/filters/minted.lua \
88 --pdf-engine=xelatex \
89 --pdf-engine-opt=-aux-directory=./build \
90 --pdf-engine-opt=-shell-escape
91
92 latexmk \
93 -shell-escape \
94 -xelatex \
95 -8bit \
96 -interaction=nonstopmode \
97 -verbose \
98 -file-line-error \
99 -output-directory=./build slides
100
101 cp build/slides.pdf $out
102 '';
103 # TODO: diagram-generator?
104 };
105}
diff --git a/beamer/slides.md b/beamer/slides.md
new file mode 100644
index 0000000..1dbce3c
--- /dev/null
+++ b/beamer/slides.md
@@ -0,0 +1,64 @@
1% My epic presentation
2% Myself
3% today
4
5---
6slide-level: 2
7aspectratio: 169
8
9theme: metropolis
10colortheme: owl
11
12# Light theme
13#colorthemeoptions: snowy
14#mintedstyle: perldoc
15#mintedstyle: xcode
16
17links-as-notes: true
18beameroption: "show notes on second screen=right"
19
20toc: true
21lang: en-US
22---
23
24# This is an title
25
26## This is an slide
27
28Hello `"world"`{.rust} bla-bla
29
30```rust
31fn main() {
32 println!("Hello, world: {}", 1 != 2);
33 // |--->-------!--------||-----!!---|
34}
35```
36
37::: notes
38
39These are some-notes
40
41:::
42
43
44## Next slide
45
46Much content
47
48### Block
49
50This is an block
51
52### Example {.example}
53
54$$\sum_{x=1}^{42}\dfrac{3^x}{!4}$$
55
56### Alert {.alert}
57
58This is an alert
59
60# This is another title
61
62## Again
63
64???
diff --git a/beamer/template.latex b/beamer/template.latex
new file mode 100644
index 0000000..09960e9
--- /dev/null
+++ b/beamer/template.latex
@@ -0,0 +1,563 @@
1% Options for packages loaded elsewhere
2\PassOptionsToPackage{unicode$for(hyperrefoptions)$,$hyperrefoptions$$endfor$}{hyperref}
3\PassOptionsToPackage{hyphens}{url}
4$if(colorlinks)$
5\PassOptionsToPackage{dvipsnames,svgnames*,x11names*}{xcolor}
6$endif$
7$if(dir)$
8$if(latex-dir-rtl)$
9\PassOptionsToPackage{RTLdocument}{bidi}
10$endif$
11$endif$
12$if(CJKmainfont)$
13\PassOptionsToPackage{space}{xeCJK}
14$endif$
15%
16\documentclass[
17$if(fontsize)$
18 $fontsize$,
19$endif$
20$if(lang)$
21 $babel-lang$,
22$endif$
23$if(papersize)$
24 $papersize$paper,
25$endif$
26$if(beamer)$
27 ignorenonframetext,
28$if(handout)$
29 handout,
30$endif$
31$if(aspectratio)$
32 aspectratio=$aspectratio$,
33$endif$
34$endif$
35$for(classoption)$
36 $classoption$$sep$,
37$endfor$
38]{$documentclass$}
39$if(beamer)$
40$if(background-image)$
41\usebackgroundtemplate{%
42 \includegraphics[width=\paperwidth]{$background-image$}%
43}
44$endif$
45\usepackage{pgfpages}
46\setbeamertemplate{caption}[numbered]
47\setbeamertemplate{caption label separator}{: }
48\setbeamercolor{caption name}{fg=normal text.fg}
49\beamertemplatenavigationsymbols$if(navigation)$$navigation$$else$empty$endif$
50$for(beameroption)$
51\setbeameroption{$beameroption$}
52$endfor$
53% Prevent slide breaks in the middle of a paragraph
54\widowpenalties 1 10000
55\raggedbottom
56$if(section-titles)$
57\setbeamertemplate{part page}{
58 \centering
59 \begin{beamercolorbox}[sep=16pt,center]{part title}
60 \usebeamerfont{part title}\insertpart\par
61 \end{beamercolorbox}
62}
63\setbeamertemplate{section page}{
64 \centering
65 \begin{beamercolorbox}[sep=12pt,center]{part title}
66 \usebeamerfont{section title}\insertsection\par
67 \end{beamercolorbox}
68}
69\setbeamertemplate{subsection page}{
70 \centering
71 \begin{beamercolorbox}[sep=8pt,center]{part title}
72 \usebeamerfont{subsection title}\insertsubsection\par
73 \end{beamercolorbox}
74}
75\AtBeginPart{
76 \frame{\partpage}
77}
78\AtBeginSection{
79 \ifbibliography
80 \else
81 \frame{\sectionpage}
82 \fi
83}
84\AtBeginSubsection{
85 \frame{\subsectionpage}
86}
87$endif$
88$endif$
89$if(beamerarticle)$
90\usepackage{beamerarticle} % needs to be loaded first
91$endif$
92\usepackage{amsmath,amssymb}
93$if(fontfamily)$
94\usepackage[$for(fontfamilyoptions)$$fontfamilyoptions$$sep$,$endfor$]{$fontfamily$}
95$else$
96\usepackage{lmodern}
97$endif$
98$if(linestretch)$
99\usepackage{setspace}
100$endif$
101\usepackage{iftex}
102\ifPDFTeX
103 \usepackage[$if(fontenc)$$fontenc$$else$T1$endif$]{fontenc}
104 \usepackage[utf8]{inputenc}
105 \usepackage{textcomp} % provide euro and other symbols
106\else % if luatex or xetex
107$if(mathspec)$
108 \ifXeTeX
109 \usepackage{mathspec}
110 \else
111 \usepackage{unicode-math}
112 \fi
113$else$
114 \usepackage{unicode-math}
115$endif$
116 \defaultfontfeatures{Scale=MatchLowercase}
117 \defaultfontfeatures[\rmfamily]{Ligatures=TeX,Scale=1}
118$if(mainfont)$
119 \setmainfont[$for(mainfontoptions)$$mainfontoptions$$sep$,$endfor$]{$mainfont$}
120$endif$
121$if(sansfont)$
122 \setsansfont[$for(sansfontoptions)$$sansfontoptions$$sep$,$endfor$]{$sansfont$}
123$endif$
124$if(monofont)$
125 \setmonofont[$for(monofontoptions)$$monofontoptions$$sep$,$endfor$]{$monofont$}
126$endif$
127$for(fontfamilies)$
128 \newfontfamily{$fontfamilies.name$}[$for(fontfamilies.options)$$fontfamilies.options$$sep$,$endfor$]{$fontfamilies.font$}
129$endfor$
130$if(mathfont)$
131$if(mathspec)$
132 \ifXeTeX
133 \setmathfont(Digits,Latin,Greek)[$for(mathfontoptions)$$mathfontoptions$$sep$,$endfor$]{$mathfont$}
134 \else
135 \setmathfont[$for(mathfontoptions)$$mathfontoptions$$sep$,$endfor$]{$mathfont$}
136 \fi
137$else$
138 \setmathfont[$for(mathfontoptions)$$mathfontoptions$$sep$,$endfor$]{$mathfont$}
139$endif$
140$endif$
141$if(CJKmainfont)$
142 \ifXeTeX
143 \usepackage{xeCJK}
144 \setCJKmainfont[$for(CJKoptions)$$CJKoptions$$sep$,$endfor$]{$CJKmainfont$}
145 \fi
146$endif$
147$if(luatexjapresetoptions)$
148 \ifLuaTeX
149 \usepackage[$for(luatexjapresetoptions)$$luatexjapresetoptions$$sep$,$endfor$]{luatexja-preset}
150 \fi
151$endif$
152$if(CJKmainfont)$
153 \ifLuaTeX
154 \usepackage[$for(luatexjafontspecoptions)$$luatexjafontspecoptions$$sep$,$endfor$]{luatexja-fontspec}
155 \setmainjfont[$for(CJKoptions)$$CJKoptions$$sep$,$endfor$]{$CJKmainfont$}
156 \fi
157$endif$
158\fi
159$if(beamer)$
160$if(theme)$
161\usetheme[$for(themeoptions)$$themeoptions$$sep$,$endfor$]{$theme$}
162$endif$
163$if(colortheme)$
164\usecolortheme[$for(colorthemeoptions)$$colorthemeoptions$$sep$,$endfor$]{$colortheme$}
165$endif$
166$if(fonttheme)$
167\usefonttheme{$fonttheme$}
168$endif$
169$if(mainfont)$
170\usefonttheme{serif} % use mainfont rather than sansfont for slide text
171$endif$
172$if(innertheme)$
173\useinnertheme{$innertheme$}
174$endif$
175$if(outertheme)$
176\useoutertheme{$outertheme$}
177$endif$
178$endif$
179% Use upquote if available, for straight quotes in verbatim environments
180\IfFileExists{upquote.sty}{\usepackage{upquote}}{}
181\IfFileExists{microtype.sty}{% use microtype if available
182 \usepackage[$for(microtypeoptions)$$microtypeoptions$$sep$,$endfor$]{microtype}
183 \UseMicrotypeSet[protrusion]{basicmath} % disable protrusion for tt fonts
184}{}
185$if(indent)$
186$else$
187\makeatletter
188\@ifundefined{KOMAClassName}{% if non-KOMA class
189 \IfFileExists{parskip.sty}{%
190 \usepackage{parskip}
191 }{% else
192 \setlength{\parindent}{0pt}
193 \setlength{\parskip}{6pt plus 2pt minus 1pt}}
194}{% if KOMA class
195 \KOMAoptions{parskip=half}}
196\makeatother
197$endif$
198$if(verbatim-in-note)$
199\usepackage{fancyvrb}
200$endif$
201\usepackage{xcolor}
202\IfFileExists{xurl.sty}{\usepackage{xurl}}{} % add URL line breaks if available
203\IfFileExists{bookmark.sty}{\usepackage{bookmark}}{\usepackage{hyperref}}
204\hypersetup{
205$if(title-meta)$
206 pdftitle={$title-meta$},
207$endif$
208$if(author-meta)$
209 pdfauthor={$author-meta$},
210$endif$
211$if(lang)$
212 pdflang={$lang$},
213$endif$
214$if(subject)$
215 pdfsubject={$subject$},
216$endif$
217$if(keywords)$
218 pdfkeywords={$for(keywords)$$keywords$$sep$, $endfor$},
219$endif$
220$if(colorlinks)$
221 colorlinks=true,
222 linkcolor={$if(linkcolor)$$linkcolor$$else$Maroon$endif$},
223 filecolor={$if(filecolor)$$filecolor$$else$Maroon$endif$},
224 citecolor={$if(citecolor)$$citecolor$$else$Blue$endif$},
225 urlcolor={$if(urlcolor)$$urlcolor$$else$Blue$endif$},
226$else$
227 hidelinks,
228$endif$
229 pdfcreator={LaTeX via pandoc}}
230\urlstyle{same} % disable monospaced font for URLs
231$if(verbatim-in-note)$
232\VerbatimFootnotes % allow verbatim text in footnotes
233$endif$
234$if(geometry)$
235$if(beamer)$
236\geometry{$for(geometry)$$geometry$$sep$,$endfor$}
237$else$
238\usepackage[$for(geometry)$$geometry$$sep$,$endfor$]{geometry}
239$endif$
240$endif$
241$if(beamer)$
242\newif\ifbibliography
243$endif$
244$if(listings)$
245\usepackage{listings}
246\newcommand{\passthrough}[1]{#1}
247\lstset{defaultdialect=[5.3]Lua}
248\lstset{defaultdialect=[x86masm]Assembler}
249$endif$
250$if(lhs)$
251\lstnewenvironment{code}{\lstset{language=Haskell,basicstyle=\small\ttfamily}}{}
252$endif$
253$if(highlighting-macros)$
254$highlighting-macros$
255$endif$
256$if(tables)$
257\usepackage{longtable,booktabs,array}
258$if(multirow)$
259\usepackage{multirow}
260$endif$
261\usepackage{calc} % for calculating minipage widths
262$if(beamer)$
263\usepackage{caption}
264% Make caption package work with longtable
265\makeatletter
266\def\fnum@table{\tablename~\thetable}
267\makeatother
268$else$
269% Correct order of tables after \paragraph or \subparagraph
270\usepackage{etoolbox}
271\makeatletter
272\patchcmd\longtable{\par}{\if@noskipsec\mbox{}\fi\par}{}{}
273\makeatother
274% Allow footnotes in longtable head/foot
275\IfFileExists{footnotehyper.sty}{\usepackage{footnotehyper}}{\usepackage{footnote}}
276\makesavenoteenv{longtable}
277$endif$
278$endif$
279$if(graphics)$
280\usepackage{graphicx}
281\makeatletter
282\def\maxwidth{\ifdim\Gin@nat@width>\linewidth\linewidth\else\Gin@nat@width\fi}
283\def\maxheight{\ifdim\Gin@nat@height>\textheight\textheight\else\Gin@nat@height\fi}
284\makeatother
285% Scale images if necessary, so that they will not overflow the page
286% margins by default, and it is still possible to overwrite the defaults
287% using explicit options in \includegraphics[width, height, ...]{}
288\setkeys{Gin}{width=\maxwidth,height=\maxheight,keepaspectratio}
289% Set default figure placement to htbp
290\makeatletter
291\def\fps@figure{htbp}
292\makeatother
293$endif$
294$if(links-as-notes)$
295% Make links footnotes instead of hotlinks:
296\DeclareRobustCommand{\href}[2]{#2\footnote{\url{#1}}}
297$endif$
298$if(strikeout)$
299\usepackage[normalem]{ulem}
300% Avoid problems with \sout in headers with hyperref
301\pdfstringdefDisableCommands{\renewcommand{\sout}{}}
302$endif$
303\setlength{\emergencystretch}{3em} % prevent overfull lines
304\providecommand{\tightlist}{%
305 \setlength{\itemsep}{0pt}\setlength{\parskip}{0pt}}
306$if(numbersections)$
307\setcounter{secnumdepth}{$if(secnumdepth)$$secnumdepth$$else$5$endif$}
308$else$
309\setcounter{secnumdepth}{-\maxdimen} % remove section numbering
310$endif$
311$if(beamer)$
312$else$
313$if(block-headings)$
314% Make \paragraph and \subparagraph free-standing
315\ifx\paragraph\undefined\else
316 \let\oldparagraph\paragraph
317 \renewcommand{\paragraph}[1]{\oldparagraph{#1}\mbox{}}
318\fi
319\ifx\subparagraph\undefined\else
320 \let\oldsubparagraph\subparagraph
321 \renewcommand{\subparagraph}[1]{\oldsubparagraph{#1}\mbox{}}
322\fi
323$endif$
324$endif$
325$if(pagestyle)$
326\pagestyle{$pagestyle$}
327$endif$
328
329\setbeamercolor{section in toc}{
330 use=normal text,
331 fg=normal text.fg
332}
333\setbeamercolor{subsection in toc}{
334 use=normal text,
335 fg=normal text.fg
336}
337
338\usepackage{fvextra}
339
340\usepackage[outputdir=build]{minted}
341\usemintedstyle{$if(mintedstyle)$$mintedstyle$$else$inkpot$endif$}
342\setminted{bgcolor=normal text.bg!90!normal text.fg,tabsize=4,breaklines}
343
344\setmonofont{Fira Code}[
345 Scale=0.87096774193548387, % 459/527
346 ItalicFont={Latin Modern Mono 10 Italic},
347 Contextuals=Alternate,
348 StylisticSet={6,8},
349]
350
351% Add background to blocks
352\setbeamercolor*{block title}{
353 bg=normal text.bg!80!normal text.fg,
354}
355
356\setbeamercolor*{block body}{
357 bg=normal text.bg!90!normal text.fg,
358}
359
360\makeatletter
361\def\verbatim@nolig@list{}
362\makeatother
363
364$for(header-includes)$
365$header-includes$
366$endfor$
367$if(lang)$
368\ifXeTeX
369 % Load polyglossia as late as possible: uses bidi with RTL langages (e.g. Hebrew, Arabic)
370 \usepackage{polyglossia}
371 \setmainlanguage[$for(polyglossia-lang.options)$$polyglossia-lang.options$$sep$,$endfor$]{$polyglossia-lang.name$}
372$for(polyglossia-otherlangs)$
373 \setotherlanguage[$for(polyglossia-otherlangs.options)$$polyglossia-otherlangs.options$$sep$,$endfor$]{$polyglossia-otherlangs.name$}
374$endfor$
375\else
376 \usepackage[$for(babel-otherlangs)$$babel-otherlangs$,$endfor$main=$babel-lang$]{babel}
377% get rid of language-specific shorthands (see #6817):
378\let\LanguageShortHands\languageshorthands
379\def\languageshorthands#1{}
380$if(babel-newcommands)$
381 $babel-newcommands$
382$endif$
383\fi
384$endif$
385\ifLuaTeX
386 \usepackage{selnolig} % disable illegal ligatures
387\fi
388$if(dir)$
389\ifXeTeX
390 % Load bidi as late as possible as it modifies e.g. graphicx
391 \usepackage{bidi}
392\fi
393\ifPDFTeX
394 \TeXXeTstate=1
395 \newcommand{\RL}[1]{\beginR #1\endR}
396 \newcommand{\LR}[1]{\beginL #1\endL}
397 \newenvironment{RTL}{\beginR}{\endR}
398 \newenvironment{LTR}{\beginL}{\endL}
399\fi
400$endif$
401$if(natbib)$
402\usepackage[$natbiboptions$]{natbib}
403\bibliographystyle{$if(biblio-style)$$biblio-style$$else$plainnat$endif$}
404$endif$
405$if(biblatex)$
406\usepackage[$if(biblio-style)$style=$biblio-style$,$endif$$for(biblatexoptions)$$biblatexoptions$$sep$,$endfor$]{biblatex}
407$for(bibliography)$
408\addbibresource{$bibliography$}
409$endfor$
410$endif$
411$if(nocite-ids)$
412\nocite{$for(nocite-ids)$$it$$sep$, $endfor$}
413$endif$
414$if(csl-refs)$
415\newlength{\cslhangindent}
416\setlength{\cslhangindent}{1.5em}
417\newlength{\csllabelwidth}
418\setlength{\csllabelwidth}{3em}
419\newenvironment{CSLReferences}[2] % #1 hanging-ident, #2 entry spacing
420 {% don't indent paragraphs
421 \setlength{\parindent}{0pt}
422 % turn on hanging indent if param 1 is 1
423 \ifodd #1 \everypar{\setlength{\hangindent}{\cslhangindent}}\ignorespaces\fi
424 % set entry spacing
425 \ifnum #2 > 0
426 \setlength{\parskip}{#2\baselineskip}
427 \fi
428 }%
429 {}
430\usepackage{calc}
431\newcommand{\CSLBlock}[1]{#1\hfill\break}
432\newcommand{\CSLLeftMargin}[1]{\parbox[t]{\csllabelwidth}{#1}}
433\newcommand{\CSLRightInline}[1]{\parbox[t]{\linewidth - \csllabelwidth}{#1}\break}
434\newcommand{\CSLIndent}[1]{\hspace{\cslhangindent}#1}
435$endif$
436$if(csquotes)$
437\usepackage{csquotes}
438$endif$
439
440$if(title)$
441\title{$title$$if(thanks)$\thanks{$thanks$}$endif$}
442$endif$
443$if(subtitle)$
444$if(beamer)$
445$else$
446\usepackage{etoolbox}
447\makeatletter
448\providecommand{\subtitle}[1]{% add subtitle to \maketitle
449 \apptocmd{\@title}{\par {\large #1 \par}}{}{}
450}
451\makeatother
452$endif$
453\subtitle{$subtitle$}
454$endif$
455\author{$for(author)$$author$$sep$ \and $endfor$}
456\date{$date$}
457$if(beamer)$
458$if(institute)$
459\institute{$for(institute)$$institute$$sep$ \and $endfor$}
460$endif$
461$if(titlegraphic)$
462\titlegraphic{\includegraphics{$titlegraphic$}}
463$endif$
464$if(logo)$
465\logo{\includegraphics{$logo$}}
466$endif$
467$endif$
468
469\begin{document}
470$if(has-frontmatter)$
471\frontmatter
472$endif$
473$if(title)$
474$if(beamer)$
475\frame{\titlepage}
476$else$
477\maketitle
478$endif$
479$if(abstract)$
480\begin{abstract}
481$abstract$
482\end{abstract}
483$endif$
484$endif$
485
486$for(include-before)$
487$include-before$
488
489$endfor$
490$if(toc)$
491$if(toc-title)$
492\renewcommand*\contentsname{$toc-title$}
493$endif$
494$if(beamer)$
495\begin{frame}[allowframebreaks]
496$if(toc-title)$
497 \frametitle{$toc-title$}
498$endif$
499 \tableofcontents[hideallsubsections]
500\end{frame}
501$else$
502{
503$if(colorlinks)$
504\hypersetup{linkcolor=$if(toccolor)$$toccolor$$else$$endif$}
505$endif$
506\setcounter{tocdepth}{$toc-depth$}
507\tableofcontents
508}
509$endif$
510$endif$
511$if(lot)$
512\listoftables
513$endif$
514$if(lof)$
515\listoffigures
516$endif$
517$if(linestretch)$
518\setstretch{$linestretch$}
519$endif$
520$if(has-frontmatter)$
521\mainmatter
522$endif$
523$body$
524
525$if(has-frontmatter)$
526\backmatter
527$endif$
528$if(natbib)$
529$if(bibliography)$
530$if(biblio-title)$
531$if(has-chapters)$
532\renewcommand\bibname{$biblio-title$}
533$else$
534\renewcommand\refname{$biblio-title$}
535$endif$
536$endif$
537$if(beamer)$
538\begin{frame}[allowframebreaks]{$biblio-title$}
539 \bibliographytrue
540$endif$
541 \bibliography{$for(bibliography)$$bibliography$$sep$,$endfor$}
542$if(beamer)$
543\end{frame}
544$endif$
545
546$endif$
547$endif$
548$if(biblatex)$
549$if(beamer)$
550\begin{frame}[allowframebreaks]{$biblio-title$}
551 \bibliographytrue
552 \printbibliography[heading=none]
553\end{frame}
554$else$
555\printbibliography$if(biblio-title)$[title=$biblio-title$]$endif$
556$endif$
557
558$endif$
559$for(include-after)$
560$include-after$
561
562$endfor$
563\end{document}
diff --git a/flake.nix b/flake.nix
new file mode 100644
index 0000000..ca5e3a4
--- /dev/null
+++ b/flake.nix
@@ -0,0 +1,16 @@
1{
2 description = "My templates for making things with pandoc";
3
4 outputs = { self, nixpkgs }: {
5
6 templates = {
7 beamer = {
8 path = ./beamer;
9 description = "Beamer slides with pandoc";
10 };
11 };
12
13 defaultTemplate = self.templates.beamer;
14
15 };
16}