From c235cea7eef79aa2adec4a8a30d745ab429139fa Mon Sep 17 00:00:00 2001 From: Oliverpool Date: Fri, 18 Dec 2015 16:53:55 +0100 Subject: [PATCH] Use template_var for default.tex --- patacrep/data/templates/default.tex | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/patacrep/data/templates/default.tex b/patacrep/data/templates/default.tex index f02d0895..5fbf5c10 100644 --- a/patacrep/data/templates/default.tex +++ b/patacrep/data/templates/default.tex @@ -41,10 +41,11 @@ description.en: (*- extends "songs.tex" -*) (*- set indexes = "titleidx,authidx" -*) +(*- set template_var = _template["default.tex"] -*) (* block documentclass *) \documentclass[ - (* for option in _template["default.tex"].classoptions *) + (* for option in template_var.classoptions *) ((option)), (* endfor *) ]{article} @@ -56,8 +57,8 @@ description.en: \usepackage{chords} -\title{(( _template["default.tex"].title ))} -\author{(( _template["default.tex"].author ))} +\title{(( template_var.title ))} +\author{(( template_var.author ))} \newindex{titleidx}{((filename))_title} \newauthorindex{authidx}{((filename))_auth}