summaryrefslogtreecommitdiff
path: root/support/acroweb/acroweb/demo2.head
blob: eba77b535d68556f65ba621c41b7638e1e267eb4 (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
\documentclass{article}

\usepackage{amsmath}

\usepackage[nodirectory,navibar,designiii,pdftex]{web}
%\usepackage[margin=10pt]{geometry}

\usepackage{color}
\usepackage[pdftex]{eforms}
\usepackage[pdftex]{exerquiz}
\usepackage[ImplMulti]{dljslib}

\usepackage{eso-pic}
\definecolor{mycolor}{rgb}{0.4,0.4,1}
\AddToShipoutPicture{\hbox to \paperwidth{\hss\color{mycolor}\vrule width 1.5em height\paperheight}}%

\navibarTextColor{black}
\navibarBgColor{mycolor}

\makeatletter
\@newNaviIconMenu{\web@FirstPage}{34pt}{8pt}
    {$\scriptstyle\blacktriangleleft\blacktriangleleft$}{FirstPage}
\@newNaviIconMenu{\web@LastPage}{34pt}{8pt}
    {$\scriptstyle\blacktriangleright\blacktriangleright$}{LastPage}
\@newNaviIconMenu{\web@PrevPage}{34pt}{8pt}
    {$\scriptstyle\blacktriangleleft$}{PrevPage}
\@newNaviIconMenu{\web@NextPage}{34pt}{8pt}
    {$\scriptstyle\blacktriangleright$}{NextPage}

\renewcommand\web@navigationbar{%
\hfill\bfseries\footnotesize
\web@FirstPage\
\web@LastPage\
\web@PrevPage\
\web@NextPage\
}

\def\answers@@q[#1]#2%
{%
    \gdef\numCols{#2}%
    \edef\eqtmp{\aPointType}\xdef\aPointType{\eqtmp,[\eqPTs,"mc"]}%
        \ifx\q@hwdest\@empty
            \xdef\@qzsolndest{#1}%
        \else
            \gdef\@qzsolndest{\q@hwdest}%
        \fi
        \answers@q@tabular{#2}%
}

\makeatother

\let\rmdefault\sfdefault

\DeclareMathOperator{\sgn}{sgn}
\DeclareMathOperator{\tg}{tan}
\DeclareMathOperator{\asin}{asin}
\DeclareMathOperator{\cotg}{cotg}
\DeclareMathOperator{\arctg}{atan}
\DeclareMathOperator{\atan}{atan}
\DeclareMathOperator{\arccotg}{arccotg}


\hypersetup{pdfmenubar=true, pdftoolbar=true}

\useBeginQuizButton
\useEndQuizButton
\def\AnswerFieldDefaults
{%
   \BC{}\S{N}\Ff{\FfReadOnly}
 }

\everymath{\displaystyle}


\makeatletter

\renewcommand\web@navigationbar{%
Answer: \AnswerField[\rectW{7cm}\textSize{0}]\currQuiz
\hfill\bfseries\footnotesize
\insertwebtoc
\web@FirstPage\
\web@LastPage\
\web@PrevPage\
\web@NextPage\
}

\makeatother


\def\problem#1{\bigskip\item $y={}$#1; \qquad $y'={}$}
\def\interval#1{\saveinterval#1}
\def\saveinterval[#1,#2]{\def\a{#1} \def\b{#1}}
\def\correctanswer#1{\RespBoxMath{#1}{5}{.0001}{[\a,\b]}\CorrAnsButton{#1}}


\begin{document}


\def\CorrAnsButtonDefaults
{%
  \CA{?}\W{1}\S{B}
  \BC{0 0 0}\BG{.7529 .7529 .7529}\H{P}
  \TU{Click to see the correct answer.}
}

\author{Robert Ma\v r\'\i k}
\title{\hbox{Demo 2 -- Derivatives}}
\def\optionalpagematter{
  \begin{itemize}
  \item Find the derivatives of  elementary functions.
  \item Click "Begin quizz", fill your answers and click "End quizz". The number of correct answers appears in the field.
  \item Click "Correct" and you get the fields with question marks to
    find the correct answers.
  \item Test starts on the next page.
  \end{itemize}
}
\maketitle

\quiztype{f}

\begin{quiz}{derivace}
Differentiate
\begin{questions}