wifi-printer/examples/two.tex

37 lines
786 B
TeX
Raw Permalink Normal View History

\documentclass[size=43,qrcode=3cm]{wifi}
\usepackage{multirow} % cell taking multiple rows
\usepackage{trimclip} % pretty two table aligned
\def\ssid{YourSSID}
\def\code{ABCDEFGHIJKL123456}
\def\ssidi{\ssid\_guest}
\def\codei{MNOPQRSTUVWXYZ789}
\begin{document}
Wi-Fi with guest
\vspace{1cm}
\newsavebox\wifis
\savebox\wifis{
\begin{tabular}{|c|c|c|}
\hline
SSID & \ssid &
\multirow{2}*{\qrc{\code}{\ssid}} \\
\cline{1-2}
PASS & \insertspaces{\code} & \\
\hline
SSID & \ssidi &
\multirow{2}*{\qrc{\codei}{\ssidi}} \\
\cline{1-2}
PASS & \insertspaces{\codei} & \\
\hline
\end{tabular}
}
\clipbox{0pt 103pt 0pt 0pt}{\usebox\wifis}
\clipbox{0pt 0pt 0pt 103pt}{\usebox\wifis}
\end{document}