diff --git a/img/internet.png b/img/internet.png new file mode 100644 index 00000000..43299f17 Binary files /dev/null and b/img/internet.png differ diff --git a/img/src/internet.svg b/img/src/internet.svg new file mode 100644 index 00000000..aeec764a --- /dev/null +++ b/img/src/internet.svg @@ -0,0 +1,216 @@ + + + + + + + + image/svg+xml + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/tex/crepbook.cls b/tex/crepbook.cls index 984a23db..8aa8ccea 100644 --- a/tex/crepbook.cls +++ b/tex/crepbook.cls @@ -64,6 +64,7 @@ \definecolor{tango-blue-3}{HTML}{204a87} \RequirePackage[bookmarks, bookmarksopen, + hyperfigures=true, colorlinks=true, linkcolor=tango-green-3, urlcolor=tango-blue-3]{hyperref} @@ -205,6 +206,8 @@ \newcommand{\songalbum}{} \newsongkey{cov}{\let\songcover\@empty}{\def\songcover{#1}} \newsongkey{album}{\let\songalbum\@empty}{\def\songalbum{#1}} +\newsongkey{url}{\let\songurl\@empty}{\def\songurl{#1}} +\newsongkey{original}{\let\songoriginal\@empty}{\def\songoriginal{#1}} \newcommand\cover{% \ifpictures% \ifx\songcover\@empty\else% @@ -216,6 +219,23 @@ \fi% } +% display album in song header +\renewcommand{\extendprelude}{ + {\bfseries\showauthors} + {\footnotesize\it\songalbum} + \IfStrEq{\songurl}{}{}{ + \href{\songurl}{\includegraphics[width=.3cm]{internet}} + } +} +\renewcommand{\extendpostlude}{ + {\footnotesize% + \IfStrEq{\songoriginal}{}{}{ + \IfStrEq{\@lang}{english}{Original song:}{Chanson originale :} + \songoriginal + } + } +} + \newlength{\capoheight} \setlength{\capoheight}{1.5cm} \renewcommand\capo[1]{%