diff --git a/songbook_core/data/templates/patacrep.tex b/songbook_core/data/templates/patacrep.tex index fa16e831..573e7051 100644 --- a/songbook_core/data/templates/patacrep.tex +++ b/songbook_core/data/templates/patacrep.tex @@ -73,6 +73,16 @@ \renewcommand{\notebgcolor}{NoteBgColor} \renewcommand{\idxbgcolor}{IndexBgColor} + \definecolor{tango-green-3}{HTML}{4e9a06} + \definecolor{tango-blue-3}{HTML}{204a87} + \usepackage[bookmarks, + bookmarksopen, + hyperfigures=true, + colorlinks=true, + linkcolor=tango-green-3, + urlcolor=tango-blue-3]{hyperref} + + \subtitle{((subtitle))} (* if version!="unknown" *) \version{((version))} diff --git a/songbook_core/data/templates/songs.tex b/songbook_core/data/templates/songs.tex index cb9650c6..a2b5ba7f 100644 --- a/songbook_core/data/templates/songs.tex +++ b/songbook_core/data/templates/songs.tex @@ -41,15 +41,9 @@ \usepackage{graphicx} \graphicspath{{((datadir))/img/}} - - \definecolor{tango-green-3}{HTML}{4e9a06} - \definecolor{tango-blue-3}{HTML}{204a87} - \usepackage[bookmarks, - bookmarksopen, - hyperfigures=true, - colorlinks=true, - linkcolor=tango-green-3, - urlcolor=tango-blue-3]{hyperref} + \makeatletter + \@ifpackageloaded{hyperref}{}{\newcommand{\phantomsection}{}} + \makeatother (* endblock *) (* block songs *)