%%
%% This is file `elzcards-examples.tex',
%% generated with the docstrip utility.
%%
%% The original source files were:
%%
%% elzcards.dtx  (with options: `ejemplo')
%% 
%% Copyright 2017 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-examples.tex.
%% 
\documentclass{article}
\usepackage{elzcards}
\usepackage[landscape,letterpaper,vmargin={0.25in,0.25in},hmargin={0.25in,0.25in}]{geometry}

\newcommand{\mycenter}[1]{%
 \vspace*{2pt}\hspace*{2pt}$\nwarrow$ top left corner\vfill
 \begin{center}\LARGE#1\end{center}%
 \vfill\hfill bottom right corner $\searrow$\hspace*{2pt}\vspace*{2pt}}

\begin{document}
 %% Printing business cards with different options, showing all elzcards can do:
 \BusinessCard{\mycenter{Business card \\ only front side \\ default options}}
 \MakeBC

 \BusinessCard{\mycenter{Business card \\ front side \\ vertical shaped \\
  with thicker and longer external segments}}%
  [\mycenter{Business card \\ back side \\ vertical shaped}]
 \MakeBC[segments,hsize=2in, vsize=3.5in, line thickness=1pt, segment length=0.5cm]

 \BusinessCard{\mycenter{Business card \\ only front side \\ with dots}}
 %% Using \MakeBC* to avoid purging the card from memory:
 \MakeBC*[dots]

 %% We can do \MakeBC again because we've used \MakeBC* before:
 \MakeBC[crop color=blue]

 \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[crop color=green, lines]

 \BusinessCard{\mycenter{Business card \\ only front side \\ with thicker lines}}
 \MakeBC[lines, line thickness=2pt]

 \BusinessCard{\mycenter{Business card \\ only front side \\ without cropping marks}}
 \MakeBC[no marks]

 \BusinessCard{\mycenter{Business card \\ front side \\ other size \\ with gaps}}%
  [\mycenter{Business card \\ back side \\ other size \\ with gaps}]
 %% We can specify the size also with \BCdim command; this will make default that change onwards:
 \BCdim{74mm}{52mm}
 \MakeBC[segments,hgap=1.666cm, vgap=0.666cm]

 %% Testing with index/flash cards:
 \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 \\ only front side \CurrentIC{} of \TotalIC}}
 \IndexCard{\mycenter{Index/flash card \\ only 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 \\ only front side \CurrentIC{} of \TotalIC}}
 \IndexCard{\mycenter{Index/flash card \\ only front side \CurrentIC{} of \TotalIC}}
 \IndexCard{\mycenter{Index/flash card \\ only front side \CurrentIC{} of \TotalIC}}
 %% Now \MakeIC* instead of \MakeIC,
 %% so we can process the same set of cards again with \MakeIC or \MakeIC*.
 \MakeIC*

 %% We redefine some default parameters instead of giving options to \MakeIC:
 \CardGap{0.5cm}{0.5cm}
 \SegmentLength{10pt}
 \LineThickness{1pt}
 \CropColor{Orange}
 \CropSegments
 %% \MakeIC* again because we did use \MakeIC* before and the cards weren't cleared:
 \MakeIC*[hsize=2.5in,vsize=1.5in]

 %% We redefine again some default parameters:
 \CardGap{0pt}{0pt}
 \ICdim{4in}{2in}
 \DotSize{1mm}
 \CropDots
 %% Also we can change some other defaults with
 %% \CropCrosses, \CropLines, \NoCropMarks and \CropColor.
 %% \MakeFC is an alias to \MakeIC:
 \MakeFC*[hgap=0pt, vgap=0pt]
\end{document}
%% 
%%
%% End of file `elzcards-examples.tex'.
