summaryrefslogtreecommitdiff
path: root/Master/texmf-dist/tex/latex/contracard
diff options
context:
space:
mode:
authorKarl Berry <karl@freefriends.org>2013-02-22 22:56:35 +0000
committerKarl Berry <karl@freefriends.org>2013-02-22 22:56:35 +0000
commit45cbe76d48e9ae9e5c8162ec6b496607265f282f (patch)
treefe0898bce4e24df0d115a65ac508d7497dc86de3 /Master/texmf-dist/tex/latex/contracard
parent19e6deec88e20852e89d1a8a65cbd57e3fbd5686 (diff)
contracard (22feb13)
git-svn-id: svn://tug.org/texlive/trunk@29202 c570f23f-e606-0410-a88d-b1316a301751
Diffstat (limited to 'Master/texmf-dist/tex/latex/contracard')
-rw-r--r--Master/texmf-dist/tex/latex/contracard/contracard.cls51
1 files changed, 9 insertions, 42 deletions
diff --git a/Master/texmf-dist/tex/latex/contracard/contracard.cls b/Master/texmf-dist/tex/latex/contracard/contracard.cls
index e473f047bfe..309ac71be49 100644
--- a/Master/texmf-dist/tex/latex/contracard/contracard.cls
+++ b/Master/texmf-dist/tex/latex/contracard/contracard.cls
@@ -4,7 +4,7 @@
%%
%% The original source files were:
%%
-%% contracard.dtx (with options: `contracard')
+%% contracard.dtx (with options: `contracard-cls')
%%
%% Copyright 2012 Samuel Whited
%%
@@ -19,17 +19,15 @@
%% LaTeX version 2008/05/04 or later.
%%
\NeedsTeXFormat{LaTeX2e}[1995/12/01]
-\ProvidesClass{contracard}[2013/02/17]
+\ProvidesClass{contracard}[2013/02/20]
\AtEndOfClass{\LoadClass{article}}
-\AtEndOfClass{\RequirePackage{intcalc}}
-\AtEndOfClass{\RequirePackage{hyperref}}
-\AtEndOfClass{\RequirePackage{ifthen}}
\AtEndOfClass{\RequirePackage{geometry}}
-\AtEndOfClass{\RequirePackage{fancyhdr}}
\AtEndOfClass{\RequirePackage[compact]{titlesec}}
+\AtEndOfClass{\RequirePackage{contracard}}
\DeclareOption{small}{%
\AtBeginDocument{%
\titleformat{\section}{\normalsize\bfseries}{\thesection}{1em}{}%
+ \titleformat{\subsection}{\normalsize}{\thesection}{1em}{}%
}
\PassOptionsToPackage{%
margin=0.25in,top=0.75in,paperwidth=5in,paperheight=3in%
@@ -50,6 +48,7 @@
\DeclareOption{a7paper}{%
\AtBeginDocument{%
\titleformat{\section}{\normalsize\bfseries}{\thesection}{1em}{}%
+ \titleformat{\subsection}{\normalsize}{\thesection}{1em}{}%
}
\PassOptionsToPackage{%
margin=5mm,top=15mm,paperwidth=105mm,paperheight=74mm%
@@ -58,42 +57,9 @@
\DeclareOption*{%
\PassOptionsToClass{\CurrentOption}{article}%
}
-\AtBeginDocument{\renewcommand{\headrulewidth}{0pt}}
\AtBeginDocument{\pagestyle{empty}}
-\newcounter{dancecount}
-\newcounter{partcount}
-\newcounter{phrasecount}
-\newcommand*{\progressed}{\setcounter{phrasecount}{1}}
-\newcommand*{\defaultcontraenv}{flushleft}
-\newenvironment{contra}[4][\defaultcontraenv]{%
- \clearpage
- \setcounter{dancecount}{0}
- \setcounter{partcount}{1}
- \setcounter{phrasecount}{1}
- \thispagestyle{fancy}
- \rhead{#4}
- \section*{#2}
- {#3}
- \newcommand*{\@contraenv}{#1}
- \begin{\@contraenv}
-}{%
- \end{\@contraenv}
-}
-\newcommand*{\move}[2][16]{%
- \ifthenelse{\intcalcMod{\value{dancecount}}{16}=0}{%
- \Alph{phrasecount}\arabic{partcount}.\ %
- }{}%
- \addtocounter{dancecount}{#1}%
- #2%
- \ifthenelse{\intcalcMod{\value{dancecount}}{8}=0
- \and\not\intcalcMod{\value{dancecount}}{16}=0}{;}{\nopagebreak}%
- \ifthenelse{\not\intcalcMod{\value{dancecount}}{8}=0}{,}{\nopagebreak}%
- \ifthenelse{\intcalcMod{\value{dancecount}}{32}=0}{%
- \addtocounter{phrasecount}{1}\setcounter{partcount}{0}\pagebreak[1]%
- \vspace{1em}}{}%
- \ifthenelse{\intcalcMod{\value{dancecount}}{16}=0}{%
- \addtocounter{partcount}{1}\newline}{}%
-}
+\AtBeginDocument{\pagenumbering{gobble}}
+\newcommand*{\@ccisclass}{}
\ProcessOptions\relax
%%
%% ___________
@@ -103,7 +69,8 @@
%% Public key: 0xEC2C9934
%%
%% This work consists of this file contracard.dtx
-%% and the derived files contracard.cls
+%% and the derived files contracard.sty
+%% and contracard.cls
%% and contracard.pdf
%%
%%