Browse Source

Use template_var for default.tex

pull/184/head
Oliverpool 9 years ago
parent
commit
c235cea7ee
  1. 7
      patacrep/data/templates/default.tex

7
patacrep/data/templates/default.tex

@ -41,10 +41,11 @@ description.en:
(*- extends "songs.tex" -*) (*- extends "songs.tex" -*)
(*- set indexes = "titleidx,authidx" -*) (*- set indexes = "titleidx,authidx" -*)
(*- set template_var = _template["default.tex"] -*)
(* block documentclass *) (* block documentclass *)
\documentclass[ \documentclass[
(* for option in _template["default.tex"].classoptions *) (* for option in template_var.classoptions *)
((option)), ((option)),
(* endfor *) (* endfor *)
]{article} ]{article}
@ -56,8 +57,8 @@ description.en:
\usepackage{chords} \usepackage{chords}
\title{(( _template["default.tex"].title ))} \title{(( template_var.title ))}
\author{(( _template["default.tex"].author ))} \author{(( template_var.author ))}
\newindex{titleidx}{((filename))_title} \newindex{titleidx}{((filename))_title}
\newauthorindex{authidx}{((filename))_auth} \newauthorindex{authidx}{((filename))_auth}

Loading…
Cancel
Save