summaryrefslogtreecommitdiff
path: root/Master/texmf-dist/doc/latex/exsheets/grading-table.tex
diff options
context:
space:
mode:
authorKarl Berry <karl@freefriends.org>2012-10-24 23:27:10 +0000
committerKarl Berry <karl@freefriends.org>2012-10-24 23:27:10 +0000
commit0e06b454144b2b566f5889836e1605d9cade581a (patch)
tree834a28bb5cb9875b65c52c4722126b6559aacdd4 /Master/texmf-dist/doc/latex/exsheets/grading-table.tex
parent26a54db94560dd44a149728ce558d1882d9f6beb (diff)
exsheets (24oct12)
git-svn-id: svn://tug.org/texlive/trunk@28067 c570f23f-e606-0410-a88d-b1316a301751
Diffstat (limited to 'Master/texmf-dist/doc/latex/exsheets/grading-table.tex')
-rw-r--r--Master/texmf-dist/doc/latex/exsheets/grading-table.tex22
1 files changed, 22 insertions, 0 deletions
diff --git a/Master/texmf-dist/doc/latex/exsheets/grading-table.tex b/Master/texmf-dist/doc/latex/exsheets/grading-table.tex
new file mode 100644
index 00000000000..85239f69181
--- /dev/null
+++ b/Master/texmf-dist/doc/latex/exsheets/grading-table.tex
@@ -0,0 +1,22 @@
+\documentclass{scrartcl}
+\usepackage{exsheets}
+\DeclareQuestionProperty{points}
+
+\begin{document}
+
+\begin{question}{3}\SetQuestionProperties{points=3}
+\end{question}
+\begin{question}{5}\SetQuestionProperties{points=5}
+\end{question}
+\begin{question}{10}\SetQuestionProperties{points=10}
+\end{question}
+\begin{question}{8}\SetQuestionProperties{points=8}
+\end{question}
+
+\begin{tabular}{|l|*{\numberofquestions}{c|}c|}\hline
+ Question & \ForEachQuestion{\QuestionNumber{#1}\iflastquestion{}{&}} & Total \\ \hline
+ Points & \ForEachQuestion{\GetQuestionProperty{points}{#1}\iflastquestion{}{&}} & \pointssum* \\ \hline
+ Reached & \ForEachQuestion{\iflastquestion{}{&}} & \\ \hline
+\end{tabular}
+
+\end{document} \ No newline at end of file