summaryrefslogtreecommitdiff
path: root/tex/context/modules/mkxl/m-barcodes.mkxl
blob: 43540e457d6c7dd0c72e9dd744cc0b902cdfb94f (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
%D \module
%D   [       file=m-barcodes,
%D        version=2010.03.14,
%D          title=\CONTEXT\ Extra Modules,
%D       subtitle=Barcodes,
%D         author=Hans Hagen,
%D           date=\currentdate,
%D      copyright={PRAGMA ADE \& \CONTEXT\ Development Team}]
%C
%C This module is part of the \CONTEXT\ macro||package and is
%C therefore copyrighted by \PRAGMA. See mreadme.pdf for
%C details.

\writestatus{barcodes}{the 'zint' module is a better choice}

\usemodule[zint]

\unprotect

\pushoverloadmode

\let\normalbarcode\barcode

\permanent\protected\def\barcode[#1]%
  {\normalbarcode[\c!text=\dummyparameter{code},\c!alternative=\dummyparameter{type},#1]}

\popoverloadmode

\protect

\continueifinputfile{m-barcodes.mkxl}

\starttext
    \startTEXpage
        \barcode[type=isbn,text=978-9490688011]
        \blank
        \barcode[type=isbn,text=9780500518724]
    \stopTEXpage
\stoptext