gpg-key2latex man page

gpg-key2latex — Generate a LaTeX file for fingerprint slips.


gpg-key2latex [-p papersize] [-s] [--show-photo] [--show-qrcode] keyid [keyid...]


gpg-key2latex generates a LaTeX file with an OpenPGP key fingerprint and User IDs, repeated as often as it fits on a single page.  The LaTeX data is written to STDOUT. Note: In most cases the generated file can be compiled to PDF using pdflatex(1), but xelatex(1) is required if some UID contains CJK characters.


-p paper-size, --paper-size=paper-size

Select the output paper size. The default is the output of paperconf(1), or a4 if libpaper-utils isn't installed.

-s, --show-subkeys

Show subkey information.


Show the first valid user attribute, if any.  Note: This writes JPG files to the current directory.


Show a QR code of the OpenPGP key fingerprint (40 hexadecimal digits, without spaces), prefixed with the string "OPENPGP4FPR:".  Note: This writes PDF files to the current directory. Requires qrencode(1) and epstopdf(1).


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.

-?, --help

Print a brief help and exit.


Print the version and exit.



The default home directory.


The gpg binary.  Default: "gpg".


The default working directory for gpg.  Default: "$HOME/.gnupg".



See Also

gpg(1), gpg-key2ps(1)

Bugs and Feedback

Bugs or feature requests for gpg-key2latex should be filed with the Debian project's bug tracker at <>.


Guilhem Moulin <>

Referenced By


2016-08-21 perl v5.26.0 User Contributed Perl Documentation