Debian Codegraph @

texmf-dist/doc/latex/exercisebank/exercisebank-doc.tex

raw
1 %% exercisebank v0.3.0b137 - 2019/03/18
2 %% The LaTeX package exercisebank - version v0.3.0 (2019/03/18) build 137
3 %% Manual/Documentation for exercisebank.sty
4 %% -------------------------------------------------------------------------------------------
5 %% Copyright (c) 2018 by Andreas Storvik Strauman
6 %% -------------------------------------------------------------------------------------------
7 %% This work may be distributed and/or modified under the
8 %% conditions of the LaTeX Project Public License, either version 1.3c
9 %% of this license or (at your option) any later version.
10 %% The latest version of this license is in
11 %% http://www.latex-project.org/lppl.txt
12 %% and version 1.3c or later is part of all distributions of LaTeX
13 %% version 2008/05/04 or later.
14 %% This work has the LPPL maintenance status `author-maintained'.
15 %% This work consists of all files listed in README.txt
16 \documentclass[a4paper]{article}
17 \usepackage[all]{tcolorbox}
18 \usepackage{needspace}
19 \usepackage{tabularx}
20 \usepackage{geometry}
21 \usepackage{listofitems}
22 \makeatletter
23 \def\input@path{{../../docs/}}
24 \lstdefinestyle{mydocumentation}{style=tcbdocumentation,
25 classoffset=0,
26 texcsstyle=*\color{blue},
27 moretexcs={arrayrulecolor,draw,includegraphics,ifthenelse,isodd,lipsum,path,pgfkeysalso},
28 classoffset=1,
29 moretexcs={% core
30 makeset,phead,buildset,select,exclude,Trigger,At,translateExBank,exercisebanksetup,exerciseFile
31 },
32 texcsstyle=*\color{Definition}\bfseries,
33 classoffset=0,% restore default
34 }
35 \newtcolorbox{marker}[1][]{enhanced,
36 before skip=2mm,after skip=3mm,
37 boxrule=0.4pt,left=5mm,right=2mm,top=1mm,bottom=1mm,
38 colback=yellow!50,
39 colframe=yellow!20!black,
40 sharp corners,rounded corners=southeast,arc is angular,arc=3mm,
41 underlay={%
42 \path[fill=tcbcol@back!80!black] ([yshift=3mm]interior.south east)--++(-0.4,-0.1)--++(0.1,-0.2);
43 \path[draw=tcbcol@frame,shorten <=-0.05mm,shorten >=-0.05mm] ([yshift=3mm]interior.south east)--++(-0.4,-0.1)--++(0.1,-0.2);
44 \path[fill=yellow!50!black,draw=none] (interior.south west) rectangle node[white]{\Huge\bfseries !} ([xshift=4mm]interior.north west);
45 },
46 drop fuzzy shadow,#1}
47 \def\l@macro#1#2{#1\hfill\newline}
48 \newcommand\macrotable{\hypersetup{linkcolor=black}\@starttoc{mac}\hypersetup{linkcolor=Definition}}
49 \newcommand\gh[1]{\href{https://github.com/#1}{@#1}}
50 \newcommand\ghURL[1]{\href{https://github.com/#1}{https://github.com/#1}}
51
52 \providecommand\onethankyou@tmp@content{\relax}
53 \providecommand\onethankyou@content{\relax}
54 \let\dlog\@latex@warning
55 \dlog{OTYC\onethankyou@content:\the\catcode`\@}
56 \gdef\onethankyou#1{\dlog{Reg @oty}\gdef\onethankyou@tmp@content{#1}}
57 \AtEndDocument{\write\@auxout{\string\gdef\string\onethankyou@content{\onethankyou@tmp@content}}}
58
59 \providecommand\thankyous{\relax}
60 \def\print@thankyous{\readlist*\lst\thankyous\foreachitem\itm\in\lst{\if\itm\relax\else\item[-] \itm\fi}}
61 \providecommand\@thankyous@content{\relax}
62 \AtEndDocument{\write\@auxout{\string\gdef\string\thankyous{\@thankyous@content}}}
63 \gdef\thankyou#1{\g@addto@macro\@thankyous@content{#1,}}
64
65 \providecommand\testers{}
66 \providecommand\@testers@content{}
67 \AtEndDocument{\write\@auxout{\string\gdef\string\testers{\@testers@content}}}
68 \gdef\tester#1{\g@addto@macro\@testers@content{#1\,}}
69
70 \gdef\footxt#1{\protected@xdef\@thefnmark{}\@footnotetext{#1}}
71 % --- CHANGELOG TABLE --- %
72 \newcommand*\l@version[2]{%
73 \ifnum \c@tocdepth >\z@
74 \addpenalty\@secpenalty
75 \addvspace{1.0em \@plus\p@}%
76 \setlength\@tempdima{1.5em}%
77 \begingroup
78 \parindent \z@ \rightskip \@pnumwidth
79 \parfillskip -\@pnumwidth
80 \leavevmode \bfseries
81 \advance\leftskip\@tempdima
82 \hskip -\leftskip
83 #1\nobreak\hfil \nobreak\hb@xt@\@pnumwidth{}\par
84 \endgroup
85 \fi}
86 \newcommand*\l@change[2]{%
87 \addvspace{0.5em \@plus\p@}%
88 \leftskip1em--\hspace{0.5em}\begin{minipage}{0.5\textwidth}#1\end{minipage}\hfill%
89 \begin{minipage}{0.3\textwidth}#2\end{minipage}\par%
90 }
91
92 \newcommand\chlogtable{\begin{NoHyper}\@starttoc{chlog}\hypersetup{final}\end{NoHyper}}
93 \def\newversion#1{\addcontentsline{chlog}{version}{#1}}
94 \newcommand\change[2][]{\addtocontents{chlog}{\protect\contentsline{change}{#2}{#1}{section.\thepage}}}
95 % --- /CHANGELOG TABLE --- %
96
97 \let\oldTOC\tableofcontents
98 \renewcommand\tableofcontents{\hypersetup{linkcolor=black}\oldTOC\hypersetup{linkcolor=Definition}}
99 \reversemarginpar
100 \def\updated#1{\tcbdocmarginnote{\bfseries{\color{blue}U}#1}}
101 \definecolor{green(munsell)}{rgb}{0.0, 0.70, 0.47}
102 \def\defnew#1{\tcbdocmarginnote{\bfseries{\color{green(munsell)}New:}#1}}
103
104 \newcommand{\removebs}[1]{\if#1\@backslashchar\else#1\fi}
105 \begingroup\lccode`\|=`\\
106 \lowercase{\endgroup\def\removebs#1{\if#1|\else#1\fi}}
107 \newcommand{\macroname}[1]{\expandafter\removebs\string#1}
108 % \def\obeyifnextspace{\ltx@ifnextchar{ }\relax\relax}
109 \def\dac#1{\docAuxCommand{\macroname{#1}}}
110 \let\mdac\dac
111
112 \makeatother
113
114 \long\def\keyDef#1#2#3#4{\begin{docKey}{#1}{=\meta{#2}}{\meta{default}=#3}#4\end{docKey}}
115 \long\def\optDef#1#2{\begin{docKey*}{#1}{}{}#2\end{docKey*}}
116 \tcbset{documentation listing style=mydocumentation}
117 % Magenta HREF style
118 \let\oldhref\href
119 \gdef\href#1#2{{\color{magenta}\oldhref{#1}{#2}}}
120 \tcbset{documentation listing style=mydocumentation,/tcb/color hyperlink=Definition}
121 \hypersetup{colorlinks=true}
122 % Give section some space
123 \let\oldsection\section
124 \gdef\section{\needspace{0.3\paperheight}\oldsection}
125 \let\oldsubsection\subsection
126 \gdef\subsection{\needspace{0.2\paperheight}\oldsubsection}
127
128
129 \setlength{\parindent}{0pt}
130 \title{{exercisebank - manual\\ v0.3.0{\\[-0.5em]\footnotesize(build 137)}}}
131 \author{Andreas Strauman}
132 \begin{document}
133 \maketitle
134
135 If you found any bugs or want new functionality, to contribute, view the commented source, get latest version of this package or get in touch with me, you can do all of that at \url{https://github.com/Strauman/exercisebank/}. If you have questions of functionality, kindly direct them to the community\\ \url{http://tex.stackexchange.com}. The author is active on this site regularly.
136 If you feel up for it, you can always find the latest development version online, and I always need people to test -- it saves me a lot of time!
137 \makeatletter
138 \if\onethankyou@content\relax\else\par%
139 An extra special thanks to \onethankyou@content who really helps out with this package!
140 \fi
141 \if\thankyous\relax\else\par Special thanks to the people who helps me with this package: \makeatletter\begin{itemize}\print@thankyous\end{itemize}\makeatother\fi
142 \if\testers\relax\else\footxt{People who helped test and make this package better (github users): \testers}\fi
143 \tableofcontents
144 \clearpage
145 \section{Motivation}
146 Exercises are saved as separate files containing part problems. These files can be used to make sets, and you can cherry-pick or exclude certain part problems as you see fit. This makes it easier to maintain and keep your exercises flexible as the syllabus changes.
147
148 \section{Flow/Moderate start}
149 I suspect that working with this package will break you current flow. So let's go throught it.
150
151 Most likely you would want to put all your exercises in a folder. To set the default folder, use \refCom{exercisebanksetup}.
152 In these examples we use \texttt{exercises/}.
153 \begin{dispListing*}{title=exercises/myexercise.tex}
154 \begin{intro}
155 This introduces our problem
156 \end{intro}
157 \begin{problem}
158 This is a partproblem 1,
159 and will be hidden (just wait, you'll see)
160 \end{problem}
161 \begin{problem}
162 This is a partproblem 2.
163 This will not be hidden, but become part problem a!
164 \end{problem}
165 \end{dispListing*}
166 Let's build all of them first. In the main file, (the one where you include this package):
167 \begin{dispListing*}{title=main.tex}
168 \documentclass{article}
169 \usepackage{exercisebank}
170 \exercisebanksetup{exercise directory=exercises}
171 \makeset{myExerciseSet}{myexercise}
172 \begin{document}
173 \buildset{myExerciseSet}
174 \end{document}
175 \end{dispListing*}
176 This builds the entire set, and adds Problem header and partproblem counters ( (1a) and (1b) ) by default.
177 \subsection{Select}
178 Now, let's build only the second problem.
179 \begin{dispListing*}{title=main.tex}
180 \documentclass{article}
181 \usepackage{exercisebank}
182 \exercisebanksetup{exercise directory=exercises}
183 \makeset{myExerciseSet}{\select{myexercise}{2}}
184 \begin{document}
185 \buildset{myExerciseSet}
186 \end{document}
187 \end{dispListing*}
188 This should only build the intro and the one exercise you \refCom*{select}ed!
189
190 Now, say you want to hide the intro. Well all you have to do in this case is
191 make the package treat the intro as a problem in regards to what is \refCom*{select}ed.
192 Just add the optional argument \oarg{intro} to \dac{make}. That is switch
193 \begin{dispListing}
194 \makeset{myExerciseSet}{\select{myexercise}{2}}
195 \end{dispListing}
196 with
197 \begin{dispListing}
198 \makeset[intro]{myExerciseSet}{\select{myexercise}{3}}
199 \end{dispListing}
200 Notice that there are 3 `partproblems' now since we have to count the intro!
201
202 \subsection{Exclude}
203 But what if you have an exercise with 12 partproblems, and you only want to exclude the 7th partproblem? Well, then \dac{Exclude} is here to rescue the day for you.
204 \begin{dispListing}
205 \makeset{myExerciseSet}{\exclude{soManyExercises}{7}}
206 \end{dispListing}
207 Here it's important to note that the [intro] argument would not make the intros disappear. If we wanted to only exclude the intro from our previous example file \texttt{exercises/myexercise.tex} we would do
208 \begin{dispListing}
209 \makeset[intro]{myExerciseSet}{\exclude{myexercise}{1}}
210 \end{dispListing}
211 So we're excluding the partproblem 1. But that's the intro when we send the [intro] optional argument
212
213 \subsection{Displaying numbers}
214 If you have many part problems, counting the problem numbers can be a real hassle. Just use \dac{ShowNumbers}, and a big number will appear in front of every part problem!
215
216 \subsection{Multiple}
217 In \dac{makeset} you can just separate exercises with commas! Here is an example:
218
219 Let's say you have two files with exercises. One located in \texttt{exercises/circuits/RLC.tex} and one in \texttt{exercises/ohm/ohmsGeneralLaw.tex}, and you want to include partproblem 1 through 5 from \texttt{RLC.tex} and all of the exercises from \texttt{ohmsGeneralLaw.tex}.
220
221 \begin{dispListing}
222 \makeset{myExerciseSet}{\select{circuits/RLC}{1,...,5}, ohmsGeneralLaw}
223 \end{dispListing}
224 This will divide it up with problem headers. So that what is in the \texttt{RLC.tex}-file will be Problem 1, and \texttt{ohmsGeneralLaw.tex} Problem 2.
225 \subsection{Mixnmatch}
226 What if you want to make both of them the same exercise? Well, then you pass the [nohead] argument to \dac{makeset}:
227 \begin{dispListing}
228 \makeset[nohead]{myExerciseSet}{\phead, \select{circuits/RLC}{1,...,5}, ohmsGeneralLaw}
229 \end{dispListing}
230 The \dac{phead} command makes a problem header. You can pass them as much as you want:
231
232 \begin{dispListing}
233 \makeset[nohead]{myExerciseSet}{\phead, \select{circuits/RLC}{1,...,5},
234 ohmsGeneralLaw, \phead, someOtherExercise, moreExercises}
235 \end{dispListing}
236
237 \subsection{Solutions}
238 The last thing to cover then is solutions. In your exercise files you just use the solution environment \emph{below} the \refEnv{problem} environment:
239 \begin{dispListing}
240 \begin{problem}
241 Some problem
242 \end{problem}
243 \begin{solution}
244 Solution goes here
245 \end{solution}
246 \end{dispListing}
247 They are hidden by default, so you would have to use \dac{DisplaySolutions} in
248 your main file to display them.
249
250 \subsection{Using \dac{At}}
251 \subsubsection{Making your own front page for a set}
252
253 To create your own front page for each set, you could use the \refKey{front page} key:
254 \begin{dispListing}
255 \exercisebanksetu{front page={path/to/file.tex}}
256 \end{dispListing}\\
257
258 To illustrate how the \dac{At} command works, you could use the following command to execute macros \dac{At}\dac{StartBuildset}\brackets{\meta{FrontPageContents}}. Anything you send in to \dac{At}\dac{StartBuildset} will be executed before the first problem starts:
259 \begin{dispListing}
260 \At\StartBuildset{
261 \input{myFrontpage}
262 }
263 \end{dispListing}
264 \subsubsection{Printing the file name beneath the problem header}
265 Maybe you want to see what files are what problems. One way to do that is hook into the \dac{At}\dac{VeryBeginProblem} and use \refCom{exerciseFile}.This is the command that the headers call, so anything you put in there will be executed right after the headers.
266
267 \begin{dispListing}
268 \At\VeryBeginProblem{
269 \exerciseFile\\
270 }
271 \end{dispListing}
272
273 Note that the \dac{At}\dac{BeginProblem} is executed \emph{before} the headers.
274
275 \subsection{Dynamic figure path}
276 Exercisebank automatically allows you to \dac{input} and \dac{includegraphics} from
277 the same as exercise is in. E.g. if you have a declared the option
278 \begin{dispListing}
279 \exercisebanksetup{exercise directory=exercises}
280 \end{dispListing}
281 and you have a file \texttt{exercises/somedir/myexercise.tex}, you can put a figure in \texttt{exercises/somedir/} or make a directory with the same name as the file \texttt{exercises/somedir/myexercise/}. Then if you put a figure \texttt{exercises/somedir/myfig.png} or \texttt{exercises/somedir/myexercise/myfig.png} you can just do
282 \begin{dispListing}
283 \includegraphics{myfig}
284 \end{dispListing}
285
286 You can change the root dir by doing \\
287 \dac{exercisebanksetup}\brackets{\refKey{figure root directory}=figures}. See the \refKey{figure root directory} key for more info.
288
289 \subsection{Points and tags for exercises}
290 By default since version v0.2.1 there are now points and tags available through the \refCom{nextproblem} command.%
291 To assign a points to a part problem you'd do
292 \begin{dispListing}
293 \nextproblem{points=3,tag=difficult}
294 \begin{problem}
295 This problem is worth 3 points and has the `difficult' tag.
296 \end{problem}
297 \end{dispListing}
298 Then to build all exercises that has the `difficult' and e.g. the `easy' tag one would use the \refCom{buildtags} command.
299 \begin{dispListing}
300 \makeset{myExerciseSet}{ohmsGeneralLaw}
301 \buildtags{dificult,easy}{myExerciseSet}
302 \end{dispListing}
303
304
305 That covers the basics. Enjoy
306 \begin{marker}
307 \dac{begin}\{problem\},\dac{end}\{problem\},\\
308 \dac{begin}\{solution\},\dac{end}\{solution\},\\
309 \dac{begin}\{intro\} and \dac{end}\{intro\} has to be on their own line without any spaces!
310 \end{marker}
311 \section{Reference}
312 \filbreak\subsection{Environments}
313 \addcontentsline{toc}{subsubsection}{\refEnv{intro}}
314 \addcontentsline{toc}{subsubsection}{\refEnv{problem}}
315 \addcontentsline{toc}{subsubsection}{\refEnv{solution}}
316
317
318 \begin{docCommand}{DisplaySolutions}{}\addcontentsline{toc}{subsubsection}{\refCom{DisplaySolutions}}
319
320 Turns on the solutions, so they are shown.
321 \end{docCommand}
322 \begin{docCommand}{SolutionsOnly}{}\addcontentsline{toc}{subsubsection}{\refCom{SolutionsOnly}}
323 \defnew{v0.3.0\\2019/03/18 }
324 Displays only solutions (if there are any) to the part problem
325 \end{docCommand}
326 \begin{docEnvironment}{problem}{}
327 Inside the \dac{keyRef}\{exercise directory\}, you keep your exercises. Inside the exercise file you'd use a problem environment to write your partproblems. It might be a little confusing that you're using \dac{begin}\{problem\} instead of \dac{begin}\{partproblem\} when you're writing a partproblem, but it's less typing.
328 \end{docEnvironment}
329 \begin{docEnvironment}{solution}{}
330 Things inside here is only visible if \refCom{DisplaySolutions} are given before \dac{begin}\{document\}
331 \begin{marker}\dac{end}\{solution\} has to be on it's own line without any leading spaces!\end{marker}
332 \end{docEnvironment}
333 \begin{docEnvironment}{intro}{}
334 Sometimes you'd want to introcude your exercises and tell a little bit about it. Maybe have a figure there also. Those things should go inside this environment. This can be treated as a problem in terms of counting. See \refCom{makeset} for more info.
335 \end{docEnvironment}
336 \filbreak\subsection{Making sets}
337 \begin{docCommand}{makesetdefaults}{\marg{nohead|intro}}\addcontentsline{toc}{subsubsection}{\refCom{makesetdefaults}}
338 \defnew{v0.2.1\\2018/09/24 }
339 Sets the default arguments to all makeset-keys.
340 e.g.
341 \begin{dispListing}
342 \makesetdefaults{intro}
343 \end{dispListing}
344 Will effectively make all
345 \begin{dispListing}
346 \makeset{...}{...}
347 \end{dispListing}
348 into
349 \begin{dispListing}
350 \makeset[intro]{...}{...}
351 \end{dispListing}
352 However, you can override this;
353 \begin{dispListing}
354 \makesetdefaults{intro}
355 \makeset[nointro]{...}{...}
356 \end{dispListing}
357 (the \oarg{nointro} overrides the default \meta{intro} setting)
358 \end{docCommand}
359 \begin{docCommand}{spritesets}{\marg{setlist}}\addcontentsline{toc}{subsubsection}{\refCom{spritesets}}
360
361 This is a command that is used by sprite to determine what sets are shown in sprite. If this is not given, sprite uses all sets given in \dac{makset}
362 \end{docCommand}
363 \begin{docCommand}{makeset}{\oarg{intro,nohead}\marg{filable}}\addcontentsline{toc}{subsubsection}{\refCom{makeset}}
364 \updated{v0.2.0\\2018/07/21 }
365 This command is the one you use to make a set! Later you use \dac{buildset} to build the sets you make. The \meta{filable} argument is either the name of the file relative to the \dac{setExercisesDir}-path (default is nothing, so it's in the root path), or you could use the \dac{select} or \dac{exclude} to respectively cherry pick or exclude exercises. (See their docs).\\
366 \oarg{intro} this counts the intro environment as a part problem, so that you can \dac{select} or \dac{exclude} the intro\\
367 \oarg{nohead} prevents the builder from adding a problem header. This is handy if you want to create an exercise that is composed of multiple parts. You can use the \dac{phead} to insert the problem header where you want it
368 \begin{dispListing}
369 \makeset[nohead]\{\phead, \select{myexercise}{1,2,3}}
370 \end{dispListing}
371 \end{docCommand}
372 \begin{docCommand}{about}{\marg{text}}\addcontentsline{toc}{subsubsection}{\refCom{about}}
373
374 This contains information about an exercise set. It is intended to be on the top of an
375 exercise, explaining short what the exercise is about. It's only visible when using \dac{sprite}
376 \end{docCommand}
377 \begin{docCommand}{buildall}{}\addcontentsline{toc}{subsubsection}{\refCom{buildall}}
378 \defnew{v0.3.0\\2019/03/18 }
379 Build all sets defined with \dac{makeset}
380 \end{docCommand}
381 \begin{docCommand}{sprite}{\oarg{PiP}}\addcontentsline{toc}{subsubsection}{\refCom{sprite}}
382 \updated{v0.1.1\\2018/04/13 }
383 This is a way to visualize all exercises. It takes one optional argument which is how many pages
384 inside one page. Defaults to 4
385 \begin{marker}If \dac{sprite} is used, it should be the only command in \dac{begin}\{document\}\dac{end}\{document\}\end{marker}
386 \end{docCommand}
387 \begin{docCommand}{exec}{\marg{macros}}\addcontentsline{toc}{subsubsection}{\refCom{exec}}
388 \updated{v0.2.1\\2018/09/24 }
389 You can use this in \dac{makeset} to execute commands between problems.
390 E.g. to insert a new page in between two problems when using nohead:
391 \begin{dispListing}
392 \makeset[nohead]{2}{\phead,my/exercise,\exec{\clearpage},next/exercise}
393 \end{dispListing}
394 \end{docCommand}
395 \begin{docCommand}{DeclareExerciseCommand}{\marg{command}\oarg{numargs}\marg{actions}}\addcontentsline{toc}{subsubsection}{\refCom{DeclareExerciseCommand}}
396 \updated{v0.2.1\\2018/09/24 }
397 Now, use similar to newcommand. Does not support default arguments yet, but plans to.
398 The old way of defining still works:
399 \begin{dispListing}
400 \DelcareExerciseCommand{\pbreak}\brackets{\clearpage}
401 \end{dispListing}
402 and
403 \begin{dispListing}
404 \DelcareExerciseCommand{\ptitle}[1]\brackets{\Large\textbf{#1}}
405 \end{dispListing}
406 This can be used later in makesets. E.g.
407 \dac{DelcareExerciseCommand}\{\dac{pbreak}\}\brackets{\dac{clearpage}} will make
408 \dac{pbreak} behave like \dac{clearpage} in the set:
409 \begin{dispListing}
410 \makeset[nohead]{%
411 \phead,
412 myExercise,
413 \pbreak,
414 myExerciseOnNewPage%
415 }
416 \end{dispListing}
417 \end{docCommand}
418 \begin{docCommand}{exclude}{\marg{exerciseFileName}\marg{Comma separated numbers}}\addcontentsline{toc}{subsubsection}{\refCom{exclude}}
419 \updated{v0.2.0\\2018/07/21 }
420 As you can see in the intro section of the documentation, this is for excluding partproblems
421 To be used in \refCom{makeset}
422 \end{docCommand}
423 \begin{docCommand}{select}{\marg{exerciseFileName}\marg{Comma separated numbers}}\addcontentsline{toc}{subsubsection}{\refCom{select}}
424 \updated{v0.2.0\\2018/07/21 }
425 As you can see in the intro section of the documentation, this is for cherry picking partproblems
426 To be used in \refCom{makeset}
427 \end{docCommand}
428 \begin{docCommand}{buildset}{\oarg{intro|nohead|nointro}\marg{setname}}\addcontentsline{toc}{subsubsection}{\refCom{buildset}}
429 \updated{v0.3.0\\2019/03/18 }
430 This command runs the set given. The set has do be defined by \dac{makeset}. E.eg
431 \begin{dispListing}
432 \makeset{myExerciseSet}{exercisefile1, \select{exercisefile2}{1,2}}
433 \!begin{document}
434 \buildset{myExerciseSet}
435 \!end{document}
436 \end{dispListing}
437 \end{docCommand}
438 \begin{docCommand}{setName}{}\addcontentsline{toc}{subsubsection}{\refCom{setName}}
439
440 This variable prints out the name of your set that you sent to \dac{buildset}.
441 The following example prints "Exercise set number 1" and "Exercise set number 2" on the top of each set
442 \begin{dispListing}
443 \At\StartBuildset{
444 Exercise set number \setName
445 }
446 %... \makesets here ...%
447 \begin{document}
448 \buildset{1}{myexercise}
449 \buildset{2}{myexercise}
450 \end{document}
451 \end{dispListing}
452 \end{docCommand}
453 \begin{docCommand}{buildsets}{\oarg{intro|nohead|nointro}\marg{list}}\addcontentsline{toc}{subsubsection}{\refCom{buildsets}}
454 \updated{v0.2.1\\2018/09/24 }
455 This command will generate multiple sets:
456 \begin{dispListing}
457 \buildsets{set,set2,set3}
458 \end{dispListing}
459 \end{docCommand}
460 \begin{docCommand}{buildtags}{\marg{tagslist}\marg{setslist}}\addcontentsline{toc}{subsubsection}{\refCom{buildtags}}
461 \updated{v0.2.2\\2018/10/04 }
462 This command will generate multiple sets:
463 \begin{dispListing}
464 \buildsets{tag,tag2,tag3}{set,set2,set3}
465 \end{dispListing}
466 \end{docCommand}
467 \begin{docCommand}{buildsprite}{\marg{setslist}}\addcontentsline{toc}{subsubsection}{\refCom{buildsprite}}
468 \defnew{v0.3.0\\2019/03/18 }
469 Builds a sprite from the given comma separated list of sets
470 \end{docCommand}
471 \begin{docCommand}{pplabel}{\marg{label}}\addcontentsline{toc}{subsubsection}{\refCom{pplabel}}
472
473 Labels a partproblem. You can reference to it later using \dac{ppref}\{\meta{label\}}
474 \end{docCommand}
475 \begin{docCommand}{ppref}{\marg{label}}\addcontentsline{toc}{subsubsection}{\refCom{ppref}}
476 \updated{v0.2.0\\2018/07/21 }
477 Reference a partproblem created by \dac{pplabel}\{\meta{label\}}. This prints e.g. 1c)
478 \end{docCommand}
479 \begin{docCommand}{ppgref}{\marg{label}}\addcontentsline{toc}{subsubsection}{\refCom{ppgref}}
480 \defnew{v0.3.0\\2019/03/18 }
481 Reference a partproblem created by \dac{pplabel}\{\meta{label\}}. This can be used for \emph{global} exercises.
482 \end{docCommand}
483 \begin{docCommand}{pref}{\marg{label}}\addcontentsline{toc}{subsubsection}{\refCom{pref}}
484
485 Reference a partproblem created by \dac{pplabel}\{\meta{label\}}. This prints e.g. 1
486 \end{docCommand}
487 \begin{docCommand}{pgref}{\marg{label}}\addcontentsline{toc}{subsubsection}{\refCom{pgref}}
488 \defnew{v0.3.0\\2019/03/18 }
489 Reference a partproblem created by \dac{pplabel}\{\meta{label\}}. This prints e.g. 1, but have global search.
490 \end{docCommand}
491 \begin{docCommand}{HideTags}{\marg{list}}\addcontentsline{toc}{subsubsection}{\refCom{HideTags}}
492 \updated{v0.3.0\\2019/03/18 }
493 Hide all exercises containing the list of tags when building a set.
494 \end{docCommand}
495 \begin{docCommand}{ShowAllTags}{}\addcontentsline{toc}{subsubsection}{\refCom{ShowAllTags}}
496 \defnew{v0.3.0\\2019/03/18 }
497 Reset tags set by \dac{HideTags}
498 \end{docCommand}
499 \begin{docCommand}{exercisenote}{}\addcontentsline{toc}{subsubsection}{\refCom{exercisenote}}
500 \defnew{v0.3.0\\2019/03/18 }
501 Adds a note below an exercise header. To be used in \dac{makeset}
502 \begin{dispListing}
503 \makeset{\exercisenote{This is a pretty hard exercise}, my/hard/exercise}
504 \end{dispListing}
505 Here the text inside \dac{exercisenote} (This is a pretty hard exercise) will show
506 right below the problem header of my/hard/exercise.tex
507 \end{docCommand}
508 \filbreak\subsection{Configuration and options}
509 You can do a lot of configurations on this package, and probably
510 even more to come in later versions!
511 \begin{docCommand}{ShowNumbers}{}\addcontentsline{toc}{subsubsection}{\refCom{ShowNumbers}}
512 \updated{v0.2.1\\2018/09/24 }
513 Shows the numbers in fron of the part problems and intros that should be used with
514 \dac{exclude} and \dac{select}
515 \end{docCommand}
516 \begin{docCommand}{ShowTags}{}\addcontentsline{toc}{subsubsection}{\refCom{ShowTags}}
517 \updated{v0.3.0\\2019/03/18 }
518 Shows the tags in front of the part problems much like \dac{ShowNumbers}
519 \end{docCommand}
520 \begin{docCommand}{ShowFilenames}{}\addcontentsline{toc}{subsubsection}{\refCom{ShowFilenames}}
521 \updated{v0.3.0\\2019/03/18 }
522 Shows the path+filename to the current exercise file
523 \end{docCommand}
524 \begin{docCommand}{exercisebanksetup}{\marg{\oarg{key/values}}}\addcontentsline{toc}{subsubsection}{\refCom{exercisebanksetup}}
525 \updated{v0.2.1\\2018/09/24 }
526 Here is a list of the different keys and their meaning
527 \keyDef{part problems}{On/Off}{On}{
528 This is whether or not to do part problems. E.g. 1a), 1b) etc.
529 If this is turned Off, then the part problems will be treated as problems
530 }
531 \keyDef{tighten paragraphs}{True/False}{True}{
532 Disabling this will prevent
533 the package from attempting to prevent part problems to scatter across pages
534 }
535 \keyDef{problem header}{macro}{see below}{
536 This sets the problem header. To access the translation of the problem text, use \dac{@tr}\{Problem\}, and
537 the problem counter is accessed with \dac{theproblemcounter}.\\
538 Defaults to\\
539 \brackets{\dac{normalfont}\dac{Large}\dac{bfseries}\dac{@tr}\{Problem\}~\dac{theproblemcounter}}.
540 }
541 \keyDef{problem needs space}{dimension}{0.2\dac{pageheight}}{
542 How much space has to be left on the page for a problem to start
543 }
544 \keyDef{no needspace}{bool}{false}{
545 Don't use \dac{needspace} command (only used in \refKey{problem needs space})
546 }
547 \keyDef{part problem header}{macro}{see below}{
548 This sets the problem header. To access the current problem, use \dac{theproblemcounter}, and then the current
549 part problem \dac{thepartproblemcounter}. To make it a letter, as per default use \dac{alph}\{partproblemcounter\}\\
550 Default is:\\
551 \dac{large}\dac{textbf}\{(\dac{theproblemcounter}\dac{alph}{partproblemcounter\})}
552 }
553 \keyDef{part problem header suffix}{macro}{\meta{empty}}{
554 This sets the suffix problem header, and defaults to be the number of points
555 the current exercise is worth.
556 Default is \meta{empty}
557 }
558 \keyDef{solution header}{string}{see below}{
559 \dac{large}\{\dac{textbf}{\dac{@tr}\brackets{Solution:\}}}
560 \dac{@tr} is the translation macro
561 }
562 \keyDef{exercise directory}{dir}{./}{
563 This key is used for setting the default exercise directory.
564 }
565 \keyDef{figure root directory}{dir}{\meta{exercise directory}}{
566 Exercisebank automatically allows you to \dac{input}{} and \dac{includegraphics}{} from
567 the same folder folder that your exercise is in, as well as a folder with the
568 same name as the exercise file. This is elaborated in the intro section.
569 However, you might want to put the figures inside a different directory.
570 For example if you have one directory containing your problems called \texttt{exercises/},
571 set with \refKey{exercise directory}, and a file containing the exercise:
572 \texttt{exercises/faradaysLaw/ACGenerate.tex}.
573 Then by default figures in the directories \texttt{exercises/faradaysLaw/} and
574 \texttt{exercises/faradaysLaw/ACGenerate/} can be included by just doing \dac{includegraphics}.
575 And if you want to change the root of this directory to be \texttt{figures}, such that
576 exercisebank looks for figures in \texttt{figures/faradaysLaw/} and \texttt{figures/faradaysLaw/ACGenerate/}
577 You would use this option in the setup:\\
578 \dac{exercisebanksetup}\{figure root directory=figures\}
579 }
580 \begin{dispListing}
581 \exercisebanksetup{
582 exercise directory=exercises,
583 part problems=Off,
584 solution header={\textbf{SOL:}}
585 }
586 \end{dispListing}
587 \keyDef{use margins}{True/False}{True}{
588 Whether or not to put the part problem labels and the problem headers outside the
589 normal margins.
590 }
591 \keyDef{front page}{file}{}{
592 Path to a front page that will be loaded at every \dac{buildset}
593 Where to load the front page. The commands \refCom{setName} is available.
594 }
595 \keyDef{style margins}{true|false}{true}{
596 Whether or not to put problem headers and part problem headers out in the margins.
597 }
598 \keyDef{show lonely part problems}{true|false}{false}{
599 Whether or not to show part problems if there is only one part problem within the problem.
600 }
601 \end{docCommand}
602 \keyDef{current points style}{style}{see below}{
603 This is how the points will be shown in the part problem headers.
604 the default code is by \gh{thorstengrote} (see example below)
605 }
606 \begin{dispListing}
607 ~\ifnum\exb@currentPoints=\z@%
608 \ifnum\totalpoints=\z@\else%
609 \phantom{0p}%
610 \fi%
611 \else%
612 \exb@currentPoints p%
613 \fi~\ignorespaces
614 \end{dispListing}
615 \keyDef{disable points}{bool}{false}{
616 Whether or not to disable the point system.
617 }
618
619
620 \filbreak\subsection{Internationalization}
621 \begin{docCommand}{translateExBank}{\marg{Translation key/vals}}\addcontentsline{toc}{subsubsection}{\refCom{translateExBank}}
622
623 This is to translate the text inside the package. As of now the available key/values are
624 \begin{itemize}
625 \item Problem
626 \item Solution
627 \end{itemize}
628 The Norwegian translation would then be done with
629 \begin{dispListing}
630 \translateExBank{Problem=Oppgave, Solution=Løsning}
631 \end{dispListing}
632 \end{docCommand}
633 \filbreak\subsection{Problem options: points and tagging}
634 \begin{docCommand}{nextproblem}{}\addcontentsline{toc}{subsubsection}{\refCom{nextproblem}}
635 \updated{v0.3.0\\2019/03/18 }
636 Prior to a problem environment in an exercise file you can pass options
637 using the \dac{nextproblem} command. If you e.g. wanted to hide one regardless
638 of what set it is you'd do
639 \begin{dispListing}
640 \nextproblem{hide}
641 \begin{problem}
642 This problem will be hidden because of the \nextproblem command
643 \end{problem}
644 \end{dispListing}
645 you can also tag problems using this:
646 \begin{dispListing}
647 \nextproblem{tag=hard}
648 \begin{problem}
649 This problem is hard
650 \end{problem}
651 \nextproblem{tag=hard}
652 \begin{problem}
653 This problem is also hard
654 \end{problem}
655 \nextproblem{tag=easy}
656 \begin{problem}
657 This problem is easy
658 \end{problem}
659 \end{dispListing}
660 And you could now build, say, only easy problems using
661 \dac{buildtags}\{hard\}\{SETNAME\}, where SETNAME is chosen by a
662 \dac{makeset} command.
663 \end{docCommand}
664 You can also have multiple tags per exercise
665 \begin{dispListing}
666 \nextproblem{tag={tag1,tag2}}
667 \begin{problem}
668 This problem is easy
669 \end{problem}
670 \end{dispListing}
671 \keyDef{head}{text}{}{
672 Set the part problem header for the next problem.
673 }
674 \keyDef{solution only}{true|false}{}{
675 hide next problem unless \dac{DisplaySolutions} are on
676 }
677 Here are the \dac{nextproblem} keys:
678 \keyDef{points}{number}{0}{
679 The number of points the next exercise is worth.
680 you can retrieve the total points using \dac{totalpoints}
681 }
682
683
684 \begin{docCommand}{totalpoints}{}\addcontentsline{toc}{subsubsection}{\refCom{totalpoints}}
685
686 Contains the total number of points for all exercises in the current set
687 \end{docCommand}
688 \begin{docCommand}{exercisepoints}{}\addcontentsline{toc}{subsubsection}{\refCom{exercisepoints}}
689 \defnew{v0.3.0\\2019/03/18 }
690 Contains the total number of points in the current exercise (or "Problem")
691 \end{docCommand}
692 \filbreak\subsection{Triggers}
693 \begin{docCommand}{Trigger}{\marg{Any Macro}}\addcontentsline{toc}{subsubsection}{\refCom{Trigger}}
694 \updated{v0.2.1\\2018/09/24 }
695 See \refCom{At}\\
696 Available triggers:\\
697 \dac{Trigger}\dac{PartProblemHeaderSuffix}:\\ Triggers after the part problem header.
698 anything added to this trigger will happen within the header
699 \dac{Trigger}\dac{PostPPHeader}:\\ Triggers right after the part problem header
700 has been printed. It is also triggered after the PP header for SolutionsOnly.
701 \dac{Trigger}\dac{BeginPartproblem}:\\ Triggers before a partproblem is inserted\\
702 \dac{Trigger}\dac{VeryBeginPartproblem}:\\ Triggers right after \dac{BeginPartproblem}. This is so that the user can do stuff before the actual headers start. The partproblem headers are invoked by \dac{At}\dac{VeryBeginPartproblem}\\
703 \dac{Trigger}\dac{InputExercise}:\\ Triggers before a file is included\\\
704 \dac{Trigger}\dac{BeginProblem}:\\ Triggers before a file is included, but only if problem headers are to be written (no [nohead] given)\\
705 \dac{Trigger}\dac{EndProblem}:\\ Triggers right after problem is included if [nohead] \emph{not} given\\
706 \dac{Trigger}\dac{BeginBuildset}:\\ Triggers right before a set has begun building (not if \dac{sprite} is used). You might want to put your set-header here\\
707 \dac{Trigger}\dac{EndBuildset}:\\ Triggers when a set has stopped building (not if \dac{sprite} is used)\\
708
709
710 \end{docCommand}
711 \begin{docCommand}{exb@ClearHook}{}\addcontentsline{toc}{subsubsection}{\refCom{exb@ClearHook}}
712
713 Deletes all information from a hook.
714 Note that if preceded by \dac{rigid}, then the
715 ENTIRE hook will be cleared.
716 Note that the necessary hooks might not be
717 registered as rigid. Thus show caution when deleting hooks
718 \end{docCommand}
719 \filbreak\subsection{General reference}
720 \begin{docCommand}{ownLineNoSpacesGotIt}{}\addcontentsline{toc}{subsubsection}{\refCom{ownLineNoSpacesGotIt}}
721
722 This is to annoy the user enough to get his attention about the requirements of the \refEnv{problem}, \refEnv{solution} and \refEnv{intro} environments.\\
723 \end{docCommand}
724 \begin{marker}DEPRECATED! use \refCom{exercisebanksetup} with \refKey{exercise directory} instead!\end{marker}
725 \begin{docCommand}{setExercisesDir}{\marg{directory}}\addcontentsline{toc}{subsubsection}{\refCom{setExercisesDir}}
726
727 \begin{marker}\dac{setExercisesDir} is deprecated! use \refCom{exercisebanksetup} with \refKey{exercise directory} instead!\end{marker}
728 This is the directory, relative to the file you included the package,
729 where the package should be looking for exercises. Default is the same directory as your main file (the one you build).
730 \end{docCommand}
731 \begin{docCommand}{exb@isin}{\marg{haystack}\marg{needle}\marg{True}\marg{False}}\addcontentsline{toc}{subsubsection}{\refCom{exb@isin}}
732
733 \meta{haystack} is a comma separated list of anything\\
734 \meta{needle} is an integer\\
735 Executes \meta{True} if \meta{needle} is found in \meta{haystack}
736 else executes \meta{False}
737 \end{docCommand}
738 \begin{docCommand}{exercisebankversion}{}\addcontentsline{toc}{subsubsection}{\refCom{exercisebankversion}}
739 \defnew{v0.3.0\\2019/03/18 }
740 Prints the current version and build to the error log
741 \end{docCommand}
742 \begin{docCommand}{exercisebankbuild}{}\addcontentsline{toc}{subsubsection}{\refCom{exercisebankbuild}}
743 \defnew{v0.3.0\\2019/03/18 }
744 Prints the current build number to the error log
745 \end{docCommand}
746 This package also includes some extra stuff. For example the \dac{At} and \dac{Trigger}
747 \begin{docCommand}{At}{\marg{AnyMacro}}
748 \updated{v0.2.1\\2018/09/24 }Here you can send any macro because it isn't evaluated! For example \dac{At}\dac{BeginSomething} is fine and even if \dac{BeginSomething} is not defined. Also and when using \dac{Trigger} it just ignores it if it didn't exist. It's pretty similar in function as to \dac{AtBeginDocument}.
749 \begin{dispListing}
750 \At\BeginSomething{DoSomething}
751 Which is triggered with
752 \Trigger\BeginSomething, this evaluates to DoSomething
753 \end{dispListing}
754 \end{docCommand}
755 \begin{docCommand}{@rigid}{}\addcontentsline{toc}{subsubsection}{\refCom{@rigid}}
756 \defnew{v0.3.0\\2019/03/18 }
757 Used to make \dac{At} so that the contents won't be deleted
758 with \dac{ClearHook}. Note that the necessary hooks might not be
759 registered as rigid. Thus show caution when deleting hooks
760 \end{docCommand}
761 \begin{docCommand}{thisfilepath}{}\addcontentsline{toc}{subsubsection}{\refCom{thisfilepath}}
762
763 Contains the path to the exercisefile relative to the build file.
764 Useful for inputing files in the same directory as an exercisefile.
765 \end{docCommand}
766 \begin{docCommand}{exerciseFile}{}\addcontentsline{toc}{subsubsection}{\refCom{exerciseFile}}
767
768 This is a `read-only' macro that contains the name of the current exerciseFile
769 \end{docCommand}
770 \filbreak\subsection{Counters}
771 \docCounter{problemcounter}-counter holds the current problem number and
772 \docCounter{partproblemcounter}-counter holds the current partproblem \emph{number}.
773 \filbreak\subsection{Lengths and margins}
774 Note that these are all \emph{\!\dac{textbf}\{lengths\}}
775 and should be used as e.g.
776 \begin{dispListing}
777 \setlength{\pMarginBelow}
778 \end{dispListing}
779 \begin{docCommand}{pMarginBelow}{}\addcontentsline{toc}{subsubsection}{\refCom{pMarginBelow}}
780
781 Distance below Problem \# header
782 \end{docCommand}
783 \begin{docCommand}{pMarginAbove}{}\addcontentsline{toc}{subsubsection}{\refCom{pMarginAbove}}
784
785 Distance above Problem \# header
786 \end{docCommand}
787 \begin{docCommand}{pMarginLeft}{}\addcontentsline{toc}{subsubsection}{\refCom{pMarginLeft}}
788
789 Problem header: distance from the default left margin
790 \end{docCommand}
791 \begin{docCommand}{ppMarginBelow}{}\addcontentsline{toc}{subsubsection}{\refCom{ppMarginBelow}}
792
793 Part problem: distance from the end of the part problem to the next item
794 \end{docCommand}
795 \begin{docCommand}{ppMarginAbove}{}\addcontentsline{toc}{subsubsection}{\refCom{ppMarginAbove}}
796
797 Part problem: distance above the start of the part problem to the previous item
798 \end{docCommand}
799 \begin{docCommand}{ppMargin}{}\addcontentsline{toc}{subsubsection}{\refCom{ppMargin}}
800
801 Part problem: how far away from the text the part problem labels are (horisontally).
802 \end{docCommand}
803 \begin{docCommand}{introOutdent}{}\addcontentsline{toc}{subsubsection}{\refCom{introOutdent}}
804
805 The offset of margins for intros
806 \end{docCommand}
807 \filbreak\subsection{Macro definitions}
808
809 \addcontentsline{mac}{macro}{\refCom{@rigid}}{}
810 \addcontentsline{mac}{macro}{\refCom{At}}{}
811 \addcontentsline{mac}{macro}{\refCom{DeclareExerciseCommand}}{}
812 \addcontentsline{mac}{macro}{\refCom{DisplaySolutions}}{}
813 \addcontentsline{mac}{macro}{\refCom{HideTags}}{}
814 \addcontentsline{mac}{macro}{\refCom{ShowAllTags}}{}
815 \addcontentsline{mac}{macro}{\refCom{ShowFilenames}}{}
816 \addcontentsline{mac}{macro}{\refCom{ShowNumbers}}{}
817 \addcontentsline{mac}{macro}{\refCom{ShowTags}}{}
818 \addcontentsline{mac}{macro}{\refCom{SolutionsOnly}}{}
819 \addcontentsline{mac}{macro}{\refCom{Trigger}}{}
820 \addcontentsline{mac}{macro}{\refCom{about}}{}
821 \addcontentsline{mac}{macro}{\refCom{buildall}}{}
822 \addcontentsline{mac}{macro}{\refCom{buildset}}{}
823 \addcontentsline{mac}{macro}{\refCom{buildsets}}{}
824 \addcontentsline{mac}{macro}{\refCom{buildsprite}}{}
825 \addcontentsline{mac}{macro}{\refCom{buildtags}}{}
826 \addcontentsline{mac}{macro}{\refCom{exb@ClearHook}}{}
827 \addcontentsline{mac}{macro}{\refCom{exb@isin}}{}
828 \addcontentsline{mac}{macro}{\refCom{exclude}}{}
829 \addcontentsline{mac}{macro}{\refCom{exec}}{}
830 \addcontentsline{mac}{macro}{\refCom{exerciseFile}}{}
831 \addcontentsline{mac}{macro}{\refCom{exercisebankbuild}}{}
832 \addcontentsline{mac}{macro}{\refCom{exercisebanksetup}}{}
833 \addcontentsline{mac}{macro}{\refCom{exercisebankversion}}{}
834 \addcontentsline{mac}{macro}{\refCom{exercisenote}}{}
835 \addcontentsline{mac}{macro}{\refCom{exercisepoints}}{}
836 \addcontentsline{mac}{macro}{\refCom{introOutdent}}{}
837 \addcontentsline{mac}{macro}{\refCom{makeset}}{}
838 \addcontentsline{mac}{macro}{\refCom{makesetdefaults}}{}
839 \addcontentsline{mac}{macro}{\refCom{nextproblem}}{}
840 \addcontentsline{mac}{macro}{\refCom{ownLineNoSpacesGotIt}}{}
841 \addcontentsline{mac}{macro}{\refCom{pMarginAbove}}{}
842 \addcontentsline{mac}{macro}{\refCom{pMarginBelow}}{}
843 \addcontentsline{mac}{macro}{\refCom{pMarginLeft}}{}
844 \addcontentsline{mac}{macro}{\refCom{pgref}}{}
845 \addcontentsline{mac}{macro}{\refCom{ppMargin}}{}
846 \addcontentsline{mac}{macro}{\refCom{ppMarginAbove}}{}
847 \addcontentsline{mac}{macro}{\refCom{ppMarginBelow}}{}
848 \addcontentsline{mac}{macro}{\refCom{ppgref}}{}
849 \addcontentsline{mac}{macro}{\refCom{pplabel}}{}
850 \addcontentsline{mac}{macro}{\refCom{ppref}}{}
851 \addcontentsline{mac}{macro}{\refCom{pref}}{}
852 \addcontentsline{mac}{macro}{\refCom{select}}{}
853 \addcontentsline{mac}{macro}{\refCom{setExercisesDir}}{}
854 \addcontentsline{mac}{macro}{\refCom{setName}}{}
855 \addcontentsline{mac}{macro}{\refCom{sprite}}{}
856 \addcontentsline{mac}{macro}{\refCom{spritesets}}{}
857 \addcontentsline{mac}{macro}{\refCom{thisfilepath}}{}
858 \addcontentsline{mac}{macro}{\refCom{totalpoints}}{}
859 \addcontentsline{mac}{macro}{\refCom{translateExBank}}{}
860
861 \macrotable
862
863
864 % \newgeometry{lmargin=0.7cm}
865 \section{Changelog}
866 %!TEX root = exercisebank-doc.tex
867 \newversion{v0.0.2b11 2018/04/02}
868 \change{Updated documentation syntax.}
869 \newversion{v0.0.3b38 2018/04/03}\nobreak
870 \change{Updated triggers doc}
871 \change{added trigger \dac{VeryBeginPartproblem}}
872
873 \newversion{v0.0.3b40 2018/04/03}
874 \change{Added examples that uses the \refCom{At} command.}
875 \change{Making front page and other snacks}
876
877 \newversion{v0.0.4b44 2018/04/03}
878 \change{Changed design of part problems. (Looks much better now!)}
879
880 \newversion{v0.0.5b46 2018/04/03}
881 \change{Fixed partproblems and solutions to fit on pages using \dac{filbreak}.}
882
883 \newversion{v0.1.0 2018/04/08}
884 \change{Fixed title of documentation to match actual package.}
885 \change{Fixed weird paragraph styling when displaying solutions}
886 \change{Added a few package options. More to come!}
887
888 \newversion{v0.1.1 2018/04/13}
889 \change{Added \refCom{exec}, which allows the user to execute macros between problems}
890 \change{Bug fix: \refCom{At} would cause crash due to latexmk multiple builds}
891 \change{Bug fix: \refCom{sprite} wouldn't build correctly}
892 \change{Bug fix: misc bugs involving \refCom{makeset}, \refCom{buildset}, nohead and \refCom{phead}}
893
894 \newversion{v0.1.2 2018/04/17}
895 \change{Fixed bug that \refCom{select} and \refCom{exclude} not working as expected.}
896 \change{Added \refCom{ShowNumbers} for displaying numbers related to use in \refCom{select} and \refCom{exclude}}
897
898 \newversion{v0.1.3 2018/04/20}
899 \change{Added custom dynamic figure path \refKey{figure root directory}.}
900 \change{Fixed bugs related to \refCom*{phead} and the commands used in \refCom{makeset}-lists.}
901 \newversion{V0.1.4 2018/04/28}
902 % \change{Introduced solutions only: \refCom{SolutionsOnly}}
903 \change{Updated margins a lot!}
904 \change{Fixed sneaky space in translation}
905 \change{Fixed paragraph tightening when displaying solutions}
906 \change{Introduced \refCom{DeclareExerciseCommand}}
907 \change{Fixed bug with \refCom{exec}}
908 \change{Iteration over items now uses a more lighweight approach.}
909 \change{For commands that takes `lists' as arguments (\refCom{makeset}, \refCom{select} and \refCom{exclude}), the last item of the list can be terminated with new line or spaces without problems.}
910 \change{For commands that takes `lists' as arguments, the entries in the list are now trimmed whitespaces on both sides.}
911 \newversion{v0.2.0 2018/07/21}
912 \change{Fixed bug where \refCom{ppref} did not reference letter in part problem.}
913 \change{Introducing \refCom{buildsets}-command for building more than one set at a time.}
914 \change{Ability to add front page with the \refKey{front page} setup-key.}
915 \change{You can now remove the forced margin setup with \refKey{style margins}.}
916 \newversion{v0.2.1 2018/09/24}
917 \change{Added options for individual part problems using the \dac{nextproblem}-command}
918 \change{Added tagging for part problems using using the \dac{nextproblem}-command and \dac{buildtags}-commands.}
919 \change{Fixed problems related to \dac{ShowNumbers} not showing correctly.}
920 \change{Fixed \dac{exec} so that it now can take paragraphs (made it \dac{long})}
921 \change{Added point system}
922 \change{Fixed bug where vertical space would remain when intro environment hidden}
923 \change{\dac\DeclareExerciseCommand~now takes args}
924 \change{Keys sent to \dac\makeset can now be sent to \dac\buildset~and~\dac\buildsets}
925 \change{Introducing \dac\makesetdefaults}
926 \newversion{v0.2.2 2018/10/04}
927 \change{Made trailing commas ignored in all lists (\dac\makeset,\dac\buildset,\dac\select,\dac\exclude, etc.)}
928 \change{Fixed bug where tags wouldn't hide.}
929 \newversion{v0.3.0 2019/03/18}
930 \change{Added possibility of custom part problem header from \dac\nextproblem}
931 \change{Added possibility of showing problem only when \dac\DisplaySolutions active}
932 \change{Corrected use of the length \dac\ppMarginBelow}
933 \change{Fixed bug where \dac\phead and \dac\ShowFilenames crash}
934 \change{Introduced \dac\SolutionsOnly}
935 \change{Fixed bug where part problem header repeats if solution is itemize.}
936 \change{Introduced the \dac\@rigid command for the \dac\At functionality. Also the \dac\ClearHook for deleting a hook}
937 \change{\dac\buildset now gives error if set does not exist.}
938 \change{Made \dac\HideTags cummulative.}
939 \change{Created \dac\ShowAllTags for clearing tags list}
940 \change{Raises error when pdfTeX(or pdfLaTeX) is not used}
941 \change{Allow underscore for files in \dac\makeset}
942 \change{Added \dac\exercisepoints for getting total number of points in an exercise/problem.}
943 \change{added \dac\pgref and \dac\ppgref}
944 \change{Margins now more manageable}
945 \change{Prevent overwriting of \dac\graphicspath}
946 \change{Set (append) to \dac\input@path no matter what.}
947 % \change{Fixed bug where part problem headers showing weird if problem started with envs. like enumerate or a figure.}
948 \change{Added command \dac\buildall to build all sets}
949 \change{Moved tag placement for when \dac\ShowTags active}
950 \change{Adjusted margins.}
951 \change{Activated \dac\ppMarginAbove (it now does something)}
952 \change{Added \dac\exercisebankversion and \dac\exercisebankbuild}
953 \change{Part problem header now showing if only one part problem is displayed}
954 \change{Possibility to toggle whether part problem header showing if only one part problem is displayed \refKey{show lonely part problems}}
955 \change{Fixed TeX capacity exceeded error for long exercises.}
956 \change{Added \dac\thisfilepath for getting path of current exercisefile}
957 \change{Changed default spacing}
958 \change{Added \dac\buildsprite}
959 \chlogtable
960
961
962 % Testers and thanks
963 \tester{\gh{thorstengrothe}}
964 \onethankyou{\gh{tristelune1}}
965 % \thankyou{}
966 \end{document}