From d39b92be70879aa191abb1e2c65f0be75e4cf1b0 Mon Sep 17 00:00:00 2001 From: Luthaf Date: Mon, 26 May 2014 10:48:03 +0100 Subject: [PATCH] Revert "Le package hyperref est necessaire pour compiler les index" This reverts commit 5b2f4b61a255647bef09d1f5017f54ba860141a2. --- songbook_core/data/templates/patacrep.tex | 10 ++++++++++ songbook_core/data/templates/songs.tex | 12 +++--------- 2 files changed, 13 insertions(+), 9 deletions(-) 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 *)