summaryrefslogtreecommitdiff
path: root/Master/texmf-dist/tex/latex/eCards/eCardsList.def
blob: 757d5a72a7159bb4ecd25ccfab64b9a1324d3fa6 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
%%
%% This is file `eCardsList.def',
%% generated with the docstrip utility.
%%
%% The original source files were:
%%
%% eCards.dtx  (with options: `copyright,listing')
%% 
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
%% eCards.sty package,                  2003-3-10       %%
%% Copyright (C) 1999-2002  D. P. Story                 %%
%%   dpstory@uakron.edu                                 %%
%%                                                      %%
%% This program can redistributed and/or modified under %%
%% the terms of the LaTeX Project Public License        %%
%% Distributed from CTAN archives in directory          %%
%% macros/latex/base/lppl.txt; either version 1 of the  %%
%% License, or (at your option) any later version.      %%
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
\newcounter{ecCnt}
\renewcommand\exsolafter{}
\eqexerskip{0pt}
\newenvironment{listing@card}
{%
    \stepcounter{ecCnt}%
    \gdef\nMarker{0}%
    \def\eqexheader{\noindent}%
        \renewcommand\exsllabelformat{\noindent}%
    \renewcommand\exrtnlabelformat{}%
    \renewcommand\exsecrunhead{}%
    \begin{exercise}%
        \textBgColor{\@cardColor}%
        \headCard
}%
{%
        \tailCard
    \end{exercise}%
}
\newcommand{\listing@headCard}
{%
    \unskip\makebox[0pt][r]
        {\textbf{\arabic{ecCnt}.\enspace}}\ignorespaces%
}
\newcommand{\listing@tailCard}{\par}
\newenvironment{listing@response}
    {\solnexer@woparts[0pt]}{\endsolnexer@woparts}
\newenvironment{listing@hint}
{%
    \textBgColor{\@hintColor}%
    \headHint
}%
{%
    \tailHint
}
\newcommand{\listing@headHint}
{%
    \unskip\par\textit{Hint}:\space\ignorespaces
}
\newcommand{\listing@tailHint}{}
\newenvironment{listing@answer}
{%
    \textBgColor{\@solnColor}%
    \headAnswer
}%
{%
    \tailAnswer
}
\newcommand{\listing@headAnswer}
{%
    \unskip\par\textit{Answer}:\space\ignorespaces
}
\newcommand{\listing@tailAnswer}{}
\AtBeginDocument{%
    \let\card = \listing@card
    \let\endcard = \endlisting@card
    \let\headCard = \listing@headCard
    \let\tailCard = \listing@tailCard
    \let\headresponse = \listing@response
    \let\endresponse = \listing@response
    \let\headhint = \listing@hint
    \let\endhint = \listing@endhint
    \let\headHint = \listing@headHint
    \let\tailHint = \listing@tailHint
    \let\answer = \listing@answer
    \let\endanswer = \listing@endanswer
    \let\headAnswer = \listing@headAnswer
    \let\tailAnswer = \listing@tailAnswer
}
\endinput
%%
%% End of file `eCardsList.def'.