From 1147fe4effc44191a0d4e7adc9a271ae336b0230 Mon Sep 17 00:00:00 2001 From: Daira Hopwood Date: Thu, 8 Aug 2019 16:37:46 +0100 Subject: [PATCH] Make the label boxes link to the correct URL. Signed-off-by: Daira Hopwood --- protocol/protocol.tex | 36 ++++++++++++++++++++++++------------ 1 file changed, 24 insertions(+), 12 deletions(-) diff --git a/protocol/protocol.tex b/protocol/protocol.tex index 7755889e..74f910b0 100644 --- a/protocol/protocol.tex +++ b/protocol/protocol.tex @@ -226,9 +226,12 @@ \renewcommand{\footnote}[1]{\hairspace{\oldfootnote{#1}}} \newcommand{\footnotewithlabel}[2]{\hairspace\oldfootnote{\label{#1}{#2}}} -\newcommand{\headingandlabel}[2]{\texorpdfstring{\hypersetup{pdfborderstyle=/W 0}\switchocg{labels}{#1}% - \hypersetup{pdfborderstyle={/S/U/W 0.7}}}{}\hfill% - \begin{ocg}{Labels}{labels}{false}\fcolorbox{black}{yellow!20}{\normalfont\normalsize\color{black}\raisebox{0.2ex}{\linkstrut}\smash{#2}}\end{ocg}} +\newcommand{\noborders}[1]{% no nations + \hypersetup{pdfborderstyle=/W 0}{#1}\hypersetup{pdfborderstyle=/S/U/W 0.7}} + +\newcommand{\headingandlabel}[2]{\texorpdfstring{\noborders{\switchocg{labels}{#1}}}{}\hfill% + \begin{ocg}{Labels}{labels}{false}\fcolorbox{black}{\labelcolor}{% + \normalfont\normalsize\noborders{\href{\baseurl#2}{\color{black}\raisebox{0.2ex}{\linkstrut}\smash{#2}}}}\end{ocg}} \newcommand{\refprefix}{\linkstrut\S\!\!} \newcommand{\crossref}[1]{\raisebox{0ex}{\refprefix\autoref{#1}}\hspace{0.2em}\emph{`\nameref*{#1}\kern -0.05em'} on p.\,\pageref*{#1}} @@ -494,15 +497,6 @@ \newcommand{\keywords}{anonymity, applications, cryptographic protocols,\ electronic commerce and payment, financial privacy, proof of work, zero knowledge} -\hypersetup{ - pdfborderstyle={/S/U/W 0.7}, - pdfinfo={ - Title={\doctitle, \docversion}, - Author={\leadauthor, \coauthora, \coauthorb, \coauthorc}, - Keywords={\keywords} - } -} - % @@ -518,6 +512,7 @@ electronic commerce and payment, financial privacy, proof of work, zero knowledg \newcommand{\saplingcolor}{green} \newcommand{\overwintercolor}{blue} \newcommand{\blossomcolor}{red} +\newcommand{\labelcolor}{yellow!20} \iftoggle{isblossom}{ \toggletrue{issapling} @@ -526,11 +521,17 @@ electronic commerce and payment, financial privacy, proof of work, zero knowledg \newcommand{\notblossom}[1]{} \newcommand{\notbeforeblossom}[1]{#1} \pagecolor{magenta!4} + \newcommand{\baseurl}{https://zips.z.cash/protocol/blossom.pdf} } { \newcommand{\setblossom}{} \newcommand{\blossom}[1]{} \newcommand{\notblossom}[1]{#1} \newcommand{\notbeforeblossom}[1]{} + \iftoggle{issapling}{ + \newcommand{\baseurl}{https://zips.z.cash/protocol/protocol.pdf} + } { + \newcommand{\baseurl}{https://zips.z.cash/protocol/sprout.pdf} + } } \iftoggle{issapling}{ @@ -553,6 +554,17 @@ electronic commerce and payment, financial privacy, proof of work, zero knowledg } +\hypersetup{ + pdfborderstyle={/S/U/W 0.7}, + pdfinfo={ + Title={\doctitle, \docversion}, + Author={\leadauthor, \coauthora, \coauthorb, \coauthorc}, + Keywords={\keywords} + }, + baseurl={\baseurl} +} + + % Terminology \newcommand{\indextype}{normalstyle}