summaryrefslogtreecommitdiff
path: root/macros/plain/contrib/blanks/blanks-sample.tex
diff options
context:
space:
mode:
authorNorbert Preining <norbert@preining.info>2019-09-02 13:46:59 +0900
committerNorbert Preining <norbert@preining.info>2019-09-02 13:46:59 +0900
commite0c6872cf40896c7be36b11dcc744620f10adf1d (patch)
tree60335e10d2f4354b0674ec22d7b53f0f8abee672 /macros/plain/contrib/blanks/blanks-sample.tex
Initial commit
Diffstat (limited to 'macros/plain/contrib/blanks/blanks-sample.tex')
-rw-r--r--macros/plain/contrib/blanks/blanks-sample.tex45
1 files changed, 45 insertions, 0 deletions
diff --git a/macros/plain/contrib/blanks/blanks-sample.tex b/macros/plain/contrib/blanks/blanks-sample.tex
new file mode 100644
index 0000000000..a0c2c6c740
--- /dev/null
+++ b/macros/plain/contrib/blanks/blanks-sample.tex
@@ -0,0 +1,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