Browse Source

Menues réorganisation ; davantage de saucissonage pour faciliter leur modification.

pull/15/head
Louis 11 years ago
parent
commit
4743d81b1e
  1. 13
      songbook_core/data/templates/default.tex
  2. 20
      songbook_core/data/templates/layout.tex

13
songbook_core/data/templates/default.tex

@ -26,7 +26,9 @@
%%:]
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
(% endcomment %)
(* extends "layout.tex" *)
(* block extrapackages *)
\usepackage[
a4paper % paper size
@ -39,8 +41,7 @@
\usepackage{chords}
(* endblock extrapackages *)
(* block header *)
(* block songbookpreambule *)
\title{((title))}
\author{((author))}
\subtitle{((subtitle))}
@ -72,9 +73,7 @@
\graphicspath{{((datadir))/img/}}
\pagestyle{empty}
(* endblock header *)
(* block preface *)
\definecolor{SongNumberBgColor}{HTML}{((songnumberbgcolor))}
\definecolor{NoteBgColor}{HTML}{((notebgcolor))}
\definecolor{IndexBgColor}{HTML}{((indexbgcolor))}
@ -82,7 +81,9 @@
\renewcommand{\snumbgcolor}{SongNumberBgColor}
\renewcommand{\notebgcolor}{NoteBgColor}
\renewcommand{\idxbgcolor}{IndexBgColor}
(* endblock *)
(* block index *)
(* if mainlang==english *)
\showindex{Songs Index}{titleidx}
\showindex{Authors Index}{authidx}
@ -94,7 +95,9 @@
\notenamesin{A}{B}{C}{D}{E}{F}{G}
\notenamesout{La}{Si}{Do}{}{Mi}{Fa}{Sol}
(* endif *)
(* endblock *)
(* block chords *)
% list of chords
\ifchorded
\phantomsection
@ -103,7 +106,7 @@
(* else *)
\addcontentsline{toc}{section}{Liste des accords}
(* endif *)
% \chords
\chords
\fi
(* endblock *)

20
songbook_core/data/templates/layout.tex

@ -29,6 +29,7 @@
(* for instrument in instruments *)((instrument)),
(* endfor *)
((mainfontsize))pt]{crepbook}
(* block packages *)
\usepackage[utf8]{inputenc}
\usepackage[T1]{fontenc}
@ -37,22 +38,37 @@
\PassOptionsToPackage{((lang))}{babel}
(* endfor *)
\usepackage{babel}
(* block extrapackages *)
(* endblock extrapackages *)
(* endblock packages *)
(* block header *)
(* endblock header *)
(* block songbookpreambule *)
(* endblock songbookpreambule *)
(* block preambule *)
(* endblock preambule *)
\begin{document}
(* block title *)
\maketitle
(* endblock *)
(* block preface *)
(* endblock *)
(* block index *)
(* endblock *)
(* block chords *)
(* endblock *)
(* block content *)
(* endblock *)
(* block postface *)
(* endblock *)
\end{document}
% End of file

Loading…
Cancel
Save