summaryrefslogtreecommitdiff
path: root/texmf-dist/tex/latex/acrotex/template.def
blob: 371929e53fcefc42428870ce1415829c75e9070f (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
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
%%
%% This is file `template.def',
%% generated with the docstrip utility.
%%
%% The original source files were:
%%
%% exerquiz.dtx  (with options: `copyright,template')
%% 
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
%% Exerquiz.sty package,                                %%
%% Copyright (C) 1999-2021  D. P. Story                 %%
%%   dpstory@uakron.edu                                 %%
%%                                                      %%
%% This program can redistributed and/or modified under %%
%% the terms of the LaTeX Project Public License        %%
%% Distributed from CTAN archives in directory          %%
%% macros/latex/base/lppl.txt; either version 1 of the  %%
%% License, or (at your option) any later version.      %%
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
\ProvidesFile{template.def}
 [2021/05/10 v8.7.7 %
 Exerquiz template for language support (dps)]
%%------------- Instructions ------------------------------------
%% Make your language localizations to this file and rename it to
%% something like \texttt{eq<mylang>.def}, where \texttt{<mylang>}
%% is a short 2-letter designator of the language. Test the tile
%% by inputting it in the preamble of your document
%% \input{eq<mylang>.def}. When satisfied, send it to me at
%% dpstory@uakron.edu or dpstory@acrotex.net.
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
%% Web.sty                                            %%
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
% Language dependent definitions for Web.sty
\DeclareOption{newlanguage}{%
  \AtEndOfPackage{%
    \def\today{\ifcase\month\or January
            \or February \or March \or April
            \or May \or June  \or July  \or August
            \or September  \or October  \or November
            \or December \fi \the\day,  \the\year}
    \def\web@versionlabel{Version}
    \def\web@toc{Table of Contents}
    \def\web@continued{cont.}
    \def\web@article{Begin \hyperlink{section.1}{Article}}
    \def\web@directory{Directory}
    \def\web@revision{Last Revision Date:}
    \def\web@copyright{Copyright}
    \def\web@section{Section}
    % Label Navibar
    \def\web@back{Back}
    \def\web@doc{Doc}} % restricted to three characters
    \PassOptionsToPackage{newlanguage}{exerquiz}
}
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
%% Exerquiz.sty                                       %%
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
\DeclareOption{newlanguage}{%
   \def\LangRedefinitions{\InputIfFileExists{eqlang.def}%
   {\PackageInfo{exerquiz}{Inputting a New Language Option}}%
   {\PackageInfo{exerquiz}{Language Option: Cannot find the file
    eqpo.def, using the default, English.}}}}

% The exercise label
% Accents: \renewcommand\exlabel{\"Ubung} (German)
\renewcommand\exlabel{Exercise}
% The value of this macro is written to \jobname.sol,
% accented characters must be protected with a \protect
% E.g., \renewcommand\exlabelsol{\protect\"Ubung} (German)
\renewcommand\exlabelsol{\exlabel}

% Title of exercise solution section
% E.g.: \renewcommand\exsectitle
%            {L\"osungen der \exlabel en} (German)
\renewcommand\exsectitle{Solutions to \exlabel s}
\renewcommand\exsecrunhead{\exsectitle} %% change to @ form

% Solution label for solutionafter option for exercise
\renewcommand\exsolafter{\textit{Solution}:}

% Title of short quiz solution section
% Example: \renewcommand\eq@sqslsectitle
%               {L\"osungen der Aufgaben} (German)
\renewcommand\eq@sqslsectitle{Solutions to Quizzes}
\renewcommand\sqslsectitle{\eq@sqslsectitle}

% Running header/section title for solutions to short quizzes
\renewcommand\eq@sqslsecrunhead{Solutions to Quizzes}
% User access
\renewcommand\sqslsecrunhead{\eq@sqslsecrunhead}

% Label for solutions to short quizzes, appears
% in solutions sections
% Protect accents with \protect
% E.g.: \renewcommand\eq@sqsllabel
%       {\string\textbf{L\protect\"osung zu Aufgabe:}} (German)
\renewcommand\eq@sqsllabel{\string\textbf{Solution to Quiz:}}
% User access
\renewcommand\sqsllabel{\eq@sqsllabel}

% Solution label for solutionafter option for shortquiz
\renewcommand\sqsolafter{\textit{Solution}:}

% User access to shortquiz label
\renewcommand\sqlabel{\eq@sqlabel}
% Here is the default short quiz label.
\sqDefaultFmtTitle{\textcolor{red}{Quiz.}}

% Here is the default short quiz return label
% No formatting allowed
\renewcommand\eq@sqslrtnlabel{End Quiz}
% User access to shortquiz label
\renewcommand\sqslrtnlabel{\eq@sqslrtnlabel}

% Short quiz feedback messages
\renewcommand\eqsqrtmsg{"Right!"}
\renewcommand\eqsqwgmsg{"Wrong!"}
\renewcommand\doNotShowAgainMsg{Do not show this message again}

% Here is the default quiz label.
% No formatting allowed
% For Example: \renewcommand\eq@bqlabel{D\'ebut}  (French)
\renewcommand\eq@bqlabel{Begin Quiz}
% User access to shortquiz label
\renewcommand\bqlabel{\eq@bqlabel}
% Used for writing JavaScript Messages on screen.
% Use PDFDocEncoding
% For Example:
% \renewcommand\eq@bqlabelISO{D\string\351but}  (French)
% Use \string not \protect, this helps out
% TeX4ht by Eitan Gurari.
\renewcommand\eq@bqlabelISO{\eq@bqlabel}
\renewcommand\bqlabelISO{\eq@bqlabel}
% Default title for a quiz used for \verb!\@currentlablename!
\setDefShortQuizLabelName{Quiz}
\setDefQuizLabelName{Quiz}

% Here is the default quiz label.
% No formatting allowed
\renewcommand\eq@eqlabel{End Quiz}
% User access to shortquiz label
\renewcommand\eqlabel{\eq@eqlabel}

% JavaScript Messages for Quiz Environments. Use PDFDocEncoding
% Note: Use  \string rather than \protect for escape codes,
% i.e. \string\374
%
% In the Text Field showing the score, there is the default
% phrase in English
% Score: 2 out of 3, the word "Score" and "out of" needs
% translation.
\renewcommand\eq@Score{Score:}\renewcommand\eq@OutOf{out of}
\renewcommand\eq@ptScore{Score:}
% used in summary tables
\renewcommand\stOutOf{of}
% If you are taking a quiz and click on an alternative without
% initializing the quiz
% first, this message appears.
% This string is placed in the DLJS, so the escape sequences
% need to be protected more. Instead of \string\340 we need
% \string\\340.
% Example: \renewcommand\eqInitQuizMsg{%    (German)
%   "Sie m\string\\374ssen die Aufgaben initialisieren!
%    Bitte klicken Sie auf "+msg+"."}
\renewcommand\eqInitQuizMsg{%
  "You must initialize the Quiz! Click on "+msg+"."}

% This macro doesn't usually need translation, it uses \eqScore
% and \eqOutOf. However, if the sentence "Score: 2 out of 3"
% does not translate conveniently into a particular language,
% this macro may have to be modified.  It's the one that puts
% the message in the message box.
\renewcommand\eqQuizTotalMsg
 {"\eqScore\space"+Score+" \eqOutOf\space"+nQuestions}
\renewcommand\eqQuizPointsMsg{%
  "\eqptScore\space"+ptScore+" \eqOutOf\space"+nPointTotal}
\renewcommand\eqQuizPercentMsg{pcScore+"\%"}
\renewcommand\eqQuizGradeMsg{quizGrade}

% In the link form of a quiz, of you change your choice,
% this message appears. This string is placed in the
% DLJS, so the escape sequences need to be protected more.
% Instead of \string\340 we need \string\\340.
% For Example: \renewcommand\eqMadeChoice{%
% "Vous avez d\string\\351j\string\\340 fait un choix,
%   ce choix est ("+Responses[probno]+").
%   Souhaitez vous le modifier ?"}  (French)
\renewcommand\eqMadeChoice{%
  "You have already made a choice.
   Your choice was ("+Responses[probno]+").
   Do you want to change it?"}
% Default button labels for \eqButton
% Accents are handled as above:
% A French Language Example
% \renewcommand\eq@local@CA{R\string\351ponses}
% \renewcommand\eq@local@RC{Correctes}
% \renewcommand\eq@local@AC{SVP !}
\renewcommand\eq@local@CA{Correct}
\renewcommand\eq@local@RC{My Answers!}
\renewcommand\eq@local@AC{Please!}

% Default button label of \CorrAnsButton.
\renewcommand\eq@local@CorrAnsButton{Ans}
% Default button label of \sqClearButton
\renewcommand{\eq@local@sqClearButton}{Clear}
% Short string used by the \PromptButton
\renewcommand{\AnsPromptBtnStr}{Answer:\space}

% These (error) messages are generated when the user enters an
% invalid math expression into a math fill-in response box.
% The messages come in the form of an eqAppAlert() so
% PDFDocEncoding needs to be used.
\renewcommand\eqerrABS{"Absolute values not balanced. Please correct."}
\renewcommand\eqerrBadMathFunc{"The expression \""+aF[i]+"\" is neither
    a defined " +"function, nor a valid math expression."}
\renewcommand\eqParens{"Parentheses"}
\renewcommand\eqBrackets{"Brackets"}
\renewcommand\eqBraces{"Braces"}
\renewcommand\eqerrDelimNotBal{aGroup[i][2] + " not balanced.
    Please correct."}
\renewcommand\eqerrBadExp{"Invalid mathematical expression.
    A problem with one of the exponents. Please correct."}
\renewcommand\eqerrUnfinishQuiz{"There is an unfinished quiz,
    please finish before moving on to another."}
\renewcommand\noPeekMsg{"Viewing Solutions to quizzes is not allowed
    until you take or finish this quiz!"}
\renewcommand\highThresholdMsg{"You are required to respond to all
    questions before the quiz is evaluated."}
\renewcommand\eqSyntaxErrorUndefVar{"Syntax Error: Possibly an
    undefined variable present."}
\newcommand{\eqSyntaxErrorComma}{"Syntax Error: A comma was found"
    + " in your response \\""
    + UserAns + "\\". Please remove the comma, or this answer"
    + " will be marked as wrong."}
\renewcommand{\limSelWarningMsg}{"For this questions, you are allowed to
    make at most " + n + " selections."}
\renewcommand{\promptButtonMsg}{%
    "Would you like to see the correct answer at this time? "
    + "Your current answer will be the one that will be scored. "
    + "If you click on \\"Yes\\",
        you will not be able to change your answer."
}
\renewcommand{\defaultReqFormMsg}{%
    "The expression is not in the expected form."}
\renewcommand\eqAnd{and}
%%%%%%%%%%%%%%%%%%%%%% End Message Section %%%%%%%%%%%%%
%% Some typeout messages                              %%
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
\typeout{Inputting French Option}
\typeout{French Option: Cannot find the file eqfr.def, using the
    default, English.}
\typeout{Solutions not allowed with this option}
\typeout{Check: `#1' is not an acceptable option, inserting
    default, `check'.}
\endinput
%%
%% End of file `template.def'.