From 62a61718aeb55136ed191bea7b7e2d2421504b71 Mon Sep 17 00:00:00 2001 From: Louis Date: Fri, 5 Sep 2014 18:48:35 +0200 Subject: [PATCH] =?UTF-8?q?Correction=20d'une=20erreur=20si=20une=20url=20?= =?UTF-8?q?est=20d=C3=A9finie=20avec=20le=20template=20default.tex?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- patacrep/data/templates/songs.tex | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/patacrep/data/templates/songs.tex b/patacrep/data/templates/songs.tex index 0db422e8..802c216d 100644 --- a/patacrep/data/templates/songs.tex +++ b/patacrep/data/templates/songs.tex @@ -92,8 +92,12 @@ \makeatletter - \@ifpackageloaded{hyperref}{}{\newcommand{\phantomsection}{}} - \@ifpackageloaded{hyperref}{}{\newcommand{\hyperlink}[2]{#2}} + \@ifpackageloaded{hyperref}{}{ + \usepackage{url} + \newcommand{\phantomsection}{} + \newcommand{\hyperlink}[2]{#2} + \newcommand{\href}[2]{\expandafter\url\expandafter{#1}} + } \makeatother (* endblock *)