| 1 |
%% fancyqr.sty |
| 2 |
%% Copyright 2026 Florian Sihler |
| 3 |
% |
| 4 |
% This work may be distributed and/or modified under the |
| 5 |
% conditions of the LaTeX Project Public License, either version 1.3 |
| 6 |
% of this license or (at your option) any later version. |
| 7 |
% The latest version of this license is in |
| 8 |
% https://www.latex-project.org/lppl.txt |
| 9 |
% and version 1.3c or later is part of all distributions of LaTeX |
| 10 |
% version 2008 or later. |
| 11 |
% |
| 12 |
% This work has the LPPL maintenance status `maintained'. |
| 13 |
% |
| 14 |
% The Current Maintainer of this work is Florian Sihler |
| 15 |
% |
| 16 |
% This work consists of the example file `qr-example.tex`, alongside the `fancyqr.sty`, the `fancyqr-style-*.code` files and the documentation `fancyqr-doc.tex`. |
| 17 |
\documentclass{article} |
| 18 |
|
| 19 |
\usepackage[T1]{fontenc} |
| 20 |
\usepackage{fontawesome} |
| 21 |
\usepackage{fancyqr} |
| 22 |
|
| 23 |
% for showcase of random colors |
| 24 |
\usepackage{pgfmath} |
| 25 |
\usepackage[prefix=@]{xcolor-material} |
| 26 |
|
| 27 |
% to showcase scalebox |
| 28 |
\usepackage{graphicx} |
| 29 |
|
| 30 |
% for the coding font |
| 31 |
\usepackage{FiraMono} |
| 32 |
|
| 33 |
\usepackage[active,tightpage]{preview} % for presentation |
| 34 |
\setlength\PreviewBorder{15pt} |
| 35 |
|
| 36 |
\fancyqrset{size=3.25cm, level=H, padding} |
| 37 |
|
| 38 |
\errorcontextlines=9999 |
| 39 |
\begin{document} |
| 40 |
\preview |
| 41 |
\begin{center} |
| 42 |
% \FancyQrDoNotPrintSquare{8}{9} |
| 43 |
% \FancyQrHardCut |
| 44 |
\mbox{\FancyQrLoad{blobs}% |
| 45 |
\fancyqr[image=\scalebox{2.9}{\faGithub},image padding=1,color=black!90!gray]{https://github.com/EagleoutIce/fancyqr}% |
| 46 |
\FancyQrLoad{default}% |
| 47 |
\fancyqr{https://github.com/EagleoutIce/fancyqr}% |
| 48 |
\FancyQrLoad{dots}% |
| 49 |
\fancyqr[image={\textsf{\textbf{\textcolor{gray}{fancy}qr}}}, random color={@Red}{@Pink}{@Purple}{@DeepPurple}{@Indigo}{@Blue}{@Cyan}{@Teal}{@Green}{@Amber}{@Orange}{@DeepOrange}{@Brown}]{https://github.com/EagleoutIce/fancyqr}% |
| 50 |
}\\[4mm] |
| 51 |
\texttt{\textbackslash \textbf{fancyqr}\{\textcolor{@Grey}{https://github.com/EagleoutIce/fancyqr}\}} |
| 52 |
\end{center} |
| 53 |
\endpreview |
| 54 |
\end{document} |