summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
Diffstat (limited to 'decisions')
-rw-r--r--decisions/decisions.tex8
1 files changed, 7 insertions, 1 deletions
diff --git a/decisions/decisions.tex b/decisions/decisions.tex
index 85986a5..6043626 100644
--- a/decisions/decisions.tex
+++ b/decisions/decisions.tex
@@ -89,7 +89,13 @@ subject ``{\em\gentoomailsubject{#2}}'', \gentoomaildate{#2})}}
}
\InputIfFileExists{\jobname.glg}{}
-\newcommand{\glep}[1]{\href{https://wiki.gentoo.org/wiki/GLEP:#1}{GLEP
+\newcommand{\twodigits}[1]{\ifnum#1<10 0\fi#1}
+\newcommand{\threedigits}[1]{\ifnum#1<100 0\fi\twodigits{#1}}%
+\newcommand{\fourdigits}[1]{\ifnum#1<1000 0\fi\threedigits{#1}}%
+\newcommand{\fivedigits}[1]{\ifnum#1<10000 0\fi\fourdigits{#1}}
+
+\newcommand{\glep}[1]{%
+\href{https://www.gentoo.org/glep/glep-\fourdigits{#1}.html} { GLEP
{#1}}\index{GLEP!#1}\glepadd{#1}%
\gentooifempty{\gleptitle{#1}}{}{
(``\gleptitle{#1}'')}}