61 lines
1.4 KiB
TeX
61 lines
1.4 KiB
TeX
% wlan-qrcode
|
|
% Copyright (C) 2025 Johannes "Jo" Erwerle
|
|
|
|
% This program is free software: you can redistribute it and/or modify
|
|
% it under the terms of the GNU General Public License as published by
|
|
% the Free Software Foundation, either version 3 of the License, or
|
|
% (at your option) any later version.
|
|
|
|
% This program is distributed in the hope that it will be useful,
|
|
% but WITHOUT ANY WARRANTY; without even the implied warranty of
|
|
% MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
|
% GNU General Public License for more details.
|
|
|
|
% You should have received a copy of the GNU General Public License
|
|
% along with this program. If not, see <https://www.gnu.org/licenses/>.
|
|
\documentclass[a4paper]{article}
|
|
|
|
\usepackage{qrcode}
|
|
\usepackage{parskip}
|
|
\usepackage{ifthen}
|
|
\renewcommand{\familydefault}{\sfdefault}
|
|
\usepackage[hidelinks]{hyperref}
|
|
|
|
\usepackage{geometry}
|
|
\geometry{
|
|
a4paper,
|
|
left=20mm,
|
|
right=20mm,
|
|
top=20mm,
|
|
bottom=20mm,
|
|
}
|
|
|
|
\def\ssid{YourSSID}
|
|
\def\password{YourPassword}
|
|
\def\encryption{WPA}
|
|
\def\hidden{false}
|
|
|
|
\begin{document}
|
|
|
|
\centering
|
|
\huge
|
|
|
|
\fbox{
|
|
\begin{minipage}[c][18.3cm][c]{13cm}
|
|
\centering
|
|
% \fbox{
|
|
\begin{minipage}[c][17.1cm][c]{11.8cm}
|
|
\centering
|
|
\qrcode*[height=6cm, level=H, padding]{WIFI:S:\ssid;T:\encryption;P:\password;H:\hidden;;}
|
|
|
|
\vspace{1cm}
|
|
|
|
SSID: \ssid
|
|
|
|
Password: \texttt{\password{}}
|
|
\end{minipage}
|
|
% }
|
|
\end{minipage}
|
|
}
|
|
|
|
\end{document}
|