-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy pathfingerprint.tex
34 lines (27 loc) · 948 Bytes
/
fingerprint.tex
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
\documentclass[a4paper,12pt]{scrartcl} % 2>/dev/null || <<'\end{document}'
% Key ID to print
\newcommand{\keyid}{5F8990AF}
% Number of repetitions
\newcommand{\repetitions}{8}
% Author: Volker Diels-Grabsch <[email protected]>
% This code is public domain.
\usepackage[hmargin=1.5cm,vmargin=1cm]{geometry}
\usepackage{xcolor,forloop}
\usepackage{listings}
\lstset{basicstyle=\footnotesize}
\lstset{frame=shadowbox}
\lstset{rulesepcolor=\color{gray}}
\lstset{breaklines=true, breakatwhitespace=true}
\begin{document}
\immediate\write18{gpg2 --fingerprint \keyid >fingerprint-plain.txt}
\lstinputlisting{fingerprint-plain.txt}
\newcounter{ct}
\forloop{ct}{1}{\value{ct}<\repetitions}{\vfill
\lstinputlisting{fingerprint-plain.txt}}
\end{document}
# Configure shell to abort in case of an unexpected error
set -e
# Generate PDF
pdflatex --shell-escape fingerprint.tex
# Remove temporary files
rm -f fingerprint.aux fingerprint.log fingerprint-plain.txt