From 3c18186d7c1bc4aa0a3f5727b5dbe5a251687d9c Mon Sep 17 00:00:00 2001 From: Norbert Preining Date: Tue, 12 Jun 2018 08:07:19 +0900 Subject: add qrcstamps --- texmf-dist/tex/latex/qrcstamps/qrcstamps.sty | 59 ++++++++++++++++++++++++++ texmf-dist/tex/latex/qrcstamps/scandoc-grc.def | 55 ++++++++++++++++++++++++ 2 files changed, 114 insertions(+) create mode 100644 texmf-dist/tex/latex/qrcstamps/qrcstamps.sty create mode 100644 texmf-dist/tex/latex/qrcstamps/scandoc-grc.def (limited to 'texmf-dist/tex') diff --git a/texmf-dist/tex/latex/qrcstamps/qrcstamps.sty b/texmf-dist/tex/latex/qrcstamps/qrcstamps.sty new file mode 100644 index 00000000..dc83a5de --- /dev/null +++ b/texmf-dist/tex/latex/qrcstamps/qrcstamps.sty @@ -0,0 +1,59 @@ +%% +%% This is file `qrcstamps.sty', +%% generated with the docstrip utility. +%% +%% The original source files were: +%% +%% qrcstamps.dtx (with options: `copyright,package') +%% +%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% +%% qrcstamps.sty package, %% +%% Copyright (C) 2017 %% +%% dpstory@uakron.edu %% +%% %% +%% This program can redistributed and/or modified under %% +%% the terms of the LaTeX Project Public License %% +%% Distributed from CTAN archives in directory %% +%% macros/latex/base/lppl.txt; either version 1.2 of the %% +%% License, or (at your option) any later version. %% +%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% +\NeedsTeXFormat{LaTeX2e}[1997/12/01] +\ProvidesPackage{qrcstamps} + [2018/06/02 v1.0 qrcstamps: Create QR codes using stamps] +\RequirePackage{xkeyval} +\DeclareOptionX{scandoc}{\let\grc@InputScanDoc\qr@scanDoc} +\DeclareOptionX{!scandoc}{\let\grc@InputScanDoc\relax} +\let\grc@InputScanDoc\relax +\def\qr@scanDoc{\InputIfFileExists{scandoc-grc.def}{\PackageInfo{qrcstamps} + {Inputting the scandoc-grc.def file}} + {\PackageWarning{qrcstamps}{Cannot find the file scandoc-grc.def}}} +\DeclareOptionX{basename}{\def\QRBase{#1}} +\def\QRBase{AeBQRC} +\DeclareOptionX*{\PassOptionsToPackage{\CurrentOption}{insdljs}} +\ProcessOptionsX +\RequirePackage{annot_pro}[2017/06/06] +\ifx\grc@InputScanDoc\relax\else\let\execjs=y\fi +\define@choicekey+{annotprostampQR}{size}[\val\nr]{% +small,medium,large}[small]{\ifcase\nr\relax + \def\apstamp@@size{Small}\def\qrc@def@W{1in}\or + \def\apstamp@@size{Med}\def\qrc@def@W{1.5in}\or + \def\apstamp@@size{Large}\def\qrc@def@W{2in}\else + \def\apstamp@@size{Small}\def\qrc@def@W{1in}\fi}% +{\PackageWarning{qrcstamps}{Invalid choice of `size=#1'\MessageBreak + Permissible values are small, medium, large}} +\def\apstamp@@size{Small} +\define@boolkey{annotprostampQR}{allowresize}[true]{} +\define@key{annotprostampQR}{basename}[\QRBase]{\edef\QRBase{#1}} +\define@key{annotprostampQR}{contents}[]{\long\def\qrc@contents{#1}} +\let\qrc@contents\@empty +\newcommand\qrCode[2][]{\begingroup\def\n{\string\n}% + \def\apstamp@@size{Small}\def\qrc@def@W{1in}% + \setkeys*{annotprostampQR}{#1}% + \annotpro*[widthTo=\qrc@def@W,#1,type=stamp, + \ifKV@annotprostampQR@allowresize\else readonly\fi, + title=QRC,subject={#2},% + name=\#\QRBase_\apstamp@@size]{\qrc@contents}\endgroup} +\grc@InputScanDoc +\endinput +%% +%% End of file `qrcstamps.sty'. diff --git a/texmf-dist/tex/latex/qrcstamps/scandoc-grc.def b/texmf-dist/tex/latex/qrcstamps/scandoc-grc.def new file mode 100644 index 00000000..148cdbc9 --- /dev/null +++ b/texmf-dist/tex/latex/qrcstamps/scandoc-grc.def @@ -0,0 +1,55 @@ +%% +%% This is file `scandoc-grc.def', +%% generated with the docstrip utility. +%% +%% The original source files were: +%% +%% qrcstamps.dtx (with options: `copyright,scandoc') +%% +%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% +%% qrcstamps.sty package, %% +%% Copyright (C) 2017 %% +%% dpstory@uakron.edu %% +%% %% +%% This program can redistributed and/or modified under %% +%% the terms of the LaTeX Project Public License %% +%% Distributed from CTAN archives in directory %% +%% macros/latex/base/lppl.txt; either version 1.2 of the %% +%% License, or (at your option) any later version. %% +%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% +\begin{execJS}{scan4qrc} +var aBCStamps=new Array(); +if (typeof scancomplete=="undefined") { + var scancomplete=false,annots,isStamp,isHashtag; + this.syncAnnotScan(); + for (var p=0; p0) + var qrcTO=app.setInterval("QRCscrollPage()", 5); +\end{execJS} +\endinput +%% +%% End of file `scandoc-grc.def'. -- cgit v1.2.3