Some people like having a icon in the centre of their QR code... I want to use the QRCode library to produce such a QR code.
For now, I'm using
\documentclass[landscape,8pt]{minimal}
\usepackage{varwidth}
\usepackage{tikz}
\usepackage[]{qrcode}
\usepackage{graphicx}
\setkeys{Gin}{keepaspectratio}
\begin{document}
\topskip0pt
% https://github.com/zxing/zxing/wiki/Barcode-Contents
\centering\noindent\resizebox*\textwidth\textheight{\begin{varwidth}{\textwidth}%
\begin{tabular}{@{}c@{}}%
%
%
\begin{tikzpicture}[node distance=2mm]
\node (qrc) {\qrcode[]{WIFI:T:WPA;S:trololol;P:"12345678";;}};
\node [anchor=center,fill=white,inner sep=4pt,scale=0.02]
(icon) at (qrc.center) {\includegraphics{wifi}};
\end{tikzpicture}
%
%
\end{tabular}%
\\%
\centering 12345678
\end{varwidth}}
\end{document}
to generate it, but it feels a bit weird, having to scale the icon manually. Also, I'm guessing that if the icon is big enough, the error recovery capabilities of the qrcode need to be adapted.
Is there any more convenient way of including such a centrally placed icon?
\documentclass
and ending at\end{document}
?