summaryrefslogtreecommitdiff
path: root/macros/latex/contrib/competences/example.tex
blob: f5df9256ba6f16b8eb7c37433dc13ecf4b8e1cd9 (plain)
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
\documentclass{article}

\usepackage[
% nomargin, % Remove margin competence tag
]{competences}

\renewcommand \thesection{\Alph{section}}

\begin{document}

\declareprefix{CA}
\declareprefix{CB}
\declareprefix{CC}

% Declare competences is not mandantory,
% but it defines order in sumup tables
% and allows to detect forgiven competences.
\declarecompetence{CA1}
\declarecompetence{CA2}
\declarecompetence{CB1}
\declarecompetence{CB2}
\declarecompetence{CC1}
\declarecompetence{CC2}
\declarecompetence{CC3}
\declarecompetence{CC4}
\declarecompetence{FOO}

% Some competences are global,
% ie not link to a particular question.
\addGlobalCompetence[1]{CC4}
\addGlobalCompetence[2]{CC3}


\section{Test}
Question one.
\addcompetence{CA1}

\section{test2}
Question two with 2 competences.
\addcompetence{CA1}\addcompetence{CA2}

\subsection{test3}
Question three with points different from 1.
\addcompetence[3]{CB1}\addcompetence[1]{CC1}

\subsubsection{test4}
Question four in a subsubsection.
\addcompetence[3]{CB1}


\section{test5}
\subsection{test6}
\begin{enumerate}
 \item Question five in enumerate \addcompetence[1]{CB2}
 \item Question six \addcompetence[1]{CC2}
  \begin{enumerate}
    \item text seven in enumerate in enumerate\addcompetence[3]{CC1}
    \item text hight \addcompetence[1]{CB2}
  \end{enumerate}
\end{enumerate}

\section{Test 7}
\subsection{test10}
  \begin{enumerate}
    \item text nine in enumerate\addcompetence{CB1}
 \end{enumerate}


\section{Résumé des compétences}
\tableaupartie{A}
% \tableaupartie{A}
\tableaupartie{B}
\tableaupartie{C}
%\tableaupartie{D}

\tableaupartie{Global}


\tableauprefix{A,B,C,Global}

\end{document}