mirror of https://github.com/zcash/zips.git
Make the label boxes link to the correct URL.
Signed-off-by: Daira Hopwood <daira@jacaranda.org>
This commit is contained in:
parent
588bc39a77
commit
1147fe4eff
|
@ -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}
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
% <https://en.wikibooks.org/wiki/LaTeX/Colors#The_68_standard_colors_known_to_dvips>
|
||||
|
||||
|
@ -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}
|
||||
|
|
Loading…
Reference in New Issue