summaryrefslogtreecommitdiff
path: root/texmf-dist/doc/latex/eqexam/examples/flextended-opt.tex
blob: 23bf670aa422101d8f4de26a5efdc0696a3f9693 (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
\documentclass{article}
\usepackage[fleqn]{amsmath}
\usepackage[pdf,forcolorpaper,nopoints,useforms,
% Try compiling this file under one of these options:
    nosolutions,
%   answerkey,
%   vspacewithsolns,
  flextended
]{eqexam}[2018/01/12]

\subject[Essay]{Extending Fill Lines}
\title[HW]{Essay HW}
\author{Dr.\ D. P. Story}
\date{Spring 2018}
\duedate{03/07/2018}
\keywords{Homework due \theduedate}

\forceNoColor
\DoNotFitItIn
\useFillerLines
\vspacewithkeyOn
\turnflnosolnsOn
\turnflanskeyOn
\turnContAnnotOn
\setFillLinesFmt{fltype=line,numbers=left}

\solAtEndFormatting{\eqequesitemsep{3pt}}

\let\opt\texttt
\let\env\texttt

% these commands pass their arguments to the priorworkarea and solution
% environments, respectively.
\priorworkareaCmds{\baselineskip\wlVspace\parindent\wlVspace}
\solutionafterExCmds{\baselineskip\wlVspace
  \parindent\wlVspace}

\begin{document}

\maketitle

\begin{exam}{fl1}

\begin{instructions}[]
Respond to each problem, use your best effort. Turn in your essays by the end of the day.
\end{instructions}

\flPageBreakMsg{\textbf{Problem~{\eqeCurrProb} continues on next page\strut}}%

\begin{problem}
Expound on all you know on the subject.
\begin{priorworkarea}
When the \opt{flextended} option is not in force, these three lines are blank. However, in this example,
\opt{flextended} is active, and I can write to these lines. 
\end{priorworkarea}
\begin{solution}[nLines=3]
Your guess is as good as mine. 
\end{solution}
\end{problem}

\setFillLinesFmt{fltype=grid,gridtype=line,numbers=right,topline,color=lightgray}

\begin{problem}
Expound on all you know on the subject.
\begin{priorworkarea}
Essay area.
\end{priorworkarea}
\begin{solution}[42pt]
Your guess is as good as mine.
\end{solution}
\end{problem}

\vspace{2.1in}
\smash{\makebox[\linewidth][c]{\parbox{.5\linewidth}{\bfseries\slshape
  This space left blank so the next problem can break across the page.}}}
\vspace{2.1in}

\begin{problem}
Expound on all you know on the subject.
\begin{priorworkarea}
When the \opt{flextended} option is not in force, these three lines are
blank. However, in this example, \opt{flextended} is active, and I can write
to these lines.

The contents of the \env{priorworkarea} environment can also break across a
page boundary. We'll try to make it so.\vspace{2\baselineskip}

Are we on the next page? I think yes.
\end{priorworkarea}
\begin{solution}[nLines=10]
Your guess is as good as mine. The content has the capability of breaking across pages.

I've added more lines because this problem has a chance breaking across a page boundary.
Let's prattle on until we go to the next page.\vspace{\baselineskip}

We'll jump down a couple of lines cause I don't have much to say. Gotta keep
going to get to the next page. If all works as it should, I'll see you one
the other side! Perfect! \vspace{3\baselineskip}

\noindent
All in all, this is very cool.\enspace dps
\end{solution}
\end{problem}
\end{exam}

\end{document}