summaryrefslogtreecommitdiff
path: root/texmf-dist/doc/latex/ecards/examples/ecardstst.tex
blob: 5f997346444148b05b99b9f8df9858cbdfa2690d (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
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
\documentclass{article}
\usepackage[fleqn]{amsmath}
\usepackage{graphicx}
% Use these three for on screen presentation.
\usepackage[tight,rightpanel]{web} %,usetemplates,rightpanel
\usepackage{exerquiz}
\usepackage[memLogo]{ecards} % ,notrandomized

% Use these three to get a listing of all questions, hints, and answers; useful
% for checking your work.
%\usepackage[forpaper,tight]{web} %  ,usetemplates
%\usepackage[solutionsafter,proofing]{exerquiz}
%\usepackage[memLogo,listing]{ecards}

% begin Web commands
\margins{.25in}{.25in}{24pt}{.25in} % left,right,top, bottom
\screensize{3.72in}{366.24bp}
\subject{Electronic Flash Cards}
\keywords{Flash Cards, LaTeX, PDF}
\university{%
%
        THE UNIVERSITY OF AKRON\\
   Theoretical and Applied Mathematics
%
}
\email{dpstory@uakron.edu}
\version{2.0}
\copyrightyears{\the\year}
\author{D. P. Story}
\title{The U.S. Presidents by Number\texorpdfstring{\\}{,} Numbers 1--6}
\norevisionLabel

\definecolor{logoblue}{rgb}{0,0,0.267}
\panelBgColor{logoblue}

\renewcommand\hproportionwebtitle{.9}
\newcommand\aebLogo{%
    \parbox{1.75in}{\large\color{red}\textsl{eCards: U.S. Presidents}\\
    \small\smash{\raisebox{3pt}{\color{blue}\textsl{{Acro\!\TeX} eDucation Bundle}\hfill}}}}

\makeatletter
\ifecListing\else
    \ifnum\@panelconfig>0\relax
        \optionalPageMatter{\par\minimumskip\vspace{\stretch{1}}
            \begin{center}
            \fcolorbox{blue}{webyellow}{
            \begin{minipage}{.85\linewidth}
            \textbf{\textcolor{red}{Instructions:}}
            Click on the \textcolor{webblue}{Begin} button to view the
            first randomly selected card. Click on \textcolor{webblue}{FS} to view
            the flash cards in full screen mode (works only outside a web browser). The
            \textcolor{webblue}{Home} button on the first page goes to the
            \textbf{\textcolor{red}{Acro\!\TeX}} home page; otherwise, the
            \textcolor{webblue}{Home} button returns to this page.
            The \textcolor{webblue}{Close} button closes the document (use
            outside a web browser).\par\smallskip
            \textbf{\textcolor{red}{Source:}}
            \href{http://www.whitehouse.gov/history/presidents/}%
                {The White House Presidents Page}\par\smallskip
            \end{minipage}}
            \end{center}
        }
    \else
        \optionalPageMatter{\par\minimumskip\vspace{\stretch{1}}
            \begin{center}
            \fcolorbox{blue}{webyellow}{
            \begin{minipage}{.67\linewidth}
            Click on the \textcolor{webblue}{Begin} button to view the
            first randomly selected card.  Click  on
            \textcolor{webblue}{FS} to put the viewer into full screen
            mode (use outside a web browser). The check box on the
            right toggles the delivery of the cards between random
            and natural order; a check means random
            order.\par\smallskip
            \centering
                \Begin\ \FullScreen\ \ToggleOrder
            \end{minipage}}
            \end{center}
        }
    \fi
\fi

\makeatother
% end Web commands
% begin ecards commands
\ecLogoLink{http://www.uakron.edu/}
\cardsFinishedMsg{You've seen all the Presidents, at least the ones presented
    in these cards.}
\renewcommand\noHintJSAction{app.alert("No hints provided!")}
% end ecards commands

\renewcommand{\pressBeginMsg}{Press the \"Begin\"
    button to begin viewing the cards.}


\def\rescale{.4} % common re-scaling parameter for presidents
\parindent0pt

\begin{document}

\maketitle

\ifecListing
    \begin{center}\Large\bfseries
        Listing of Questions, Hints, and Answers
    \end{center}\bigskip
\fi

\begin{card}
    Who was the first President of the United States?
\begin{response}
    \begin{hint}
        Legend has it, he chopped down the cherry tree and couldn't tell a lie.
    \end{hint}
    \begin{answer}
    \ifecListing
        George Washington (1789-1797)
    \else\centering
            \includegraphics[scale=\rescale]{presidents/gw1}\\
                George Washington\\
                1789-1797
    \fi
    \end{answer}
\end{response}
\end{card}

\begin{card}
    Who was the second President of the United States?
\begin{response}
    \begin{hint}
        He was Washington's Vice President.
    \end{hint}
    \begin{answer}
    \ifecListing
        John Adams (1797-1801)
    \else\centering
            \includegraphics[scale=\rescale]{presidents/ja2}\\
                John Adams\\
                1797-1801
    \fi
    \end{answer}
\end{response}
\end{card}

\begin{card}
    Who was the third President of the United States?
    \begin{multiChoice}{2}
        \Ans0 Geo. Washington &\Ans0 Ben Franklin \\
        \Ans1 Thomas Jefferson &\Ans0 James Madison
    \end{multiChoice}
\begin{response}
    \begin{hint}
        He was one of the authors of the Declaration of Independence.
    \begin{multiChoice}{2}
        \Ans0 Geo. Washington &\Ans0 Ben Franklin \\
        \Ans1 Thomas Jefferson &\Ans0 James Madison
    \end{multiChoice}
    \end{hint}
    \begin{answer}
    \ifecListing
        Thomas Jefferson (1801-1809)
    \else\centering
            \includegraphics[scale=\rescale]{presidents/tj3}\\
                Thomas Jefferson\\
                1801-1809
    \fi
    \end{answer}
\end{response}
\end{card}

\begin{card}
    \raggedright
    Who was the fourth President of the United States? \ifecListing\newline\fi
    \begin{fillIn}
        \RespBoxTxt[\rectW{1.5in}]{0}{0}{2}{James Madison}{Madison}
    \end{fillIn}
\begin{response}
    \begin{hint}\raggedright
        He coauthored the \textsl{Federalists Essays} along with
        John Jay and Alexander Hamilton.
        \begin{fillIn}
            \RespBoxTxt[\rectW{1.5in}]{0}{0}{2}{James Madison}{Madison}
        \end{fillIn}
    \end{hint}
    \begin{answer}
    \ifecListing
        James Madison (1809-1817)
    \else\centering
            \includegraphics[scale=\rescale]{presidents/jm4}\\
            James Madison\\
            1809-1817
    \fi
    \end{answer}
\end{response}
\end{card}

\begin{card}
    Who was the fifth President of the United States?
\begin{response}
    \begin{hint}
        In foreign affairs, this President proclaimed a doctrine that
        bears his name, ``\dots the American continents'', he stated, ``by the
        free and independent condition which they have assumed and
        maintain, are henceforth not to be considered as subjects for
        future colonization by any European Power.''
    \end{hint}
    \begin{answer}
    \ifecListing
        James Monroe (1817-1825)
    \else\centering
            \includegraphics[scale=\rescale]{presidents/jm5}\\
            James Monroe\\
            1817-1825
    \fi
    \end{answer}
\end{response}
\end{card}

\begin{card}
    Who was the sixth President of the United States?
\begin{response}
    \begin{hint}
        He was the first President who was the son of a President.
    \end{hint}
    \begin{answer}
    \ifecListing
        John Quincy Adams (1825-1829)
    \else\centering
            \includegraphics[scale=\rescale]{presidents/ja6}\\
            John Quincy Adams\\
            1825-1829
    \fi
    \end{answer}
\end{response}
\end{card}

\end{document}