Skip to content

Commit 36c6dc9

Browse files
committed
add basic outcomes example/test
1 parent f5a6f6d commit 36c6dc9

File tree

4 files changed

+52
-2
lines changed

4 files changed

+52
-2
lines changed

outcomes/basic.tex

Lines changed: 47 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,47 @@
1+
\documentclass{ximera}
2+
3+
\title{Outcomes}
4+
5+
% List of outcomes that should display where "\displayOutcomes" is used.
6+
\outcome{You are familiar with outcomes.}
7+
\outcome{You can add outcomes to an activity.}
8+
\outcome{You can show all outcomes.}
9+
10+
\begin{document}
11+
\begin{abstract}
12+
\end{abstract}
13+
\maketitle
14+
15+
\section{Basic usage}
16+
17+
Use \verb|\outcome{You'll learn about outcomes}| in the preamble of your activity to add an outcome.
18+
\\
19+
Use \verb|\displayOutcomes| to display all the outcomes listed in this file.
20+
21+
Note: \verb|\displayOutcomes| takes an optional argument to load outcomes from a different file (if it exists).
22+
23+
Here presumably following outcomes were set:
24+
25+
\begin{verbatim}
26+
\outcome{You are familiar with outcomes.}
27+
\outcome{You can add outcomes to an activity.}
28+
\outcome{You can show all outcomes.}
29+
\end{verbatim}
30+
31+
and \verb|\displayOutcomes| then gives
32+
33+
\displayOutcomes
34+
35+
36+
\section{Extra options}
37+
38+
The header, footer and general layout of list of outcomes can be customized, e.g as follows:
39+
40+
\renewcommand{\outcomeHeader}{outcomeHeader}
41+
\renewcommand{\preOutputBlock}{\protect preOutputBlock \begin{itemize}}
42+
\renewcommand{\postOutputBlock}{\end{itemize} postOutputBlock}
43+
44+
\displayOutcomes
45+
46+
47+
\end{document}

testXourses/outcomesTest.tex

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,10 +4,13 @@
44

55

66
\begin{document}
7+
\begin{abstract}
8+
\end{abstract}
79
\maketitle
810

9-
\activity{testFiles/outcome}
10-
\activity{testFiles/outcome2}
11+
\activity{../outcomes/basic}
12+
\activity{../outcomes/outcome}
13+
\activity{../outcomes/outcome2}
1114

1215

1316
\end{document}

0 commit comments

Comments
 (0)