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
|
# exercisebank package
# Matthew Bertucci 4/13/2022 for v0.3.0
#include:xstring
#include:pgffor
#include:scrextend
#include:comment
#include:calc
#include:pgfpages
#include:geometry
#include:listofitems
#include:trimspaces
#include:needspace
## Environments ##
\DisplaySolutions
\SolutionsOnly
\begin{problem}
\end{problem}
\begin{solution}
\end{solution}
\begin{intro}
\end{intro}
## Making sets ##
\makesetdefaults{}
\spritesets{}
\makeset{name}{file}#i
\makeset[options%keyvals]{name}{file}#i
\phead
\about{text}
\buildall
\sprite
\sprite[number]
\exec{code}
\DeclareExerciseCommand{cmd}{def}#d
\DeclareExerciseCommand{cmd}[args]{def}#d
\exclude{file}{list of numbers}
\select{file}{list of numbers}
\buildset{name}
\buildset[options%keyvals]{name}
\setName
\buildsets{list of names}
\buildsets[options%keyvals]{list of sets}
\buildtags{list of tags}{list of sets}
\buildsprite{list of sets}
\pplabel{label}#l
\ppref{label}#r
\ppgref{label}#r
\pref{label}#r
\pgref{label}#r
\HideTags{list of tags}
\ShowAllTags
\exercisenote{text}
## Configuration and options ##
\ShowNumbers
\ShowTags
\ShowFilenames
\exercisebanksetup{options%keyvals}
#keyvals:\exercisebanksetup
part problems
tighten paragraphs
problem header
problem needs space
no needspace
part problem header
part problem header suffix
solution header
exercise directory
figure root directory
use margins
front page
style margins
show lonely part problems
current points style
disable points
#endkeyvals
## Internationalization ##
\translateExBank{keyvals}
#keyvals:\translateExBank
#endkeyvals
## Problem options: points and tagging ##
\nextproblem{options%keyvals}
#keyvals:\nextproblem#c
head=%<text%>
solution only
points=%<number%>
hide
tag=%<tag%>
tag={%<tag1,tag2,...%>}
#endkeyvals
\totalpoints
\exercisepoints
## Triggers ##
\Trigger%<\macro%>
\PartProblemHeaderSuffix
\PostPPHeader
\BeginPartproblem
\VeryBeginPartproblem
\InputExercise
\BeginProblem
\EndProblem
\BeginBuildset
\EndBuildset
## General reference ##
\ownLineNoSpacesGotIt
\exercisebankversion#*
\exercisebankbuild#*
\At%<\macro%>
\thisfilepath
\exerciseFile
## Counters ##
\theproblemcounter#*
\thepartproblemcounter#*
## Lengths and margins ##
\pMarginBelow#*
\pMarginAbove#*
\pMarginLeft#*
\ppMarginBelow#*
\ppMarginAbove#*
\ppMargin#*
\introOutdent#*
# deprecated
\setExercisesDir{directory}#S
# not documented
\AtNextPar{code}#*
\buildex{file}#*i
\continueLoop#*
\csvlist#*
\csvsets#*
\csvtags#*
\ea#S
\emptyList#*
\exerciseFileInfo#*
\exfile#*
\figuresPath#*
\fileInputBase#*
\fileInputPath#*
\firstarg#S
\haystack#*
\ifppMode{arg}#*
\ignoreOutlineSpaces#*
\incl{file}#*i
\introarg#*
\ipm{arg}#*
\isFalse#*
\isInList#*
\isppMode{arg1}{arg2}#*
\isTrue#*
\keystring#*
\listarg#*
\marginw#*
\markeverypar#*
\mname#*
\ncArgs#*
\needle#*
\nextprobargs#*
\nextproblems{arg}#*
\nohead#*
\numppex#*
\obeyOutlineSpaces#*
\oldep#S
\orderedselect{arg1}{arg2}#*
\ppList#*
\ppMode#*
\pppref{arg1}#*
\pptag#*
\removebs{arg1}#*
\resetnextproblems#*
\setmacro#*
\showhideproblem{arg}#*
\shownextchar{arg}#*
\skeys#*
\solutionMarginAbove#*
\squeeze#*
\stopfilbreak#*
\strif{arg1}{arg2}#*
\themetacounter#*
\thenumppInFile#*
\theset#*
\thissetid#*
\tmpargs#*
\tpd#S
\whenfalse#*
\whentrue#*
|