blob: a5a4c6cbaf10e984d1123d4ef99b3a1ee5edcfef (
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, %%
%% Copyright (C) 1999-2016 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}
\let\exsolafter\@empty
\eqexerskip{0pt}
\newenvironment{listing@card}[1][\opts@ecNoHints]{%
\isQuestrue\let\useHints\ec@HintsWarning
\let\useNoHint\ec@HintsWarning\edef\ec@rgi{#1}%
\ifx\ec@rgi\ec@isHint
\def\ec@thisHintOpt{\ecUseHints}\else
\ifx\ec@rgi\ec@isNoHint
\def\ec@thisHintOpt{\ecUseNoHints}\else
\def\ec@thisHintOpt{\ecUseHints}\ec@BadArgWarning
\fi\fi
\ec@thisHintOpt\nMarkerSet{\ec@Ques}%
\stepcounter{ecCnt}%
\def\eqexheader{\noindent}%
\renewcommand\exsllabelformat{\protect\noindent}%
\renewcommand\exrtnlabelformat{}%
\renewcommand\exsecrunhead{}%
\let\afterlabelhskip\@empty
\def\exersolnheadhook{\ecInfoToSolns}%
\begin{exercise}%
\textBgColor{\@cardColor}%
\headCard
}{%
\tailCard
\end{exercise}%
}
\newcommand{\listing@headCard}{\ifeqforpaper
\makebox[0pt][r]{\textbf{\arabic{ecCnt}.\thinspace}}\else
\makebox[0pt][r]{\textbf{\hyperlink{ex.\exnoCard}%
{\arabic{ecCnt}.\thinspace}}}\fi\ignorespaces}
\newcommand{\listing@tailCard}{\removelastskip\par} % dps
\def\setSolutionsAfterSkip{\expandafter
\def\expandafter\solutionsafterSkip
\expandafter{\solutionsafterSkip\kern0pt}}
\AtBeginDocument{\setSolutionsAfterSkip}
\newenvironment{listing@response}
{\solutionsafterSkip\solnexer@woparts[]}{\endsolnexer@woparts}
\newenvironment{listing@hint}{%
\textBgColor{\@hintColor}%
\headHint
}{\tailHint}
\newcommand{\listing@headHint}{%
\par\textit{Hint}:\space\ignorespaces}
\newcommand{\listing@tailHint}{}
\newenvironment{listing@answer}{%
\textBgColor{\@solnColor}%
\headAnswer
}{\tailAnswer}
\newcommand{\listing@headAnswer}{%
\par\textit{Answer}:\space\ignorespaces}
\newcommand{\listing@tailAnswer}{}
\def\ec@redefForListing{%
\let\card\listing@card
\let\endcard\endlisting@card
\let\headCard\listing@headCard
\let\tailCard\listing@tailCard
\let\response\listing@response % dps
\let\endresponse\endlisting@response % dps
\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
}
\AtBeginDocument{\ec@redefForListing}
\endinput
%%
%% End of file `ecardslist.def'.
|