summaryrefslogtreecommitdiff
path: root/Master/texmf-dist/doc/latex/elzcards/elzcards-example.tex
blob: b1fcf0647d5594bedc560f05d37f9f639f3dddc6 (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
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
%%
%% This is file `elzcards-example.tex',
%% generated with the docstrip utility.
%%
%% The original source files were:
%%
%% elzcards.dtx  (with options: `ejemplo')
%% 
%% Copyright 2015 Emilio Lazo Zaia <emiliolazozaia@gmail.com>
%% 
%% This work may be distributed and/or modified under the
%% conditions of the LaTeX Project Public License, either
%% version 1.3c of this license or (at your option) any later
%% version. This version of this license is in
%%  http://www.latex-project.org/lppl/lppl-1-3c.{html|txt|tex|pdf}
%% and the latest version of this license is in
%%  http://www.latex-project.org/lppl.txt
%% and version 1.3c or later is part of all distributions of
%% LaTeX version 2008/05/04 or later.
%% 
%% This work has the LPPL maintenance status `maintained'.
%% 
%% The Current Maintainer of this work is Emilio Lazo Zaia.
%% 
%% This work consists of the files README and elzcards.dtx with
%% its derived files elzcards.ins, elzcards.sty and
%% elzcards-example.tex.
%% 
\documentclass{article}
\usepackage{elzcards}
\usepackage[landscape,letterpaper,vmargin={0.25in,0.25in},hmargin={0.25in,0.25in}]{geometry}
\newcommand{\mycenter}[1]{%
 top left corner\vfill\mbox{}%
 \begin{center}\LARGE#1\end{center}%
 \mbox{}\vfill \hfill bottom right corner}
\begin{document}
 \BusinessCard{\mycenter{Business card \\ only front side \\ default options}}
 \MakeBC
 \BusinessCard{\mycenter{Business card \\ front side \\ other size: vertical \\
  with thicker and longer crosses}}%
  [\mycenter{Business card \\ front side \\ other size: vertical}]
 \MakeBC[hsize=2in, vsize=3.5in, line thickness=1pt, segment length=0.5cm]
 \BusinessCard{\mycenter{Business card \\ only front side \\ with dots}}
 \MakeBC[dots]
 \BusinessCard{\mycenter{Business card \\ only front side \\ with big dots and gaps}}
 \MakeBC[dots, dot size=4pt, hgap=1.666cm, vgap=0.666cm]
 \BusinessCard{\mycenter{Business card \\ only front side \\ with lines}}
 \MakeBC[lines]
 \BusinessCard{\mycenter{Business card \\ only front side \\ with thicker lines}}
 \MakeBC[lines, line thickness=2pt]
 \BusinessCard{\mycenter{Business card \\ front side \\ other size \\ with gaps}}%
  [\mycenter{Business card \\ other size \\ back side}]
 %% We can specify size also with \BCdim command, outsize of \MakeBC command:
 \BCdim{74mm}{52mm}
 \MakeBC[hgap=1.666cm, vgap=0.666cm]
 \IndexCard{\mycenter{Index/flash card \\ front side \CurrentIC{} of \TotalIC}}%
  [\mycenter{Index/flash card \CurrentIC{} of \TotalIC \\ back side}]
 %% Note that not all cards has back side.
 \IndexCard{\mycenter{Index/flash card \\ front side \CurrentIC{} of \TotalIC}}
 \IndexCard{\mycenter{Index/flash card \\ front side \CurrentIC{} of \TotalIC}}
 \IndexCard{\mycenter{Index/flash card \\ front side \CurrentIC{} of \TotalIC}}%
  [\mycenter{Index/flash card \CurrentIC{} of \TotalIC \\ back side}]
 \IndexCard{\mycenter{Index/flash card \\ front side \CurrentIC{} of \TotalIC}}
 \IndexCard{\mycenter{Index/flash card \\ front side \CurrentIC{} of \TotalIC}}
 \IndexCard{\mycenter{Index/flash card \\ front side \CurrentIC{} of \TotalIC}}
 %% Now \MakeIC* instead of \MakeIC, so we can process them again with \MakeIC or \MakeIC*.
 \MakeIC*
 %% We define some default parameters instead of giving options to \MakeIC:
 \ICgap{0.5cm}{0.5cm}
 \CrossSegment{10pt}
 \LineThickness{1pt}
 %% \MakeIC* again because we did use \MakeIC* before:
 \MakeIC*
 \FCgap{0pt}{0pt}% \FCgap is an alias to \ICgap.
 \ICdim{6in}{4in}
 \DotSize{1mm}
 \CropDots
 %% \CropCrosses
 %% \CropLines
 \MakeFC*% \MakeFC is an alias to \MakeIC.
\end{document}
%% 
%%
%% End of file `elzcards-example.tex'.