summaryrefslogtreecommitdiff
path: root/macros/plain/contrib/blanks/blanks-sample.tex
blob: a0c2c6c7406f5dbf973f19f7c4ea1a6a894bf7b3 (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
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
%                 Example of use of macros
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
     
\magnification=\magstephalf
\font\AnsFont=cmtt10 at 14pt
\parskip=1pc
\parindent=15pt
     
\newcount\QuestionNumber
\QuestionNumber=1
     
\def\Question{\hangindent\parindent\ignorespaces\noindent\number
   \QuestionNumber.\space
   \advance\QuestionNumber by 1}
     
\DoAnswerstrue
     
\noindent{\bf With Answers:}
\medskip
     
\Question If all men are mortal, and Socrates is a man then 
\Ans{Socrates is mortal man, as well as a Greek man}.
     
\Question Five time four equals \Ans{20.}
     
\Question  Mares eat \Ans{oats}, and does eat \Ans{oats}, and little
lambs eat \Ans{ivy}.  I would eat ivy too, \Ans{wouldn't you}?
     
\DoAnswersfalse
     
\QuestionNumber=1
\bigskip
\noindent{\bf Without Answers:}
\medskip
     
\Question If all men are mortal, and Socrates is a man then
\Ans{Socrates is mortal man, as well as a Greek man}.
     
\Question Five time four equals \Ans{20.}
     
\Question  Mares eat \Ans{oats}, and does eat \Ans{oats}, and little lambs
eat \Ans{ivy}.  A kid'll eat ivy too, \Ans{would you}?
     
\bye