GPG-KEY2LATEX(1)
π GPG-KEY2LATEX(1) π
okay bestie, welcome to the User Contributed Perl Documentation section of your manual, and today we're talking about gpg-key2latex β yes she's a Perl queen, yes she's serving LaTeX, and yes she will absolutely make you the cutest little fingerprint slips you've ever seen. π
β¨ NAME β¨
gpg-key2latex β generate a LaTeX file for fingerprint slips, periodt. π
πΈ SYNOPSIS πΈ
gpg-key2latex [-p papersize] [-s] [--show-photo] [--show-qrcode] keyid
[keyid...]
she takes a keyid, or like, several *keyid*s if you're feeling generous. no cap.
π¦ DESCRIPTION π¦
so the whole vibe is: gpg-key2latex generates a LaTeX file that has an OpenPGP key fingerprint and User IDs on it, and it repeats that stuff as many times as it can fit on a single page. like, one page, maximum slay.
the LaTeX data goes straight to STDOUT β no files, no drama, just vibes and output streams. β¨
β οΈ heads up bestie: in most cases you can compile the generated file into a PDF withpdflatex(1), but if some UID contains CJK characters then you lowkey needxelatex(1)instead. iykyk, don't fight it. π
π OPTIONS π
-p paper-size,--paper-size=paper-sizeβ pick your output paper size. the default is whateverpaperconf(1)spits out, ora4iflibpaper-utilsisn't installed. so like, if you don't have libpaper-utils, congrats, you get A4 by default. π«Ά-s,--show-subkeysβ show the subkey info. main character subkeys deserve their moment too. π--show-photoβ show the first valid user attribute, if there is one.
π not me warning you: this writes JPG files to the current directory. your folder, your problem. keep an eye on her.
--show-qrcodeβ show a QR code of the string specified by--qrcode-data.
π«£ another warning: this writes PDF files to the current directory. also it requiresqrencode(1)andepstopdf(1), so make sure they're installed or it's giving broken.
--qrcode-data=stringβ the data to encode in a QR code. this implies--show-qrcode, so asking for it is basically asking for the QR code too. π«
the string expansions, and these are exact bestie, do not freestyle:
%fgets expanded to the OpenPGP key fingerprint β that's 40 hexadecimal digits, without spaces%kgets expanded to the long key ID β that's 16 hexadecimal digits%%gets replaced by a single%
and if you don't specify --qrcode-data at all, the default data to encode is the string "OPENPGP4FPR:%f". iconic default behavior. π
--attr-heightβ the height, in number of lines, of the photo and QR code. the default is the number of User ID, with a maximum of 5. so it's like, "match the User IDs, but chill out at 5." π-?,--helpβ print a brief help and dip. π--versionβ print the version and exit. short, sweet, slay. β
π ENVIRONMENT π
HOMEβ the default home directory. you know her, you love her.GNUPGBINβ the gpg binary. default:"gpg". that's the one. β¨GNUPGHOMEβ the default working directory for gpg. default:"$HOME/.gnupg". yes, the classic. π
π₯ SEE ALSO π₯
gpg(1), gpg-key2ps(1) β go read those next, bestie, they're the extended universe. π
π«Ά BUGS AND FEEDBACK π«Ά
found a bug? got a feature request? felt a feeling? bugs or feature requests for gpg-key2latex should be filed with the Debian project's bug tracker at <https://www.debian.org/Bugs/>. the Debian girlies will handle it. no cap. π§
π AUTHOR π
Guilhem Moulin <guilhem@debian.org> β thank you for your service, legend. π
π COPYRIGHT AND LICENSE π
Copyright (c) 2014 Guilhem Moulin. gpg-key2latex is free software, distributed under the GNU Public License, version 3 or later. free as in freedom, free as in slay. π
and that's the whole page bestie!! this doc was brought to you by perl v5.40.1, dated 2026-02-09, and filed under GPG-KEY2LATEX(1). go forth and print those fingerprint slips. πΈβ¨π
π¦ where this page comes from
- ubuntu resolute: signing-party 2.12-1build1 Β· BSD-3-Clause
- ubuntu stonking: signing-party 2.12-1build1 Β· BSD-3-Clause
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash on : a language model's rewrite of the original, under its terms