Adds the songs to the TOC of the songbook
This commit is contained in:
parent
a44abbc5d2
commit
6e90576643
@ -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}}
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user