texlive[51894] Master/texmf-dist: elzcards (17aug19)

commits+karl at tug.org commits+karl at tug.org
Sat Aug 17 23:50:28 CEST 2019


Revision: 51894
          http://tug.org/svn/texlive?view=revision&revision=51894
Author:   karl
Date:     2019-08-17 23:50:28 +0200 (Sat, 17 Aug 2019)
Log Message:
-----------
elzcards (17aug19)

Modified Paths:
--------------
    trunk/Master/texmf-dist/doc/latex/elzcards/README
    trunk/Master/texmf-dist/doc/latex/elzcards/elzcards-examples.pdf
    trunk/Master/texmf-dist/doc/latex/elzcards/elzcards-examples.tex
    trunk/Master/texmf-dist/doc/latex/elzcards/elzcards.pdf
    trunk/Master/texmf-dist/source/latex/elzcards/elzcards.dtx
    trunk/Master/texmf-dist/source/latex/elzcards/elzcards.ins
    trunk/Master/texmf-dist/tex/latex/elzcards/elzcards.sty

Modified: trunk/Master/texmf-dist/doc/latex/elzcards/README
===================================================================
--- trunk/Master/texmf-dist/doc/latex/elzcards/README	2019-08-17 21:50:11 UTC (rev 51893)
+++ trunk/Master/texmf-dist/doc/latex/elzcards/README	2019-08-17 21:50:28 UTC (rev 51894)
@@ -1,7 +1,14 @@
 <elzcards>
 
-elzcards is a package meant to be an easy and flexible way
-to typeset business cards, index cards and flash cards,
-with -optional- back side. You must bother only by setting
-the paper size, margins and the design of your card.
-Everything else is done by elzcards.
+A package for typesetting business cards, index cards, and
+flash cards in an easy and flexible way, optionally also with
+reverse side. You will have to furnish the paper size, the
+desired size of your card, the printable area of your paper,
+and the design of the card. Everything else is taken care of by
+elzcards.
+
+Un paquete para componer tarjetas de presentación, fichas y
+tarjetas flash en una forma fácil y flexible, opcionalmente con
+reverso. Usted tiene que proporcionar el tamaño del papel, el
+tamaño deseado de su tarjeta, el área imprimible del papel,
+y el diseño de su tarjeta. Todo lo demás lo hace elzcards.

Modified: trunk/Master/texmf-dist/doc/latex/elzcards/elzcards-examples.pdf
===================================================================
(Binary files differ)

Modified: trunk/Master/texmf-dist/doc/latex/elzcards/elzcards-examples.tex
===================================================================
--- trunk/Master/texmf-dist/doc/latex/elzcards/elzcards-examples.tex	2019-08-17 21:50:11 UTC (rev 51893)
+++ trunk/Master/texmf-dist/doc/latex/elzcards/elzcards-examples.tex	2019-08-17 21:50:28 UTC (rev 51894)
@@ -6,7 +6,7 @@
 %%
 %% elzcards.dtx  (with options: `ejemplo')
 %% 
-%% Copyright 2017 Emilio Lazo Zaia <emiliolazozaia at gmail.com>
+%% Copyright 2019 Emilio Augusto Lazo Zaia <emiliolazozaia at gmail.com>
 %% 
 %% This work may be distributed and/or modified under the
 %% conditions of the LaTeX Project Public License, either
@@ -20,7 +20,7 @@
 %% 
 %% This work has the LPPL maintenance status `maintained'.
 %% 
-%% The Current Maintainer of this work is Emilio Lazo Zaia.
+%% The Current Maintainer of this work is Emilio Augusto Lazo Zaia.
 %% 
 %% This work consists of the files README and elzcards.dtx with
 %% its derived files elzcards.ins, elzcards.sty and
@@ -28,7 +28,7 @@
 %% 
 \documentclass{article}
 \usepackage{elzcards}
-\usepackage[landscape,letterpaper,vmargin={0.25in,0.25in},hmargin={0.25in,0.25in}]{geometry}
+\usepackage[landscape,letterpaper,vmargin={0mm,0mm},hmargin={0mm,0mm}]{geometry}
 
 \newcommand{\mycenter}[1]{%
  \vspace*{2pt}\hspace*{2pt}$\nwarrow$ top left corner\vfill
@@ -36,7 +36,7 @@
  \vfill\hfill bottom right corner $\searrow$\hspace*{2pt}\vspace*{2pt}}
 
 \begin{document}
- %% Printing business cards with different options, showing all elzcards can do:
+ %% Writing business cards with different options:
  \BusinessCard{\mycenter{Business card \\ only front side \\ default options}}
  \MakeBC
 
@@ -43,19 +43,19 @@
  \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]
+ \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:
+ %% Using \MakeBC* to avoid clearing the card from memory:
  \MakeBC*[dots]
 
- %% We can do \MakeBC again because we've used \MakeBC* before:
- \MakeBC[crop color=blue]
+ %% We can issue \MakeBC again because we've used \MakeBC* before:
+ \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}}
+ \BusinessCard{\mycenter{Business card \\ only front side \\ with green lines}}
  \MakeBC[crop color=green, lines]
 
  \BusinessCard{\mycenter{Business card \\ only front side \\ with thicker lines}}
@@ -66,21 +66,29 @@
 
  \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:
+ %% We can specify the size also with \BCdim command; this will change the default onwards:
  \BCdim{74mm}{52mm}
- \MakeBC[segments,hgap=1.666cm, vgap=0.666cm]
+ \MakeBC[hgap=1.666cm, vgap=0.666cm]
 
- %% Testing with index/flash cards:
- \IndexCard{\mycenter{Index/flash card \\ front side \CurrentIC{} of \TotalIC}}%
+ \BusinessCard{\mycenter{Business card \\ only front side \\ other size \\ auto gap inner}}%
+ \MakeBC[autogap inner]
+
+ %% Autogap total best works if all paper margins are set to zero, so all gaps will be equal.
+ \BusinessCard{\mycenter{Business card \\ only front side \\ other size \\ auto gap total}}%
+ \MakeBC[autogap total]
+
+ %% Writing index/flash cards:
+ \IndexCard{\mycenter{Index/flash card \CurrentIC{} of \TotalIC \\ front side}}%
   [\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}}%
+ \IndexCard{\mycenter{Index/flash card \CurrentIC{} of \TotalIC \\ only front side}}
+ \IndexCard{\mycenter{Index/flash card \CurrentIC{} of \TotalIC \\ only front side}}
+ \IndexCard{\mycenter{Index/flash card \CurrentIC{} of \TotalIC \\ front side}}%
   [\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}}
+ \IndexCard{\mycenter{Index/flash card \CurrentIC{} of \TotalIC \\ only front side}}
+ \IndexCard{\mycenter{Index/flash card \CurrentIC{} of \TotalIC \\ only front side}}
+ \IndexCard{\mycenter{Index/flash card \CurrentIC{} of \TotalIC \\ only front side}}
+ \IndexCard{\mycenter{Index/flash card \CurrentIC{} of \TotalIC \\ only front side}}
  %% Now \MakeIC* instead of \MakeIC,
  %% so we can process the same set of cards again with \MakeIC or \MakeIC*.
  \MakeIC*
@@ -89,10 +97,11 @@
  \CardGap{0.5cm}{0.5cm}
  \SegmentLength{10pt}
  \LineThickness{1pt}
- \CropColor{Orange}
+ \CropColor{orange}
  \CropSegments
  %% \MakeIC* again because we did use \MakeIC* before and the cards weren't cleared:
- \MakeIC*[hsize=2.5in,vsize=1.5in]
+ %% Now restricting the grid to 3 rows and 3 columns even if 4x4 might fit on the page
+ \MakeIC*[hsize=2.25in, vsize=1.5in, rows=3, columns=3]
 
  %% We redefine again some default parameters:
  \CardGap{0pt}{0pt}
@@ -101,8 +110,19 @@
  \CropDots
  %% Also we can change some other defaults with
  %% \CropCrosses, \CropLines, \NoCropMarks and \CropColor.
+ %% \AutoGapInner, \AutoGapTotal, \NoAutoGap, \Transverse, \NoTransverse.
  %% \MakeFC is an alias to \MakeIC:
  \MakeFC*[hgap=0pt, vgap=0pt]
+ %%
+ %% Different order:
+ \MakeIC*[order=1 5 4 8 6 3 7 2]
+ %%
+ %% Adding four more cards to show the transverse option:
+ \IndexCard{\mycenter{Index/flash card \CurrentIC{} of \TotalIC \\ only front side}}
+ \IndexCard{\mycenter{Index/flash card \CurrentIC{} of \TotalIC \\ only front side}}
+ \IndexCard{\mycenter{Index/flash card \CurrentIC{} of \TotalIC \\ only front side}}
+ \IndexCard{\mycenter{Index/flash card \CurrentIC{} of \TotalIC \\ only front side}}
+ \MakeIC[rows=2, columns=2, transverse]
 \end{document}
 %% 
 %%

Modified: trunk/Master/texmf-dist/doc/latex/elzcards/elzcards.pdf
===================================================================
(Binary files differ)

Modified: trunk/Master/texmf-dist/source/latex/elzcards/elzcards.dtx
===================================================================
--- trunk/Master/texmf-dist/source/latex/elzcards/elzcards.dtx	2019-08-17 21:50:11 UTC (rev 51893)
+++ trunk/Master/texmf-dist/source/latex/elzcards/elzcards.dtx	2019-08-17 21:50:28 UTC (rev 51894)
@@ -1,7 +1,7 @@
 % \iffalse meta-comment
 %
 % elzcards.dtx
-% Copyright 2017 Emilio Lazo Zaia <emiliolazozaia at gmail.com>
+% Copyright 2019 Emilio Augusto Lazo Zaia <emiliolazozaia at gmail.com>
 %
 % This work may be distributed and/or modified under the
 % conditions of the LaTeX Project Public License, either
@@ -15,7 +15,7 @@
 %
 % This work has the LPPL maintenance status `maintained'.
 %
-% The Current Maintainer of this work is Emilio Lazo Zaia.
+% The Current Maintainer of this work is Emilio Augusto Lazo Zaia.
 %
 % This work consists of the files README and elzcards.dtx with
 % its derived files elzcards.ins, elzcards.sty and
@@ -32,7 +32,7 @@
 \input docstrip.tex
 \preamble
 
-Copyright 2017 Emilio Lazo Zaia <emiliolazozaia at gmail.com>
+Copyright 2019 Emilio Augusto Lazo Zaia <emiliolazozaia at gmail.com>
 
 This work may be distributed and/or modified under the
 conditions of the LaTeX Project Public License, either
@@ -46,7 +46,7 @@
 
 This work has the LPPL maintenance status `maintained'.
 
-The Current Maintainer of this work is Emilio Lazo Zaia.
+The Current Maintainer of this work is Emilio Augusto Lazo Zaia.
 
 This work consists of the files README and elzcards.dtx with
 its derived files elzcards.ins, elzcards.sty and
@@ -99,14 +99,86 @@
 %<*driver>
 \documentclass{ltxdoc}
 \usepackage[letterpaper,vmargin={2.5cm,2cm},hmargin={3cm,2cm}]{geometry}
-\usepackage[usenames,dvipsnames]{color}
-\usepackage[english]{babel}
-\usepackage{paralist,calc,array,xpatch}
+\usepackage[dvipsnames]{xcolor}
+\usepackage[spanish,english]{babel}
+\usepackage{ifluatex,ifxetex,paralist,calc,array,xpatch,paracol,xparse,pdflscape}
 \usepackage{elzcards}
 
-\def\generalname{}
-\makeatletter\patchcmd{\changes@}{:}{}{}{}\makeatother
+% Necesario ejecutar \newif de esta forma:
+\csname newif\expandafter\endcsname\csname ifmotorunicode\endcsname
 
+\ifxetex
+ \motorunicodetrue
+\else
+ \ifluatex \motorunicodetrue \fi
+\fi
+
+\ifmotorunicode
+ \usepackage{fontspec}
+ \setmainfont[Ligatures=TeX,Mapping=TeX]{Linux Libertine O}
+\else
+ \usepackage[T1]{fontenc}
+ \usepackage[utf8]{inputenc}
+\fi
+
+\overfullrule2cm
+\marginparthreshold{0}
+\NewDocumentCommand{\eng}{s +m}{\IfBooleanT{#1}{\iniciotrad}\selectlanguage{english}#2\switchcolumn[1]}
+\NewDocumentCommand{\esp}{s +m}{\selectlanguage{spanish}#2\switchcolumn[0]*\IfBooleanT{#1}{\fintrad}}
+\newcommand{\iniciotrad}{\begin{paracol}{2}}
+\newcommand{\fintrad}{\end{paracol}}
+
+\NewDocumentCommand{\Default}{s m}{{\noindent \slshape \color{Red}\IfBooleanTF{#1}{Predeterminado: }{Default: }#2}}
+\NewDocumentCommand{\Keyval}{s m}{{\noindent \slshape \color{Green}\IfBooleanTF{#1}{Opción keyval: }{Keyval option: }#2}}
+
+\footnotelayout{m}
+\makeatletter
+% \newbox\mybox
+% \def\pcol at makenormalcol{%
+%   \ifvoid\footins 
+%   \else
+% \global\setbox\mybox\box\footins
+%    \fi
+% \setbox\@outputbox\box\@holdpg
+%   \let\@elt\relax
+%   \xdef\@freelist{\@freelist\@midlist}%
+%   \global\let\@midlist\@empty
+%   \@combinefloats}
+
+ % Redefinimos el comando del encabezado del índice:
+ \def\index at prologue{%
+  \section*{\glosname}%
+  \markboth{\glosname}{\glosname}}%
+
+ % Adaptamos un poco la lista de cambios:
+ \def\changes@#1#2#3{%
+  \protected at edef\@tempa{%
+   \noexpand\glossary{%
+    {\bfseries #1 --- #2}%
+    \ifx\saved at macroname\@empty
+     \relax\actualchar
+    \else
+     \saved at indexname
+     \actualchar
+     \string\verb\quotechar*%
+     \verbatimchar\saved at macroname
+     \verbatimchar
+    \fi
+    \levelchar #3}}%
+  \@tempa\endgroup\@esphack}
+
+ \def\@wrglossary#1{%
+  \protected at write\@glossaryfile{}%
+  {\string\glossaryentry{#1}{1}}%
+  \endgroup\@esphack}%
+
+ \patchcmd{\glossary at prologue}{Change History}{\changesname}{}{}
+ \patchcmd{\changes@}{:}{}{}{}
+\makeatother
+
+\def\changesname{Change History / Lista de cambios en las versiones}
+\def\glosname{Index / Índice}
+
 \EnableCrossrefs
 \CodelineIndex
 \RecordChanges
@@ -114,12 +186,13 @@
 \setlength{\parskip}{5pt}
 
 \begin{document}
+ \renewcommand{\contentsname}{Contents / Tabla de contenido}
  \DocInput{\jobname.dtx}
 \end{document}
 %</driver>
 % \fi
 %
-% \CheckSum{1043}
+% \CheckSum{1574}
 %
 % \CharacterTable
 %  {Upper-case    \A\B\C\D\E\F\G\H\I\J\K\L\M\N\O\P\Q\R\S\T\U\V\W\X\Y\Z
@@ -137,244 +210,761 @@
 %   Grave accent  \`     Left brace    \{     Vertical bar  \|
 %   Right brace   \}     Tilde         \~}
 %
-% \changes{v1.00}{2015/03/05}{First release as a class.}
-% \changes{v1.20}{2015/04/26}{01. Changes in \texttt{.dtx} header and spaces on embedded \texttt{.ins} file. Now it should compile with pdf\TeX{} to produce only package files.}
-% \changes{v1.20}{2015/04/26}{02. It isn't a class anymore. Now is a package.}
-% \changes{v1.20}{2015/04/26}{03. Supports adjustable gaps between cards.}
-% \changes{v1.20}{2015/04/26}{04. Added commands to control default values of optional arguments of {\slshape make} commands.}
-% \changes{v1.20}{2015/04/26}{05. \cs{unitlength} is handled transparently.}
-% \changes{v1.20}{2015/04/26}{06. Added key-val package to drop positional parameters and stars on {\slshape make} commands.}
-% \changes{v1.20}{2015/04/26}{07. Added \cs{BusinessCard} command instead of defining the card's design with \cs{MakeBC}.}
-% \changes{v1.20}{2015/04/26}{08. Added optional stars on {\slshape make} commands to allow not clearing the cards in order to have the possibility of being processed again.}
-% \changes{v1.20}{2015/04/26}{09. Added informational output to log and console about what is being processed.}
-% \changes{v1.20}{2015/04/26}{10. Added macros to change default crop behavior.}
-% \changes{v1.23}{2017/07/10}{11. Added an option to not printing cutting marks.}
-% \changes{v1.23}{2017/07/10}{12. Renamed \cs{BCgap} to \cs{CardGap} and obviously removed the aliases \cs{ICgap} and \cs{FCgap}.}
-% \changes{v1.23}{2017/07/10}{13. Added support for colors on cropping marks.}
-% \changes{v1.23}{2017/07/10}{14. Added support for external segments as cropping marks.}
-% \changes{v1.23}{2017/07/10}{15. Renamed macro \cs{CrossSegment} to \cs{SegmentLength}.}
+% \changes{v1.00}{2015/03/05}{00. First release as a class. / \newline Primera versión como una clase.}
+% \changes{v1.20}{2015/04/26}{01. Changes in \texttt{.dtx} header and spaces on embedded \texttt{.ins} file. Now it should compile with pdf\TeX{} to produce only package files. / \newline Cambios en el encabezado \texttt{.dtx} y espacios en el \texttt{.ins} embebido. Ya debe compilar con pdf\TeX{} para producir solamente los archivos del paquete.}
+% \changes{v1.20}{2015/04/26}{02. It isn't a class anymore. Now it is a package./ \newline Ya no es más una clase. Ahora es un paquete.}
+% \changes{v1.20}{2015/04/26}{03. Supports adjustable gaps between cards. / \newline Soporta espaciado ajustable entre las tarjetas.}
+% \changes{v1.20}{2015/04/26}{04. Added commands to control default values of optional arguments of \cs{MakeXY} commands. / \newline Agregados comandos para controlar los valores predeterminados de los argumentos opcionales de los comandos \cs{MakeXY}.}
+% \changes{v1.20}{2015/04/26}{05. \cs{unitlength} is handled transparently. / \newline \cs{unitlength} es manejado transparentemente.}
+% \changes{v1.20}{2015/04/26}{06. Added {\ttfamily keyval} package to allow parameters on \cs{MakeXY} invocations. / \newline Agregado el paquete {\ttfamily keyval} para permitir parámetros en la llamada a \cs{MakeXY}.}
+% \changes{v1.20}{2015/04/26}{07. Added \cs{BusinessCard} command instead of defining the card's design with \cs{MakeBC}. / \newline Agregado el comando \cs{BusinessCard} en lugar de definir el diseño de la tarjeta con \cs{MakeBC}.}
+% \changes{v1.20}{2015/04/26}{08. Added optional stars on \cs{MakeXY} commands to allow not clearing the cards from memory to be possible processing the same set of cards again. / \newline Agregados los opcionales asteriscos en los comandos \cs{MakeXY} para permitir no borrar las tarjetas de la memoria para que sea posible procesar el mismo conjunto de tarjetas de nuevo.}
+% \changes{v1.20}{2015/04/26}{09. Added informational output to \texttt{.log} about what is being processed. / \newline Agregada la salida informativa al \texttt{.log} sobre qué está siendo procesado.}
+% \changes{v1.20}{2015/04/26}{10. Added macros to change default crop behavior. / \newline Agregadas macros para cambiar el comportamiento predeterminado para el cortado del papel.}
+% \changes{v1.23}{2017/07/10}{11. Added an option to not printing cutting marks. / \newline Agregada una opción para no imprimir marcas de corte.}
+% \changes{v1.23}{2017/07/10}{12. Removed \cs{BCgap}, \cs{ICgap} and \cs{FCgap} in favor of \cs{CardGap} to handle all default gaps. / \newline Quitada \cs{BCgap}, \cs{ICgap} y \cs{FCgap} en favor de \cs{CardGap} para manejar todos los espaciados predeterminados.}
+% \changes{v1.23}{2017/07/10}{13. Added support for colors on cropping marks. / \newline Agregado el soporte para colores en las marcas de corte.}
+% \changes{v1.23}{2017/07/10}{14. Added support for printing only exterior segments as cropping marks. / \newline Agregado el soporte para para imprimir sólo segmentos exteriores como marcas de corte.}
+% \changes{v1.23}{2017/07/10}{15. Renamed macro \cs{CrossSegment} to \cs{SegmentLength}. / \newline Renombrada la macro \cs{CrossSegment} a \cs{SegmentLength}.}
+% \changes{v1.60}{2019/08/16}{16. Now pages are always centered horizontally. / \newline Ahora las páginas están siempre centradas horizontalmente.}
+% \changes{v1.60}{2019/08/16}{17. Added {\ttfamily rows} and {\ttfamily columns} as {\ttfamily keyval} options to force the number of cards per page. / \newline Agregadas {\ttfamily rows} y {\ttfamily columns} como opciones {\ttfamily keyval} para forzar el número de tarjetas por página.}
+% \changes{v1.60}{2019/08/16}{18. Added options to automatically separate cards: \cs{AutoGapInner}, \cs{AutoGapTotal}, \cs{NoAutoGap} to set default gap behavior, and {\ttfamily autogap inner, autogap total, no autogap} as {\ttfamily keyval} options. / \newline Agregadas opciones para separaciones automáticas: \cs{AutoGapInner}, \cs{AutoGapTotal}, \cs{NoAutoGap} para fijar el comportamiento predeterminado del espaciado, y {\ttfamily autogap inner, autogap total, no autogap} como opciones {\ttfamily keyval}.}
+% \changes{v1.60}{2019/08/16}{19. Changed the order index/flash cards are written. Now starts on upper left corner instead of on bottom left corner. / \newline Cambiado el orden como las fichas/flash son escritas. Ahora empieza en la esquina superior izquierda en lugar de en la esquina inferior izquierda.}
+% \changes{v1.60}{2019/08/16}{20. Bilingual documentation. / \newline Documentación bilingüe.}
+% \changes{v1.60}{2019/08/16}{21. Added {\ttfamily order} and {\ttfamily transverse} {\ttfamily keyval} options. Also \cs{Transverse} and \cs{NoTransverse} macros for index/flash cards to change cards' disposition on the pages. {\slshape Thanks to Howard Bussey for his feature suggestion about transverse ordering, giving place to add also the arbitrary ordering option!!} / \newline Agregadas {\ttfamily order} y {\ttfamily transverse} como opciones {\ttfamily keyval}. También las macros \cs{Transverse} y \cs{NoTransverse} para las fichas/flash para cambiar la disposición de las tarjetas en las páginas. {\slshape Gracias a Howard Bussey por su sugerencia de la función del orden transverso, dando lugar a agregar también una opción para el ordenamiento arbitrario!!}}
 %
 % \GetFileInfo{\jobname.sty}
 %
-% \DoNotIndex{\\, \addtocounter, \advance, \arabic, \@auxout, \begin, \BusinessCard, \circle, \cleardoublepage, \clearpage, \color, \CropMarksSize, \csname, \def, \define at key, \documentclass, \else, \@elzc at conreversofalse, \@elzc at conreversotrue, \elzc at ColorMarcas, \elzc at DefArista, \elzc at DefMarcasCorte, \elzc at DefColorMarcas, \elzc at DefFichaXdim, \elzc at DefFichaYdim, \elzc at DefLinea, \elzc at DefPunto, \elzc at DefSeparaX, \elzc at DefSeparaY, \elzc at DefTPXdim, \elzc at DefTPYdim, \elzc at aux@cruces, \elzc at aux@segmentos, \elzc at aux@puntos, \elzc at aux@lineas, \elzc at aux@sinmarcas, \@elzc at fichaconreversofalse, \@elzc at fichaconreversotrue, \@elzc at crucesfalse, \@elzc at crucestrue, \@elzc at lineasfalse, \@elzc at lineastrue, \@elzc at puntosfalse, \@elzc at puntostrue, \@elzc at segmentosfalse, \@elzc at segmentostrue, \@elzc at sinmarcasfalse, \@elzc at sinmarcastrue, \@elzc at reversofalse, \@elzc at reversotrue, \elzc at SeparaX, \elzc at SeparaY, \@elzc at TarjetaAnverso, \@elzc at tarjetaconreversofalse, \@elzc at tarjetaconreversotrue, \@elzc at tarjetafalse, \@elzc at TarjetaReverso, \@elzc at tarjetatrue, \elzc at TarjXdim, \elzc at TarjYdim, \elzc at TempLen, \elzc at TempUnitLength, \end, \endcsname, \expandafter, \fi, \hfill, \hspace, \if at elzc@conreverso, \if at elzc@fichaconreverso, \if at elzc@cruces, \if at elzc@lineas, \if at elzc@puntos, \if at elzc@segmentos, \if at elzc@sinmarcas, \if at elzc@reverso, \if at elzc@tarjeta, \if at elzc@tarjetaconreverso, \InputIfFileExists, \ifnum, \IfBooleanF, \IfBooleanTF, \IfValueT, \IfValueTF, \ifx, \immediate, \input, \jobname, \LARGE, \let, \line, \linethickness, \LineThickness, \loop, \makebox, \mbox, \@mparswitchtrue, \message, \mycenter, \NeedsTeXFormat, \newcommand, \newcounter, \NewDocumentCommand, \newif, \newlength, \nwarrow, \PackageError, \pagestyle, \parbox, \parindent, \ProvidesPackage, \put, \relax, \repeat, \RequirePackage, \romannumeral, \searrow, \setcounter, \setkeys, \setlength, \string, \textheight, \textwidth, \the, \thispagestyle, \TotalFC, \TotalIC, \@twosidetrue, \undefined, \unitlength, \usepackage, \value, \vfill, \vspace, \@wholewidth, \write}
+% \DoNotIndex{
+% \\,
+% \addtocounter,
+% \advance,
+% \arabic,
+% \AtBeginDocument,
+% \@auxout,
+% \begin,
+% \c at elzc@ElementosOrden,
+% \circle,
+% \cleardoublepage,
+% \clearpage,
+% \color,
+% \cs,
+% \csname,
+% \def,
+% \define at key,
+% \documentclass,
+% \edef,
+% \else,
+% \elzc at SeparaX,
+% \elzc at SeparaY,
+% \elzc at TarjXdim,
+% \elzc at TarjYdim,
+% \elzc at TempLen,
+% \elzc at TempUnitLength,
+% \elzc at ColorMarcas,
+% \elzc at DefArista,
+% \elzc at DefAutoSep,
+% \elzc at DefColorMarcas,
+% \elzc at DefFichaXdim,
+% \elzc at DefFichaYdim,
+% \elzc at DefLinea,
+% \elzc at DefMarcasCorte,
+% \elzc at DefPunto,
+% \elzc at DefSeparaX,
+% \elzc at DefSeparaY,
+% \elzc at DefTPXdim,
+% \elzc at DefTPYdim,
+% \elzc at DefTrasverso,
+% \elzc at aux@autosep at interno,
+% \elzc at aux@autosep at ninguno,
+% \elzc at aux@autosep at total,
+% \elzc at aux@cruces,
+% \elzc at aux@elementosorden,
+% \elzc at aux@fichatransversa,
+% \elzc at aux@segmentos,
+% \elzc at aux@puntos,
+% \elzc at aux@lineas,
+% \elzc at aux@sinmarcas,
+% \elzc at Orden,
+% \@elzc at actualconreversofalse,
+% \@elzc at actualconreversotrue,
+% \@elzc at autosepfalse,
+% \@elzc at autosepinternofalse,
+% \@elzc at autosepinternotrue,
+% \@elzc at autoseptotalfalse,
+% \@elzc at autoseptotaltrue,
+% \@elzc at autoseptrue,
+% \@elzc at fichaconreversofalse,
+% \@elzc at fichaconreversotrue,
+% \@elzc at fichasfalse,
+% \@elzc at fichastrue,
+% \@elzc at calculaordenfalse,
+% \@elzc at calculaordentrue,
+% \@elzc at crucesfalse,
+% \@elzc at crucestrue,
+% \@elzc at columnasfilasfalse,
+% \@elzc at columnasfilastrue,
+% \@elzc at iniciofalse,
+% \@elzc at iniciotrue,
+% \@elzc at lineasfalse,
+% \@elzc at lineastrue,
+% \@elzc at ordentransversofalse,
+% \@elzc at ordentransversotrue,
+% \@elzc at ordenfalse,
+% \@elzc at ordentrue,
+% \@elzc at puntosfalse,
+% \@elzc at puntostrue,
+% \@elzc at segmentosfalse,
+% \@elzc at segmentostrue,
+% \@elzc at sinmarcasfalse,
+% \@elzc at sinmarcastrue,
+% \@elzc at procesareversofalse,
+% \@elzc at procesareversotrue,
+% \@elzc at tarjetaconreversofalse,
+% \@elzc at tarjetaconreversotrue,
+% \@elzc at TarjetaAnverso,
+% \@elzc at TarjetaReverso,
+% \end,
+% \endcsname,
+% \expandafter,
+% \ExplSyntaxOff,
+% \ExplSyntaxOn,
+% \fi,
+% \hfill,
+% \hspace,
+% \if at elzc@autosep,
+% \if at elzc@autosepinterno,
+% \if at elzc@autoseptotal,
+% \if at elzc@columnasfilas,
+% \if at elzc@actualconreverso,
+% \if at elzc@fichaconreverso,
+% \if at elzc@calculaorden,
+% \if at elzc@cruces,
+% \if at elzc@fichas,
+% \if at elzc@inicio,
+% \if at elzc@lineas,
+% \if at elzc@orden,
+% \if at elzc@ordentransverso,
+% \if at elzc@puntos,
+% \if at elzc@segmentos,
+% \if at elzc@sinmarcas,
+% \if at elzc@procesareverso,
+% \if at elzc@tarjetaconreverso,
+% \@ifpackageloaded,
+% \int,
+% \global,
+% \InputIfFileExists,
+% \ifnum,
+% \IfBooleanF,
+% \IfBooleanTF,
+% \IfValueT,
+% \IfValueTF,
+% \ifx,
+% \immediate,
+% \input,
+% \jobname,
+% \LARGE,
+% \l,
+% \let,
+% \line,
+% \linethickness,
+% \loop,
+% \makebox,
+% \@mparswitchtrue,
+% \message,
+% \mycenter,
+% \NeedsTeXFormat,
+% \newcommand,
+% \newcounter,
+% \NewDocumentCommand,
+% \newif,
+% \newlength,
+% \nwarrow,
+% \PackageError,
+% \PackageWarning,
+% \pagestyle,
+% \parbox,
+% \parindent,
+% \ProvidesPackage,
+% \put,
+% \relax,
+% \repeat,
+% \RequirePackage,
+% \romannumeral,
+% \searrow,
+% \seq,
+% \setcounter,
+% \setkeys,
+% \setlength,
+% \stop,
+% \string,
+% \textheight,
+% \textwidth,
+% \the,
+% \thispagestyle,
+% \tl,
+% \@twosidetrue,
+% \undefined,
+% \unitlength,
+% \usepackage,
+% \value,
+% \vfill,
+% \vspace,
+% \@wholewidth,
+% \write}
 %
-% \title{The \textsf{\jobname} package\thanks{This document
-%   corresponds to \textsf{\jobname}~\fileversion, dated \filedate.}}
-% \author{Emilio Lazo Zaia\\ \texttt{< emiliolazozaia at gmail.com >}}
+% \title{\stepcounter{footnote}The \textsf{\jobname}\thanks{%
+%  This document corresponds to \textsf{\jobname}~\fileversion, dated \filedate.}~package \\
+%  El paquete \textsf{\jobname}\thanks{%
+%  Este documento corresponde a \textsf{\jobname}~\fileversion, de fecha \filedate.}}
+% \author{Emilio Augusto Lazo Zaia\\ \texttt{<emiliolazozaia at/en gmail dot/punto com>}}
+% \date{{\selectlanguage{english}\today} / {\selectlanguage{spanish}\today}}
 %
 % \maketitle
+% {\parskip2.7pt\tableofcontents}
 %
-% \tableofcontents
 %
-% \section{Introduction}
+% \section{Introduction / Introducción}
 %
-% |elzcards| is a package meant to be an easy and flexible way to typeset business cards, index cards and flash cards, with -optional- back side. You should bother only by setting the paper size, margins and the design of your cards\footnote{No predefined design is given; you must compose your cards.}. Everything else is done by |elzcards|.
+% \eng*{|elzcards| is a \LaTeX{} package meant to be an easy and flexible way to typeset business cards, index cards and flash cards, with -optional- back side. You should take care only on setting the paper size, margins and the design of your cards\footnote{No predefined design is given; you must compose your cards.}. Everything else is done by |elzcards|.}
+% \esp{|elzcards| es un paquete de \LaTeX{} hecho para ser una forma fácil y flexible de componer tarjetas de presentación, fichas y tarjetas “flash” (tarjetas de aprendizaje), con posibilidad de un -opcional- reverso. Usted debe ocuparse solamente de fijar el tamaño del papel, los márgenes y del diseño de las tarjetas\footnote{No hay diseños predefinidos de tarjeta alguna; usted debe componer sus tarjetas.}}
 %
-% It uses the printable area of the paper to print the cards, so it relies on |\textwidth| and |\textheight| (not on |\paperwidth| and |\paperheight|) to calculate how many cards fits on a page.
+% \eng{It uses the printable area of the paper to print the cards, so it relies on \cs{textwidth} and \cs{textheight} macros (not on \cs{paperwidth} and \cs{paperheight}) to calculate how many cards fits on a page.}
+% \esp{Él usa el área imprimible del papel para escribir las tarjetas, es decir que se basa en las macros \cs{textwidth} y \cs{textheight} (no en \cs{paperwidth} y \cs{paperheight}) para calcular cuántas tarjetas caben en una página.}
 %
-% You should typeset the design of your cards with the macro provided for your case, depending on the type of card, followed by another macro to write them on the paper. Macros used to manage business cards are not the same as for index/flash cards because they are not the same thing. Business cards are all equal and they are repeated many times in a page. Index/flash cards are all different, so the macro to typeset index/flash cards manages a stack of cards. You should execute it many times as index/flash cards you have and all them will be stored internally to be processed when you have finished adding them.
+% \eng{You should typeset your cards with the macro provided for the case, depending on the type of card, followed by another macro to write them on the paper. Macros used to manage business cards are not the same as for index/flash cards because they are not the same thing. Business cards are all equal and they are repeated many times in a page. Index/flash cards are all different. The macro to typeset a business card takes its argument (your card) and stores it on a box, on the other hand, the macro to typeset an index/flash cards adds its argument (your card) to a stack of cards it manages. You can execute it many times as index/flash cards you have and all them will be stored internally to be processed when you have finished adding them.}
+% \esp{Usted debe componer la tarjeta con la macro provista para el caso, dependiendo del tipo de tarjeta, seguido de otra macro para escribir las tarjetas en el papel. Las macros que se usan para las tarjetas de presentación no son las mismas que las fichas y tarjetas “flash” porque no son lo mismo. Las tarjetas de presentación son todas iguales y se repiden muchas veces en una página. Las fichas y tarjetas “flash” son todas diferentes. La macro para componer una tarjeta de presentación toma su argumento (la tarjeta) y la guarda en una caja, por otra parte, la macro para componer una ficha/flash agrega su argumento (la tarjeta) a una pila de tarjetas que ella maneja. Usted puede ejecutar la macro tantas veces como fichas/flash tenga y todas ellas serán almacenadas internamente para ser procesadas cuando haya terminado de agregarlas todas.}
 %
-% Index cards and flash cards are in essence the same; the package provides macros for ``both'' cases but they behave the same. Macro aliases for flash cards were added for completeness.
+% \eng{Index cards and flash cards are in essence the same; the package provides macros for ‘both’ cases but they behave the same.}
+% \esp{Las fichas y las tarjetas “flash” son en esencia lo mismo; el paquete provee de macros para “ambos” casos pero se comportan de la misma manera.}
 %
-% \section{Usage}
+% \eng{In the same document you can typeset many different sets of cards. You can combine business cards with index/flash cards in the order you want; also using different sizes of cards, different gap options, designs, cropping options, and even changing the paper geometry.}
+% \esp*{En el mismo document usted puede componer diferentes conjuntos de tarjetas. Usted puede combinar tarjetas de presentación con fichas/flash en el orden que quiera; también usando diferentes tamaños de tarjetas, diferentes opciones de espaciado, diseños, marcas de corte e inclusive cambiando la geometría del papel.}
 %
-% Please load your class (i.e. |article|) and load the package ({\itshape it doesn't has options}).
 %
-% \noindent {\color{RoyalBlue}|\documentclass{article}|}
+% \newpage
+% \section{Usage / Uso}
 %
-% \noindent {\color{RoyalBlue}|\usepackage{elzcards}|}
+% \eng*{Please load your class (i.e. |article|) and load the package {\itshape (it doesn't has options)}.}
+% \esp*{Por favor cargue su clase (i.e. |article|) y cargue el paquete {\itshape (el paquete no tiene opciones)}.}
 %
-% \noindent Now I'll recommend you inserting the |geometry| package and setting the margins according to
+% \begin{center}
+%  \color{RoyalBlue}|\documentclass{article}|
+%  \par
+%  \color{RoyalBlue}|\usepackage{elzcards}|
+% \end{center}
 %
-% \noindent \hspace*{2em}\parbox{\textwidth-2em}{\begin{enumerate}[\bfseries 1.]
+% \eng*{We'll recommend you add the |geometry| package and setting the margins according to
+%
+% \hspace*{2em}\parbox{.4\textwidth}{\begin{enumerate}[\bfseries 1.]
 %  \item the desired size of your cards,
-%  \item the paper you'll use,
+%  \item the paper you'll use to print them,
 %  \item the printable area of your printer.
-% \end{enumerate}}
+% \end{enumerate}}}
+% \esp{Le recomendamos agregar el paquete |geometry| y fijar los márgenes de acuerdo a
 %
-% \noindent For example, for the default business card size (3.5 inches x 2 inches) in a letter paper, you might use:
+% \hspace*{2em}\parbox{.4\textwidth}{\begin{enumerate}[\bfseries 1.]
+%  \item el tamaño deseado de sus tarjetas,
+%  \item el papel que usará para imprimirlas,
+%  \item el área imprimible de la imrepsora.
+% \end{enumerate}}}
 %
-% \noindent {\color{RoyalBlue}|\usepackage[letterpaper,landscape,vmargin={0.25in,0.25in},hmargin={0.25in,0.25in}]|
+% \eng{For example, for the default business card size (3.5 inches x 2 inches) in A4 paper, you might use:}
+% \esp*{Por ejemplo, para el tamaño predeterminado de las tarjetas de presentación (3,5 pulgadas x 2 pulgadas) en una hoja A4, usted podría hacer así:}
 %
-% \hfill |{geometry}|}
+% \begin{center}
+%  \color{RoyalBlue}|\usepackage[a4paper,landscape,vmargin={.25in,.25in},hmargin={.25in,.25in}]{geometry}|
+% \end{center}
 %
-% After |\begin|ning your |{document}|, you have four principal macros to produce the cards you want. These macros are:
+% \eng*{After preamble, you have four main macros to produce the cards you want. These macros are:
 % \begin{itemize}
-%  \item |\BusinessCard| and |\IndexCard|\footnote{The package provides the alias \cs{FlashCard} for your convenience when writing flash cards but it is the same as \cs{IndexCard}.} to typeset business cards and index cards.
-%  \item |\MakeBC| and |\MakeIC|\footnote{Also the package provides the alias \cs{MakeFC}.} to write them on paper.
-% \end{itemize}
+%  \item \cs{BusinessCard} and \cs{IndexCard}\footnote{The package provides the alias \cs{FlashCard} for your convenience when writing flash cards but it is the same as \cs{IndexCard}.} to typeset business cards and index/flash cards. These macros writes nothing on paper. Only stores cards to be processed later.
+%  \item \cs{MakeBC} and \cs{MakeIC}\footnote{Also the package provides the alias \cs{MakeFC}.} to write them on paper.
+% \end{itemize}}
+% \esp{Después del preámbulo, usted tiene cuatro macros principales para producir las tarjetas que quiere. Esas macros son:
+% \begin{itemize}
+%  \item \cs{BusinessCard} y \cs{IndexCard}\footnote{El paquete provee el alias \cs{FlashCard} para su conveniencia cuando está haciendo tarjetas de aprendizaje pero es el mismo comando que usar \cs{IndexCard}.} para componer tarjetas de presentación y fichas/flash. Esas macros no escriben material alguno en el papel. Solamente guardan las tarjetas que van a ser procesadas luego.
+%  \item \cs{MakeBC} y \cs{MakeIC}\footnote{También el paquete provee del alias \cs{MakeFC}.} para imprimirlas en el papel.
+% \end{itemize}}
 %
-% The package prints cropping marks to guide the cutting of the cards; these cutting marks may be crosses inside the printed area, segments outside the printed area, dots inside and outside the printed area, or continuous lines. You can change the length of that segments, thickness of lines, size of dots and colors of all these cutting marks.
+% \eng{The package prints cropping marks to guide the cutting; these cutting marks can be crosses inside the printed area, segments outside the printed area, dots on cards' vertices, or continuous lines. You can change the length of that segments, thickness of lines, size of dots and colors of all these cutting marks. {\itshape Cards on back side will have no cutting marks, they aren't needed.}}
+% \esp{El paquete imprime marcas de corte para guiar el proceso de cortado; esas marcas pueden ser cruces dentro del área impresa, segmentos fuera del área impresaa, puntos en los vértices de las tarjetas, o líneas continuas. Usted puede cambiar la longitud de los segmentos, el grosor de las lineas, el tamaño de los puntos y el color de todas esas marcas de corte. {\itshape El reverso de las tarjetas no tendrán marcas de corte, no las necesita.}}
 %
-% \subsection{Typesetting the cards}
+% \eng{If only one card has back side, the whole document behaves like a twosided document, i.e. swapping horizontal margins and having interleaved blank pages when a set of cards has only front side; this is the behavior of \LaTeX's |twoside| option but you don't have to specify it by hand when loading your class with \cs{documentclass} even when having cards with back side, but you must compile your document twice to let the |twoside| option being added automatically by |elzcards|.}
+% \esp*{Si solamente una tarjeta tiene reverso, todo el documento se comporta como un documento con reverso, i.e. intercambiando los márgenes horizontales e intercalando una página en blanco cuando un conjunto de tarjetas tiene solamente lado anverso; este es el comportamiento de la opción |twoside| de \LaTeX{} pero usted no tiene que especificarla a mano cuando carga la clase con \cs{documentclass} ni siquiera cuando tiene tarjetas con reverso, pero debe compilar el documento una segunda vez para permitir que la opción |twoside| sea agregada automáticamente por |elzcards|.}
 %
-% You typeset (compose) your cards using macros described in this subsection; your cards will be stored internally in boxes or stacks and will be processed later by issuing the appropriate macro (described in the following subsection). Only two commands: storing cards, and later processing them.
 %
-% \noindent \DescribeMacro{\BusinessCard}{\color{RoyalBlue}|\BusinessCard|\marg{front side design}\oarg{back side design}}
+% \subsection{Typesetting the cards / Escribiendo las tarjetas}
 %
-% To produce a business card, you should issue the macro |\BusinessCard|. What you write as the first argument (with braces) will be the card's front face design, and its second -optional- argument (with square brackets) is the card's back side\footnote{There is no need to specify the |twoside| option when loading your class (i.e. |article| of whatever) even if you are writing twosided cards, but you must compile your document twice to be added the |twoside| option automatically to the compilation.}. Everything you put inside |{ }| and -optionally- inside |[ ]| will be stored in a box and nothing will be printed on the page until you issue a macro to process the cards and write them to the page (see the following subsection).
+% \eng*{You typeset your cards using macros described in this subsection; your cards will be stored internally to be processed later by invoking the appropriate macro, described in the following subsection.}
+% \esp*{Usted hace la composición tipográfica de sus tarjetas usando las macros descritas en esta subsección; sus tarjetas serán guardadas internamente para ser procesadas luego al invocar la macro apropiada, descrita en la siguiente subsección.}
 %
-% \noindent \DescribeMacro{\IndexCard}{\color{RoyalBlue}|\IndexCard|\marg{front side design}\oarg{back side design}}
+% \begin{center}
+%  \DescribeMacro{\BusinessCard}{\color{RoyalBlue}|\BusinessCard|\marg{front side / anverso}\oarg{back side / reverso}}
+% \end{center}
 %
-% \noindent \DescribeMacro{\FlashCard}{\color{RoyalBlue}|\FlashCard|\marg{front side design}\oarg{back side design}}
+% \eng*{To produce a business card, you should issue the macro \cs{BusinessCard}. What you write as the first argument (with braces) will be the card's front face design, and its second -optional- argument (with square brackets) is the card's back side. Everything you put inside {\ttfamily \{ \}} and -optionally- inside {\ttfamily [ ]} will be stored in a box and nothing will be printed on the page until you issue a macro to process the cards and write them to the page (see the following subsection).}
+% \esp*{Para producir una tarjeta de presentación usted debe ejecutar la macro \cs{BusinessCard}. Lo que escriba en el primer argumento (en llaves) será el diseño de la parte delantera, y el -opcional- segundo argumento (en corchetes) es el diseño del reverso de la tarjeta. Todo lo que coloque dentro de {\ttfamily \{ \}} y -opcionalmente- dentro de {\ttfamily [ ]} será guardado en una caja y no será escrito nada en el papel hasta que usted ejecute la macro para procesar las tarjetas y escribirlas en la hoja (véase la siguiente subsección).}
 %
-% To compose an index/flash card you have to issue |\IndexCard|\footnote{Or \cs{FlashCard}, which is the same command.}. This command has the same syntax as |\BusinessCard|, but it manages a stack of index/flash cards. You must invoke it many times as cards you have to add all them into the stack. You can add the number of cards you by want executing |\IndexCard| or |\FlashCard| many times {\bfseries no matter how many pages are needed to print all them}. All cards will be stored and and won't be processed until you invoke the macro intended to process them, described on the next subsection.
+% \begin{center}
+%  \DescribeMacro{\IndexCard}{\color{RoyalBlue}|\IndexCard|\marg{front side / anverso}\oarg{back side / reverso}}
 %
-% \noindent \DescribeMacro{\CurrentIC}{\color{RoyalBlue}|\CurrentIC|}
-% \noindent \DescribeMacro{\CurrentFC}{\color{RoyalBlue}|\CurrentFC|}
+%  \DescribeMacro{\FlashCard}{\color{RoyalBlue}|\FlashCard|\marg{front side / anverso}\oarg{back side / reverso}}
+% \end{center}
 %
-% \noindent \DescribeMacro{\TotalIC}{\color{RoyalBlue}|\TotalIC|}
-% \noindent \DescribeMacro{\TotalFC}{\color{RoyalBlue}|\TotalFC|}
+% \eng*{To compose index/flash cards you have to invoke \cs{IndexCard}\footnote{Or \cs{FlashCard}, which is the same command.}. This command has the same syntax of \cs{BusinessCard} but it manages a stack of index/flash cards. You have to invoke it many times as cards you have to add all them into the stack. You can add the number of cards you want by executing \cs{IndexCard} or \cs{FlashCard} many times {\bfseries no matter how many pages are needed to print all them}. All cards will be stored and won't be processed until you invoke the macro intended to process them, described on the next subsection.}
+% \esp*{Para hacer los diseños de fichas/flash usted debe ejecutar \cs{IndexCard}\footnote{O \cs{FlashCard}, que es el mismo comando.}. Este comando tiene la misma sintaxis que \cs{BusinessCard}, pero maneja una pila de fichas/flash. Usted debe invocarlo tantas veces como fichas/flash quiera agregar en la pila. Usted puede agregar el número de tarjetas que quiera ejecutando \cs{IndexCard} o \cs{FlashCard} muchas veces {\bfseries sin importar cuántas páginas serán necesarias para imprimirlas todas}. Todas esas tarjetas serán guardadas y no serán procesadas hasta que ejecute el comando destinado para procesarlas, descrito en la siguiente subsección.}
 %
-% With |\CurrentIC| and |\TotalIC|\footnote{Or their \texttt{FC} versions, which are the same.} you can access the counters associated with index/flash cards. When used {\bfseries inside a card}, the macro |\CurrentIC| prints the number of the current index/flash card and |\TotalIC| prints the total of cards stored in the stack. For example, you can add something like |Card: \CurrentIC{} of \TotalIC| somewhere on the content of your card if you are writing some type of numbered index cards.
+% \begin{center}
+%  \DescribeMacro{\CurrentIC}{\color{RoyalBlue}|\CurrentIC|}
+%  \DescribeMacro{\CurrentFC}{\color{RoyalBlue}|\CurrentFC|}
+%  \DescribeMacro{\TotalIC}{\color{RoyalBlue}|\TotalIC|}
+%  \DescribeMacro{\TotalFC}{\color{RoyalBlue}|\TotalFC|}
+% \end{center}
 %
-% \subsection{Writing cards on paper}
+% \eng*{With \cs{CurrentIC} and \cs{TotalIC}\footnote{Or their \texttt{FC} versions, which are the same.} you can access the counters associated with index/flash cards. When used {\bfseries inside a card}, the macro \cs{CurrentIC} prints the number of the current index/flash card, and \cs{TotalIC} prints the total of cards stored in the stack. For example, you can add something like
 %
-% At this time, nothing has been written on paper. The macros described on past section {\bfseries only stores the contents of all cards}; to write them on paper you should issue |\MakeBC| for business cards or |\MakeIC|\footnote{Or \cs{MakeFC}, which is also an alias for convenience.} for index/flash cards.
+% {\noindent\hfill \color{RoyalBlue}|Card: |\cs{CurrentIC}\{\}| of |\cs{TotalIC}\hfill}
 %
-% \noindent \DescribeMacro{\MakeBC}{\color{RoyalBlue}|\MakeBC[*]|\oarg{key-val comma separated list of options}}
+% \noindent somewhere on the content of your card if you are making some type of numbered cards.}
+% \esp*{Con \cs{CurrentIC} y \cs{TotalIC}\footnote{O sus versiones \texttt{FC}, que son lo mismo.} usted puede acceder a los contadores asociados con las fichas/flash. Cuando usa \cs{CurrentIC} {\bfseries dentro de una tarjeta}, escribirá el número de la ficha/flash actual, y \cs{TotalIC} escribe el número total de tarjetas guardadas en la pila. Por ejempo, usted puede agregar algo como
 %
-% \noindent \DescribeMacro{\MakeIC}{\color{RoyalBlue}|\MakeIC[*]|\oarg{key-val comma separated list of options}}
+% {\noindent\hfill \color{RoyalBlue}|Tarjeta: |\cs{CurrentIC}\{\}| de |\cs{TotalIC}\hfill}
 %
-% \noindent \DescribeMacro{\MakeFC}{\color{RoyalBlue}|\MakeFC[*]|\oarg{key-val comma separated list of options}}
+% \noindent en cualquier parte del contenido de la tarjeta si está haciendo algún tipo de tarjetas numeradas.}
 %
-% They have an optional star and a key-val list of options in square brackets. The key-val options are intented to change sizes, optional gaps between cards, and cutting options (these cutting or cropping options are described on next section). The star means that the {\slshape make} command won't clear the cards after processing them. Normally, when you execute any of these {\slshape make} commands, all cards processed are purged from memory and you must add them again to process them a second time. If you issue a {\slshape make} command with a star |*| you can use again a {\slshape make} command because the cards weren't removed from memory. Otherwise, without |*| all stacks and boxes will be cleared being ready to add a different set of cards.
 %
-% \subsection{key-val options: defining sizes, gaps and crop options}
+% \subsection{Writing cards on paper / Escribiendo las tarjetas en el papel}
 %
-% Both {\slshape make} commands accepts a key-val list of comma-separated options. These options are:
+% \eng*{At this point nothing has been written on paper yet. The macros described on past subsection {\bfseries only stores the cards to be written}; to write them on paper you should issue \cs{MakeBC} for business cards or \cs{MakeIC}\footnote{Or \cs{MakeFC}, which is also an alias for convenience.} for index/flash cards.}
+% \esp*{Aquí todavía nada ha sido escrito en el papel. Las macros descritas en la subsección anterior {\bfseries solamente guardan las tarjetas a ser escritas}; para escribirlas en el papel usted debe ejecutar \cs{MakeBC} para las tarjetas de presentación o \cs{MakeIC}\footnote{O \cs{MakeFC}, que es otro alias para conveniencia.} para las fichas/flash.}
 %
-% {\tabcolsep4pt
-% \begin{tabular}{lll}
-%  Option & What changes? & \rmfamily Default value \\ \hline
-%  hsize= & horizontal size of each card & |3.5in| on business cards \\
-%                                       && |5in| on index/flash cards \\
-%  vsize= & vertical size of each card & |2in| on business cards \\
-%                                     && |3in| on index/flash cards \\
-%  hgap= & horizontal gap between cards & |0pt| \\
-%  vgap= & vertical gap between cards & |0pt| \\
-%  segment length= & segment length (arista) when \\
-%                  & marking with crosses or segments & |1mm| \\
-%  line thickness= & line thickness when marking with \\
-%                  & crosses, external segments or lines & |0.1mm| \\
-%  dot size= & diameter of crop dots & |1pt| \\
-%  crosses & use crosses as cropping marks & true \\
-%  segments & use external segments as cropping marks & false \\
-%  lines & use lines as cropping marks & false \\
-%  dots & use dots as cropping marks & false \\
-%  crop color & change color for cropping marks & \color{Red!90!Black} |90%| red and |10%| black \\
-%  no marks & do not print cropping marks & false \\
-% \end{tabular}}
+% \begin{center}
+%  \DescribeMacro{\MakeBC}{\color{RoyalBlue}|\MakeBC[*]|\oarg{keyval options / opciones keyval}}
 %
-% You can change whatever length on this list\footnote{All sizes and gaps on that list are lengths in the \LaTeX{} sense.}. Everything you won't specify will be taken from its default value, so nothing is mandatory. As you can see, business cards and index/flash cards has different default sizes, but both can be changed with |hsize| and |vsize| in the {\slshape make} command. Both gaps are set by default to zero, meaning no distance between cards. The default crop mark is the cross (which really are segments and crosses); if you want external segments, dots or lines, you must specify one of them. Using lines you'll have lines between all cards, like a grid. This might be useful also if you want the line as the border of the card, part of the design itself of the card. {\itshape Back side cards will have no cutting marks, they aren't needed.}
+%  \DescribeMacro{\MakeIC}{\color{RoyalBlue}|\MakeIC[*]|\oarg{keyval options / opciones keyval}}
 %
-% \subsection{Changing default values and default options}
+%  \DescribeMacro{\MakeFC}{\color{RoyalBlue}|\MakeFC[*]|\oarg{keyval options / opciones keyval}}
+% \end{center}
 %
-% You can change all the default behavior and values; it might be convenient instead of issuing {\slshape make} commands with parameters, specially if you are writing more than one set of cards in the same document and they shares some not-default options. Changing default values at some point of the document might be preferred than calling these {\slshape make} commands with optional arguments over and over. This package provides commands to change all default values in whatever place of the document and that will apply to every card onwards:
+% \eng*{They have an optional star and a |keyval| list of options in square brackets. These |keyval| argument is intented to change sizes, gaps between cards, and cutting options overriding defaults only on the \cs{MakeXY} execution where options are applied to, naturally. Everything you won't specify will be taken from its default value, so nothing is mandatory.}
+% \esp{Tienen un asterisco opcional y una lista de opciones |keyval| entre corchetes. Ese argumento |keyval| está pensado para cambiar tamaños, separaciones entre las tarjetas y las opciones de corte imponiéndose por encima de los valores predeterminados solamente en la macro \cs{MakeXY} donde estas opciones fueron escritas, obviamente. Todo lo que no especifique será tomado de su valor predeterminado, de forma que nada es obligatorio especificarlo.}
 %
-% {\parindent0pt
-% \DescribeMacro{\BCdim}{\color{RoyalBlue}|\BCdim|\marg{h-size}\marg{v-size}}
+% \eng{The star means that the \cs{MakeXY} command won't clear the cards after processing them. Normally, when you execute any of these \cs{MakeXY} commands, all cards processed are purged from memory and you must add them again to process them a second time. If you issue a \cs{MakeXY} command with a star |*| (e.g. \cs{MakeIC*}), you'll be able issue again the \cs{MakeIC} command because the cards weren't removed from memory. Otherwise, without |*| all cards and boxes are cleared to accept new set of cards added with \cs{Businesscard} or \cs{IndexCard}.}
 %
-% This command |\BCdim| takes two arguments, the default horizontal and vertical size of business cards. \\
-% {\slshape Key-val options: |hsize=| and |vsize=|}
+% \esp*{El asterisco significa que los comandos \cs{MakeXY} no eliminarán las tarjetas después de ser procesadas. Normalmente, cuando ejecuta cualquiera de los comandos \cs{MakeXY}, todas las tarjetas procesadas son purgadas de la memoria y usted deberá agregarlas otra vez si quiere procesarlas una segunda vez. Si usted ejecuta un comando \cs{MakeXY} con un asterisco |*| (e.g. \cs{MakeIC*}), podrá ejecutar otra vez el comando \cs{MakeXY} porque las tarjetas no fueron quitadas de la memoria. De lo contrario, sin~|*| todas las tarjetas y cajas son borradas para aceptar nuevos conjuntos de tarjetas agregados con \cs{BusinessCard} o \cs{IndexCard}.}
 %
-% \DescribeMacro{\ICdim}{\color{RoyalBlue}|\ICdim|\marg{h-size}\marg{v-size}}
-% \DescribeMacro{\FCdim}
 %
-% With |\ICdim| or |\FCdim| you can change default size of index/flash cards, like as |\BCdim|. \\
-% {\slshape Key-val options: |hsize=| and |vsize=|}
+% \subsection{Overriding all defaults / Cambiando todo lo predeterminado}
 %
-% \DescribeMacro{\CardGap}{\color{RoyalBlue}|\CardGap|\marg{h-gap}\marg{v-gap}}
+% \eng*{As we pointed before, \cs{MakeXY} macros accepts a |keyval| list of comma-separated options. These options are intended to supersede some default behavior only on the \cs{MakeXY} command where they are added. However, all defaults might be superseded with a set of macros to apply on all \cs{MakeXY} executions onwards.}
+% \esp{Como señalamos previamente, las macros \cs{MakeXY} aceptan una lista de opciones |keyval|, separadas por comas. Esas opciones están hechas para reemplazar algún comportamiento predeterminado, solamente en la invocación del comando \cs{MakeXY} donde se agregaron. Sin embargo, todo lo predeterminado podría ser reemplazado con un conjunto de macros que aplicarán en todas las invocaciones de \cs{MakeXY} en adelante.}
 %
-% With |\CardGap| you can modify the default gap between cards. {\itshape If you specify only one parameter, this will be taken as the gap in both directions.} \\
-% {\slshape Key-val options: |hgap=| and |vgap=|}
+% \eng{Almost every |keyval| option have its corresponding macro to change the default for the rest of the document. Everything will be described on this subsection.}
+% \esp{Casi todas las opciones |keyval| tienen su macro correspondiente para cambiar lo predeterminado para el resto del documento. Todo será descrito en esta subsección.}
 %
-% \DescribeMacro{\SegmentLength}{\color{RoyalBlue}|\SegmentLength|\marg{segment length}}
+% \eng{Right below you will have a subsection for each aspect, its corresponding |keyval| option, the default value coded on |elzcards.sty| and the macro that might be issued to change the default value.}
+% \esp{Justamente debajo usted tendrá una subsección para cada aspecto, su opción |keyval| correspondiente, el valor predeterminado codificado en |elzcards.sty| y la macro que podría ser invocada para cambiar dicho valor por omisión.}
 %
-% This macro may be used to change the segment length when using crosses or external segments as cutting marks. Applies when using crosses or external segments as cutting guides. \\
-% {\slshape Key-val option: |segment length=|}
+% \eng{\bfseries All sizes and gaps are lengths in the \LaTeX{} sense.}
+% \esp*{\bfseries Todos los tamaños y espaciados son dimensiones en el sentido de \LaTeX.} 
 %
-% \DescribeMacro{\LineThickness}{\color{RoyalBlue}|\LineThickness|\marg{line thickness}}
 %
-% |\LineThickness| changes the default thickness of the lines used for cutting the paper. Applies when using lines, crosses or segments as cutting guides. \\
-% {\slshape Key-val option: |line thickness=|}
+% \subsubsection{Cards reordering / Reordenamiento de las tarjetas}
 %
-% \DescribeMacro{\DotSize}{\color{RoyalBlue}|\DotSize|\marg{dot size}}
+% \eng*{
+%  \Keyval{|order=|} \\
+%  \Default{(none, i.e. in sequence)}}
+% \esp{
+%  \Keyval*{|order=|} \\
+%  \Default*{(ninguno, i.e. en secuencia)}}
 %
-% With |\DotSize| you can alter the diameter of the dots printed as a cutting guide. \\
-% {\slshape Key-val option: |dot size=|}
+% \eng{With this |keyval| option you can alter the disposition of the cards on paper, valid only on index/flash cards because they are all different. By default, the ordering is from top left edge to bottom right edge, running from left to right until the page was full. Specifying |order=| you are able to change that order. This would be useful when printing on folds and need to cut and stack thousands of pages to avoid the need to compaginate them later.}
+% \esp{Con esta opción |keyval| usted puede alterar la disposición de las tarjetas en el papel, válido solamente en fichas/flash porque son todas diferentes. Predeterminadamente, el ordenamiento es desde la esquina superior izquierda a la esquina inferior derecha, cambiando de izquierda a derecha hasta que la página se llene. Especificando |order=| usted tiene la posibilidad de cambiar ese orden. Esto podría ser util al imprimir en folios necesitando cortar y apilar cientos de hojas para evitar la necesidad de compaginarlas después.}
 %
-% \DescribeMacro{\CropCrosses}{\color{RoyalBlue}|\CropCrosses|}
+% \eng{If you want to change the cards ordering you should give a set or cards with |order=| option. This set of cards must be at least all cards on the first page, i.e. a ‘cycle’, but also it can spans on multiple pages or even on the whole cards\footnote{only on this \cs{MakeIC} execution and not on subsequent ones, obviously.}.}
+% \esp{Si usted quiere cambiar el ordenamiento de las tarjetas debe dar por lo menos un conjunto de tarjetas con la opción |order=|. Este conjunto de tarjetas deberá ser por lo menos todas las tarjetas de la primera página, i.e. un “ciclo”, pero también puede abarcar múltiples páginas o inclusive todas las tarjetas\footnote{solamente en esta ejecución de \cs{MakeIC} y no en las siguientes, obviamente.}.}
 %
-% This command make default drawing crosses and segments as crop marks. {\itshape That's the default, but you can change it with the followind two macros.} \\
-% {\slshape Key-val option: |crosses|}
+% \eng{For example, having 12 cards in a 3x2 grid (2 pages of 6 cards per page), you can alter the disposition with:}
+% \esp*{Por ejemplo, teniendo 12 tarjetas en una cuadrícula de 3x2 (2 páginas de 6 tarjetas cada página), usted puede alterar la disposición con:}
 %
-% \DescribeMacro{\CropSegments}{\color{RoyalBlue}|\CropSegments|}
+% {\noindent\hfill \color{RoyalBlue}|order=1 5 3 6 2 4|\hfill}
 %
-% This command make default drawing {\slshape external} segments as crop marks. Unlike the crosses, there are no cutting marks printed on the internal part of paper, everything is printed on borders outside the printed area. \\
-% {\slshape Key-val option: |segments|}
+% \eng*{\noindent this way, the first page will have the cards ordered as |1,5,3,6,2,4|; it implies that the second page will print cards |7,11,9,12,8,10|. Note that the pattern in the reordering option contains all first six cards (the first page) but in other disposition; it must be something like this in the sense that you must specify at least all cards on the first page to construct a reordering pattern for the next pages. As pointed before, the reordering pattern can span to more than one page. For example:}
+% \esp*{\noindent de esta manera, la primera página tendrá las tarjetas ordenadas como |1,5,3,6,2,4|; esto implica que la segunda página tendrá las tarjetas |7,11,9,12,8,10|. Note que el patrón en la opción de reordenamiento contiene todas las primeras seis tarjetas (la primera página) pero en otra disposición; tiene que ser algo por el estilo en el sentido de que usted debe especificar por lo menos todas las tarjetas de la primera página para construir un patrón de reordenamiento para las siguientes páginas. Como mencionamos anteriormente, el patrón de reordenamiento puede abarcar mas de una página. Por ejemplo:}
 %
-% \newpage
-% \DescribeMacro{\CropLines}{\color{RoyalBlue}|\CropLines|}
+% {\noindent\hfill \color{RoyalBlue}|order=12 11 10 9 8 7 6 5 4 3 2 1|\hfill}
 %
-% This command make default drawing lines as crop marks. \\
-% {\slshape Key-val option: |lines|}
+% \eng*{\noindent will reorder all 12 cards in descending order starting on 12 and ending on 1.}
+% \esp{\noindent reordenará las 12 tarjetas en orden descendente empezando en la 12 y terminando en la 1.}
 %
-% \DescribeMacro{\CropDots}{\color{RoyalBlue}|\CropDots|}
+% \eng{\slshape This |keyval| option does not have its corresponding macro to change the default behavior because it would have no sense to change the default ordering pattern. This behavior can be changed only via this |keyval| option.}
+% \esp*{\slshape Esta opción |keyval| no tiene su correspondiente macro para cambiar el comportamiento predeterminado porque no tendría sentido cambiar el patrón de ordenamiento predeterminado. Este comportamiento puede ser cambiado solamente via opción |keyval|.}
 %
-% This command make default drawing dots as crop marks.\\
-% {\slshape Key-val option: |dots|}
 %
-% \DescribeMacro{\CropColor}{\color{RoyalBlue}|\CropColor|}
+% \subsubsection{Transverse cards' reordering / Reordenamiento transverso de las tarjetas}
 %
-% With |\CropColor| you can change the color used for cropping marks; the argument is the color name in the syntax of the |xcolor| package loaded with |usenames| and |dvipsnames| as its options. \\
-% {\slshape Key-val option: |crop color|}
+% \begin{center}
+%  \DescribeMacro{\Transverse}{\color{RoyalBlue}|\Transverse|}
+% \end{center}
 %
-% \DescribeMacro{\NoCropMarks}{\color{RoyalBlue}|\NoCropMarks|}
+% \eng*{
+%  \Keyval{|transverse|} \\
+%  \Default{disabled}}
+% \esp{
+%  \Keyval*{|transverse|} \\
+%  \Default*{deshabilitado}}
 %
-% This command defaults not printing cutting marks. \\
-% {\slshape Key-val option: |no marks|}
-% }
+% \eng{Transverse ordering on index/flash cards means that cards will be printed not in a sequence on the same page but instead on a sequence on the same logical position on the matrix, spanned across all pages. A sequence of cards is distributed across all sheets of paper from the first page to the last one, returning to the first page to continue the sequence on the next logical position on the matrix. The first logical position (e.g. top left corner) has the sequence from the card $1$ ending on card $n$, the next logical position has the sequence starting on $n+1$ until $2n$, and so on, where $n$ is the number of pages required to print all them.}
 %
-% \section{Final words}
+% \esp{El ordenamiento transverso de las fichas/flash significa que las tarjetas serán impresas no en una secuencia en la misma página sino en una secuencia en la misma posición lógica en la matrix extendiéndose a través de todas las páginas. Una secuencia de tarjetas es distribuída a través de todas las páginas desde la primera página hasta la última, regresando a la primera página para continuar la secuencia en la siguiente posición lógica de la matrix. La primera posición lógica (e.g. la esquina superior izquierda) tiene la secuencia desde la tarjeta $1$ hasta la tarjeta $n$, la siguiente posición lógica tiene la secuencia que empieza en $n+1$ hasta $2n$, y así, donde $n$ es el número de páginas requeridas para imprimirlas todas.}
 %
-% In the same document you can typeset many different sets of cards. You can combine business cards with index cards in the order you want; also using different sizes of cards, different gaps, designs, cropping options, and even changing the paper geometry with |\geometry|.
+% \eng{For example, having a set of 20 cards printed in a 4x4 matrix (in total 5 pages), using |transverse| is exactly the same as using:}
+% \esp*{Por ejemplo, teniendo un conjunto de 20 tarjetas impresas en una matrix 4x4 (en total 5 páginas), usar |transverse| es exactamente lo mismo que usar:}
 %
-% If only one card has back side, the whole document behaves like a twosided document, i.e. it will swap horizontal margins and will have interleaved blank pages when a set of cards has only front side; this is the behavior of |twoside| option but you don't have to specify it by hand in |\documentclass| even when having cards with back side.
+% {\noindent\hfill \color{RoyalBlue}|order=1 6 11 16 2 7 12 17 3 8 13 18 4 9 14 19 5 10 15 20|\hfill}
 %
-% Take into account that this is \LaTeX, so you can define your own commands and use them inside the |\BusinessCard| and |\IndexCard| macros, like in examples with macro |\mycenter|.
+% \eng*{\noindent but without needing to provide this ‘transverse’ ordering pattern with |order=|that will change on every card addition/substraction.}
+% \esp{\noindent pero sin la necesidad de proveer este patrón de ordenamiento “transverso” con |order=| que cambiará con cada adición/sustracción de tarjetas.}
 %
-% \section{Sample output of a business card}
+% \eng{This option is only valid on index/flash cards and this feature can be defaulted with the macro associated with this behavior.}
+% \esp*{Esta opción es válida solamente en fichas/flash y esta carcaterística puede ser predeterminada con la macro asociada a este comportamiento.}
 %
-% In the next page you'll see the first set of business cards of the all-in-one included example whose code is the following:
-% \begin{verbatim}
+%
+% \subsubsection{Standard linear ordering / Orden lineal estándar}
+%
+% \begin{center}
+%  \DescribeMacro{\NoTransverse}{\color{RoyalBlue}|\NoTransverse|}
+% \end{center}
+%
+% \eng*{
+%  \Keyval{|no transverse|} \\
+%  \Default{enabled}}
+% \esp{
+%  \Keyval*{|no transverse|} \\
+%  \Default*{habilitado}}
+%
+% \eng{You can restore to the standard linear and not transverse ordering if you had selected the transverse ordering default with \cs{Transverse} before in the document.}
+% \esp*{Usted puede regresar al ordenamiento estándar lineal y no transverso si seleccionó el ordenamiento transversal predeterminado con \cs{Transverse} previamente en el documento.}
+%
+%
+% \subsubsection{Number of rows and columns per page / Número de filas y columnas por página}
+%
+% \eng*{
+%  \Keyval{|rows=| and |columns=|} \\
+%  \Default{(maximum that fits on the page)}}
+% \esp{
+%  \Keyval*{|rows=| y |columns=|} \\
+%  \Default*{(el máximo que quepa en la página)}}
+%
+% \eng{By default, |elzcards| calculates how many rows and columns fits on a page considering the card's dimensions and intercard gaps. It prints all cards in a maximal grid. With |rows=| and |columns=| you can force the number rows or columns you want on a page as long as they are less than the maximum calculated by |elzcards|, naturally.}
+% \esp{Predeterminadamente, |elzcards| calcula cuántas filas y columnas caben en una página considerando las dimensiones de las tarjetas y el espaciado entre las tarjetas. Él imprime todas las tarjetas en una cuadrícula maximal. Con |rows=| y |columns=| usted puede forzar el número de filas o columnas que quiera en una página siempre y cuando sean menos que el máximo calculado por |elzcards|, obviamente.}
+%
+% \eng{\slshape This |keyval| option does not have its corresponding macro to change the default behavior because it would have no sense to change the default number of rows or columns globally for different type of cards with different sizes. This behavior can be changed only via these |keyval| options.}
+% \esp*{\slshape Esta opción |keyval| no tiene su correspondiente macro para cambiar el comportamiento predeterminado porque no tendría sentido cambiar el número predeterminado de filas o columnas globalmente para diferentes tipos de tarjetas de diferentes tamaños. Este comportamiento puede ser cambiado solamente via estas opciones |keyval|.}
+%
+% 
+% \subsubsection{Card dimensions / Dimensiones de las tarjetas}
+%
+% \begin{center}
+%  \DescribeMacro{\BCdim}
+%  \DescribeMacro{\ICdim}
+%  \DescribeMacro{\FCdim}
+% {\color{RoyalBlue}|\BCdim|\marg{h-size / h-tamaño}\marg{v-size / v-tamaño}}
+%
+% {\color{RoyalBlue}|\ICdim|\marg{h-size / h-tamaño}\marg{v-size / v-tamaño}}
+% \end{center}
+%
+% \eng*{
+%  \Keyval{|hsize=| and |vsize=|} \\
+%  \Default{\\ |hsize=3.5in| and |vsize=2in| for business cards \\ |hsize=5in| and |vsize=3in| for index/flash cards}}
+% \esp{
+%  \Keyval*{|hsize=| y |vsize=|} \\
+%  \Default*{\\ |hsize=3.5in| y |vsize=2in| para tarj. de presentación \\ |hsize=5in| y |vsize=3in| para fichas/flash.}}
+%
+% \eng{You must set the size of the card you are composing (if the default size doesn't fit your needs); business cards has a predefined size and index/flash has another one.}
+% \esp{Usted deberá establecer el tamaño de las tarjetas que está componiendo (si el predeterminado no se ajusta a sus necesidades); las tarjetas de presentación tienen un tamaño predeterminado y las fichas/flash tienen otro.}
+%
+% \eng{With these |keyval| options, you can alter the size of your card in the current \cs{MakeXY} execution.}
+%
+% \esp{Con estas opciones |keyval|, usted puede alterar el tamaño de su tarjeta en la invocación actual de \cs{MakeXY}.}
+%
+% \eng{These command \cs{**dim} takes two mandatory arguments, the new default horizontal and the new default vertical size of the referred card.}
+% \esp*{Estos comandos \cs{**dim} toman dos argumentos obligatorios, el nuevo tamaño horizontal y el nuevo tamaño vertical predeterminado para la tarjeta referida.}
+%
+%
+% \subsubsection{Intercard gaps / Separaciones entre las tarjetas}
+%
+% \begin{center}
+%  \DescribeMacro{\CardGap}{\color{RoyalBlue}|\CardGap|\marg{h-gap / h-sep}\marg{v-gap / v-sep}}
+% \end{center}
+%
+% \eng*{
+%  \Keyval{|hgap=| and |vgap=|} \\
+%  \Default{|hgap=0pt| and |vgap=0pt|}}
+% \esp{
+%  \Keyval*{|hgap=| y |vgap=|} \\
+%  \Default*{|hgap=0pt| y |vgap=0pt|}}
+%
+% \eng{To add some horizontal gap use |hgap|, and |vgap| for vertical gap.}
+%
+% \esp{Para añadir separación horizontal use |hgap|, y |vgap| para separación vertical.}
+%
+% \eng{With \cs{CardGap} you can set the default gap between cards. {\itshape If you specify only one parameter, this will be taken as the gap in both axis.}}
+% \esp*{Con \cs{CardGap} podrá cambiar la separación predeterminada entre las tarjetas. {\itshape Si especifica un solo parámetro, este será tomado como la separación en ambos ejes.}}
+%
+%
+% \subsubsection{Inner auto gap / Separación interna automática}
+%
+% \begin{center}
+%  \DescribeMacro{\AutoGapInner}{\color{RoyalBlue}|\AutoGapInner|}
+% \end{center}
+%
+% \eng*{
+%  \Keyval{|autogap inner|} \\
+%  \Default{disabled}}
+% \esp{
+%  \Keyval*{|autogap inner|} \\
+%  \Default*{deshabilitado}}
+%
+% \eng{By default, all cards are placed together and centered on the printable area.}
+%
+% \esp{Predeterminadamente, todas las tarjetas se colocan juntas y centradas en el área imprimible.}
+%
+% \eng{With inner autogap, all gaps are calculated automatically based upon the remaining space after being determined the number of rows and columns will be printed in the page.}
+% \esp*{Con separación interna automática, todas las separaciones son calculadas automáticamente con base en el espacio restante que queda luego de haber determinado el número de filas y columnas que serán impresas en la página.}
+%
+%
+% \subsubsection{Inner+outer auto gap / Separación interna+externa automática}
+%
+% \begin{center}
+%  \DescribeMacro{\AutoGapTotal}{\color{RoyalBlue}|\AutoGapTotal|}
+% \end{center}
+%
+% \eng*{
+%  \Keyval{|autogap total|} \\
+%  \Default{disabled}}
+% \esp{
+%  \Keyval*{|autogap total|} \\
+%  \Default{deshabilitado}}
+%
+% \eng{Using total automatic gap, not only internal gaps but also all borders are taken into account, so all the remaining space will de distributed equally across all internal gaps and external margins. The best when using this option is setting the paper without margins at all, and all the grid will be equally spaced including top, bottom, left and right margins.}
+%
+% \esp*{Con separación total automática, no solamente las separaciones internas sino también los bordes son tomados en cuenta, de manera que todo el espacio restante será distribuído equitativamente entre todas las separaciones internas y márgenes externos. Lo mejor al usar esta opción es establecer una hoja sin márgenes en lo absoluto, y toda la cuadrícula de tarjetas será espaciada igualitariamente incluyendo los márgenes superior, inferior, izquierdo y derecho.}
+%
+%
+% \subsubsection{Without auto gap/ Sin separación automática}
+%
+% \begin{center}
+%  \DescribeMacro{\NoAutoGap}{\color{RoyalBlue}|\NoAutoGap|}
+% \end{center}
+%
+% \eng*{
+%  \Keyval{|no autogap|} \\
+%  \Default{enabled}}
+% \esp{
+%  \Keyval*{|no autogap|} \\
+%  \Default*{habilitado}}
+%
+% \eng{You can restore to no autogap behavior if you had selected either \cs{AutoGapTotal} or \cs{AutoGapInner} options before in the document to change the default auto gap behavior.}
+%
+% \esp*{Usted puede regresar al comportamiento de no introducir separaciones automáticas si previamente usó la macro \cs{AutoGapTotal} o \cs{AutoGapInner} en el documento para cambiar el comportamiento predeterminado de las separaciones automáticas.}
+%
+%
+% \subsubsection{Crop crosses / Cruces para corte}
+%
+% \begin{center}
+%  \DescribeMacro{\CropCrosses}{\color{RoyalBlue}|\CropCrosses|}
+% \end{center}
+%
+% \eng*{
+%  \Keyval{|crosses|} \\
+%  \Default{enabled}}
+% \esp{
+%  \Keyval*{|crosses|} \\
+%  \Default*{habilitado}}
+%
+% \eng{Draws crosses as cutting marks. That's the default, but you can revert to this behavior if you did change the default cropping mark before. Those crosses really are segments on the outer cards and crosses on inner cards.}
+%
+% \esp*{Dibuja cruces como marcas de corte. Esto es lo predeterminado pero usted puede revertir a este comportamiento si previamente cambió la marca de corte predeterminada. Esas cruces son realmente segmentos en las tarjetas externas y cruces en las tarjetas internas.}
+%
+%
+% \subsubsection{Crop segments / Segmentos para corte}
+%
+% \begin{center}
+%  \DescribeMacro{\CropSegments}{\color{RoyalBlue}|\CropSegments|}
+% \end{center}
+%
+% \eng*{
+%  \Keyval{|segments|} \\
+%  \Default{|disabled|}}
+% \esp{
+%  \Keyval*{|segments|} \\
+%  \Default{deshabilitado}}
+%
+% \eng{Draws segments as crop marks. Unlike the crosses, there are no cutting marks printed on the internal part of paper, everything is printed on borders outside the printed area.}
+%
+% \esp*{Dibuja segmentos como marcas de corte. A diferencia de las cruces, no hay marcas de corte impresas en la parte interna del papel, todo está impreso en los bordes, fuera del área imprimible.}
+%
+%
+% \subsubsection{Crop lines / Líneas para corte}
+%
+% \begin{center}
+%  \DescribeMacro{\CropLines}{\color{RoyalBlue}|\CropLines|}
+% \end{center}
+%
+% \eng*{
+%  \Keyval{|lines|} \\
+%  \Default{disabled}}
+% \esp{
+%  \Keyval*{|lines|} \\
+%  \Default*{deshabilitado}}
+%
+% \eng{With this option the crop option is drawing lines on all card contours, like a grid. This might be useful also if you want the line as the border of the card, part of the design itself of the card, drawing them thicker and they will be not only cutting guides but frames outlining the cards.}
+%
+% \esp*{Con esta opción, la opción de corte es dibujar líneas como contornos entre todas las tarjetas, como una cuadrícula. Esto pudiera ser util también si usted quisiera la línea como un contorno de la tarjeta, parte del diseño mismo de la tarjeta, dibujándolas más gruesas y serán no solamente guias de corte sino marcos en los contornos de las tarjetas.}
+%
+%
+% \subsubsection{Crop dots / Puntos para corte}
+%
+% \begin{center}
+%  \DescribeMacro{\CropDots}{\color{RoyalBlue}|\CropDots|}
+% \end{center}
+%
+% \eng*{
+%  \Keyval{|dots|} \\
+%  \Default{disabled}}
+% \esp{
+%  \Keyval*{|dots|} \\
+%  \Default*{deshabilitado}}
+%
+% \eng{\noindent Print dots at all cards vertices.}
+%
+% \esp*{\noindent Imprime puntos en todos los vértices de las tarjetas.}
+%
+%
+% \subsubsection{Without cropping marks / Sin marcas para el corte}
+%
+% \begin{center}
+%  \DescribeMacro{\NoCropMarks}{\color{RoyalBlue}|\NoCropMarks|}
+% \end{center}
+%
+% \eng*{
+%  \Keyval{|no marks|} \\
+%  \Default{disabled}}
+% \esp{
+%  \Keyval*{|no marks|} \\
+%  \Default*{deshabilitado}}
+%
+% \eng{\noindent Set no cutting marks at all.}
+%
+% \esp*{\noindent Establece no usar marca alguna de corte.}
+%
+%
+% \subsubsection{Cropping's segment length / Longitud del segmento de corte}
+%
+% \begin{center}
+%  \DescribeMacro{\SegmentLength}{\color{RoyalBlue}|\SegmentLength|\marg{segment length / longitud del segmento}}
+% \end{center}
+%
+% \eng*{
+%  \Keyval{|segment length=|} \\
+%  \Default{|segment length=1mm|}}
+% \esp{
+%  \Keyval*{|segment length=|} \\
+%  \Default*{|segment length=1mm|}}
+%
+% \eng{This macro can be used to change the segment length. Applies when using crosses or external segments as cutting guides.}
+%
+% \esp*{Esta macro puede ser usada para cambiar la longitud del segmento. Aplica cuando se usan cruces o segmentos externos como guias de corte.}
+%
+%
+% \subsubsection{Cropping's line thickness / Grosor de la línea de corte}
+%
+% \begin{center}
+%  \DescribeMacro{\LineThickness}{\color{RoyalBlue}|\LineThickness|\marg{line thickness / grosor de la línea}}
+% \end{center}
+%
+% \eng*{
+%  \Keyval{|line thickness=|} \\
+%  \Default{|line thickness=0.1mm|}}
+% \esp{
+%  \Keyval*{|line thickness=|} \\
+%  \Default*{|line thickness=0.1mm|}}
+%
+% \eng{This is used to change the thickness of the lines used for cutting the paper. Applies when using lines, crosses or segments as cutting guides.}
+%
+% \esp*{Esto se usado para cambiar el grosor de la línea usada para cortar el papel. Aplica cuando se usan lineas, cruces o segmentos como guias de corte.}
+%
+%
+% \subsubsection{Cropping's dot size / Tamaño del punto de corte}
+%
+% \begin{center}
+%  \DescribeMacro{\DotSize}{\color{RoyalBlue}|\DotSize|\marg{dot size / tamaño del punto}}
+% \end{center}
+%
+% \eng*{
+%  \Keyval{|dot size=|} \\
+%  \Default{|dot size=1mm|}}
+% \esp{
+%  \Keyval*{|dot size=|} \\
+%  \Default*{|dot size=1mm|}}
+%
+% \eng{With this, you can alter the diameter of the dots printed on cards vertices as a cutting guide.}
+%
+% \esp*{Con esto usted puede alterar el diámetro del punto impreso en los vértices de las tarjetas como guias de corte.}
+%
+%
+% \subsubsection{Crop color / Color para el corte}
+%
+% \begin{center}
+%  \DescribeMacro{\CropColor}{\color{RoyalBlue}|\CropColor|\marg{color definition / definición del color}}
+% \end{center}
+%
+% \eng*{
+%  \Keyval{|crop color=|} \\
+%  \Default{|crop color=red!90!black| \\ (which means 90\% red and 10\% black.)}}
+% \esp{
+%  \Keyval*{|crop color=|} \\
+%  \Default*{|crop color=red!90!black| \\ (lo que significa 90\% de rojo y 10\% de negro.)}}
+%
+% \eng{You can change the color used for cropping marks; the argument is the color name in the syntax of the |xcolor| package, that is loaded by |elzcards| without options if you don't load it on preamble with options of your preference.}
+%
+% \esp*{Usted puede cambiar el color de las marcas de corte; el argumento es el nombre del color en la sintaxis de |xcolor|, que es agregado por |elzcards| sin opciones si usted no lo carga en el preámbulo con las opciones de su preferencia.}
+%
+%
+% \section{Sample output of a business card / Ejemplo de una tarjeta de presentación}
+%
+% \eng*{In the next page you'll see the first set of business cards of the all-in-one included example whose code is the following\footnote{Realize that we did define our own macro \cs{mycenter} to ease all card adding repetitive process on this example and on all |.tex| examples.}:}
+% \esp*{En la siguiente página usted podrá ver el primer conjunto de tarjetas de presentación del ejemplo todo-en-uno incluído, cuyo código es el siguiente\footnote{Dese cuenta de que nosotros definimos nuestra propia macro \cs{mycenter} para facilitar todo el proceso repetitivo de agregar las tarjetas en este ejemplo y en todos los ejemplos en el |.tex|.}:}
+%
+% \noindent \begin{verbatim}
 % \documentclass{article}
-% \usepackage{elzcards}
-% \usepackage{geometry}
-% \geometry{vmargin={0.5in,0.5in},hmargin={0.75in,0.75in}}
-% \newcommand{\mycenter}[1]{%
-%  \vspace*{2pt}\hspace*{2pt}$\nwarrow$ top left corner\vfill
+% \usepackage{elzcards,geometry}
+% \geometry{vmargin={0mm,0mm},hmargin={0mm,0mm}}
+% \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}
-% \BusinessCard{\mycenter{Business card \\ only front side \\ default options}}%
+% \BusinessCard{\mycenter{Business card \\ only front side \\ default options}}
 % \MakeBC
 % \end{document}
 % \end{verbatim}
 %
-% \savegeometry{migeo}
-% \newgeometry{vmargin={0.5in,0.5in},hmargin={0.75in,0.75in}}
+% \savegeometry{tempgeo}
+% \newgeometry{vmargin={0mm,0mm},hmargin={0mm,0mm}}
 % \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}}
-% \BusinessCard{\mycenter{Business card \\ only front side \\ default options}}%
+% \BusinessCard{\mycenter{Business card \\ only front side \\ default options}}
 % \MakeBC
 % \newpage
-% \loadgeometry{migeo}
+% \loadgeometry{tempgeo}
 %
-% \section{Code of the all-in-one example included}
 %
+% \section{Code of the all-in-one example included / Código del ejemplo todo-en-uno incluido}
+%
 % The following example is included as |elzcards-examples.tex|.
 %
 % \StopEventually{\clearpage\PrintIndex\PrintChanges}
@@ -383,7 +973,7 @@
 %<*ejemplo>
 \documentclass{article}
 \usepackage{elzcards}
-\usepackage[landscape,letterpaper,vmargin={0.25in,0.25in},hmargin={0.25in,0.25in}]{geometry}
+\usepackage[landscape,letterpaper,vmargin={0mm,0mm},hmargin={0mm,0mm}]{geometry}
 
 \newcommand{\mycenter}[1]{%
  \vspace*{2pt}\hspace*{2pt}$\nwarrow$ top left corner\vfill
@@ -391,7 +981,7 @@
  \vfill\hfill bottom right corner $\searrow$\hspace*{2pt}\vspace*{2pt}}
 
 \begin{document}
- %% Printing business cards with different options, showing all elzcards can do:
+ %% Writing business cards with different options:
  \BusinessCard{\mycenter{Business card \\ only front side \\ default options}}
  \MakeBC
 
@@ -398,19 +988,19 @@
  \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]
+ \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:
+ %% Using \MakeBC* to avoid clearing the card from memory:
  \MakeBC*[dots]
 
- %% We can do \MakeBC again because we've used \MakeBC* before:
- \MakeBC[crop color=blue]
+ %% We can issue \MakeBC again because we've used \MakeBC* before:
+ \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}}
+ \BusinessCard{\mycenter{Business card \\ only front side \\ with green lines}}
  \MakeBC[crop color=green, lines]
 
  \BusinessCard{\mycenter{Business card \\ only front side \\ with thicker lines}}
@@ -421,21 +1011,29 @@
 
  \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:
+ %% We can specify the size also with \BCdim command; this will change the default onwards:
  \BCdim{74mm}{52mm}
- \MakeBC[segments,hgap=1.666cm, vgap=0.666cm]
+ \MakeBC[hgap=1.666cm, vgap=0.666cm]
 
- %% Testing with index/flash cards:
- \IndexCard{\mycenter{Index/flash card \\ front side \CurrentIC{} of \TotalIC}}%
+ \BusinessCard{\mycenter{Business card \\ only front side \\ other size \\ auto gap inner}}%
+ \MakeBC[autogap inner]
+
+ %% Autogap total best works if all paper margins are set to zero, so all gaps will be equal.
+ \BusinessCard{\mycenter{Business card \\ only front side \\ other size \\ auto gap total}}%
+ \MakeBC[autogap total]
+
+ %% Writing index/flash cards:
+ \IndexCard{\mycenter{Index/flash card \CurrentIC{} of \TotalIC \\ front side}}%
   [\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}}%
+ \IndexCard{\mycenter{Index/flash card \CurrentIC{} of \TotalIC \\ only front side}}
+ \IndexCard{\mycenter{Index/flash card \CurrentIC{} of \TotalIC \\ only front side}}
+ \IndexCard{\mycenter{Index/flash card \CurrentIC{} of \TotalIC \\ front side}}%
   [\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}}
+ \IndexCard{\mycenter{Index/flash card \CurrentIC{} of \TotalIC \\ only front side}}
+ \IndexCard{\mycenter{Index/flash card \CurrentIC{} of \TotalIC \\ only front side}}
+ \IndexCard{\mycenter{Index/flash card \CurrentIC{} of \TotalIC \\ only front side}}
+ \IndexCard{\mycenter{Index/flash card \CurrentIC{} of \TotalIC \\ only front side}}
  %% Now \MakeIC* instead of \MakeIC,
  %% so we can process the same set of cards again with \MakeIC or \MakeIC*.
  \MakeIC*
@@ -444,10 +1042,11 @@
  \CardGap{0.5cm}{0.5cm}
  \SegmentLength{10pt}
  \LineThickness{1pt}
- \CropColor{Orange}
+ \CropColor{orange}
  \CropSegments
  %% \MakeIC* again because we did use \MakeIC* before and the cards weren't cleared:
- \MakeIC*[hsize=2.5in,vsize=1.5in]
+ %% Now restricting the grid to 3 rows and 3 columns even if 4x4 might fit on the page 
+ \MakeIC*[hsize=2.25in, vsize=1.5in, rows=3, columns=3]
 
  %% We redefine again some default parameters:
  \CardGap{0pt}{0pt}
@@ -456,34 +1055,58 @@
  \CropDots
  %% Also we can change some other defaults with
  %% \CropCrosses, \CropLines, \NoCropMarks and \CropColor.
+ %% \AutoGapInner, \AutoGapTotal, \NoAutoGap, \Transverse, \NoTransverse.
  %% \MakeFC is an alias to \MakeIC:
  \MakeFC*[hgap=0pt, vgap=0pt]
+ %%
+ %% Different order:
+ \MakeIC*[order=1 5 4 8 6 3 7 2]
+ %%
+ %% Adding four more cards to show the transverse option: 
+ \IndexCard{\mycenter{Index/flash card \CurrentIC{} of \TotalIC \\ only front side}}
+ \IndexCard{\mycenter{Index/flash card \CurrentIC{} of \TotalIC \\ only front side}}
+ \IndexCard{\mycenter{Index/flash card \CurrentIC{} of \TotalIC \\ only front side}}
+ \IndexCard{\mycenter{Index/flash card \CurrentIC{} of \TotalIC \\ only front side}}
+ \MakeIC[rows=2, columns=2, transverse]
 \end{document}
 %</ejemplo>
 %    \end{macrocode}
 %
-% \section{Implementation}
 %
+% \section{Implementation / Implementación}
+%
 %    \begin{macrocode}
 %<*package>
 \NeedsTeXFormat{LaTeX2e}[1995/12/01]
-\ProvidesPackage{elzcards}[2017/07/09 v1.23 ELZ cards]
+\ProvidesPackage{elzcards}[2019/08/16 v1.60 ELZ cards]
 
 \RequirePackage{calc}
 \RequirePackage{xparse}
 \RequirePackage{keyval}
-\RequirePackage[usenames,dvipsnames]{xcolor}
 
+\AtBeginDocument{\@ifpackageloaded{xcolor}{}{\RequirePackage{xcolor}}}
+
+\newcommand{\PKGERROR}[1]{\PackageError{elzcards}{** #1. **}{}}
+\newcommand{\PKGWARNING}[1]{\PackageWarning{elzcards}{** #1. **}{}}
+
 \newif\if at elzc@cruces
 \newif\if at elzc@segmentos
 \newif\if at elzc@puntos
 \newif\if at elzc@lineas
 \newif\if at elzc@sinmarcas
-\newif\if at elzc@tarjeta
+\newif\if at elzc@autosep
+\newif\if at elzc@autosepinterno
+\newif\if at elzc@autoseptotal
+\newif\if at elzc@columnasfilas
+\newif\if at elzc@fichas
+\newif\if at elzc@inicio
+\newif\if at elzc@orden
+\newif\if at elzc@calculaorden
+\newif\if at elzc@ordentransverso
 \newif\if at elzc@tarjetaconreverso
 \newif\if at elzc@fichaconreverso
-\newif\if at elzc@conreverso
-\newif\if at elzc@reverso
+\newif\if at elzc@actualconreverso
+\newif\if at elzc@procesareverso
 
 \newlength{\elzc at TarjXdim}
 \newlength{\elzc at TarjYdim}
@@ -505,27 +1128,35 @@
 \newcounter{elzc at TarjYdim}
 \newcounter{elzc at PapelX}
 \newcounter{elzc at PapelY}
+\newcounter{elzc at MatrizXo}
+\newcounter{elzc at MatrizYo}
 \newcounter{elzc at NumX}
 \newcounter{elzc at NumY}
 \newcounter{elzc at NumXY}
+\newcounter{elzc at NumForzadoX}
+\newcounter{elzc at NumForzadoY}
 \newcounter{elzc at ContX}
 \newcounter{elzc at ContY}
 \newcounter{elzc at PosX}
 \newcounter{elzc at PosY}
+\newcounter{elzc at PosMarcaX}
+\newcounter{elzc at PosMarcaY}
 \newcounter{elzc at SeparaX}
 \newcounter{elzc at SeparaY}
-\newcounter{elzc at XInicial}
-\newcounter{elzc at RestoX}
 \newcounter{elzc at Punto}
 \newcounter{elzc at Arista}
 \newcounter{elzc at Fichas}
+\newcounter{elzc at FichasEnOrden}
 \newcounter{elzc at FichaActual}
+\newcounter{elzc at FichaActualOrdenada}
+\newcounter{elzc at ElementosOrden}
+\newcounter{elzc at OrdenCiclo}
+\newcounter{elzc at OrdenResto}
+\newcounter{elzc at OrdenCicloDos}
 \newcounter{elzc at TempNumX}
 \newcounter{elzc at TempNumY}
-\newcounter{elzc at TempMarcaX}
-\newcounter{elzc at TempMarcaY}
-\newcounter{elzc at TempFichaActualRev}
-\newcounter{elzc at TempInfo}
+\newcounter{elzc at Temp}
+\newcounter{elzc at TempDos}
 
 \def\elzc at aux@cruces{%
  \@elzc at crucestrue\@elzc at segmentostrue\@elzc at puntosfalse\@elzc at lineasfalse\@elzc at sinmarcasfalse}
@@ -538,11 +1169,34 @@
 \def\elzc at aux@sinmarcas{%
  \@elzc at crucesfalse\@elzc at segmentosfalse\@elzc at puntosfalse\@elzc at lineasfalse\@elzc at sinmarcastrue}
 
+\def\elzc at aux@autosep at interno{%
+ \@elzc at autoseptrue\@elzc at autosepinternotrue\@elzc at autoseptotalfalse}
+\def\elzc at aux@autosep at total{%
+ \@elzc at autoseptrue\@elzc at autosepinternofalse\@elzc at autoseptotaltrue}
+\def\elzc at aux@autosep at ninguno{%
+ \@elzc at autosepfalse\@elzc at autosepinternofalse\@elzc at autoseptotalfalse}
+
+\ExplSyntaxOn
+ \cs_new:Npn \elzc at aux@elementosorden{
+  \seq_set_split:NnV \l_tmpa_seq {~} {\elzc at Orden}
+  \int_set:Nn \c at elzc@ElementosOrden {(\seq_count:N \l_tmpa_seq) -2}}
+
+ \cs_new:Npn \elzc at aux@fichatransversa #1#2{
+  \seq_set_split:NnV \l_tmpa_seq {~} {\elzc at Orden}
+  \tl_set:Nx \l_tmpa_tl {\seq_item:Nn \l_tmpa_seq {#1+1}}
+  \int_set:cn {c@#2} \l_tmpa_tl}
+\ExplSyntaxOff
+
 \define at key{ELZc}{hsize}{\setlength{\elzc at TarjXdim}{#1}}
 \define at key{ELZc}{vsize}{\setlength{\elzc at TarjYdim}{#1}}
-\define at key{ELZc}{hgap}{\setlength{\elzc at SeparaX}{#1}}
-\define at key{ELZc}{vgap}{\setlength{\elzc at SeparaY}{#1}}
-\define at key{ELZc}{segment length}{%
+\define at key{ELZc}{columns}{\@elzc at columnasfilastrue\setcounter{elzc at NumForzadoX}{#1}}
+\define at key{ELZc}{rows}{\@elzc at columnasfilastrue\setcounter{elzc at NumForzadoY}{#1}}
+\define at key{ELZc}{hgap}{\elzc at aux@autosep at ninguno\setlength{\elzc at SeparaX}{#1}}
+\define at key{ELZc}{vgap}{\elzc at aux@autosep at ninguno\setlength{\elzc at SeparaY}{#1}}
+\define at key{ELZc}{autogap inner}[true]{\elzc at aux@autosep at interno}
+\define at key{ELZc}{autogap total}[true]{\elzc at aux@autosep at total}
+\define at key{ELZc}{no autogap}[true]{\elzc at aux@autosep at ninguno}
+\define at key{ELZc}{segment length}{
  \setlength{\elzc at TempLen}{#1}\setcounter{elzc at Arista}{\elzc at TempLen}}
 \define at key{ELZc}{dot size}{\setlength{\elzc at TempLen}{#1}\setcounter{elzc at Punto}{\elzc at TempLen}}
 \define at key{ELZc}{line thickness}{\linethickness{#1}}
@@ -550,12 +1204,29 @@
 \define at key{ELZc}{segments}[true]{\elzc at aux@segmentos}
 \define at key{ELZc}{dots}[true]{\elzc at aux@puntos}
 \define at key{ELZc}{lines}[true]{\elzc at aux@lineas}
+\define at key{ELZc}{no marks}[true]{\elzc at aux@sinmarcas}
 \define at key{ELZc}{crop color}{\def\elzc at ColorMarcas{#1}}
-\define at key{ELZc}{no marks}[true]{\elzc at aux@sinmarcas}
+\define at key{ELZc}{order}{
+ \if at elzc@ordentransverso
+  \PKGWARNING{Transverse ordering not available when order pattern is given}
+  \@elzc at ordentransversofalse
+ \fi
+ \@elzc at ordentrue\@elzc at calculaordentrue\def\elzc at Orden{ #1 }\elzc at aux@elementosorden}
+\define at key{ELZc}{transverse}[true]{
+ \if at elzc@orden
+  \PKGWARNING{Transverse ordering not available when order pattern is given}
+ \else
+  \@elzc at ordentransversotrue\@elzc at calculaordentrue
+ \fi}
+\define at key{ELZc}{no transverse}[true]{
+ \@elzc at ordentransversofalse
+ \if at elzc@orden\else\@elzc at calculaordenfalse\fi}
 
-\newcommand*{\CurrentIC}{\arabic{elzc at FichaActual}}
+\NewDocumentCommand{\CurrentIC}{s}{%
+  \IfBooleanTF{#1}{\arabic{elzc at FichaActual}}{\arabic{elzc at FichaActualOrdenada}}}
+\let\CurrentFC\CurrentIC
+
 \newcommand*{\TotalIC}{\arabic{elzc at Fichas}}
-\let\CurrentFC\CurrentIC
 \let\TotalFC\TotalIC
 
 \newcommand*{\BCdim}[2]{\setlength{\elzc at DefTPXdim}{#1}\setlength{\elzc at DefTPYdim}{#2}}
@@ -563,6 +1234,7 @@
 \let\FCdim\ICdim
 
 \NewDocumentCommand{\CardGap}{m g}{%
+ \def\elzc at DefAutoSep{\elzc at aux@autosep at ninguno}%
  \setlength{\elzc at DefSeparaX}{#1}%
  \IfValueTF{#2}{\setlength{\elzc at DefSeparaY}{#2}}{\setlength{\elzc at DefSeparaY}{#1}}}
 
@@ -577,31 +1249,36 @@
 \newcommand*{\CropColor}[1]{\def\elzc at DefColorMarcas{#1}}
 \newcommand*{\NoCropMarks}{\def\elzc at DefMarcasCorte{\elzc at aux@sinmarcas}}
 
+\newcommand*{\AutoGapInner}{\def\elzc at DefAutoSep{\elzc at aux@autosep at interno}}
+\newcommand*{\AutoGapTotal}{\def\elzc at DefAutoSep{\elzc at aux@autosep at total}}
+\newcommand*{\NoAutoGap}{\def\elzc at DefAutoSep{\elzc at aux@autosep at ninguno}}
+
+\newcommand*{\Transverse}{%
+ \def\elzc at DefTrasverso{\@elzc at ordentransversotrue\@elzc at calculaordentrue}}
+\newcommand*{\NoTransverse}{%
+ \def\elzc at DefTrasverso{\@elzc at ordentransversofalse\@elzc at calculaordenfalse}}
+
 \NewDocumentCommand{\MakeBC}{s o}{%
  \ifx\undefined\@elzc at TarjetaAnverso
-  \PackageError{elzcards}{There are no business cards defined}{}%
+  \PKGERROR{There are no business cards defined}%
  \else
-  \@elzc at tarjetatrue
-  \if at elzc@tarjetaconreverso \@elzc at conreversotrue \else \@elzc at conreversofalse \fi
+  \@elzc at fichasfalse
+  \if at elzc@tarjetaconreverso\@elzc at actualconreversotrue\else\@elzc at actualconreversofalse\fi
   \elzc at Predeterminados
-  \setlength{\elzc at TarjXdim}{\elzc at DefTPXdim}%
-  \setlength{\elzc at TarjYdim}{\elzc at DefTPYdim}%
   \IfValueT{#2}{\setkeys{ELZc}{#2}}%
-  \elzc at Tarjetas
+  \elzc at CicloCompleto
   \IfBooleanF{#1}{\elzc at TodoCero}%
  \fi}
 
 \NewDocumentCommand{\MakeIC}{s o}{%
  \ifnum \value{elzc at Fichas} = 0%
-  \PackageError{elzcards}{There are no index/flash cards in stack}{}%
+  \PKGERROR{There are no index/flash cards in the stack}%
  \else
-  \@elzc at tarjetafalse
-  \if at elzc@fichaconreverso \@elzc at conreversotrue \else \@elzc at conreversofalse \fi
-  \elzc at Predeterminados
-  \setlength{\elzc at TarjXdim}{\elzc at DefFichaXdim}%
-  \setlength{\elzc at TarjYdim}{\elzc at DefFichaYdim}%
+  \@elzc at fichastrue
+  \if at elzc@fichaconreverso\@elzc at actualconreversotrue\else\@elzc at actualconreversofalse\fi
+  \elzc at Predeterminados*
   \IfValueT{#2}{\setkeys{ELZc}{#2}}%
-  \elzc at Tarjetas
+  \elzc at CicloCompleto
   \IfBooleanF{#1}{\elzc at TodoCero*}%
  \fi}
 \let\MakeFC\MakeIC
@@ -613,7 +1290,7 @@
    \@elzc at tarjetaconreversotrue
    \def\@elzc at TarjetaReverso{#2}%
    \immediate\write\@auxout{\string\@twosidetrue\string\@mparswitchtrue}}
-  {\def\@elzc at TarjetaReverso{}}
+  {\def\@elzc at TarjetaReverso{}}%
  \else
   \PackageError{elzcards}{There are business cards already defined}{}%
  \fi}
@@ -628,55 +1305,107 @@
  {\expandafter\def\csname @elzc at FichaReverso\romannumeral\value{elzc at Fichas}\endcsname{}}}
 \let\FlashCard\IndexCard
 
-\newcommand*{\elzc at Cuadricula}{%
- \setlength{\elzc at TempUnitLength}{\unitlength}%
- \setlength{\unitlength}{1sp}%
- \setlength{\parindent}{0pt}%
- \thispagestyle{empty}%
- \setcounter{elzc at NumX}{0}%
- \setcounter{elzc at NumY}{0}%
- \setcounter{elzc at TempNumX}{0}%
- \setcounter{elzc at TempNumY}{0}%
- \setcounter{elzc at TarjXdim}{\elzc at TarjXdim}%
- \setcounter{elzc at TarjYdim}{\elzc at TarjYdim}%
- \setcounter{elzc at SeparaX}{\elzc at SeparaX}%
- \setcounter{elzc at SeparaY}{\elzc at SeparaY}%
- \setcounter{elzc at PapelX}{\textwidth}%
- \setcounter{elzc at PapelY}{\textheight}%
+\NewDocumentCommand{\elzc at TodoCero}{s}{%
+ \IfBooleanTF{#1}{%
+  \setcounter{elzc at Fichas}{0}%
+  \setcounter{elzc at FichasEnOrden}{0}%
+  \@elzc at fichaconreversofalse}
+ {\let\@elzc at TarjetaAnverso\undefined
+  \let\@elzc at TarjetaReverso\undefined
+  \@elzc at tarjetaconreversofalse}}
+
+\NewDocumentCommand{\elzc at Predeterminados}{s}{%
+ \elzc at DefAutoSep
+ \elzc at DefMarcasCorte
+ \let\elzc at ColorMarcas\elzc at DefColorMarcas
+ \linethickness{\elzc at DefLinea}%
+ \setlength{\elzc at SeparaX}{\elzc at DefSeparaX}%
+ \setlength{\elzc at SeparaY}{\elzc at DefSeparaY}%
+ \setlength{\elzc at TempLen}{\elzc at DefArista}\setcounter{elzc at Arista}{\elzc at TempLen}%
+ \setlength{\elzc at TempLen}{\elzc at DefPunto}\setcounter{elzc at Punto}{\elzc at TempLen}%
+ \IfBooleanTF{#1}
+  {\elzc at DefTrasverso
+   \setlength{\elzc at TarjXdim}{\elzc at DefFichaXdim}\setlength{\elzc at TarjYdim}{\elzc at DefFichaYdim}}%
+  {\setlength{\elzc at TarjXdim}{\elzc at DefTPXdim}\setlength{\elzc at TarjYdim}{\elzc at DefTPYdim}}}
+
+\newcommand*{\elzc at CalculaMatriz}{%
  \loop \ifnum\value{elzc at TempNumX} < \value{elzc at PapelX}%
-  \advance\value{elzc at TempNumX} by \value{elzc at TarjXdim}{%
-   \addtocounter{elzc at NumX}{1}%
-   \addtocounter{elzc at TempNumX}{\value{elzc at SeparaX}}}%
+ \advance\value{elzc at TempNumX} by \value{elzc at TarjXdim}{%
+  \addtocounter{elzc at NumX}{1}%
+  \addtocounter{elzc at TempNumX}{\value{elzc at SeparaX}}}%
  \repeat
  \loop \ifnum\value{elzc at TempNumY} < \value{elzc at PapelY}%
-  \advance\value{elzc at TempNumY} by \value{elzc at TarjYdim}{%
-   \addtocounter{elzc at NumY}{1}%
-   \addtocounter{elzc at TempNumY}{\value{elzc at SeparaY}}}%
+ \advance\value{elzc at TempNumY} by \value{elzc at TarjYdim}{%
+  \addtocounter{elzc at NumY}{1}%
+  \addtocounter{elzc at TempNumY}{\value{elzc at SeparaY}}}%
  \repeat
  \addtocounter{elzc at TempNumX}{-\value{elzc at SeparaX}}%
  \addtocounter{elzc at TempNumY}{-\value{elzc at SeparaY}}%
  \ifnum\value{elzc at TempNumX} > \value{elzc at PapelX}%
+  \addtocounter{elzc at TempNumX}{-\value{elzc at TarjXdim}}%
   \addtocounter{elzc at NumX}{-1}%
  \fi
  \ifnum\value{elzc at TempNumY} > \value{elzc at PapelY}%
+  \addtocounter{elzc at TempNumY}{-\value{elzc at TarjYdim}}%
   \addtocounter{elzc at NumY}{-1}%
  \fi
- \setcounter{elzc at NumXY}{\value{elzc at NumX} * \value{elzc at NumY}}%
- \setcounter{elzc at ContX}{-1}%
- \setcounter{elzc at ContY}{-1}%
- \setcounter{elzc at RestoX}{- \value{elzc at PapelX} + \value{elzc at NumX} *%
-  (\value{elzc at TarjXdim} + \value{elzc at SeparaX}) - \value{elzc at SeparaX}}%
+ \ifnum\value{elzc at NumX} = 0
+  \PKGERROR{No space to print at least one card. Check dimensions}\stop
+ \fi
+ \ifnum\value{elzc at NumY} = 0
+  \PKGERROR{No space to print at least one card. Check dimensions}\stop
+ \fi}
+
+\newcommand*{\elzc at ColumnasFilas}{%
+ \ifnum\value{elzc at NumForzadoX} > \value{elzc at NumX}%
+  \PKGWARNING{No space to print \arabic{elzc at NumForzadoX} columns;
+   printing \arabic{elzc at NumX} columns instead}%
+  \setcounter{elzc at NumForzadoX}{0}%
+ \else
+  \ifnum\value{elzc at NumForzadoX} > 0
+   \addtocounter{elzc at TempNumX}{-\value{elzc at NumX} * \value{elzc at TarjXdim}
+    + \value{elzc at NumForzadoX} * \value{elzc at TarjXdim}}%
+   \setcounter{elzc at NumX}{\arabic{elzc at NumForzadoX}}%
+  \fi
+ \fi
+ \ifnum\value{elzc at NumForzadoY} > \value{elzc at NumY}%
+  \PKGWARNING{No space to print \arabic{elzc at NumForzadoY} rows;
+   printing \arabic{elzc at NumY} rows instead}%
+  \setcounter{elzc at NumForzadoY}{0}%
+ \else
+  \ifnum\value{elzc at NumForzadoY} > 0
+   \addtocounter{elzc at TempNumY}{-\value{elzc at NumY} * \value{elzc at TarjYdim}
+    + \value{elzc at NumForzadoY} * \value{elzc at TarjYdim}}%
+   \setcounter{elzc at NumY}{\arabic{elzc at NumForzadoY}}%
+  \fi
+ \fi}
+
+\newcommand*{\elzc at Cuadricula}{%
+ \setlength{\elzc at TempUnitLength}{\unitlength}%
+ \setlength{\unitlength}{1sp}%
+ \setlength{\parindent}{0pt}%
+ \thispagestyle{empty}%
  \elzc at Informacion
- \begin{picture}(\value{elzc at PapelX}, \value{elzc at PapelY})(\value{elzc at XInicial}, 0)%
-  \loop \ifnum\value{elzc at ContY} < \value{elzc at NumY} \advance\value{elzc at ContY} by 1{%
-   \loop \ifnum\value{elzc at ContX} < \value{elzc at NumX} \advance\value{elzc at ContX} by 1{%
-    \if at elzc@reverso
-     \setcounter{elzc at PosX}{(\value{elzc at NumX} - \value{elzc at ContX} - 1) * \value{elzc at TarjXdim}%
+ \setcounter{elzc at MatrizXo}{
+  (\value{elzc at PapelX} - \value{elzc at NumX} * (\value{elzc at TarjXdim} + \value{elzc at SeparaX})
+  + \value{elzc at SeparaX}) / 2}%
+ \setcounter{elzc at MatrizYo}
+  {(\value{elzc at PapelY} - \value{elzc at NumY} * (\value{elzc at TarjYdim} + \value{elzc at SeparaY})
+  + \value{elzc at SeparaY}) / 2}%
+ \begin{picture}
+  (\value{elzc at PapelX}, \value{elzc at PapelY})
+  (-\value{elzc at MatrizXo}, -\value{elzc at MatrizYo})%
+  \loop \ifnum\value{elzc at ContY} < \value{elzc at NumY}\advance\value{elzc at ContY} by 1{%
+   \loop \ifnum\value{elzc at ContX} < \value{elzc at NumX}\advance\value{elzc at ContX} by 1{%
+    \if at elzc@procesareverso
+     \setcounter{elzc at PosX}{(\value{elzc at NumX} - \value{elzc at ContX} - 1) * \value{elzc at TarjXdim}
       + (\value{elzc at NumX} - \value{elzc at ContX} - 1) * \value{elzc at SeparaX}}%
     \else
      \setcounter{elzc at PosX}{\value{elzc at ContX} * (\value{elzc at TarjXdim} + \value{elzc at SeparaX})}%
     \fi
-    \setcounter{elzc at PosY}{\value{elzc at ContY} * (\value{elzc at TarjYdim} + \value{elzc at SeparaY})}%
+    \setcounter{elzc at PosY}{\value{elzc at PapelY} -
+     (\value{elzc at ContY} * (\value{elzc at TarjYdim} + \value{elzc at SeparaY}))
+     - \value{elzc at TarjYdim} - 2 * \value{elzc at MatrizYo}}%
     \ifnum \value{elzc at ContX} < \value{elzc at NumX}%
      \ifnum \value{elzc at ContY} < \value{elzc at NumY}%
       \put(\value{elzc at PosX}, \value{elzc at PosY}){%
@@ -683,102 +1412,241 @@
        \makebox(\value{elzc at TarjXdim}, \value{elzc at TarjYdim}){%
         \setlength{\unitlength}{\elzc at TempUnitLength}%
         \parbox[t][\elzc at TarjYdim]{\elzc at TarjXdim}{%
-         \if at elzc@tarjeta
-          \if at elzc@reverso \@elzc at TarjetaReverso \else \@elzc at TarjetaAnverso \fi
-         \else
-          \ifnum\value{elzc at FichaActual} < \value{elzc at Fichas}%
+         \if at elzc@fichas
+          \ifnum\value{elzc at FichaActual} < \value{elzc at FichasEnOrden}%
            \addtocounter{elzc at FichaActual}{1}%
-           \addtocounter{elzc at TempFichaActualRev}{1}%
-           \if at elzc@reverso
-            \expandafter\csname @elzc at FichaReverso\romannumeral\value{elzc at FichaActual}\endcsname
+           \if at elzc@calculaorden
+            \elzc at CalculaOrden
            \else
-            \expandafter\csname @elzc at FichaAnverso\romannumeral\value{elzc at FichaActual}\endcsname
+            \setcounter{elzc at FichaActualOrdenada}{\value{elzc at FichaActual}}%
            \fi
+           \if at elzc@procesareverso
+            \expandafter
+             \csname @elzc at FichaReverso\romannumeral\value{elzc at FichaActualOrdenada}\endcsname
+           \else
+            \expandafter
+             \csname @elzc at FichaAnverso\romannumeral\value{elzc at FichaActualOrdenada}\endcsname
+           \fi
           \fi
+         \else
+          \if at elzc@procesareverso\@elzc at TarjetaReverso\else\@elzc at TarjetaAnverso\fi
          \fi}}}%
      \fi
     \fi
-    \if at elzc@reverso \else \elzc at CalculaMarcas \fi
+    \if at elzc@procesareverso\else\elzc at CalculaMarcas\fi
    }\repeat
   }\repeat
- \end{picture}}
+ \end{picture}\global\@elzc at iniciofalse}
 
-\newcommand*{\elzc at Tarjetas}{%
- {\pagestyle{empty}\cleardoublepage}%
- \elzc at Cuadricula
- \if at elzc@conreverso
-  \@elzc at reversotrue
-  \if at elzc@tarjeta \else \addtocounter{elzc at FichaActual}{-\value{elzc at TempFichaActualRev}}\fi
-  \setcounter{elzc at XInicial}{\value{elzc at RestoX}}%
-  \clearpage
-  \elzc at Cuadricula
-  \setcounter{elzc at XInicial}{0}%
-  \@elzc at reversofalse
+\newcommand*{\elzc at Inicializa}{%
+ \setcounter{elzc at NumX}{0}%
+ \setcounter{elzc at NumY}{0}%
+ \setcounter{elzc at TempNumX}{0}%
+ \setcounter{elzc at TempNumY}{0}%
+ \if at elzc@inicio
+  \setcounter{elzc at PapelX}{\textwidth}%
+  \setcounter{elzc at PapelY}{\textheight}%
+  \setcounter{elzc at TarjXdim}{\elzc at TarjXdim}%
+  \setcounter{elzc at TarjYdim}{\elzc at TarjYdim}%
  \fi
- \if at elzc@tarjeta
+ \if at elzc@autosep
+  \setlength{\elzc at SeparaX}{0pt}\setlength{\elzc at SeparaY}{0pt}%
+ \fi
+ \setcounter{elzc at SeparaX}{\elzc at SeparaX}%
+ \setcounter{elzc at SeparaY}{\elzc at SeparaY}%
+ \elzc at CalculaMatriz
+ \if at elzc@columnasfilas\elzc at ColumnasFilas\fi
+ \if at elzc@autosep
+  \if at elzc@autoseptotal
+   \setcounter{elzc at SeparaX}{
+    (\value{elzc at PapelX} - \value{elzc at TempNumX}) / (\value{elzc at NumX} + 1)}%
+   \setcounter{elzc at SeparaY}{
+    (\value{elzc at PapelY} - \value{elzc at TempNumY}) / (\value{elzc at NumY} + 1)}%
+  \else
+   \ifnum\value{elzc at NumX} > 1
+    \setcounter{elzc at SeparaX}{
+     (\value{elzc at PapelX} - \value{elzc at TempNumX}) / (\value{elzc at NumX} - 1)}%
+   \fi
+   \ifnum\value{elzc at NumY} > 1
+    \setcounter{elzc at SeparaY}{
+     (\value{elzc at PapelY} - \value{elzc at TempNumY}) / (\value{elzc at NumY} - 1)}%
+   \fi
+  \fi
+  \setlength{\elzc at SeparaX}{\value{elzc at SeparaX}sp}%
+  \setlength{\elzc at SeparaY}{\value{elzc at SeparaY}sp}%
+ \fi
+ \setcounter{elzc at NumXY}{\value{elzc at NumX} * \value{elzc at NumY}}%
+ \if at elzc@orden
+  \setcounter{elzc at FichasEnOrden}
+   {\value{elzc at Fichas} / \value{elzc at ElementosOrden} * \value{elzc at ElementosOrden}}
+  \ifnum\value{elzc at FichasEnOrden} < \value{elzc at Fichas}%
+   \addtocounter{elzc at FichasEnOrden}{\value{elzc at ElementosOrden}}%
+  \fi
  \else
-  \setcounter{elzc at TempFichaActualRev}{0}%
-  \ifnum\value{elzc at FichaActual} < \value{elzc at Fichas}%
-   \elzc at Tarjetas
+  \setcounter{elzc at FichasEnOrden}{\value{elzc at Fichas} / \value{elzc at NumXY} * \value{elzc at NumXY}}%
+  \ifnum\value{elzc at FichasEnOrden} < \value{elzc at Fichas}%
+   \addtocounter{elzc at FichasEnOrden}{\value{elzc at NumXY}}%
   \fi
+ \fi
+ \setcounter{elzc at ContX}{-1}%
+ \setcounter{elzc at ContY}{-1}%
+ \if at elzc@inicio
+  \if at elzc@ordentransverso
+   \elzc at CalculaOrdenTrasverso
+  \else
+   \if at elzc@orden\elzc at VerificaOrden\fi
+  \fi
+ \fi}
+
+\newcommand*{\elzc at CicloCompleto}{%
+ \@elzc at iniciotrue
+ \elzc at Inicializa
+ \if at elzc@fichas
+  \loop\ifnum\value{elzc at FichaActual} < \value{elzc at FichasEnOrden}%
+  {\elzc at CicloPagina}\repeat
   \setcounter{elzc at FichaActual}{0}%
+  \@elzc at ordenfalse
+  \@elzc at ordentransversofalse
+  \@elzc at calculaordenfalse
+ \else
+  \elzc at CicloPagina
  \fi
+ \@elzc at columnasfilasfalse
+ \setcounter{elzc at NumForzadoX}{0}%
+ \setcounter{elzc at NumForzadoY}{0}%
  \clearpage}
 
-\NewDocumentCommand{\elzc at TodoCero}{s}{%
- \IfBooleanTF{#1}{%
-  \setcounter{elzc at Fichas}{0}%
-  \@elzc at fichaconreversofalse}
- {\let\@elzc at TarjetaAnverso\undefined
-  \let\@elzc at TarjetaReverso\undefined
-  \@elzc at tarjetaconreversofalse}}
+\newcommand*{\elzc at CicloPagina}{%
+ {\pagestyle{empty}\cleardoublepage}%
+ \elzc at Cuadricula
+ \if at elzc@actualconreverso
+  \@elzc at procesareversotrue
+  \if at elzc@fichas\addtocounter{elzc at FichaActual}{-\value{elzc at NumXY}}\fi
+  \clearpage
+  \elzc at Cuadricula
+  \@elzc at procesareversofalse
+ \fi}
 
-\newcommand*{\elzc at Predeterminados}{%
- \elzc at DefMarcasCorte
- \setlength{\elzc at SeparaX}{\elzc at DefSeparaX}%
- \setlength{\elzc at SeparaY}{\elzc at DefSeparaY}%
- \setlength{\elzc at TempLen}{\elzc at DefArista}\setcounter{elzc at Arista}{\elzc at TempLen}%
- \setlength{\elzc at TempLen}{\elzc at DefPunto}\setcounter{elzc at Punto}{\elzc at TempLen}%
- \linethickness{\elzc at DefLinea}%
- \let\elzc at ColorMarcas\elzc at DefColorMarcas}
+\newcommand*{\elzc at CalculaOrdenTrasverso}{%
+ \setcounter{elzc at OrdenCiclo}{0}%
+ \setcounter{elzc at OrdenCicloDos}{0}%
+ \if at elzc@fichas
+  \def\elzc at Orden{ }%
+  \setcounter{elzc at Temp}{\value{elzc at Fichas} / \value{elzc at NumXY}}%
+  \setcounter{elzc at TempDos}{\value{elzc at Temp} * \value{elzc at NumXY}}%
+  \ifnum\value{elzc at TempDos} = \value{elzc at Fichas}%
+  \else
+   \addtocounter{elzc at Temp}{1}%
+  \fi
+  \loop \ifnum\value{elzc at OrdenCiclo} < \value{elzc at Temp}%
+  \advance \value{elzc at OrdenCiclo} by 1{%
+   \setcounter{elzc at TempDos}{\value{elzc at OrdenCiclo}}%
+   \addtocounter{elzc at TempDos}{-\value{elzc at Temp}}%
+   \loop \ifnum\value{elzc at OrdenCicloDos} < \value{elzc at NumXY}%
+   \advance \value{elzc at OrdenCicloDos} by 1{%
+    \addtocounter{elzc at TempDos}{\value{elzc at Temp}}%
+    \global\edef\elzc at Orden{\elzc at Orden \arabic{elzc at TempDos} }%
+   }\repeat
+  }\repeat
+  \elzc at aux@elementosorden
+ \else
+  \PKGWARNING{Transverse ordering not available on business cards}%
+  \global\@elzc at ordentransversofalse
+  \global\@elzc at calculaordenfalse
+ \fi}
 
+\newcommand*{\elzc at ErrorEnPatronOrden}{%
+ \PKGWARNING{Ordering pattern incorrectly given. Ignoring it}%
+ \global\@elzc at ordenfalse
+ \global\@elzc at calculaordenfalse}
+
+\newcommand*{\elzc at VerificaOrden}{%
+ \if at elzc@fichas
+  \setcounter{elzc at Temp}{\value{elzc at ElementosOrden} - \value{elzc at ElementosOrden} /
+   \value{elzc at NumXY} * \value{elzc at NumXY}}%
+  \ifnum\value{elzc at Temp} = 0
+  \else
+   \ifnum\value{elzc at Temp} = \value{elzc at Fichas}%
+    \else
+     \ifnum\value{elzc at ElementosOrden} = \value{elzc at Fichas}%
+     \else
+      \elzc at ErrorEnPatronOrden
+     \fi
+    \fi
+  \fi
+  \if at elzc@orden
+   \setcounter{elzc at OrdenCiclo}{0}%
+   \loop \ifnum\value{elzc at OrdenCiclo} < \value{elzc at ElementosOrden}%
+   \advance \value{elzc at OrdenCiclo} by 1{%
+    \setcounter{elzc at OrdenCicloDos}{0}%
+    \loop \ifnum\value{elzc at OrdenCicloDos} < \value{elzc at ElementosOrden}%
+    \advance \value{elzc at OrdenCicloDos} by 1{%
+     \elzc at aux@fichatransversa{\value{elzc at OrdenCicloDos}}{elzc at Temp}%
+     \ifnum\value{elzc at OrdenCiclo} = \value{elzc at Temp}%
+      \setcounter{elzc at OrdenCicloDos}{\value{elzc at ElementosOrden}}%
+     \else
+      \ifnum\value{elzc at OrdenCicloDos} = \value{elzc at ElementosOrden}%
+       \elzc at ErrorEnPatronOrden
+       \setcounter{elzc at OrdenCiclo}{\value{elzc at ElementosOrden}}%
+      \fi
+     \fi
+    }\repeat
+   }\repeat
+  \fi
+ \else
+  \PKGWARNING{Ordering pattern not available on business cards}%
+  \global\@elzc at ordenfalse
+  \global\@elzc at calculaordenfalse
+ \fi}
+
+\newcommand*{\elzc at CalculaOrden}{%
+ \setcounter{elzc at OrdenCiclo}{\value{elzc at FichaActual} / \value{elzc at ElementosOrden}}%
+ \setcounter{elzc at OrdenResto}{\value{elzc at FichaActual} - \value{elzc at FichaActual} /
+  \value{elzc at ElementosOrden} * \value{elzc at ElementosOrden}}%
+ \ifnum\value{elzc at OrdenResto} = 0
+  \addtocounter{elzc at OrdenCiclo}{-1}%
+  \setcounter{elzc at OrdenResto}{\value{elzc at ElementosOrden}}%
+ \fi
+ \elzc at aux@fichatransversa{\value{elzc at OrdenResto}}{elzc at FichaActualOrdenada}%
+ \addtocounter{elzc at FichaActualOrdenada}{\value{elzc at OrdenCiclo} * \value{elzc at ElementosOrden}}}
+
 \newcommand*{\elzc at CalculaMarcas}{%
- \setcounter{elzc at TempMarcaX}{\value{elzc at PosX}}%
- \setcounter{elzc at TempMarcaY}{\value{elzc at PosY}}%
+ \setcounter{elzc at PosMarcaX}{\value{elzc at PosX}}%
+ \setcounter{elzc at PosMarcaY}{\value{elzc at PosY} + \value{elzc at TarjYdim}}%
  \ifnum \value{elzc at ContX} = \value{elzc at NumX}%
  \else
   \ifnum \value{elzc at ContY} = \value{elzc at NumY}%
   \else
-   \elzc at DibujaMarcas{\value{elzc at TempMarcaX}}{\value{elzc at TempMarcaY}}%
+   \elzc at DibujaMarcas{\value{elzc at PosMarcaX}}{\value{elzc at PosMarcaY}}%
   \fi
  \fi
- \addtocounter{elzc at TempMarcaX}{-\value{elzc at SeparaX}}%
- \ifnum \value{elzc at ContX} = 0%
+ \addtocounter{elzc at PosMarcaX}{-\value{elzc at SeparaX}}%
+ \ifnum \value{elzc at ContX} = 0
  \else
   \ifnum \value{elzc at ContY} = \value{elzc at NumY}%
   \else
-   \elzc at DibujaMarcas{\value{elzc at TempMarcaX}}{\value{elzc at TempMarcaY}}%
+   \elzc at DibujaMarcas{\value{elzc at PosMarcaX}}{\value{elzc at PosMarcaY}}%
   \fi
  \fi
- \addtocounter{elzc at TempMarcaY}{-\value{elzc at SeparaY}}%
- \ifnum \value{elzc at ContX} = 0%
+ \addtocounter{elzc at PosMarcaY}{\value{elzc at SeparaY}}%
+ \ifnum \value{elzc at ContX} = 0
  \else
-  \ifnum \value{elzc at ContY} = 0%
+  \ifnum \value{elzc at ContY} = 0
   \else
-   \elzc at DibujaMarcas{\value{elzc at TempMarcaX}}{\value{elzc at TempMarcaY}}%
+   \elzc at DibujaMarcas{\value{elzc at PosMarcaX}}{\value{elzc at PosMarcaY}}%
   \fi
  \fi
- \addtocounter{elzc at TempMarcaX}{\value{elzc at SeparaX}}%
- \ifnum \value{elzc at ContY} = 0%
+ \addtocounter{elzc at PosMarcaX}{\value{elzc at SeparaX}}%
+ \ifnum \value{elzc at ContY} = 0
  \else
   \ifnum \value{elzc at ContX} = \value{elzc at NumX}%
   \else
-   \elzc at DibujaMarcas{\value{elzc at TempMarcaX}}{\value{elzc at TempMarcaY}}%
+   \elzc at DibujaMarcas{\value{elzc at PosMarcaX}}{\value{elzc at PosMarcaY}}%
   \fi
  \fi}
 
 \newcommand*{\elzc at DibujaMarcas}[2]{%
- \ifnum \value{elzc at ContX} = 0%
+ \ifnum \value{elzc at ContX} = 0
   \if at elzc@segmentos\put(#1,#2){\color{\elzc at ColorMarcas}\line(-1,0){\value{elzc at Arista}}}\fi
   \if at elzc@puntos\put(#1,#2){\color{\elzc at ColorMarcas}\circle*{\value{elzc at Punto}}}\fi
  \else
@@ -797,12 +1665,12 @@
    \fi
   \fi
  \fi
- \ifnum \value{elzc at ContY} = 0%
-  \if at elzc@segmentos\put(#1,#2){\color{\elzc at ColorMarcas}\line(0,-1){\value{elzc at Arista}}}\fi
+ \ifnum \value{elzc at ContY} = 0
+  \if at elzc@segmentos\put(#1,#2){\color{\elzc at ColorMarcas}\line(0,0){\value{elzc at Arista}}}\fi
   \if at elzc@puntos\put(#1,#2){\color{\elzc at ColorMarcas}\circle*{\value{elzc at Punto}}}\fi
  \else
   \ifnum \value{elzc at ContY} = \value{elzc at NumY}%
-   \if at elzc@segmentos\put(#1,#2){\color{\elzc at ColorMarcas}\line(0,0){\value{elzc at Arista}}}\fi
+   \if at elzc@segmentos\put(#1,#2){\color{\elzc at ColorMarcas}\line(0,-1){\value{elzc at Arista}}}\fi
    \if at elzc@puntos\put(#1,#2){\color{\elzc at ColorMarcas}\circle*{\value{elzc at Punto}}}\fi
   \else
    \if at elzc@cruces
@@ -819,33 +1687,53 @@
 
 \newcommand*{\elzc at Informacion}{%
  \message{^^JProcessing}%
- \if at elzc@tarjeta
-  \message{business cards,}%
+ \if at elzc@fichas\message{index/flash cards,}\else\message{business cards,}\fi
+ \if at elzc@procesareverso
+  \message{back side,^^J}%
  \else
-  \message{index/flash cards,}%
-  \setcounter{elzc at TempInfo}{\value{elzc at NumXY} + \value{elzc at FichaActual}}%
-  \ifnum \value{elzc at TempInfo} > \value{elzc at Fichas}%
-   \setcounter{elzc at TempInfo}{\value{elzc at Fichas}}%
+  \if at elzc@actualconreverso\else\message{only}\fi
+  \message{front side,^^J}%
+ \fi
+ \if at elzc@fichas
+  \setcounter{elzc at Temp}{\value{elzc at NumXY} + \value{elzc at FichaActual}}%
+  \addtocounter{elzc at FichaActual}{1}%
+  \message{ current=\arabic{elzc at FichaActual}-\arabic{elzc at Temp}}%
+  \message{of \arabic{elzc at FichasEnOrden},}%
+  \message{total cards=\arabic{elzc at Fichas},}%
+  \if at elzc@calculaorden
+   \if at elzc@ordentransverso \message{transverse order,}\fi
+   \if at elzc@orden \message{reordered,}\fi
   \fi
-  \addtocounter{elzc at FichaActual}{1}%
-  \message{current=\arabic{elzc at FichaActual}-\arabic{elzc at TempInfo},
-   total=\arabic{elzc at Fichas},}%
   \addtocounter{elzc at FichaActual}{-1}%
+  \message{^^J}%
  \fi
- \if at elzc@reverso\message{back side,^^J}\else\message{front side,^^J}\fi
- \message{ per page: \arabic{elzc at NumXY} (\arabic{elzc at NumX}x\arabic{elzc at NumY}),}%
- \message{ hsize=\the\elzc at TarjXdim, vsize=\the\elzc at TarjYdim,
-  hgap=\the\elzc at SeparaX, vgap=\the\elzc at SeparaY,^^J}%
+ \message{ per page:
+  \ifnum\value{elzc at NumForzadoX} > 0
+   forced
+  \else
+   \ifnum\value{elzc at NumForzadoY} > 0
+    forced
+   \fi
+  \fi
+  \arabic{elzc at NumXY} (\arabic{elzc at NumX}x\arabic{elzc at NumY}),}%
+ \message{hsize=\the\elzc at TarjXdim, vsize=\the\elzc at TarjYdim,^^J}%
+ \message{ hgap=\the\elzc at SeparaX, vgap=\the\elzc at SeparaY,
+  \if at elzc@autosep
+   \if at elzc@autosepinterno auto gap inner,\fi
+   \if at elzc@autoseptotal auto gap total,\fi
+  \else no auto gap,
+  \fi^^J}%
  \if at elzc@cruces
   \message{ with crosses,}%
   \setlength{\elzc at TempLen}{\value{elzc at Arista}sp}%
   \message{segment length=\the\elzc at TempLen, line thickness=\the\@wholewidth.^^J}%
+ \else
+  \if at elzc@segmentos
+   \message{ with segments,}%
+   \setlength{\elzc at TempLen}{\value{elzc at Arista}sp}%
+   \message{segment length=\the\elzc at TempLen, line thickness=\the\@wholewidth.^^J}%
+  \fi
  \fi
- \if at elzc@segmentos
-  \message{ with segments,}%
-  \setlength{\elzc at TempLen}{\value{elzc at Arista}sp}%
-  \message{segment length=\the\elzc at TempLen, line thickness=\the\@wholewidth.^^J}%
- \fi
  \if at elzc@puntos
   \message{ with dots,}%
   \setlength{\elzc at TempLen}{\value{elzc at Punto}sp}%
@@ -867,8 +1755,10 @@
 \setlength{\elzc at DefArista}{1mm}
 \setlength{\elzc at DefPunto}{1pt}
 \setlength{\elzc at DefLinea}{0.1mm}
-\CropColor{Red!90!Black}
+\CropColor{red!90!black}
 \CropCrosses
+\NoAutoGap
+\NoTransverse
 
 \InputIfFileExists{\jobname.aux}{}\relax
 

Modified: trunk/Master/texmf-dist/source/latex/elzcards/elzcards.ins
===================================================================
--- trunk/Master/texmf-dist/source/latex/elzcards/elzcards.ins	2019-08-17 21:50:11 UTC (rev 51893)
+++ trunk/Master/texmf-dist/source/latex/elzcards/elzcards.ins	2019-08-17 21:50:28 UTC (rev 51894)
@@ -6,7 +6,7 @@
 %%
 %% elzcards.dtx  (with options: `batchfile')
 %% 
-%% Copyright 2017 Emilio Lazo Zaia <emiliolazozaia at gmail.com>
+%% Copyright 2019 Emilio Augusto Lazo Zaia <emiliolazozaia at gmail.com>
 %% 
 %% This work may be distributed and/or modified under the
 %% conditions of the LaTeX Project Public License, either
@@ -20,7 +20,7 @@
 %% 
 %% This work has the LPPL maintenance status `maintained'.
 %% 
-%% The Current Maintainer of this work is Emilio Lazo Zaia.
+%% The Current Maintainer of this work is Emilio Augusto Lazo Zaia.
 %% 
 %% This work consists of the files README and elzcards.dtx with
 %% its derived files elzcards.ins, elzcards.sty and
@@ -29,7 +29,7 @@
 \input docstrip.tex
 \preamble
 
-Copyright 2017 Emilio Lazo Zaia <emiliolazozaia at gmail.com>
+Copyright 2019 Emilio Augusto Lazo Zaia <emiliolazozaia at gmail.com>
 
 This work may be distributed and/or modified under the
 conditions of the LaTeX Project Public License, either
@@ -43,7 +43,7 @@
 
 This work has the LPPL maintenance status `maintained'.
 
-The Current Maintainer of this work is Emilio Lazo Zaia.
+The Current Maintainer of this work is Emilio Augusto Lazo Zaia.
 
 This work consists of the files README and elzcards.dtx with
 its derived files elzcards.ins, elzcards.sty and

Modified: trunk/Master/texmf-dist/tex/latex/elzcards/elzcards.sty
===================================================================
--- trunk/Master/texmf-dist/tex/latex/elzcards/elzcards.sty	2019-08-17 21:50:11 UTC (rev 51893)
+++ trunk/Master/texmf-dist/tex/latex/elzcards/elzcards.sty	2019-08-17 21:50:28 UTC (rev 51894)
@@ -6,7 +6,7 @@
 %%
 %% elzcards.dtx  (with options: `package')
 %% 
-%% Copyright 2017 Emilio Lazo Zaia <emiliolazozaia at gmail.com>
+%% Copyright 2019 Emilio Augusto Lazo Zaia <emiliolazozaia at gmail.com>
 %% 
 %% This work may be distributed and/or modified under the
 %% conditions of the LaTeX Project Public License, either
@@ -20,7 +20,7 @@
 %% 
 %% This work has the LPPL maintenance status `maintained'.
 %% 
-%% The Current Maintainer of this work is Emilio Lazo Zaia.
+%% The Current Maintainer of this work is Emilio Augusto Lazo Zaia.
 %% 
 %% This work consists of the files README and elzcards.dtx with
 %% its derived files elzcards.ins, elzcards.sty and
@@ -27,23 +27,35 @@
 %% elzcards-examples.tex.
 %% 
 \NeedsTeXFormat{LaTeX2e}[1995/12/01]
-\ProvidesPackage{elzcards}[2017/07/09 v1.23 ELZ cards]
+\ProvidesPackage{elzcards}[2019/08/16 v1.60 ELZ cards]
 
 \RequirePackage{calc}
 \RequirePackage{xparse}
 \RequirePackage{keyval}
-\RequirePackage[usenames,dvipsnames]{xcolor}
 
+\AtBeginDocument{\@ifpackageloaded{xcolor}{}{\RequirePackage{xcolor}}}
+
+\newcommand{\PKGERROR}[1]{\PackageError{elzcards}{** #1. **}{}}
+\newcommand{\PKGWARNING}[1]{\PackageWarning{elzcards}{** #1. **}{}}
+
 \newif\if at elzc@cruces
 \newif\if at elzc@segmentos
 \newif\if at elzc@puntos
 \newif\if at elzc@lineas
 \newif\if at elzc@sinmarcas
-\newif\if at elzc@tarjeta
+\newif\if at elzc@autosep
+\newif\if at elzc@autosepinterno
+\newif\if at elzc@autoseptotal
+\newif\if at elzc@columnasfilas
+\newif\if at elzc@fichas
+\newif\if at elzc@inicio
+\newif\if at elzc@orden
+\newif\if at elzc@calculaorden
+\newif\if at elzc@ordentransverso
 \newif\if at elzc@tarjetaconreverso
 \newif\if at elzc@fichaconreverso
-\newif\if at elzc@conreverso
-\newif\if at elzc@reverso
+\newif\if at elzc@actualconreverso
+\newif\if at elzc@procesareverso
 
 \newlength{\elzc at TarjXdim}
 \newlength{\elzc at TarjYdim}
@@ -65,27 +77,35 @@
 \newcounter{elzc at TarjYdim}
 \newcounter{elzc at PapelX}
 \newcounter{elzc at PapelY}
+\newcounter{elzc at MatrizXo}
+\newcounter{elzc at MatrizYo}
 \newcounter{elzc at NumX}
 \newcounter{elzc at NumY}
 \newcounter{elzc at NumXY}
+\newcounter{elzc at NumForzadoX}
+\newcounter{elzc at NumForzadoY}
 \newcounter{elzc at ContX}
 \newcounter{elzc at ContY}
 \newcounter{elzc at PosX}
 \newcounter{elzc at PosY}
+\newcounter{elzc at PosMarcaX}
+\newcounter{elzc at PosMarcaY}
 \newcounter{elzc at SeparaX}
 \newcounter{elzc at SeparaY}
-\newcounter{elzc at XInicial}
-\newcounter{elzc at RestoX}
 \newcounter{elzc at Punto}
 \newcounter{elzc at Arista}
 \newcounter{elzc at Fichas}
+\newcounter{elzc at FichasEnOrden}
 \newcounter{elzc at FichaActual}
+\newcounter{elzc at FichaActualOrdenada}
+\newcounter{elzc at ElementosOrden}
+\newcounter{elzc at OrdenCiclo}
+\newcounter{elzc at OrdenResto}
+\newcounter{elzc at OrdenCicloDos}
 \newcounter{elzc at TempNumX}
 \newcounter{elzc at TempNumY}
-\newcounter{elzc at TempMarcaX}
-\newcounter{elzc at TempMarcaY}
-\newcounter{elzc at TempFichaActualRev}
-\newcounter{elzc at TempInfo}
+\newcounter{elzc at Temp}
+\newcounter{elzc at TempDos}
 
 \def\elzc at aux@cruces{%
  \@elzc at crucestrue\@elzc at segmentostrue\@elzc at puntosfalse\@elzc at lineasfalse\@elzc at sinmarcasfalse}
@@ -98,11 +118,34 @@
 \def\elzc at aux@sinmarcas{%
  \@elzc at crucesfalse\@elzc at segmentosfalse\@elzc at puntosfalse\@elzc at lineasfalse\@elzc at sinmarcastrue}
 
+\def\elzc at aux@autosep at interno{%
+ \@elzc at autoseptrue\@elzc at autosepinternotrue\@elzc at autoseptotalfalse}
+\def\elzc at aux@autosep at total{%
+ \@elzc at autoseptrue\@elzc at autosepinternofalse\@elzc at autoseptotaltrue}
+\def\elzc at aux@autosep at ninguno{%
+ \@elzc at autosepfalse\@elzc at autosepinternofalse\@elzc at autoseptotalfalse}
+
+\ExplSyntaxOn
+ \cs_new:Npn \elzc at aux@elementosorden{
+  \seq_set_split:NnV \l_tmpa_seq {~} {\elzc at Orden}
+  \int_set:Nn \c at elzc@ElementosOrden {(\seq_count:N \l_tmpa_seq) -2}}
+
+ \cs_new:Npn \elzc at aux@fichatransversa #1#2{
+  \seq_set_split:NnV \l_tmpa_seq {~} {\elzc at Orden}
+  \tl_set:Nx \l_tmpa_tl {\seq_item:Nn \l_tmpa_seq {#1+1}}
+  \int_set:cn {c@#2} \l_tmpa_tl}
+\ExplSyntaxOff
+
 \define at key{ELZc}{hsize}{\setlength{\elzc at TarjXdim}{#1}}
 \define at key{ELZc}{vsize}{\setlength{\elzc at TarjYdim}{#1}}
-\define at key{ELZc}{hgap}{\setlength{\elzc at SeparaX}{#1}}
-\define at key{ELZc}{vgap}{\setlength{\elzc at SeparaY}{#1}}
-\define at key{ELZc}{segment length}{%
+\define at key{ELZc}{columns}{\@elzc at columnasfilastrue\setcounter{elzc at NumForzadoX}{#1}}
+\define at key{ELZc}{rows}{\@elzc at columnasfilastrue\setcounter{elzc at NumForzadoY}{#1}}
+\define at key{ELZc}{hgap}{\elzc at aux@autosep at ninguno\setlength{\elzc at SeparaX}{#1}}
+\define at key{ELZc}{vgap}{\elzc at aux@autosep at ninguno\setlength{\elzc at SeparaY}{#1}}
+\define at key{ELZc}{autogap inner}[true]{\elzc at aux@autosep at interno}
+\define at key{ELZc}{autogap total}[true]{\elzc at aux@autosep at total}
+\define at key{ELZc}{no autogap}[true]{\elzc at aux@autosep at ninguno}
+\define at key{ELZc}{segment length}{
  \setlength{\elzc at TempLen}{#1}\setcounter{elzc at Arista}{\elzc at TempLen}}
 \define at key{ELZc}{dot size}{\setlength{\elzc at TempLen}{#1}\setcounter{elzc at Punto}{\elzc at TempLen}}
 \define at key{ELZc}{line thickness}{\linethickness{#1}}
@@ -110,12 +153,29 @@
 \define at key{ELZc}{segments}[true]{\elzc at aux@segmentos}
 \define at key{ELZc}{dots}[true]{\elzc at aux@puntos}
 \define at key{ELZc}{lines}[true]{\elzc at aux@lineas}
+\define at key{ELZc}{no marks}[true]{\elzc at aux@sinmarcas}
 \define at key{ELZc}{crop color}{\def\elzc at ColorMarcas{#1}}
-\define at key{ELZc}{no marks}[true]{\elzc at aux@sinmarcas}
+\define at key{ELZc}{order}{
+ \if at elzc@ordentransverso
+  \PKGWARNING{Transverse ordering not available when order pattern is given}
+  \@elzc at ordentransversofalse
+ \fi
+ \@elzc at ordentrue\@elzc at calculaordentrue\def\elzc at Orden{ #1 }\elzc at aux@elementosorden}
+\define at key{ELZc}{transverse}[true]{
+ \if at elzc@orden
+  \PKGWARNING{Transverse ordering not available when order pattern is given}
+ \else
+  \@elzc at ordentransversotrue\@elzc at calculaordentrue
+ \fi}
+\define at key{ELZc}{no transverse}[true]{
+ \@elzc at ordentransversofalse
+ \if at elzc@orden\else\@elzc at calculaordenfalse\fi}
 
-\newcommand*{\CurrentIC}{\arabic{elzc at FichaActual}}
+\NewDocumentCommand{\CurrentIC}{s}{%
+  \IfBooleanTF{#1}{\arabic{elzc at FichaActual}}{\arabic{elzc at FichaActualOrdenada}}}
+\let\CurrentFC\CurrentIC
+
 \newcommand*{\TotalIC}{\arabic{elzc at Fichas}}
-\let\CurrentFC\CurrentIC
 \let\TotalFC\TotalIC
 
 \newcommand*{\BCdim}[2]{\setlength{\elzc at DefTPXdim}{#1}\setlength{\elzc at DefTPYdim}{#2}}
@@ -123,6 +183,7 @@
 \let\FCdim\ICdim
 
 \NewDocumentCommand{\CardGap}{m g}{%
+ \def\elzc at DefAutoSep{\elzc at aux@autosep at ninguno}%
  \setlength{\elzc at DefSeparaX}{#1}%
  \IfValueTF{#2}{\setlength{\elzc at DefSeparaY}{#2}}{\setlength{\elzc at DefSeparaY}{#1}}}
 
@@ -137,31 +198,36 @@
 \newcommand*{\CropColor}[1]{\def\elzc at DefColorMarcas{#1}}
 \newcommand*{\NoCropMarks}{\def\elzc at DefMarcasCorte{\elzc at aux@sinmarcas}}
 
+\newcommand*{\AutoGapInner}{\def\elzc at DefAutoSep{\elzc at aux@autosep at interno}}
+\newcommand*{\AutoGapTotal}{\def\elzc at DefAutoSep{\elzc at aux@autosep at total}}
+\newcommand*{\NoAutoGap}{\def\elzc at DefAutoSep{\elzc at aux@autosep at ninguno}}
+
+\newcommand*{\Transverse}{%
+ \def\elzc at DefTrasverso{\@elzc at ordentransversotrue\@elzc at calculaordentrue}}
+\newcommand*{\NoTransverse}{%
+ \def\elzc at DefTrasverso{\@elzc at ordentransversofalse\@elzc at calculaordenfalse}}
+
 \NewDocumentCommand{\MakeBC}{s o}{%
  \ifx\undefined\@elzc at TarjetaAnverso
-  \PackageError{elzcards}{There are no business cards defined}{}%
+  \PKGERROR{There are no business cards defined}%
  \else
-  \@elzc at tarjetatrue
-  \if at elzc@tarjetaconreverso \@elzc at conreversotrue \else \@elzc at conreversofalse \fi
+  \@elzc at fichasfalse
+  \if at elzc@tarjetaconreverso\@elzc at actualconreversotrue\else\@elzc at actualconreversofalse\fi
   \elzc at Predeterminados
-  \setlength{\elzc at TarjXdim}{\elzc at DefTPXdim}%
-  \setlength{\elzc at TarjYdim}{\elzc at DefTPYdim}%
   \IfValueT{#2}{\setkeys{ELZc}{#2}}%
-  \elzc at Tarjetas
+  \elzc at CicloCompleto
   \IfBooleanF{#1}{\elzc at TodoCero}%
  \fi}
 
 \NewDocumentCommand{\MakeIC}{s o}{%
  \ifnum \value{elzc at Fichas} = 0%
-  \PackageError{elzcards}{There are no index/flash cards in stack}{}%
+  \PKGERROR{There are no index/flash cards in the stack}%
  \else
-  \@elzc at tarjetafalse
-  \if at elzc@fichaconreverso \@elzc at conreversotrue \else \@elzc at conreversofalse \fi
-  \elzc at Predeterminados
-  \setlength{\elzc at TarjXdim}{\elzc at DefFichaXdim}%
-  \setlength{\elzc at TarjYdim}{\elzc at DefFichaYdim}%
+  \@elzc at fichastrue
+  \if at elzc@fichaconreverso\@elzc at actualconreversotrue\else\@elzc at actualconreversofalse\fi
+  \elzc at Predeterminados*
   \IfValueT{#2}{\setkeys{ELZc}{#2}}%
-  \elzc at Tarjetas
+  \elzc at CicloCompleto
   \IfBooleanF{#1}{\elzc at TodoCero*}%
  \fi}
 \let\MakeFC\MakeIC
@@ -173,7 +239,7 @@
    \@elzc at tarjetaconreversotrue
    \def\@elzc at TarjetaReverso{#2}%
    \immediate\write\@auxout{\string\@twosidetrue\string\@mparswitchtrue}}
-  {\def\@elzc at TarjetaReverso{}}
+  {\def\@elzc at TarjetaReverso{}}%
  \else
   \PackageError{elzcards}{There are business cards already defined}{}%
  \fi}
@@ -188,55 +254,107 @@
  {\expandafter\def\csname @elzc at FichaReverso\romannumeral\value{elzc at Fichas}\endcsname{}}}
 \let\FlashCard\IndexCard
 
-\newcommand*{\elzc at Cuadricula}{%
- \setlength{\elzc at TempUnitLength}{\unitlength}%
- \setlength{\unitlength}{1sp}%
- \setlength{\parindent}{0pt}%
- \thispagestyle{empty}%
- \setcounter{elzc at NumX}{0}%
- \setcounter{elzc at NumY}{0}%
- \setcounter{elzc at TempNumX}{0}%
- \setcounter{elzc at TempNumY}{0}%
- \setcounter{elzc at TarjXdim}{\elzc at TarjXdim}%
- \setcounter{elzc at TarjYdim}{\elzc at TarjYdim}%
- \setcounter{elzc at SeparaX}{\elzc at SeparaX}%
- \setcounter{elzc at SeparaY}{\elzc at SeparaY}%
- \setcounter{elzc at PapelX}{\textwidth}%
- \setcounter{elzc at PapelY}{\textheight}%
+\NewDocumentCommand{\elzc at TodoCero}{s}{%
+ \IfBooleanTF{#1}{%
+  \setcounter{elzc at Fichas}{0}%
+  \setcounter{elzc at FichasEnOrden}{0}%
+  \@elzc at fichaconreversofalse}
+ {\let\@elzc at TarjetaAnverso\undefined
+  \let\@elzc at TarjetaReverso\undefined
+  \@elzc at tarjetaconreversofalse}}
+
+\NewDocumentCommand{\elzc at Predeterminados}{s}{%
+ \elzc at DefAutoSep
+ \elzc at DefMarcasCorte
+ \let\elzc at ColorMarcas\elzc at DefColorMarcas
+ \linethickness{\elzc at DefLinea}%
+ \setlength{\elzc at SeparaX}{\elzc at DefSeparaX}%
+ \setlength{\elzc at SeparaY}{\elzc at DefSeparaY}%
+ \setlength{\elzc at TempLen}{\elzc at DefArista}\setcounter{elzc at Arista}{\elzc at TempLen}%
+ \setlength{\elzc at TempLen}{\elzc at DefPunto}\setcounter{elzc at Punto}{\elzc at TempLen}%
+ \IfBooleanTF{#1}
+  {\elzc at DefTrasverso
+   \setlength{\elzc at TarjXdim}{\elzc at DefFichaXdim}\setlength{\elzc at TarjYdim}{\elzc at DefFichaYdim}}%
+  {\setlength{\elzc at TarjXdim}{\elzc at DefTPXdim}\setlength{\elzc at TarjYdim}{\elzc at DefTPYdim}}}
+
+\newcommand*{\elzc at CalculaMatriz}{%
  \loop \ifnum\value{elzc at TempNumX} < \value{elzc at PapelX}%
-  \advance\value{elzc at TempNumX} by \value{elzc at TarjXdim}{%
-   \addtocounter{elzc at NumX}{1}%
-   \addtocounter{elzc at TempNumX}{\value{elzc at SeparaX}}}%
+ \advance\value{elzc at TempNumX} by \value{elzc at TarjXdim}{%
+  \addtocounter{elzc at NumX}{1}%
+  \addtocounter{elzc at TempNumX}{\value{elzc at SeparaX}}}%
  \repeat
  \loop \ifnum\value{elzc at TempNumY} < \value{elzc at PapelY}%
-  \advance\value{elzc at TempNumY} by \value{elzc at TarjYdim}{%
-   \addtocounter{elzc at NumY}{1}%
-   \addtocounter{elzc at TempNumY}{\value{elzc at SeparaY}}}%
+ \advance\value{elzc at TempNumY} by \value{elzc at TarjYdim}{%
+  \addtocounter{elzc at NumY}{1}%
+  \addtocounter{elzc at TempNumY}{\value{elzc at SeparaY}}}%
  \repeat
  \addtocounter{elzc at TempNumX}{-\value{elzc at SeparaX}}%
  \addtocounter{elzc at TempNumY}{-\value{elzc at SeparaY}}%
  \ifnum\value{elzc at TempNumX} > \value{elzc at PapelX}%
+  \addtocounter{elzc at TempNumX}{-\value{elzc at TarjXdim}}%
   \addtocounter{elzc at NumX}{-1}%
  \fi
  \ifnum\value{elzc at TempNumY} > \value{elzc at PapelY}%
+  \addtocounter{elzc at TempNumY}{-\value{elzc at TarjYdim}}%
   \addtocounter{elzc at NumY}{-1}%
  \fi
- \setcounter{elzc at NumXY}{\value{elzc at NumX} * \value{elzc at NumY}}%
- \setcounter{elzc at ContX}{-1}%
- \setcounter{elzc at ContY}{-1}%
- \setcounter{elzc at RestoX}{- \value{elzc at PapelX} + \value{elzc at NumX} *%
-  (\value{elzc at TarjXdim} + \value{elzc at SeparaX}) - \value{elzc at SeparaX}}%
+ \ifnum\value{elzc at NumX} = 0
+  \PKGERROR{No space to print at least one card. Check dimensions}\stop
+ \fi
+ \ifnum\value{elzc at NumY} = 0
+  \PKGERROR{No space to print at least one card. Check dimensions}\stop
+ \fi}
+
+\newcommand*{\elzc at ColumnasFilas}{%
+ \ifnum\value{elzc at NumForzadoX} > \value{elzc at NumX}%
+  \PKGWARNING{No space to print \arabic{elzc at NumForzadoX} columns;
+   printing \arabic{elzc at NumX} columns instead}%
+  \setcounter{elzc at NumForzadoX}{0}%
+ \else
+  \ifnum\value{elzc at NumForzadoX} > 0
+   \addtocounter{elzc at TempNumX}{-\value{elzc at NumX} * \value{elzc at TarjXdim}
+    + \value{elzc at NumForzadoX} * \value{elzc at TarjXdim}}%
+   \setcounter{elzc at NumX}{\arabic{elzc at NumForzadoX}}%
+  \fi
+ \fi
+ \ifnum\value{elzc at NumForzadoY} > \value{elzc at NumY}%
+  \PKGWARNING{No space to print \arabic{elzc at NumForzadoY} rows;
+   printing \arabic{elzc at NumY} rows instead}%
+  \setcounter{elzc at NumForzadoY}{0}%
+ \else
+  \ifnum\value{elzc at NumForzadoY} > 0
+   \addtocounter{elzc at TempNumY}{-\value{elzc at NumY} * \value{elzc at TarjYdim}
+    + \value{elzc at NumForzadoY} * \value{elzc at TarjYdim}}%
+   \setcounter{elzc at NumY}{\arabic{elzc at NumForzadoY}}%
+  \fi
+ \fi}
+
+\newcommand*{\elzc at Cuadricula}{%
+ \setlength{\elzc at TempUnitLength}{\unitlength}%
+ \setlength{\unitlength}{1sp}%
+ \setlength{\parindent}{0pt}%
+ \thispagestyle{empty}%
  \elzc at Informacion
- \begin{picture}(\value{elzc at PapelX}, \value{elzc at PapelY})(\value{elzc at XInicial}, 0)%
-  \loop \ifnum\value{elzc at ContY} < \value{elzc at NumY} \advance\value{elzc at ContY} by 1{%
-   \loop \ifnum\value{elzc at ContX} < \value{elzc at NumX} \advance\value{elzc at ContX} by 1{%
-    \if at elzc@reverso
-     \setcounter{elzc at PosX}{(\value{elzc at NumX} - \value{elzc at ContX} - 1) * \value{elzc at TarjXdim}%
+ \setcounter{elzc at MatrizXo}{
+  (\value{elzc at PapelX} - \value{elzc at NumX} * (\value{elzc at TarjXdim} + \value{elzc at SeparaX})
+  + \value{elzc at SeparaX}) / 2}%
+ \setcounter{elzc at MatrizYo}
+  {(\value{elzc at PapelY} - \value{elzc at NumY} * (\value{elzc at TarjYdim} + \value{elzc at SeparaY})
+  + \value{elzc at SeparaY}) / 2}%
+ \begin{picture}
+  (\value{elzc at PapelX}, \value{elzc at PapelY})
+  (-\value{elzc at MatrizXo}, -\value{elzc at MatrizYo})%
+  \loop \ifnum\value{elzc at ContY} < \value{elzc at NumY}\advance\value{elzc at ContY} by 1{%
+   \loop \ifnum\value{elzc at ContX} < \value{elzc at NumX}\advance\value{elzc at ContX} by 1{%
+    \if at elzc@procesareverso
+     \setcounter{elzc at PosX}{(\value{elzc at NumX} - \value{elzc at ContX} - 1) * \value{elzc at TarjXdim}
       + (\value{elzc at NumX} - \value{elzc at ContX} - 1) * \value{elzc at SeparaX}}%
     \else
      \setcounter{elzc at PosX}{\value{elzc at ContX} * (\value{elzc at TarjXdim} + \value{elzc at SeparaX})}%
     \fi
-    \setcounter{elzc at PosY}{\value{elzc at ContY} * (\value{elzc at TarjYdim} + \value{elzc at SeparaY})}%
+    \setcounter{elzc at PosY}{\value{elzc at PapelY} -
+     (\value{elzc at ContY} * (\value{elzc at TarjYdim} + \value{elzc at SeparaY}))
+     - \value{elzc at TarjYdim} - 2 * \value{elzc at MatrizYo}}%
     \ifnum \value{elzc at ContX} < \value{elzc at NumX}%
      \ifnum \value{elzc at ContY} < \value{elzc at NumY}%
       \put(\value{elzc at PosX}, \value{elzc at PosY}){%
@@ -243,102 +361,241 @@
        \makebox(\value{elzc at TarjXdim}, \value{elzc at TarjYdim}){%
         \setlength{\unitlength}{\elzc at TempUnitLength}%
         \parbox[t][\elzc at TarjYdim]{\elzc at TarjXdim}{%
-         \if at elzc@tarjeta
-          \if at elzc@reverso \@elzc at TarjetaReverso \else \@elzc at TarjetaAnverso \fi
-         \else
-          \ifnum\value{elzc at FichaActual} < \value{elzc at Fichas}%
+         \if at elzc@fichas
+          \ifnum\value{elzc at FichaActual} < \value{elzc at FichasEnOrden}%
            \addtocounter{elzc at FichaActual}{1}%
-           \addtocounter{elzc at TempFichaActualRev}{1}%
-           \if at elzc@reverso
-            \expandafter\csname @elzc at FichaReverso\romannumeral\value{elzc at FichaActual}\endcsname
+           \if at elzc@calculaorden
+            \elzc at CalculaOrden
            \else
-            \expandafter\csname @elzc at FichaAnverso\romannumeral\value{elzc at FichaActual}\endcsname
+            \setcounter{elzc at FichaActualOrdenada}{\value{elzc at FichaActual}}%
            \fi
+           \if at elzc@procesareverso
+            \expandafter
+             \csname @elzc at FichaReverso\romannumeral\value{elzc at FichaActualOrdenada}\endcsname
+           \else
+            \expandafter
+             \csname @elzc at FichaAnverso\romannumeral\value{elzc at FichaActualOrdenada}\endcsname
+           \fi
           \fi
+         \else
+          \if at elzc@procesareverso\@elzc at TarjetaReverso\else\@elzc at TarjetaAnverso\fi
          \fi}}}%
      \fi
     \fi
-    \if at elzc@reverso \else \elzc at CalculaMarcas \fi
+    \if at elzc@procesareverso\else\elzc at CalculaMarcas\fi
    }\repeat
   }\repeat
- \end{picture}}
+ \end{picture}\global\@elzc at iniciofalse}
 
-\newcommand*{\elzc at Tarjetas}{%
- {\pagestyle{empty}\cleardoublepage}%
- \elzc at Cuadricula
- \if at elzc@conreverso
-  \@elzc at reversotrue
-  \if at elzc@tarjeta \else \addtocounter{elzc at FichaActual}{-\value{elzc at TempFichaActualRev}}\fi
-  \setcounter{elzc at XInicial}{\value{elzc at RestoX}}%
-  \clearpage
-  \elzc at Cuadricula
-  \setcounter{elzc at XInicial}{0}%
-  \@elzc at reversofalse
+\newcommand*{\elzc at Inicializa}{%
+ \setcounter{elzc at NumX}{0}%
+ \setcounter{elzc at NumY}{0}%
+ \setcounter{elzc at TempNumX}{0}%
+ \setcounter{elzc at TempNumY}{0}%
+ \if at elzc@inicio
+  \setcounter{elzc at PapelX}{\textwidth}%
+  \setcounter{elzc at PapelY}{\textheight}%
+  \setcounter{elzc at TarjXdim}{\elzc at TarjXdim}%
+  \setcounter{elzc at TarjYdim}{\elzc at TarjYdim}%
  \fi
- \if at elzc@tarjeta
+ \if at elzc@autosep
+  \setlength{\elzc at SeparaX}{0pt}\setlength{\elzc at SeparaY}{0pt}%
+ \fi
+ \setcounter{elzc at SeparaX}{\elzc at SeparaX}%
+ \setcounter{elzc at SeparaY}{\elzc at SeparaY}%
+ \elzc at CalculaMatriz
+ \if at elzc@columnasfilas\elzc at ColumnasFilas\fi
+ \if at elzc@autosep
+  \if at elzc@autoseptotal
+   \setcounter{elzc at SeparaX}{
+    (\value{elzc at PapelX} - \value{elzc at TempNumX}) / (\value{elzc at NumX} + 1)}%
+   \setcounter{elzc at SeparaY}{
+    (\value{elzc at PapelY} - \value{elzc at TempNumY}) / (\value{elzc at NumY} + 1)}%
+  \else
+   \ifnum\value{elzc at NumX} > 1
+    \setcounter{elzc at SeparaX}{
+     (\value{elzc at PapelX} - \value{elzc at TempNumX}) / (\value{elzc at NumX} - 1)}%
+   \fi
+   \ifnum\value{elzc at NumY} > 1
+    \setcounter{elzc at SeparaY}{
+     (\value{elzc at PapelY} - \value{elzc at TempNumY}) / (\value{elzc at NumY} - 1)}%
+   \fi
+  \fi
+  \setlength{\elzc at SeparaX}{\value{elzc at SeparaX}sp}%
+  \setlength{\elzc at SeparaY}{\value{elzc at SeparaY}sp}%
+ \fi
+ \setcounter{elzc at NumXY}{\value{elzc at NumX} * \value{elzc at NumY}}%
+ \if at elzc@orden
+  \setcounter{elzc at FichasEnOrden}
+   {\value{elzc at Fichas} / \value{elzc at ElementosOrden} * \value{elzc at ElementosOrden}}
+  \ifnum\value{elzc at FichasEnOrden} < \value{elzc at Fichas}%
+   \addtocounter{elzc at FichasEnOrden}{\value{elzc at ElementosOrden}}%
+  \fi
  \else
-  \setcounter{elzc at TempFichaActualRev}{0}%
-  \ifnum\value{elzc at FichaActual} < \value{elzc at Fichas}%
-   \elzc at Tarjetas
+  \setcounter{elzc at FichasEnOrden}{\value{elzc at Fichas} / \value{elzc at NumXY} * \value{elzc at NumXY}}%
+  \ifnum\value{elzc at FichasEnOrden} < \value{elzc at Fichas}%
+   \addtocounter{elzc at FichasEnOrden}{\value{elzc at NumXY}}%
   \fi
+ \fi
+ \setcounter{elzc at ContX}{-1}%
+ \setcounter{elzc at ContY}{-1}%
+ \if at elzc@inicio
+  \if at elzc@ordentransverso
+   \elzc at CalculaOrdenTrasverso
+  \else
+   \if at elzc@orden\elzc at VerificaOrden\fi
+  \fi
+ \fi}
+
+\newcommand*{\elzc at CicloCompleto}{%
+ \@elzc at iniciotrue
+ \elzc at Inicializa
+ \if at elzc@fichas
+  \loop\ifnum\value{elzc at FichaActual} < \value{elzc at FichasEnOrden}%
+  {\elzc at CicloPagina}\repeat
   \setcounter{elzc at FichaActual}{0}%
+  \@elzc at ordenfalse
+  \@elzc at ordentransversofalse
+  \@elzc at calculaordenfalse
+ \else
+  \elzc at CicloPagina
  \fi
+ \@elzc at columnasfilasfalse
+ \setcounter{elzc at NumForzadoX}{0}%
+ \setcounter{elzc at NumForzadoY}{0}%
  \clearpage}
 
-\NewDocumentCommand{\elzc at TodoCero}{s}{%
- \IfBooleanTF{#1}{%
-  \setcounter{elzc at Fichas}{0}%
-  \@elzc at fichaconreversofalse}
- {\let\@elzc at TarjetaAnverso\undefined
-  \let\@elzc at TarjetaReverso\undefined
-  \@elzc at tarjetaconreversofalse}}
+\newcommand*{\elzc at CicloPagina}{%
+ {\pagestyle{empty}\cleardoublepage}%
+ \elzc at Cuadricula
+ \if at elzc@actualconreverso
+  \@elzc at procesareversotrue
+  \if at elzc@fichas\addtocounter{elzc at FichaActual}{-\value{elzc at NumXY}}\fi
+  \clearpage
+  \elzc at Cuadricula
+  \@elzc at procesareversofalse
+ \fi}
 
-\newcommand*{\elzc at Predeterminados}{%
- \elzc at DefMarcasCorte
- \setlength{\elzc at SeparaX}{\elzc at DefSeparaX}%
- \setlength{\elzc at SeparaY}{\elzc at DefSeparaY}%
- \setlength{\elzc at TempLen}{\elzc at DefArista}\setcounter{elzc at Arista}{\elzc at TempLen}%
- \setlength{\elzc at TempLen}{\elzc at DefPunto}\setcounter{elzc at Punto}{\elzc at TempLen}%
- \linethickness{\elzc at DefLinea}%
- \let\elzc at ColorMarcas\elzc at DefColorMarcas}
+\newcommand*{\elzc at CalculaOrdenTrasverso}{%
+ \setcounter{elzc at OrdenCiclo}{0}%
+ \setcounter{elzc at OrdenCicloDos}{0}%
+ \if at elzc@fichas
+  \def\elzc at Orden{ }%
+  \setcounter{elzc at Temp}{\value{elzc at Fichas} / \value{elzc at NumXY}}%
+  \setcounter{elzc at TempDos}{\value{elzc at Temp} * \value{elzc at NumXY}}%
+  \ifnum\value{elzc at TempDos} = \value{elzc at Fichas}%
+  \else
+   \addtocounter{elzc at Temp}{1}%
+  \fi
+  \loop \ifnum\value{elzc at OrdenCiclo} < \value{elzc at Temp}%
+  \advance \value{elzc at OrdenCiclo} by 1{%
+   \setcounter{elzc at TempDos}{\value{elzc at OrdenCiclo}}%
+   \addtocounter{elzc at TempDos}{-\value{elzc at Temp}}%
+   \loop \ifnum\value{elzc at OrdenCicloDos} < \value{elzc at NumXY}%
+   \advance \value{elzc at OrdenCicloDos} by 1{%
+    \addtocounter{elzc at TempDos}{\value{elzc at Temp}}%
+    \global\edef\elzc at Orden{\elzc at Orden \arabic{elzc at TempDos} }%
+   }\repeat
+  }\repeat
+  \elzc at aux@elementosorden
+ \else
+  \PKGWARNING{Transverse ordering not available on business cards}%
+  \global\@elzc at ordentransversofalse
+  \global\@elzc at calculaordenfalse
+ \fi}
 
+\newcommand*{\elzc at ErrorEnPatronOrden}{%
+ \PKGWARNING{Ordering pattern incorrectly given. Ignoring it}%
+ \global\@elzc at ordenfalse
+ \global\@elzc at calculaordenfalse}
+
+\newcommand*{\elzc at VerificaOrden}{%
+ \if at elzc@fichas
+  \setcounter{elzc at Temp}{\value{elzc at ElementosOrden} - \value{elzc at ElementosOrden} /
+   \value{elzc at NumXY} * \value{elzc at NumXY}}%
+  \ifnum\value{elzc at Temp} = 0
+  \else
+   \ifnum\value{elzc at Temp} = \value{elzc at Fichas}%
+    \else
+     \ifnum\value{elzc at ElementosOrden} = \value{elzc at Fichas}%
+     \else
+      \elzc at ErrorEnPatronOrden
+     \fi
+    \fi
+  \fi
+  \if at elzc@orden
+   \setcounter{elzc at OrdenCiclo}{0}%
+   \loop \ifnum\value{elzc at OrdenCiclo} < \value{elzc at ElementosOrden}%
+   \advance \value{elzc at OrdenCiclo} by 1{%
+    \setcounter{elzc at OrdenCicloDos}{0}%
+    \loop \ifnum\value{elzc at OrdenCicloDos} < \value{elzc at ElementosOrden}%
+    \advance \value{elzc at OrdenCicloDos} by 1{%
+     \elzc at aux@fichatransversa{\value{elzc at OrdenCicloDos}}{elzc at Temp}%
+     \ifnum\value{elzc at OrdenCiclo} = \value{elzc at Temp}%
+      \setcounter{elzc at OrdenCicloDos}{\value{elzc at ElementosOrden}}%
+     \else
+      \ifnum\value{elzc at OrdenCicloDos} = \value{elzc at ElementosOrden}%
+       \elzc at ErrorEnPatronOrden
+       \setcounter{elzc at OrdenCiclo}{\value{elzc at ElementosOrden}}%
+      \fi
+     \fi
+    }\repeat
+   }\repeat
+  \fi
+ \else
+  \PKGWARNING{Ordering pattern not available on business cards}%
+  \global\@elzc at ordenfalse
+  \global\@elzc at calculaordenfalse
+ \fi}
+
+\newcommand*{\elzc at CalculaOrden}{%
+ \setcounter{elzc at OrdenCiclo}{\value{elzc at FichaActual} / \value{elzc at ElementosOrden}}%
+ \setcounter{elzc at OrdenResto}{\value{elzc at FichaActual} - \value{elzc at FichaActual} /
+  \value{elzc at ElementosOrden} * \value{elzc at ElementosOrden}}%
+ \ifnum\value{elzc at OrdenResto} = 0
+  \addtocounter{elzc at OrdenCiclo}{-1}%
+  \setcounter{elzc at OrdenResto}{\value{elzc at ElementosOrden}}%
+ \fi
+ \elzc at aux@fichatransversa{\value{elzc at OrdenResto}}{elzc at FichaActualOrdenada}%
+ \addtocounter{elzc at FichaActualOrdenada}{\value{elzc at OrdenCiclo} * \value{elzc at ElementosOrden}}}
+
 \newcommand*{\elzc at CalculaMarcas}{%
- \setcounter{elzc at TempMarcaX}{\value{elzc at PosX}}%
- \setcounter{elzc at TempMarcaY}{\value{elzc at PosY}}%
+ \setcounter{elzc at PosMarcaX}{\value{elzc at PosX}}%
+ \setcounter{elzc at PosMarcaY}{\value{elzc at PosY} + \value{elzc at TarjYdim}}%
  \ifnum \value{elzc at ContX} = \value{elzc at NumX}%
  \else
   \ifnum \value{elzc at ContY} = \value{elzc at NumY}%
   \else
-   \elzc at DibujaMarcas{\value{elzc at TempMarcaX}}{\value{elzc at TempMarcaY}}%
+   \elzc at DibujaMarcas{\value{elzc at PosMarcaX}}{\value{elzc at PosMarcaY}}%
   \fi
  \fi
- \addtocounter{elzc at TempMarcaX}{-\value{elzc at SeparaX}}%
- \ifnum \value{elzc at ContX} = 0%
+ \addtocounter{elzc at PosMarcaX}{-\value{elzc at SeparaX}}%
+ \ifnum \value{elzc at ContX} = 0
  \else
   \ifnum \value{elzc at ContY} = \value{elzc at NumY}%
   \else
-   \elzc at DibujaMarcas{\value{elzc at TempMarcaX}}{\value{elzc at TempMarcaY}}%
+   \elzc at DibujaMarcas{\value{elzc at PosMarcaX}}{\value{elzc at PosMarcaY}}%
   \fi
  \fi
- \addtocounter{elzc at TempMarcaY}{-\value{elzc at SeparaY}}%
- \ifnum \value{elzc at ContX} = 0%
+ \addtocounter{elzc at PosMarcaY}{\value{elzc at SeparaY}}%
+ \ifnum \value{elzc at ContX} = 0
  \else
-  \ifnum \value{elzc at ContY} = 0%
+  \ifnum \value{elzc at ContY} = 0
   \else
-   \elzc at DibujaMarcas{\value{elzc at TempMarcaX}}{\value{elzc at TempMarcaY}}%
+   \elzc at DibujaMarcas{\value{elzc at PosMarcaX}}{\value{elzc at PosMarcaY}}%
   \fi
  \fi
- \addtocounter{elzc at TempMarcaX}{\value{elzc at SeparaX}}%
- \ifnum \value{elzc at ContY} = 0%
+ \addtocounter{elzc at PosMarcaX}{\value{elzc at SeparaX}}%
+ \ifnum \value{elzc at ContY} = 0
  \else
   \ifnum \value{elzc at ContX} = \value{elzc at NumX}%
   \else
-   \elzc at DibujaMarcas{\value{elzc at TempMarcaX}}{\value{elzc at TempMarcaY}}%
+   \elzc at DibujaMarcas{\value{elzc at PosMarcaX}}{\value{elzc at PosMarcaY}}%
   \fi
  \fi}
 
 \newcommand*{\elzc at DibujaMarcas}[2]{%
- \ifnum \value{elzc at ContX} = 0%
+ \ifnum \value{elzc at ContX} = 0
   \if at elzc@segmentos\put(#1,#2){\color{\elzc at ColorMarcas}\line(-1,0){\value{elzc at Arista}}}\fi
   \if at elzc@puntos\put(#1,#2){\color{\elzc at ColorMarcas}\circle*{\value{elzc at Punto}}}\fi
  \else
@@ -357,12 +614,12 @@
    \fi
   \fi
  \fi
- \ifnum \value{elzc at ContY} = 0%
-  \if at elzc@segmentos\put(#1,#2){\color{\elzc at ColorMarcas}\line(0,-1){\value{elzc at Arista}}}\fi
+ \ifnum \value{elzc at ContY} = 0
+  \if at elzc@segmentos\put(#1,#2){\color{\elzc at ColorMarcas}\line(0,0){\value{elzc at Arista}}}\fi
   \if at elzc@puntos\put(#1,#2){\color{\elzc at ColorMarcas}\circle*{\value{elzc at Punto}}}\fi
  \else
   \ifnum \value{elzc at ContY} = \value{elzc at NumY}%
-   \if at elzc@segmentos\put(#1,#2){\color{\elzc at ColorMarcas}\line(0,0){\value{elzc at Arista}}}\fi
+   \if at elzc@segmentos\put(#1,#2){\color{\elzc at ColorMarcas}\line(0,-1){\value{elzc at Arista}}}\fi
    \if at elzc@puntos\put(#1,#2){\color{\elzc at ColorMarcas}\circle*{\value{elzc at Punto}}}\fi
   \else
    \if at elzc@cruces
@@ -379,33 +636,53 @@
 
 \newcommand*{\elzc at Informacion}{%
  \message{^^JProcessing}%
- \if at elzc@tarjeta
-  \message{business cards,}%
+ \if at elzc@fichas\message{index/flash cards,}\else\message{business cards,}\fi
+ \if at elzc@procesareverso
+  \message{back side,^^J}%
  \else
-  \message{index/flash cards,}%
-  \setcounter{elzc at TempInfo}{\value{elzc at NumXY} + \value{elzc at FichaActual}}%
-  \ifnum \value{elzc at TempInfo} > \value{elzc at Fichas}%
-   \setcounter{elzc at TempInfo}{\value{elzc at Fichas}}%
+  \if at elzc@actualconreverso\else\message{only}\fi
+  \message{front side,^^J}%
+ \fi
+ \if at elzc@fichas
+  \setcounter{elzc at Temp}{\value{elzc at NumXY} + \value{elzc at FichaActual}}%
+  \addtocounter{elzc at FichaActual}{1}%
+  \message{ current=\arabic{elzc at FichaActual}-\arabic{elzc at Temp}}%
+  \message{of \arabic{elzc at FichasEnOrden},}%
+  \message{total cards=\arabic{elzc at Fichas},}%
+  \if at elzc@calculaorden
+   \if at elzc@ordentransverso \message{transverse order,}\fi
+   \if at elzc@orden \message{reordered,}\fi
   \fi
-  \addtocounter{elzc at FichaActual}{1}%
-  \message{current=\arabic{elzc at FichaActual}-\arabic{elzc at TempInfo},
-   total=\arabic{elzc at Fichas},}%
   \addtocounter{elzc at FichaActual}{-1}%
+  \message{^^J}%
  \fi
- \if at elzc@reverso\message{back side,^^J}\else\message{front side,^^J}\fi
- \message{ per page: \arabic{elzc at NumXY} (\arabic{elzc at NumX}x\arabic{elzc at NumY}),}%
- \message{ hsize=\the\elzc at TarjXdim, vsize=\the\elzc at TarjYdim,
-  hgap=\the\elzc at SeparaX, vgap=\the\elzc at SeparaY,^^J}%
+ \message{ per page:
+  \ifnum\value{elzc at NumForzadoX} > 0
+   forced
+  \else
+   \ifnum\value{elzc at NumForzadoY} > 0
+    forced
+   \fi
+  \fi
+  \arabic{elzc at NumXY} (\arabic{elzc at NumX}x\arabic{elzc at NumY}),}%
+ \message{hsize=\the\elzc at TarjXdim, vsize=\the\elzc at TarjYdim,^^J}%
+ \message{ hgap=\the\elzc at SeparaX, vgap=\the\elzc at SeparaY,
+  \if at elzc@autosep
+   \if at elzc@autosepinterno auto gap inner,\fi
+   \if at elzc@autoseptotal auto gap total,\fi
+  \else no auto gap,
+  \fi^^J}%
  \if at elzc@cruces
   \message{ with crosses,}%
   \setlength{\elzc at TempLen}{\value{elzc at Arista}sp}%
   \message{segment length=\the\elzc at TempLen, line thickness=\the\@wholewidth.^^J}%
+ \else
+  \if at elzc@segmentos
+   \message{ with segments,}%
+   \setlength{\elzc at TempLen}{\value{elzc at Arista}sp}%
+   \message{segment length=\the\elzc at TempLen, line thickness=\the\@wholewidth.^^J}%
+  \fi
  \fi
- \if at elzc@segmentos
-  \message{ with segments,}%
-  \setlength{\elzc at TempLen}{\value{elzc at Arista}sp}%
-  \message{segment length=\the\elzc at TempLen, line thickness=\the\@wholewidth.^^J}%
- \fi
  \if at elzc@puntos
   \message{ with dots,}%
   \setlength{\elzc at TempLen}{\value{elzc at Punto}sp}%
@@ -427,8 +704,10 @@
 \setlength{\elzc at DefArista}{1mm}
 \setlength{\elzc at DefPunto}{1pt}
 \setlength{\elzc at DefLinea}{0.1mm}
-\CropColor{Red!90!Black}
+\CropColor{red!90!black}
 \CropCrosses
+\NoAutoGap
+\NoTransverse
 
 \InputIfFileExists{\jobname.aux}{}\relax
 



More information about the tex-live-commits mailing list