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 with pdflatex(1), but if some UID contains CJK characters then you lowkey need xelatex(1) instead. iykyk, don't fight it. 😭

πŸ’… OPTIONS πŸ’…

  • -p paper-size, --paper-size=paper-size β€” pick your output paper size. the default is whatever paperconf(1) spits out, or a4 if libpaper-utils isn'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 requires qrencode(1) and epstopdf(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:

  • %f gets expanded to the OpenPGP key fingerprint β€” that's 40 hexadecimal digits, without spaces
  • %k gets 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 (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