diff --git a/songbook_core/data/templates/default.tex b/songbook_core/data/templates/default.tex index 491fb828..802d8806 100644 --- a/songbook_core/data/templates/default.tex +++ b/songbook_core/data/templates/default.tex @@ -21,6 +21,12 @@ (* variables *) { +"classoptions": {"description": {"english": "LaTeX class options", "french": "Options de la classe LaTeX"}, + "type": "flag", + "join": ",", + "mandatory": true, + "default": {"default":[]} + }, "title": {"description": {"english": "Title", "french": "Titre"}, "default": {"english": "Guitar songbook", "french": "Recueil de chansons pour guitare"}, "mandatory":true @@ -69,6 +75,12 @@ (* extends "songs.tex" *) (* set indexes = "titleidx,authidx" *) +(* block documentclass *) +\documentclass[(* for option in classoptions *) + ((option)), + (* endfor *)]{article} +(* endblock *) + (* block songbookpreambule *) (( super() )) diff --git a/songbook_core/data/templates/layout.tex b/songbook_core/data/templates/layout.tex index f6b04b66..c5e1b67f 100644 --- a/songbook_core/data/templates/layout.tex +++ b/songbook_core/data/templates/layout.tex @@ -26,17 +26,8 @@ %% %% Generated using Songbook -(* variables *) -{ -"mainfontsize": {"description": {"english": "Font Size", "french": "Taille de police"}, - "type":"font", - "default":{"default": "10pt"} - } -} -(* endvariables *) - (* block documentclass *) -\documentclass[((mainfontsize))]{article} +\documentclass{article} (* endblock *) (* block songbookpackages *)