Debian Codegraph @

texmf-dist/doc/latex/ximera/src/options.dtx

raw
1 % \subsection{Options for the class}
2 % We start by listing the options for the \textsf{ximera} document class. Note, since the \textsf{xourse} class is based on the \textsf{ximera} class, all listed options are available there too.
3 %
4 % \begin{macrocode}
5 %<*classXimera>
6 % \end{macrocode}
7 % \begin{macro}{handout}
8 % The default behavior of the class is to display \textbf{all} content. This means that if any questions are asked, all answers are shown. Moreover, some content will only have a meaningful presentation when displayed online. When compiled without any options, this content will be shown too. This option will supress such content and generate a reasonable printiable ``handout.''
9 % \begin{macrocode}
10 \newif\ifhandout
11 \handoutfalse
12 \DeclareOption{handout}{\handouttrue}
13 % \end{macrocode}
14 % \end{macro}
15 %
16 % \begin{macro}{noauthor}
17 % By default, authors are listed at the bottom of the first page of a document. This option will supress the listing of the authors.
18 % \begin{macrocode}
19 \newif\ifnoauthor
20 \noauthorfalse
21 \DeclareOption{noauthor}{\noauthortrue}
22 % \end{macrocode}
23 % \end{macro}
24 %
25 % \begin{macro}{nooutcomes}
26 % By default, learning outcomes are listed at the bottom of the first page of a document. This option will supress the listing of the learning outcomes.
27 % \begin{macrocode}
28 \newif\ifnooutcomes
29 \nooutcomesfalse
30 \DeclareOption{nooutcomes}{\nooutcomestrue}
31 % \end{macrocode}
32 % \end{macro}
33 %
34 % \begin{macro}{instructornotes}
35 % This option will turn on (and off) notes written for the instructor.
36 % \begin{macrocode}
37 \newif\ifinstructornotes
38 \instructornotesfalse
39 \DeclareOption{instructornotes}{\instructornotestrue}
40 % \end{macrocode}
41 % \end{macro}
42 % \begin{macro}{noinstructornotes}
43 % This option will turn off (and on) notes written for the instructor.
44 % \begin{macrocode}
45 \DeclareOption{noinstructornotes}{\instructornotestrue}
46 % \end{macrocode}
47 % \end{macro}
48 %
49 % \begin{macro}{hints}
50 % When the \texttt{handout} options is used, hints are not shown. This option will make hints visible in handout mode.
51 % \begin{macrocode}
52 \newif\ifhints
53 \hintsfalse
54 \DeclareOption{hints}{\hintstrue}
55 % \end{macrocode}
56 % \end{macro}
57 %
58 % \begin{macro}{newpage}
59 % This option will start each problem-like environment (\texttt{exercise}, \texttt{question}, \texttt{problem}, and \texttt{exploration}) start on a new page.
60 % \begin{macrocode}
61 \newif\ifnewpage
62 \newpagefalse
63 \DeclareOption{newpage}{\newpagetrue}
64 % \end{macrocode}
65 % \end{macro}
66 %
67 % \begin{macro}{numbers}
68 % This option will number the titles of the activity. By default the activities are unnumbered.
69 % \begin{macrocode}
70 \newif\ifnumbers
71 \numbersfalse
72 \DeclareOption{numbers}{\numberstrue}
73 % \end{macrocode}
74 % \end{macro}
75 %
76 % \begin{macro}{wordchoicegiven}
77 % This option will replace the choices shown by \texttt{wordChoice} with the correct choice. No indication of the \texttt{wordChoice} environment will be shown.
78 % \begin{macrocode}
79 \newif\ifwordchoicegiven
80 \wordchoicegivenfalse
81 \DeclareOption{wordchoicegiven}{\wordchoicegiventrue}
82 \newif\iffirstinlinechoice% Support for other wordchoice command contents.
83 \firstinlinechoicetrue
84 % \end{macrocode}
85 % \end{macro}
86 % \begin{macrocode}
87
88 \newif\ifxake
89 \xakefalse
90 \DeclareOption{xake}{\xaketrue}
91
92 \newif\iftikzexport
93 \tikzexportfalse
94 \DeclareOption{tikzexport}{%
95 \tikzexporttrue%
96 \handoutfalse%
97 \numbersfalse%
98 \newpagefalse%
99 \hintsfalse%
100 \nooutcomesfalse%
101 }
102
103 \DeclareOption*{%
104 \PassOptionsToClass{\CurrentOption}{article}%
105 }
106 \ProcessOptions\relax
107 \LoadClass{article}
108
109 \ifdefined\HCode
110 \xaketrue%
111 \tikzexporttrue%
112 \handoutfalse%
113 \numbersfalse%
114 \newpagefalse%
115 \hintsfalse%
116 \nooutcomesfalse%
117 \fi
118
119 %</classXimera>
120 % \end{macrocode}
121
122
123