From 573d8635950788a07db677e3cdd20f68ac7d78c7 Mon Sep 17 00:00:00 2001 From: "Jip J. Dekker" Date: Sun, 17 Apr 2016 12:09:59 +0200 Subject: [PATCH] Use includepdf TOC handling by default --- compiler/book_template.go | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/compiler/book_template.go b/compiler/book_template.go index e379add..e7b0ceb 100644 --- a/compiler/book_template.go +++ b/compiler/book_template.go @@ -92,6 +92,4 @@ const titleTempl = `\maketitle` const categoryTempl = `\chapter{{printf "{"}}{{ . }}{{printf "}"}}\newpage` -const scoreTempl = `\phantomsection -\addcontentsline{toc}{section}{{printf "{"}}{{ .Name }}{{printf "}"}} -\includepdf[pages=-]{{printf "{"}}{{.OutputPath}}{{printf "}"}}` +const scoreTempl = `\includepdf[addtotoc={1,section,1,{{ printf "{%s}" .Name }},}, pages=-]{{printf "{%s}" .OutputPath}}`