Archived
1
0

Adds the songs to the TOC of the songbook

This commit is contained in:
Jip J. Dekker 2016-03-30 15:46:53 +02:00
parent a44abbc5d2
commit 6e90576643

View File

@ -34,6 +34,7 @@ var bookTempl = `
\usepackage[utf8]{inputenc} \usepackage[utf8]{inputenc}
\usepackage{pdfpages} \usepackage{pdfpages}
\usepackage[space]{grffile} \usepackage[space]{grffile}
\usepackage[pdftex,pdfpagelabels,bookmarks,hyperindex,hyperfigures]{hyperref}
{{if ne .Settings.Name ""}}\\title{ {{.Settings.Name}} }{{end}} {{if ne .Settings.Name ""}}\\title{ {{.Settings.Name}} }{{end}}
{{if ne .Settings.Author ""}}\\author{ {{.Settings.Author}} }{{end}} {{if ne .Settings.Author ""}}\\author{ {{.Settings.Author}} }{{end}}
@ -42,7 +43,11 @@ var bookTempl = `
\begin{document} \begin{document}
\maketitle \maketitle
\newpage
{{range .Scores}} {{range .Scores}}
\phantomsection
\addcontentsline{toc}{section}{{printf "{"}}{{ .Name }}{{printf "}"}}
\includepdf[pages=-]{{printf "{"}}{{call $.OutputPath .Path $.Settings}}{{printf "}"}} \includepdf[pages=-]{{printf "{"}}{{call $.OutputPath .Path $.Settings}}{{printf "}"}}
{{end}} {{end}}