From 174e103c9f02d4347e23f9c9c7f5ffd378b16503 Mon Sep 17 00:00:00 2001 From: Louis Date: Sat, 17 May 2014 11:46:37 +0200 Subject: [PATCH] [templates] Isolation du \documentclass --- songbook_core/data/templates/default.tex | 6 +++++- songbook_core/data/templates/layout.tex | 2 ++ 2 files changed, 7 insertions(+), 1 deletion(-) diff --git a/songbook_core/data/templates/default.tex b/songbook_core/data/templates/default.tex index 24705059..fb64d884 100644 --- a/songbook_core/data/templates/default.tex +++ b/songbook_core/data/templates/default.tex @@ -69,10 +69,14 @@ (* extends "songs.tex" *) (* set indexes = "titleidx,authidx" *) -(* block songbookpreambule *) +(* block songbookpackages *) (( super() )) \usepackage{chords} +(* endblock *) + +(* block songbookpreambule *) + (( super() )) \title{((title))} \author{((author))} diff --git a/songbook_core/data/templates/layout.tex b/songbook_core/data/templates/layout.tex index 3b895191..284cab7f 100644 --- a/songbook_core/data/templates/layout.tex +++ b/songbook_core/data/templates/layout.tex @@ -71,7 +71,9 @@ (* block documentclass *) \documentclass[((mainfontsize))pt]{article} +(* endblock *) +(* block songbookpackages *) \usepackage[((booktype)), (* for option in bookoptions *)((option)), (* endfor *)