From ffa5ad2f9b12ac0fdd133a0093ec131711b9f1ee Mon Sep 17 00:00:00 2001 From: Mylloon Date: Mon, 29 May 2023 18:44:28 +0200 Subject: [PATCH] Add examples --- .gitignore | 3 +++ example/Makefile | 18 ++++++++++++++++++ example/dark.tex | 24 ++++++++++++++++++++++++ example/light.tex | 24 ++++++++++++++++++++++++ 4 files changed, 69 insertions(+) create mode 100644 .gitignore create mode 100644 example/Makefile create mode 100644 example/dark.tex create mode 100644 example/light.tex diff --git a/.gitignore b/.gitignore new file mode 100644 index 0000000..65250fb --- /dev/null +++ b/.gitignore @@ -0,0 +1,3 @@ +example/* +!example/*.tex +!example/Makefile diff --git a/example/Makefile b/example/Makefile new file mode 100644 index 0000000..19bc281 --- /dev/null +++ b/example/Makefile @@ -0,0 +1,18 @@ +NAMES = light dark +TEX = $(foreach i,$(NAMES),$(i).tex) +PDF = $(TEX:.tex=.pdf) + +TEXMK = latexmk -lualatex -shell-escape +RM = rm -rf + + +all: $(PDF) + +$(PDF): %.pdf: %.tex + $(TEXMK) $< + +EXTS = aux fdb_latexmk fls log nav out snm synctex.gz toc vrb +clean: + $(RM) $(PDF) \ + $(foreach i,$(NAMES),_minted-$(i)/) \ + $(foreach i,$(NAMES),$(foreach j,$(EXTS),$(i).$(j))) diff --git a/example/dark.tex b/example/dark.tex new file mode 100644 index 0000000..cecff01 --- /dev/null +++ b/example/dark.tex @@ -0,0 +1,24 @@ +\documentclass{beamer} + +\usepackage[fr,code,dark]{../projektor} + +\title{Titre du document} +\author{Auteur du document} +\date{Date de rédaction du document} + +\begin{document} + +\maketitle + +\begin{frame}[t, plain]{Plan} + \tableofcontents +\end{frame} + +\section{Nom de la section} +\begin{frame}{Titre de la Page} + Contenu de la page\dots +\end{frame} + +\section*{\hspace*{15mm} Texte de conclusion} + +\end{document} diff --git a/example/light.tex b/example/light.tex new file mode 100644 index 0000000..13ccf77 --- /dev/null +++ b/example/light.tex @@ -0,0 +1,24 @@ +\documentclass{beamer} + +\usepackage[fr,code]{../projektor} + +\title{Titre du document} +\author{Auteur du document} +\date{Date de rédaction du document} + +\begin{document} + +\maketitle + +\begin{frame}[t, plain]{Plan} + \tableofcontents +\end{frame} + +\section{Nom de la section} +\begin{frame}{Titre de la Page} + Contenu de la page\dots +\end{frame} + +\section*{\hspace*{15mm} Texte de conclusion} + +\end{document}