Debian Codegraph @

texmf-dist/doc/latex/skills/skillsdoc.tex

raw
1 %--------------------------------------------------------------------
2 %--------------------------------------------------------------------
3 % skillsdoc.tex
4 %
5 % This is the user's guide for the skills package,
6 % by Pierre-Amiel Giraud.
7 %
8 % The skills package itself is in the file skills.sty.
9
10
11 %%% Copyright (c) 2020
12 % Pierre-Amiel Giraud
13 %
14 % This work may be distributed and/or modified under the
15 % conditions of the LaTeX Project Public License, either version 1.3
16 % of this license or (at your option) any later version.
17 % The latest version of this license is in
18 % http://www.latex-project.org/lppl.txt
19 % and version 1.3 or later is part of all distributions of LaTeX
20 % version 2003/12/01 or later.
21 %
22 % This work has the LPPL maintenance status `maintained'.
23 %
24 % The Current Maintainer of this work is Pierre-Amiel Giraud.
25 %
26 % This work consists of the files skills.sty and skillsdoc.tex.
27
28 % The user's guide for skills.sty is in the file skillsdoc.tex.
29
30
31 %%% Pierre-Amiel Giraud
32 %%% History and Geography Teacher
33 %%% Chambery Middle School
34 %%% 33140 Villenave d'Ornon (France)
35 %%% [email protected]
36
37 % The newest version of this package should always be available
38 % from my Gitlab page: https://framagit.org/pagiraud/skills/
39
40
41 %--------------------------------------------------------------------
42 %--------------------------------------------------------------------
43
44 \documentclass[12pt]{exam}
45
46 \usepackage{luatextra}
47 \setmainfont{Linux Libertine O}
48 \usepackage{polyglossia}
49 \usepackage{microtype}
50
51 \usepackage{amssymb}
52
53 \usepackage{makeidx}
54
55 \usepackage[counter=section]{skills}
56 \skilldef{writing}{L1.1}{Writing to argue and write to communicate and share ideas}
57 \skilldef{vocabulary}{H3.2}{Learning specific vocabulary and using it in context}
58 \skilldef{situationInTime}{C1.1}{Situating in time and elaborating chronological landmarks}
59 \renewcommand{\skillcounter}{section}
60
61 \usepackage[colorlinks]{hyperref}
62
63 % In case we're not using hyperref.sty:
64 \providecommand{\texorpdfstring}[2]{#1}
65 % The following can be used in \section commands
66 % without generating pdf warnings:
67 \newcommand{\bs}{\texorpdfstring{\char`\\}{}}
68
69 \newcommand{\docversion}{1.0.0}
70 \newcommand{\docdate}{October 21, 2020}
71 %\newcommand{\docdate}{Draft: \today}
72
73 %--------------------------------------------------------------------
74 %
75 % Changes since version 2.4 are described in the comments
76 % near the beginning of the file exam.cls.
77 %
78 %--------------------------------------------------------------------
79
80 \makeindex
81
82 \newcommand{\indc}[1]{\index{#1@\texttt{\char`\\#1}}}
83 \newcommand{\indcsub}[2]{\index{#1@\texttt{\char`\\#1}!#2}}
84 \newcommand{\indcstart}[1]{\index{#1@\texttt{\char`\\#1}|(}}
85 \newcommand{\indcstop}[1]{\index{#1@\texttt{\char`\\#1}|)}}
86
87 \newcommand{\indt}[1]{\index{#1@\texttt{#1}}}
88 \newcommand{\indtsub}[2]{\index{#1@\texttt{#1}!#2}}
89 \newcommand{\indtstart}[1]{\index{#1@\texttt{#1}|(}}
90 \newcommand{\indtstop}[1]{\index{#1@\texttt{#1}|)}}
91
92 %---------------------------------------------------------------------
93 \newenvironment{example}%
94 {\bigskip\filbreak
95 \subsubsection{Example:}
96 }%
97 {}
98
99 \def\samplehead#1#2#3#4{%
100 \begin{trivlist}
101 \item[]
102 \leavevmode
103 \hbox to \textwidth{%
104 \rlap{\parbox[b]{\textwidth}{\raggedright#1\strut}}%
105 \hfil\parbox[b]{\textwidth}{\centering#2\strut}\hfil
106 \llap{\parbox[b]{\textwidth}{\raggedleft#3\strut}}%
107 }% hbox
108 #4
109 \end{trivlist}
110 }
111
112 \def\samplefoot#1#2#3#4{%
113 \begin{trivlist}
114 \item[]
115 \leavevmode
116 #1
117 \vskip 3pt
118
119 \hbox to \textwidth{%
120 \rlap{\parbox[t]{\textwidth}{\raggedright#2}}%
121 \hfil\parbox[t]{\textwidth}{\centering#3}\hfil
122 \llap{\parbox[t]{\textwidth}{\raggedleft#4}}%
123 }% hbox
124 \end{trivlist}
125 }
126
127 % \makeatletter
128 % \@ifundefined{AmS}{\def\AmS{{\protect\the\textfont\tw@
129 % A\kern-.1667em\lower.5ex\hbox{M}\kern-.125emS}}}
130 % {}
131 % \makeatother
132
133
134 %---------------------------------------------------------------------
135 %---------------------------------------------------------------------
136 %---------------------------------------------------------------------
137 %---------------------------------------------------------------------
138
139 \begin{document}
140
141 \title{Using the skills package}
142
143 \author{Pierre-Amiel Giraud\\
144 History \& geography teacher\\
145 Chambery Middle School\\
146 33140 Villenave d'Ornon (France)\\
147 [email protected]\\[\bigskipamount]
148 Copyright \copyright~2020\\
149 Pierre-Amiel Giraud}
150
151 \date{\docdate}
152
153 \maketitle
154
155 \begin{center}
156 \small
157 This is the user's guide for version~\docversion{} of the
158 \verb"skills" package.
159 \end{center}
160
161 \tableofcontents
162 %--------------------------------------------------------------------
163 \section{Introduction}
164
165 The file \verb"skills.sty" provides the \verb"skills" package,
166 which attempts to make it easy for even a \LaTeX{} novice to prepare
167 proficiency tests, especially in combination with the \verb|exam| document
168 class.
169
170 Here, what is called a proficiency test is an exam where questions are assigned
171 one or more skills, and where the proficiency of the pupil is evaluated for each skill.
172 It seems it can also be called, depending on the context and the country, skills assessment
173 or skill-based assessment. As far as I know, proficiency tests are more often used in French-speaking areas, where they are called "\textit{Ʃvaluations par compƩtences}". This package has
174 been designed with the French approach in mind. If you are using proficiency tests
175 but this package doesn't fill your needs, your suggestions or code contributions are welcome.
176
177 The \verb|skills| package has also been designed to be best used within the \verb|exam| document class. Thus, almost all command names are very similar. However, the package can be used within a variety of document classes: only a very small subset of the package commands is specific to the \verb|exam| document class.
178
179 Some other packages, such as the \verb|competences| packages by Christophe Bares, follow the
180 same goal but with different approaches. They might be of some interest if the present
181 \verb|skills| package doesn't fill your needs.
182
183 The latest version of \verb"skills.sty" (possibly a
184 %
185 beta\index{beta test} test version) should always be available at
186 \verb"https://framagit.org/pagiraud/skills/"\index{web page}.
187
188 %--------------------------------------------------------------------
189 \subsection{License}
190
191 \begin{itemize}
192 \item This work may be distributed and/or modified under the
193 %
194 \index{Latex Project Public License@\LaTeX{} Project Public License}
195 %
196 conditions of the \LaTeX{} Project Public
197 License\index{license},\index{LPPL} either version~1.3 of this
198 license or (at your option) any later version. The latest version
199 of this license is in \verb"http://www.latex-project.org/lppl.txt"
200 and version 1.3 or later is part of all distributions of \LaTeX{}
201 version 2003/12/01 or later.
202 \item This work has the LPPL maintenance status ``maintained''.
203 \item The Current Maintainer of this work is Pierre-Amiel Giraud
204 \item This work consists of the files \verb"skills.sty" and
205 \verb"skillsdoc.tex".
206 \end{itemize}
207
208 \subsection{Version Notes}
209
210 \begin{description}
211 \item[v1.0.0] Initial release
212 \end{description}
213
214 %--------------------------------------------------------------------
215 %--------------------------------------------------------------------
216 \section{Usage instructions}
217 \label{sec:Usage}
218
219 This section details how to use the package and the commands it provides,
220 from basic usage to customization. Some features are only available when
221 the package is loaded within the \verb|exam| document class. They will be
222 indicated as such.
223 %--------------------------------------------------------------------
224 \subsection{Loading the \texttt{skills} package}
225 \label{sec:UsageLoadingPackage}
226
227 To use the \verb|skills| package, you must load it, like every package,
228 with the command
229 \begin{center}
230 \verb"\usepackage{skills}"
231 \end{center}
232
233 \subsubsection*{Package options (advanced use only)}
234 The package has only three options:
235 \begin{itemize}
236 \item \verb|makenoidxglossaries| (default)
237 \item \verb|donotmakenoidxglossaries|
238 \item \verb|counter=<value>|
239 \end{itemize}
240
241 The \verb|donotmakenoidxglossaries| option is of any use only if you want to
242 use the \verb|glossaries| package, upon which \verb|skills| is based,
243 in your document. It deactivates the \verb|\makenoidxglossaries| command included in the \verb|skills.sty| file,
244 so that you can handle your glossaries with the indexing option of your
245 choice. Please refer to the \verb|glossaries| package documentation for
246 more details.
247
248 So, if you want to use the \verb|glossaries| and the \verb|skills| packages
249 together in your document, it is advised to load the \verb|skills| package
250 as follows:
251 \begin{center}
252 \verb|\usepackage[donotmakenoidxglossaries]{skills}|
253 \end{center}
254
255 The \verb|counter| option is to be used only if you to change the default counter for grouping the skills in the skills table (question for the \verb|exam| class, \verb|section| for other classes). The section counter was chosen because it is probably the most widespread logical counter (as opposed to the page counter). This very document, written with the \verb|exam| class, loads the \verb|skills| package with
256
257 \begin{verbatim}
258 \usepackage[counter=section]{skills}
259 \end{verbatim}
260
261 Indeed, multiple \verb|questions| environments are used all along the documentation, and using question as a counter would needlessly clutter the skills table. Any available counter can be used.
262 %--------------------------------------------------------------------
263 \subsection{Defining skills}
264 \label{sec:UsageDefiningSkills}
265
266 Skills must be defined in the preamble, using the \verb|skilldef| command:
267 \begin{center}
268 \verb|\skilldef{label}{reference}{description}|
269 \end{center}
270
271 The first argument, \verb|label|, is a simple keyword that will be used in your document
272 to indicate that you are evaluating mastery of this skill. The \verb|reference|
273 is the code of the skill in your competency framework. Finally, \verb|description| is the
274 place where you can put the title of your skill along with some description.
275
276 Defining a skill doesn't imply that it will be used. Thus, you can define your whole
277 competency framework (or a significant subset) in a file and then simply load it
278 with the \verb|\input| command in every proficiency test you make: all skills will
279 be available for declaration, but only those explicitly declared in the document body
280 will appear on the output file.
281
282 For the sake of example, we will define three skills that will be used all along this
283 manual:
284
285 \begin{verbatim}
286 \skilldef{writing}{L1.1}{Writing to argue and write to communicate
287 and share ideas}
288 \skilldef{vocabulary}{H3.2}{Learning specific vocabulary and using
289 it in context}
290 \skilldef{situationInTime}{C1.1}{Situating in time and elaborating
291 chronological landmarks}
292 \end{verbatim}
293
294 %--------------------------------------------------------------------
295 \subsection{Declaring skills}
296 \label{sec:UsageDeclaringSkills}
297
298 There are two ways for declaring skills. The first, and the simplest, is available
299 only if the loaded document class is \verb|exam|. The second one is class agnostic.
300
301 \subsubsection{The easy way (\texttt{exam} document class only)}
302 \label{sec:UsageDeclaringSkillsExamClass}
303
304 When the \verb|skills| package is used together with the \verb|exam| document class,
305 the \verb|skillquestions| environment and the \verb|\skillquestion| command become
306 available to the user.
307
308 They behave like the \verb|questions| environment and \verb|\question| command from
309 the \verb|exam| document class, except they have one more optional argument, used for
310 declaring skills:
311
312 \begin{center}
313 \begin{verbatim}
314 \begin{skillquestions}[optional list of comma separated skills]
315 \skillquestion[optional list of comma separated skills][optional number of
316 points for the question] Some question
317 \end{skillquestions}
318 \end{verbatim}
319 \end{center}
320
321 The skills declared as arguments to the \verb|skillquestions| environment are global:
322 they are not linked to any specific question in the exam, but are rather evaluated throughout
323 the exam and will be flagged as such in the skills table (see subsection~\ref{sec:UsageSkillsTable}). Those declared as arguments
324 to a \verb|\skillquestion| command are evaluated only in the questions where they are declared.
325
326 Some details need specific attention:
327 \begin{itemize}
328 \item The label chosen when defining a skill is used to declare it in the exam.
329 \item If you don't want to declare global skills or if, for any reason, you don't want to declare skills for a question, you should omit the square brackets containing them: don't use empty brackets.
330 \item Don't use spaces in the skills list: write \verb|writing,vocabulary|, not \verb|writing, vocabulary|.
331 \item A skill can't be declared as global and question specific in the same exam. If you try to
332 do so, the question-level declaration will overwrite the global one.
333 \item The \verb|skillquestions| environment and the \verb|\skillquestion| command are only wrappers around the \verb|questions| environment and the \verb|question| command from the \verb|exam| document class. As such, they can be freely mixed: \verb|\question| and \verb|\skillquestion| can be used together both within the \verb|questions| and \verb|skillquestions| environments. Points of \verb|\question| and \verb|skillquestion| add up nicely.
334 \end{itemize}
335
336 A very basic example, using the three previously defined skills, could thus be:
337
338 \begin{verbatim}
339 \begin{skillquestions}[writing]
340 \skillquestion A first question without any skill declared
341 \skillquestion[situationInTime,vocabulary] A second question with two skills
342 \skillquestion[vocabulary][2] A third question with one skill and 2 points.
343 \question[3] A last question without any skill declared but 3 points.
344 \end{skillquestions}
345 \end{verbatim}
346
347 And would results in:
348 \begin{skillquestions}[writing]
349 \skillquestion A first question without any skill declared
350 \skillquestion[situationInTime,vocabulary] A second question with two skills
351 \skillquestion[vocabulary][2] A third question with one skill and 2 points.
352 \question[3] A last question without any skill declared but 3 points.
353 \end{skillquestions}
354
355 \bigskip
356
357 As you can see, the declared global skill isn't printed: it will be shown only in the skills table (see subsection~\ref{sec:UsageSkillsTable}), which summarizes all declared skills in the exam.
358
359 \subsubsection{The other but also easy way (any document class)}
360 \label{sec:UsageDeclaringSkillsAnyClass}
361
362 Skills and global skills can also be declared with the \verb|\skills| and \verb|\globalskills| commands:
363
364 \begin{center}
365 \verb|\skills{list of comma separated skills}|
366 \verb|\globalskills{list of comma separated skills}|
367 \end{center}
368
369 As for \verb|skillquestion| and \verb|skillquestions|, the separator must be only a comma:don't
370 use spaces. In the default configuration (see subsection~\ref{sec:CustomizeWhere} for customization), the skills will appear right
371 were you write them. If you type:
372
373 \begin{verbatim}
374 Some text \skills{vocabulary} that goes on and on and on.
375 \end{verbatim}
376
377 You will get:
378
379 \bigskip
380 Some text \skills{vocabulary} that goes on and on and on.
381 \bigskip
382
383 So, the \verb|\skills| command can be used in any class. That includes the \verb|exam| document class,
384 if you want, for instance, to declare skills at the \verb|subquestion| or \verb|part| level. This won't
385 have any effect on the way skills are grouped in the skills table. By default, they are grouped per question in the \verb|exam| class and per section for other document classes.
386
387 The \verb|\globalskills| command doesn't print anything. If you type:
388
389 \begin{verbatim}
390 Some text \globalskills{writing} that goes on and on and on.
391 \end{verbatim}
392
393 You will get:
394
395 \bigskip
396 Some text \globalskills{writing} that goes on and on and on.
397 \bigskip
398
399 But the place where you put the \verb|\globalskills| command has a direct effect on the skills table, as the skills appear in the order they are firstly declared. What's more, typing the \verb|globalskills| command anywhere in the document will likely result in undesired commas in the skills table. Therefore, as a rule of thumb, all global skills should be declared at once, in the same \verb|\globalskills| command:
400
401 \begin{itemize}
402 \item right after \verb|\begin{document}| if you want the global skills to be printed at the beginning of the skills table;
403 \item right before \verb|\end{document}| if you want them to be printed at the end of the skills table.
404 \end{itemize}
405
406 The \verb|\globalskills| command shouldn't be used at all in the \verb|exam| class, at least in the \verb|skillquestions| environment is used.
407
408 %margins. For the full story, see section~\ref{sec:points}.
409
410
411 %--------------------------------------------------------------------
412 \subsection{Printing the skills table}
413 \label{sec:UsageSkillsTable}
414
415 There would be very little interest in defining then declaring skills evaluated in an exam if they are not listed somewhere. With the \verb|skills| package, this is done with the command:
416
417 \begin{center}
418 \verb|\skillstable[optional sorting argument]|
419 \end{center}
420
421 So, for most users, a simple \verb|\skillstable| is enough. If you are unhappy with the default sorting (skills sorted in the order they are firstly declared in the document), which is equivalent of typing \verb|\skillstable[use]|, some other options are available: word, letter, standard, def, nocase, case. For more information on these, please refer to the \verb|glossaries| package documentation (chapter 10, Displaying a glossary).
422
423 Here, if I type:
424
425 \begin{verbatim}
426 \skillstable
427 \end{verbatim}
428
429 I get:
430
431 \bigskip
432
433 \noindent
434 \skillstable
435
436 \bigskip
437
438 The global skills can easily be seen as no question number appears in the Questions column.
439
440 If the \verb|\globalskills| command is used to declare global skills, the place of the skills in the table is determined by the place the command is put in the document (see subsection~\ref{sec:UsageDeclaringSkillsAnyClass}). If the global skills are
441 declared with the optional argument of the \verb|skillquestions| environment, by default, they are put after the other skills in the table, but this can be changed by typing:
442
443 \begin{center}
444 \verb|\renewcommand{\putglobalskills}{before}|
445 \end{center}
446
447 %---------------------------------------------------------------------
448 %--------------------------------------------------------------------
449 \section{Customizing the display of the skills}
450 \label{sec:Customize}
451
452 For now, we have only seen how to setup a proficiency test, without modifying
453 the default appearance, that is:
454
455 \begin{itemize}
456 \item In the \verb|\skills| and \verb|\skillquestion| commands, if several skills are
457 declared, a blank space is used as a separator.
458 \end{itemize}
459
460 %--------------------------------------------------------------------
461 \subsection{The separator in the \texttt{\textbackslash skills} and \texttt{\textbackslash skillquestion} commands}
462 \label{sec:CustomizeSeparator}
463
464 The default blank space can be changed by renewing the \verb|\skillssep| command. For instance, if you want the skills to be separated with a comma followed by a blank space, type:
465
466 \begin{verbatim}
467 \renewcommand{\skillssep}{, }
468 \end{verbatim}
469
470 \renewcommand{\skillssep}{, }
471
472 And now, if you type:
473
474 \begin{verbatim}
475 \skills{vocabulary,situationInTime}
476 \end{verbatim}
477
478 You get:
479
480 \bigskip
481 \skills{vocabulary,situationInTime}
482 \bigskip
483
484 \renewcommand{\skillssep}{ }
485 %--------------------------------------------------------------------
486 \subsection{Where the skills will be printed}
487 \label{sec:CustomizeWhere}
488
489 The default is that the skills references will be inserted at the beginning of the question with \verb|\skillquestion| or right where the \verb|\skills| command is used, but, for one-sided documents
490
491 \begin{itemize}
492 \item the command \verb|\skillsinmargin| (or, equivalently, the command \verb|\skillsinleftmargin|) will cause the skills references to be set in the left margin,
493 \item the command \verb|\skillsinrightmargin| will cause the skills references to be set in the right margin,
494 \item the commands \verb|\noskillsinmargin| and \verb|\noskillsinrightmargin| are equivalent, and either of them will revert to the default situation.
495 \end{itemize}
496
497 For two-sided documents, \verb|\skillsinmargin| and \verb|\skillsinleftmargin| print skills in the inner margin, while \verb|\skillsinrightmargin| prints them in the outer margin.
498
499 If you chose to print the skills references inline (default), you can move where they appear simply by changing the place you type the \verb|\skills| command. For instance, if you want to print the skills at the end of a question, in the \verb|exam| class, you can type:
500
501 \begin{verbatim}
502 \begin{questions}
503 \skillquestion A very good question. \skills{vocabulary}
504 \end{questions}
505 \end{verbatim}
506
507 You will get:
508
509 \bigskip
510 \begin{skillquestions}
511 \skillquestion A very good question. \skills{vocabulary}
512 \end{skillquestions}
513 \bigskip
514
515 When the skills are set in a margin, they start on the line they were declared. Sometimes, for instance if you declare bot points and skills for a \verb|\skillquestion| to be shown in the same margin, the skills and points overlap, so you need to move vertically the skills using:
516
517 \begin{center}
518 \verb|\skillsinmarginvadjust{some length}|
519 \end{center}
520
521 Let's see an example:
522 \begin{verbatim}
523 \begin{questions}
524 \pointsinrightmargin
525 \skillsinrightmargin
526 \skillquestion[vocabulary][2] Some question
527 \skillsinmarginvadjust{\baseline}
528 \skillquestion[vocabulary][2] Some question
529 \end{questions}
530 \end{verbatim}
531
532 \bigskip
533 \begin{questions}
534 \pointsinrightmargin
535 \skillsinrightmargin
536 \skillquestion[vocabulary][2] Some question
537 \skillsinmarginvadjust{\baselineskip}
538 \skillquestion[vocabulary][2] Some question
539 \end{questions}
540 \bigskip
541
542 \verb|\skillsinmarginvadjust| can be changed as often as you need.
543
544 %-----------------------------------------------------------------
545 \subsection{Surronunding the skills: parentheses, brackets, a box, and more}
546 \label{CustomizeSurrounding}
547
548 By default, skills references are enclosed in parentheses. The package provides two ways for changing this.
549
550 \subsubsection{Very quick way}
551 Following the syntax used in the \verb|exam| class (but not requiring you to use it), you can very quickly change the way skills are enclosed.
552
553 For instance, if you want to have the skills references enclosed in brackets:
554
555 \begin{center}
556 \verb|\bracketedskills|
557 \end{center}
558
559 For example, if you give the command \verb|\bracketedskills|, typing some questions will produce something as follows:
560
561 \begin{questions}
562 \bracketedskills
563 \skillquestion[vocabulary] Why is there air?
564 \skillquestion[vocabulary,situationInTime] What if there were no air?
565 \end{questions}
566
567 If you prefer having the skills enclosed in a box instead of in parentheses, give the command
568
569 \begin{center}
570 \verb|\boxedskills|
571 \end{center}
572
573 For example, if you give the command \verb|\boxedskills|, then the questions typed above will produce
574
575 \begin{questions}
576 \boxedskills
577 \skillquestion[vocabulary] Why is there air?
578 \skillquestion[vocabulary,situationInTime] What if there were no air?
579 \end{questions}
580
581 If you give the commands \verb|\boxedskills| and \verb|\skillsinmargin|, then the above questions will produce
582
583 \begin{questions}
584 \boxedskills
585 \skillsinmargin
586 \skillquestion[vocabulary] Why is there air?
587 \skillquestion[vocabulary,situationInTime] What if there were no air?
588 \end{questions}
589
590 If you want the skills to be not enclosed at all, you can give the command:
591
592 \begin{verbatim}
593 \onlyskills
594 \end{verbatim}
595
596 If you give the commands \verb|\onlyskills| and \verb|\skillsinrightmargin|, then the above questions will produce
597
598 \begin{questions}
599 \onlyskills
600 \skillsinrightmargin
601 \skillquestion[vocabulary] Why is there air?
602 \skillquestion[vocabulary,situationInTime] What if there were no air?
603 \end{questions}
604
605 Other combinations of these commands will produce similar effects.
606
607 If you want to switch back and forth between formats during the proficiency test, you can do so by giving one of the commands
608
609 \begin{center}
610 \begin{tabular}{l}
611 \verb"\bracketedskills"\\
612 \verb"\nobracketedskills"\\
613 \verb"\boxedskills"\\
614 \verb"\noboxedskills"\\
615 \verb"\onlyskills"\\
616 \verb"\notonlyskills"
617 \end{tabular}
618 \end{center}
619
620 whenever you want to switch. The commands \verb|\nobracketedskills|, \verb|\noboxedskills| and \verb|\notonlyskills| are equivalent: they all return to the default of putting parentheses around the skills references.
621
622 \subsubsection{Using the \texttt{\textbackslash skillsenclosement} command}
623
624 It is possible to enclose the skills references with any string of characters, using the \verb|\skillsenclosement| command:
625
626 \begin{center}
627 \verb|\skillsenclosement{opening string}{closing string}|
628 \end{center}
629
630 Actually, \verb|\bracketedskills| and \verb|\onlyskills| definitions are
631
632 \begin{verbatim}
633 \newcommand{\bracketedskills}{\skillsenclosement{[}{]}}
634 \newcommand{\onlyskills}{\skillsenclosement{}{}}
635 \end{verbatim}
636
637 But one can be more imaginative with, for instance
638
639 \begin{verbatim}
640 \skillsenclosement{**}{**}
641 \end{verbatim}
642
643 or even
644
645 \begin{verbatim}
646 \skillsenclosement{oO}{Oo}
647 \end{verbatim}
648
649 This last example would produce
650
651 \begin{questions}
652 \skillsenclosement{oO }{ Oo}
653 \skillquestion[vocabulary] Why is there air?
654 \skillquestion[vocabulary,situationInTime] What if there were no air?
655 \end{questions}
656
657 The \verb|\boxedskills| command uses another mechanism: after triggering an \verb|\onlyskills|, it puts a \verb|\fbox| or a \verb|\parbox| in a \verb|\fbox| around the skills, depending on whether the latter are printed inline or in a margin. It means one can use \verb|\skillsenclosement| after \verb|\boxedskills|. For instance, typing the following commands
658
659 \begin{verbatim}
660 \boxedskills
661 \skillsenclosement{oO }{ Oo}
662 \end{verbatim}
663
664 before the questions printed above would produce
665
666 \begin{questions}
667 \boxedskills
668 \skillsenclosement{oO }{ Oo}
669 \skillquestion[vocabulary] Why is there air?
670 \skillquestion[vocabulary,situationInTime] What if there were no air?
671 \end{questions}
672
673 %--------------------------------------------------------------------
674 \subsection{The skills table}
675 \label{sec:CustomizeSkillsTable}
676 We have already talked about the \verb|\putglobalskills| command (see subsection~\ref{sec:UsageSkillsTable}).
677
678 It is also possible to rename the columns of the table by renewing some commands before typing \verb|\skillstable|:
679
680 \begin{itemize}
681 \item \verb|\renewcommand{\descriptionname}{Some name}| for the first column (default: Skill)
682 \item \verb|\renewcommand{\pagelistname}{Some name}| for the second column (default: Questions)
683 \item \verb|\renewcommand{\skilllevelname}{Some name}| for the third column (default: Proficiecncy)\\
684 \end{itemize}
685
686 If you are using the package \verb|polyglossia| or \verb|babel| with French as main language, these names are localized by the \verb|skills| package as "CompƩtences", "Questions" and "MaƮtrise".
687
688 It is also possible to totally change the look of the skills table with the command
689
690 \begin{verbatim}
691 \renewglossarystyle{skillstable}{A new skills table look}
692 \end{verbatim}
693
694 This requires some knowledge about the \verb|glossaries| package. Please refer to its documentation, especially section 15.2 (Defining your own glossary style).
695
696 %---------------------------------------------------------------------
697 %--------------------------------------------------------------------
698 \section{Technical informations}
699 \label{sec:Technical}
700
701 \subsection{Loaded packages}
702 \label{sec:TechnicalPackages}
703
704 The \verb|skills| package loads some other packages, namely and unordered: \verb|glossaries|, \verb|marginnote|, \verb|xparse|, \verb|tabularx|, \verb|etoolbox|, \verb|iftex| and \verb|kvoptions|.
705
706 They are all loaded without any option.
707
708 \subsection{Possible improvements (this is not a roadmap)}
709 \label{sec:TechnicalImprovements}
710
711 In next versions, if any, some improvements will be made:
712 \begin{itemize}
713 \item A code cleanup is needed, because I started coding the package with the assumption that the naming convention for commands in the \LaTeX world was all lowercase. Then, I understood that the convention consisted rather in using lowercase names for user commands and camel case names for other commands.
714 \item A deeper code refactoring would replace \LaTeX commands by plain TeX control sequences and limit the dependency to external packages. This lower dependency would also help mitigating the probability of side effects.
715 \item Allowing for multiple skills tables on the same document, for instance on a per part or per section basis.
716 \item Offering some competency framework, that could be chosen with a key/value system as a package option.
717 \end{itemize}
718
719 %--------------------------------------------------------------------
720
721 % The following is necessary to avoid warnings, since we have multiple
722 % questions environments in this documentation file:
723 \makeatletter
724 \@pointschangedfalse
725 \makeatother
726
727
728
729
730 \end{document}
731 %--------------------------------------------------------------------
732 %--------------------------------------------------------------------
733 %--------------------------------------------------------------------