| 1 |
%% |
| 2 |
%% This is file `elzcards-examples.tex', |
| 3 |
%% generated with the docstrip utility. |
| 4 |
%% |
| 5 |
%% The original source files were: |
| 6 |
%% |
| 7 |
%% elzcards.dtx (with options: `ejemplo') |
| 8 |
%% |
| 9 |
%% Copyright 2019 Emilio Augusto Lazo Zaia <[email protected]> |
| 10 |
%% |
| 11 |
%% This work may be distributed and/or modified under the |
| 12 |
%% conditions of the LaTeX Project Public License, either |
| 13 |
%% version 1.3c of this license or (at your option) any later |
| 14 |
%% version. This version of this license is in |
| 15 |
%% http://www.latex-project.org/lppl/lppl-1-3c.{html|txt|tex|pdf} |
| 16 |
%% and the latest version of this license is in |
| 17 |
%% http://www.latex-project.org/lppl.txt |
| 18 |
%% and version 1.3c or later is part of all distributions of |
| 19 |
%% LaTeX version 2008/05/04 or later. |
| 20 |
%% |
| 21 |
%% This work has the LPPL maintenance status `maintained'. |
| 22 |
%% |
| 23 |
%% The Current Maintainer of this work is Emilio Augusto Lazo Zaia. |
| 24 |
%% |
| 25 |
%% This work consists of the files README and elzcards.dtx with |
| 26 |
%% its derived files elzcards.ins, elzcards.sty and |
| 27 |
%% elzcards-examples.tex. |
| 28 |
%% |
| 29 |
\documentclass{article} |
| 30 |
\usepackage{elzcards} |
| 31 |
\usepackage[landscape,letterpaper,vmargin={0mm,0mm},hmargin={0mm,0mm}]{geometry} |
| 32 |
|
| 33 |
\newcommand{\mycenter}[1]{% |
| 34 |
\vspace*{2pt}\hspace*{2pt}$\nwarrow$ top left corner\vfill |
| 35 |
\begin{center}\LARGE#1\end{center}% |
| 36 |
\vfill\hfill bottom right corner $\searrow$\hspace*{2pt}\vspace*{2pt}} |
| 37 |
|
| 38 |
\begin{document} |
| 39 |
%% Writing business cards with different options: |
| 40 |
\BusinessCard{\mycenter{Business card \\ only front side \\ default options}} |
| 41 |
\MakeBC |
| 42 |
|
| 43 |
\BusinessCard{\mycenter{Business card \\ front side \\ vertical shaped \\ |
| 44 |
with thicker and longer external segments}}% |
| 45 |
[\mycenter{Business card \\ back side \\ vertical shaped}] |
| 46 |
\MakeBC[segments, hsize=2in, vsize=3.5in, line thickness=1pt, segment length=0.5cm] |
| 47 |
|
| 48 |
\BusinessCard{\mycenter{Business card \\ only front side \\ with dots}} |
| 49 |
%% Using \MakeBC* to avoid clearing the card from memory: |
| 50 |
\MakeBC*[dots] |
| 51 |
|
| 52 |
%% We can issue \MakeBC again because we've used \MakeBC* before: |
| 53 |
\MakeBC[dots] |
| 54 |
|
| 55 |
\BusinessCard{\mycenter{Business card \\ only front side \\ with big dots and gaps}} |
| 56 |
\MakeBC[dots, dot size=4pt, hgap=1.666cm, vgap=0.666cm] |
| 57 |
|
| 58 |
\BusinessCard{\mycenter{Business card \\ only front side \\ with green lines}} |
| 59 |
\MakeBC[crop color=green, lines] |
| 60 |
|
| 61 |
\BusinessCard{\mycenter{Business card \\ only front side \\ with thicker lines}} |
| 62 |
\MakeBC[lines, line thickness=2pt] |
| 63 |
|
| 64 |
\BusinessCard{\mycenter{Business card \\ only front side \\ without cropping marks}} |
| 65 |
\MakeBC[no marks] |
| 66 |
|
| 67 |
\BusinessCard{\mycenter{Business card \\ front side \\ other size \\ with gaps}}% |
| 68 |
[\mycenter{Business card \\ back side \\ other size \\ with gaps}] |
| 69 |
%% We can specify the size also with \BCdim command; this will change the default onwards: |
| 70 |
\BCdim{74mm}{52mm} |
| 71 |
\MakeBC[hgap=1.666cm, vgap=0.666cm] |
| 72 |
|
| 73 |
\BusinessCard{\mycenter{Business card \\ only front side \\ other size \\ auto gap inner}}% |
| 74 |
\MakeBC[autogap inner] |
| 75 |
|
| 76 |
%% Autogap total best works if all paper margins are set to zero, so all gaps will be equal. |
| 77 |
\BusinessCard{\mycenter{Business card \\ only front side \\ other size \\ auto gap total}}% |
| 78 |
\MakeBC[autogap total] |
| 79 |
|
| 80 |
%% Writing index/flash cards: |
| 81 |
\IndexCard{\mycenter{Index/flash card \CurrentIC{} of \TotalIC \\ front side}}% |
| 82 |
[\mycenter{Index/flash card \CurrentIC{} of \TotalIC \\ back side}] |
| 83 |
%% Note that not all cards has back side. |
| 84 |
\IndexCard{\mycenter{Index/flash card \CurrentIC{} of \TotalIC \\ only front side}} |
| 85 |
\IndexCard{\mycenter{Index/flash card \CurrentIC{} of \TotalIC \\ only front side}} |
| 86 |
\IndexCard{\mycenter{Index/flash card \CurrentIC{} of \TotalIC \\ front side}}% |
| 87 |
[\mycenter{Index/flash card \CurrentIC{} of \TotalIC \\ back side}] |
| 88 |
\IndexCard{\mycenter{Index/flash card \CurrentIC{} of \TotalIC \\ only front side}} |
| 89 |
\IndexCard{\mycenter{Index/flash card \CurrentIC{} of \TotalIC \\ only front side}} |
| 90 |
\IndexCard{\mycenter{Index/flash card \CurrentIC{} of \TotalIC \\ only front side}} |
| 91 |
\IndexCard{\mycenter{Index/flash card \CurrentIC{} of \TotalIC \\ only front side}} |
| 92 |
%% Now \MakeIC* instead of \MakeIC, |
| 93 |
%% so we can process the same set of cards again with \MakeIC or \MakeIC*. |
| 94 |
\MakeIC* |
| 95 |
|
| 96 |
%% We redefine some default parameters instead of giving options to \MakeIC: |
| 97 |
\CardGap{0.5cm}{0.5cm} |
| 98 |
\SegmentLength{10pt} |
| 99 |
\LineThickness{1pt} |
| 100 |
\CropColor{orange} |
| 101 |
\CropSegments |
| 102 |
%% \MakeIC* again because we did use \MakeIC* before and the cards weren't cleared: |
| 103 |
%% Now restricting the grid to 3 rows and 3 columns even if 4x4 might fit on the page |
| 104 |
\MakeIC*[hsize=2.25in, vsize=1.5in, rows=3, columns=3] |
| 105 |
|
| 106 |
%% We redefine again some default parameters: |
| 107 |
\CardGap{0pt}{0pt} |
| 108 |
\ICdim{4in}{2in} |
| 109 |
\DotSize{1mm} |
| 110 |
\CropDots |
| 111 |
%% Also we can change some other defaults with |
| 112 |
%% \CropCrosses, \CropLines, \NoCropMarks and \CropColor. |
| 113 |
%% \AutoGapInner, \AutoGapTotal, \NoAutoGap, \Transverse, \NoTransverse. |
| 114 |
%% \MakeFC is an alias to \MakeIC: |
| 115 |
\MakeFC*[hgap=0pt, vgap=0pt] |
| 116 |
%% |
| 117 |
%% Different order: |
| 118 |
\MakeIC*[order=1 5 4 8 6 3 7 2] |
| 119 |
%% |
| 120 |
%% Adding four more cards to show the transverse option: |
| 121 |
\IndexCard{\mycenter{Index/flash card \CurrentIC{} of \TotalIC \\ only front side}} |
| 122 |
\IndexCard{\mycenter{Index/flash card \CurrentIC{} of \TotalIC \\ only front side}} |
| 123 |
\IndexCard{\mycenter{Index/flash card \CurrentIC{} of \TotalIC \\ only front side}} |
| 124 |
\IndexCard{\mycenter{Index/flash card \CurrentIC{} of \TotalIC \\ only front side}} |
| 125 |
\MakeIC[rows=2, columns=2, transverse] |
| 126 |
\end{document} |
| 127 |
%% |
| 128 |
%% |
| 129 |
%% End of file `elzcards-examples.tex'. |