Debian Codegraph @

texmf-dist/doc/latex/ufrgscca/ufrgscca.tex

raw
1 %%%==============================================================================
2 % WinEdt pragmas
3 % !Mode:: "TeX:EN"
4 % Default Compile engines:
5 % !TEX program = pdflatex
6 % !PDFTeXify ext = --enable-etex --restrict-write18
7 % !PDFLaTeX ext = --enable-etex --restrict-write18
8 % !BIB program = none
9 %%%==============================================================================
10 %% Copyright 2022-present by Alceu Frigeri
11 %%
12 %% This work may be distributed and/or modified under the conditions of
13 %%
14 %% * The [LaTeX Project Public License](http://www.latex-project.org/lppl.txt),
15 %% version 1.3c (or later), and/or
16 %% * The [GNU Affero General Public License](https://www.gnu.org/licenses/agpl-3.0.html),
17 %% version 3 (or later)
18 %%
19 %% This work has the LPPL maintenance status *maintained*.
20 %%
21 %% The Current Maintainer of this work is Alceu Frigeri
22 %%
23 %% This is version {2.13} {2025/10/28}
24 %%
25 %% The list of files that compose this work can be found in the README.md file at
26 %% https://ctan.org/pkg/ufrgscca
27 %%
28 %%%==============================================================================
29 %% UFRGS stands for "Federal University of Rio Grande do Sul" in south Brazil
30 %% EE stands for "Engineering School"
31 %% CCA stands for "Control and Automation Engineering Course" (Portuguese acronym)
32 %%%==============================================================================
33 \documentclass[article,nofontwarning,nogeometry,english,tocdepth=3,secdepth=3]{ufrgscca} % tcbundle tcpack tcmain
34 \usepackage[a4paper,margin=5cm,right=2cm,marginparwidth=3.5cm,asymmetric,top=2.5cm,bottom=1.5cm]{geometry}
35 %\usepackage[T1]{fontenc}
36 %\usepackage[utf8]{inputenc}
37 %\usepackage{lmodern}
38 \usepackage[infograb]{codedescribe}
39
40 %\maxdeadcycles=500 %% the many marginpar statements are actually a pain.
41
42 \newif\iffulldoc
43 %\fulldocfalse
44 \fulldoctrue
45
46 \newif\ifversiontest
47 \versiontestfalse
48 %\versiontesttrue
49
50
51 \ifversiontest
52 \usepackage{ufrgscca-lists}
53 \usepackage{ufrgscca-coord}
54 \usepackage{ufrgscca-forms}
55 \usepackage{ufrgscca-ppc}
56 \usepackage{ufrgscca-curr}
57 \fi
58
59 \begin{document}
60
61
62 \iffulldoc
63 \tstitle{
64 author={Alceu Frigeri\footnote{\tsverb{https://github.com/alceu-frigeri/ufrgscca}}},
65 date={\monthname\space\number\year},
66 title={The ufrgscca, and associated, Packages\\ Version \PkgInfo{ufrgscca}{version} \\(extended documentation)}
67 }
68 \else
69 \tstitle{
70 author={Alceu Frigeri\footnote{\tsverb{https://github.com/alceu-frigeri/ufrgscca}}},
71 date={\monthname\space\number\year},
72 title={The ufrgscca, and associated, Packages\\ Version \PkgInfo{ufrgscca}{version}}
73 }
74 \fi
75
76 \ifversiontest
77 \ExplSyntaxOn
78 \clist_map_inline:nn {ufrgscca,ufrgscca-abnt,ufrgscca-core,ufrgscca-cover,ufrgscca-lists,ufrgscca-forms,ufrgscca-coord,ufrgscca-curr,ufrgscca-ppc}{\PkgInfoDescription{#1}}
79 \ExplSyntaxOff
80 \fi
81
82 \begin{tsabstract}
83 This bundled is aimed at producing undergraduate students final work/report at UFRGS/EE (Engineering School at the Federal University of Rio Grande do Sul), closely following ABNT rules (Brazilian Association for Technical Norms). It is composed of a main class, \tsobj[pkg]{ufrgscca}, and a set of auxiliary packages, some of which can be used independently.
84
85 \end{tsabstract}
86
87 \tableofcontents
88
89 \section{Introduction}
90 \emph{ABNT} rules can be quite challenging at times (read: bibliography style/references) and sometimes just odd (line spacing, front matter, page layout), nevertheless it is a \emph{Brazilian Standard} for typography whose students at UFRGS should grow cherished to follow.
91
92 In short, as of version \PkgInfo{ufrgscca}{version}\space the bundle is composed of a class, \tsobj[pkg]{ufrgscca} (based on \tsobj[pkg]{report} class), which pre-loads, as needed: \tsobj[pkg]{ufrgscca-abnt, ufrgscca\-core, ufrgscca-cover, ufrgscca-lists}. The packages \tsobj[pkg]{ufrgscca-forms,ufrgscca-curr, ufrgscca-coord, ufrgscca-ppc} need to be loaded explicitly, thought.
93
94 \begin{tsremark}[N.B.:]
95 This bundle requires a quite recent \LaTeX2e kernel, at least as recent as June 2022, which allows to declare package options using the \tsobj[key]{key}~=\tsobj[key]{value} system and declare commands with \tsmacro{\NewDocumentCommand}{}, out-of-the-box.
96 \end{tsremark}
97
98 \begin{tsremark}[\color{red}Version 2.0:]
99 Starting with Version 2.0, this bundle has been fully re-written with \tsobj[pkg]{Expl3,starray}.
100 \end{tsremark}
101
102 \begin{tsremark}[Version 1.12a:]
103 In case you need the old version, for some odd \tsobj[pkg]{expl3} compatibility issue, you can find it at \tsverb{https://github.com/ alceu-frigeri/ufrgscca/releases/tag/v1.12a}
104 \end{tsremark}
105
106 \subsection{Current Version}
107 For the sake of the “maintainer's sanity”, since this is a bundle, all files are saved with the same version (bundle version: \PkgInfo{ufrgscca}{version})
108
109 \section{\tightul{ufrgscca} Class}
110
111 The following packages are always pre-loaded: \tsobj[pkg]{etex, etoolbox, lmodern, fontenc (T1), inputenc (utf8), silence, ufrgscca-abnt}, \tsobj[pkg]{ ufrgscca-cover, ufrgscca-core, hyperref} and (if it exists) a \emph{local.tex} file.
112
113 Other, auxiliary, packages are also pre-loaded, depending on the class options used, and finally \tsobj[pkg]{report} class (the exception being in case of the \tsobj[option]{article} class option).
114
115 Being based on the report class, all report class options are valid, in addition to the ones below.
116 \subsection{Class Options}
117 \begin{describelist}{option}
118 \describe {tocdepth} { use: \tsobj[key]{tocdepth}=\tsobj[value]{number}, whereas \tsobj[meta]{number} indicates the deepest sectioning to appears in the Table of Contents (0 being the top section, which is \tsmacro{\chapter}{} for report based classes, 1 being \tsmacro{\section}{}, and so on.) The default is 3 (\tsmacro{\subsubsection}{}).}
119
120 \describe {secdepth} { use: \tsobj[key]{secdepth}=\tsobj[value]{number}, whereas \tsobj[meta]{number} indicates the deepest sectioning to be numbered. (0 being the top section, which is \tsmacro{\chapter}{} for report based classes, 1 being \tsmacro{\section}{}, and so on.) The default is 4 (\tsmacro{\paragraph}{}).}
121
122 \describe {english} { the default language being Portuguese, this option changes locale to English.}
123
124 \describe {brazilian} { in some rare cases (to be further investigated) babel seems to get confused about which language is active, this “shouldn't be necessary” but one can explicitly tell babel to use THIS language (which should, otherwise, be the default one).}
125
126 \describe {relnum} { by default, figures, tables, etc. are numbered as a continuous series. With this switch, those lists are reset at each chapter, e.g. Figure 5.1 instead of Figure 23.}
127
128 \describe {openright} { in case of printed material, this assures that a \tsmacro{\chapter}{} always starts at an odd page, which is relevant in case of printing out (double sided) the document.}
129
130 \describe {oneside} { in case the document will be printed in single side sheets, otherwise it's assumed a two-sided printing.}
131
132 \describe {strict-abnt} {to assure asymmetric margins, as defined by ABNT: inner ones greater than outer ones, which matters if you are going to print the doc and make a book of it, but makes it odd to look at in a computer screen, reason by which the current default setting is for symmetric margins (same text width).}
133
134 \describe {pretextontoc} { “pre-text” elements, like “list of$\dots$” will be inserted in the “table of contents”.}
135
136 \describe {yearsonly} { Approval page, at it’s bottom, will display the years only (instead of the default mouth year construct).}
137
138 \describe {timesroman} { will set the default font to Roman (using the obsolete mathptmx package, based on a free replacement of the proprietary
139 Times New Roman (by Microsoft) and Times Roman (By Adobe)) instead of the default Latin Modern Roman font.
140 As a side effect, the package \tsobj[pkg]{microtype} isn't loaded (can't be used), resulting in a sub-optimal overall layout.
141 NB. The alternative (newer and maintained) packages \tsobj[pkg]{newtxtext}/\tsobj[pkg]{newtxmath} can't be used due to some packages incompatibilities.}
142
143 \describe {repeatfields} { in case of authors with multiple publications, their names will be repeated for each entry.
144 In the default setting the author's name is written only in the first entry, and replaced by underscores in the other entries.}
145
146 \describe {xlists} { this will load the \tsobj[pkg]{ufrgscca-lists} package, for the definition of new floats/lists.}
147
148 \describe {xpacks} { this will load a series of packages, which can be handy when writing Engineering reports:
149 \tsobj[pkg]{relsize, keyval, graphicx, mathtools, mathrsfs, amsfonts, amssymb, empheq, amsthm, ext\-arrows, mathfixs, bigdelim, circuitikz, steimenz}
150 and tikz libraries: \tsobj[pkg]{ fit, math, calc, shapes.geometry, shapes.misc, shapes.multipart, graphs, 3d, positioning, shadows, babel}.
151 One is advised to look after each package documentation (ctan.org) for further information.}
152 %\end{describelist}
153
154 %\begin{describelist}{option}
155 %some random text, inserted here...
156
157 \describe {chapternopagenum} { to suppress the page numbers at chapters begin.}
158
159 \describe {nomicrotype} { in some rare cases, \tsobj[pkg]{microtype} might hurt page layout, this allows the suppression of \tsobj[pkg]{microtype}.}
160
161 \describe {showframes} { for layout proof only, it will draw frames around each page main parts.}
162
163 \describe {showlabels} { it will put a reference mark in each label created, and print out it's name.}
164
165 \describe {nofontwarning} { in case of \tsobj[pkg]{ufrgscca-ppc} is loaded, it will suppress some font related warnings.}
166
167 \describe {nolocal} { this will suppress the loading of any local.tex file, which would, otherwise, be loaded.}
168
169 \describe {article} { this will load the class \tsobj[pkg]{article} instead of \tsobj[pkg]{report}, it's meant to document the class itself.}
170
171 \describe {nogeometry} { the package \tsobj[pkg]{geometry} won't be loaded. In case one wants to fully customize the page geometry}
172
173 \describe {oldrenews} { Some, deprecated, renews will be in effect: \tsobj{\maketitle}, \tsobj{\author} \tsobj{\begin{abstract}}. For backwards compatibility only. }
174
175 \describe {texlive} { this is a reserved key, in case some workaround for texlive is needed.}
176
177 \describe {overleaf} { this is a reserved key, in case some workaround for overleaf is needed.}
178
179 \describe {miktex} { this is a reserved key, in case some workaround for miktex is needed.}
180 \end{describelist}
181
182 \subsection{Class Declared Commands}
183 \begin{codedescribe}{\autonameref,\annexref,\autoannexref}
184 \begin{codesyntax}%
185 \tsobj[code]{\autonameref}{\tsargs[oarg]{sep}\tsargs[marg]{label}\tsargs[oarg]{spc}}
186 \tsmacro{\annexref}{label}
187 \tsobj[code]{\autoannexref}{\tsargs[oarg]{sep}\tsargs[marg]{label}\tsargs[oarg]{spc}}
188 \end{codesyntax}
189 The \tsobj[pkg]{hyperref} package, sometimes, gets the \tsmacro{\autoref}{} name wrong (when referencing an annex), the \tsmacro{\annexref}{label} will assure the correct annex name is used.
190
191 \tsmacro{\autonameref}{label} produces an entry of the form `\tsmacro{\autoref}{label} \tsobj[meta]{sep} \tsmacro{\nameref}{label} \tsobj[meta]{spc}'
192
193 \tsmacro{\autoannexref}{label} produces an entry of the form `\tsmacro{\annexref}{label} \tsobj[meta]{sep} \tsmacro{\nameref}{label} \tsobj[meta]{spc}'
194
195 The default \tsobj[meta]{sep} being a comma, and the default \tsobj[meta]{spc} being empty space.
196
197 \end{codedescribe}
198
199 \subsection{Class Known Hooks}
200 \begin{codedescribe}{\miktexHack,\overleafHack,\livetexHack}
201 \begin{codesyntax}%
202 \tsmacro{\miktexHack}{}
203 \tsmacro{\overleafHack}{}
204 \tsmacro{\livetexHack}{}
205 \end{codesyntax}
206 Case some workaround is needed due an unexpected error (when upgrading packages/\TeX system) the class “knows” about those three hooks.
207 They will be executed if, and only if, they are user defined and the corresponding package option is used, i.e., for example, for the hook \tsmacro{\miktexHack}{} to be used/called by the class \tsobj[pkg]{ufrgscca}, one has to: a)~define it and b)~use the class option \tsobj[option]{miktex}.
208 \end{codedescribe}
209
210
211 \section{\tightul{ufrgscca-abnt} Package}
212 This package is the one that sets the page layout (using \tsobj[pkg]{geometry, titlesec, titletoc}) and adjusts the main float environments (figure, tables, captions).
213 It can be used as a stand alone package, regardless of the underlying class.
214
215 The following packages are always pre-loaded: \tsobj[pkg]{ babel, csquotes, geometry, appendix, titlesec, titletoc, enumitem, chngctr, caption, biblatex, microtype, array, nicematrix, contour, soul}.
216
217 Take note that \tsobj[pkg]{biblatex} is loaded with the \textbf{\tsobj[option]{biber}} option, to correctly handle ABNT biography style.
218
219 \subsection{Package Options}
220
221
222 \begin{describelist}{option}
223 \describe {strict-abnt} {to assure asymmetric margins, as defined by ABNT: inner ones greater than outer ones, which matters if you are going to print the doc and make a book of it, but makes it odd to look at in a computer screen, reason by which the current default setting is for symmetric margins (same text width).}
224
225 \describe {chapternopagenum} { to suppress the page numbers at chapters begin.}
226
227 \describe {relnum} {by default, figures, tables, etc. are numbered as a continuous series. With this switch, those lists are reset at each chapter, e.g. Figure 5.1 instead of Figure 23.}
228
229 \describe {repeatfields} {in case of authors with multiple publications, their names will be repeated for each entry. In the default setting the author's name is written only in the first entry, and replaced by underscores in the other entries.}
230
231 \describe {yearsonly} {In some cover pages (like the ones for TCC) the bottom of the approval's page, will only displays the year (instead of the default mouth year construction).}
232
233 \describe {nomicrotype} {in some rare cases, \tsobj[pkg]{microtype} might hurt page layout, this allows the suppression of \tsobj[pkg]{microtype}.}
234
235 \describe {showframes} {for layout proof only, it will draw frames around each page main parts.}
236
237 \describe {showlabels} {it will put a reference mark in each label created, and print out it's name.}
238
239 \describe {tocdepth} {use: \tsobj[key]{tocdepth} = \tsobj[meta]{number}, whereas \tsobj[meta]{number} indicates the deepest sectioning to appears in the Table of Contents (0 being the top section, which is \tsmacro{\chapter}{} for report based classes, 1 being \tsmacro{\section}{}, and so on.) The default value being 3 (\tsmacro{\subsubsection}{}).}
240
241 \describe {secdepth} {use: \tsobj[key]{secdepth} = \tsobj[meta]{number}, whereas \tsobj[meta]{number} indicates the deepest sectioning to be numbered. (0 being the top section, which is \tsmacro{\chapter}{} for report based classes, 1 being \tsmacro{\section}{}, and so on.) The default value being 4 (\tsmacro{\paragraph}{}).}
242
243 \end{describelist}
244
245
246 \subsection{Commands}
247
248 \begin{codedescribe}[code,new=2023/11/18]{\mainkeyword,\otherkeyword}
249 \begin{codesyntax}%
250 \tsmacro{\mainkeyword}{keyword}
251 \tsmacro{\otherkeyword}{keyword}
252 \end{codesyntax}
253 These command can be invoked many times, it will construct a list of keywords to be used when printing out the (main/other)abstract environment.
254 \end{codedescribe}
255 \begin{tsremark}
256 the old \tsmacro{\keyword}{keyword} gets defined, as an allias to \tsobj{\mainkeyword}, in case one use the \tsobj[key]{oldrenews} class option is used.
257 \end{tsremark}
258
259 \begin{codedescribe}{\sourcecitation,\note}
260 \begin{codesyntax}
261 \tsmacro{\sourcecitation}{source}
262 \tsmacro{\note}{text}
263 \end{codesyntax}
264 When describing floating elements (like figure, tables, circuits) one always has to cite the source of it, and in some cases it might be necessary to add a special note. Those assure uniformity when doing that.
265 \end{codedescribe}
266
267 \begin{codedescribe}{\nonum,\notoc}
268 \begin{codesyntax}%
269 \tsobj[code]{\nonum}{\tsmacro{\chapter}{chap.title}}
270 \tsobj[code]{\nonum}{\tsmacro{\section}{sec.title}}
271 \tsobj[code]{\notoc}{\tsmacro{\chapter}{chap.title}}
272 \tsobj[code]{\notoc}{\tsmacro{\section}{sec.title}}
273 \end{codesyntax}
274 In some cases, it might be necessary to create a numberless chapters or sections. Those two commands can be used as a \emph{prefix} to any sectioning command. Whilst \tsmacro{\nonum}{} will just suppress the sectioning number, the \tsmacro{\notoc}{} will also suppress it from the table of contents.
275 \end{codedescribe}
276
277 \begin{codestore}[st=demononum]
278 \nonum\chapter{some title} %this one will appear in the toc
279 \notoc\section{some other title} %this won't even appear in the toc
280 \end{codestore}
281 \tscode*[emph={nonum,notoc}]{demononum}
282
283 \begin{codedescribe}{\tightul}
284 \begin{codesyntax}%
285 \tsmacro{\tightul}{text}
286 \end{codesyntax}
287 This will \emph{underline} a short text, take note that \tsobj[meta]{text} `can't be broken' (think paragraph justification), which can lead to \emph{text overflows} and bad justification.
288 \end{codedescribe}
289
290 \begin{codestore}[st=demotight]
291 \tightul{Some text example}%
292 \end{codestore}
293
294 \tsdemo[emph={tightul}]{demotight}%[-0.75ex]
295
296 \begin{codedescribe}{\NewChapListEnv}
297 \begin{codesyntax}%
298 \tsmacro{\NewChapListEnv}{envname,displayname}
299 \end{codesyntax}
300 \end{codedescribe}
301 Creates a \emph{chapter like} lists, e.g. `List of Symbols' or `List of acronyms'. With it, a new environment is created, \tsobj[meta]{envname}, with an associated `numberless' chapter name \tsobj[meta]{displayname}. The newly created environment will implement a \emph{description} like environment (thanks to \tsobj[pkg]{enumitem}) with an optional and a mandatory argument (see below).
302
303 \begin{codestore}[st=d.newchapenv]
304 \def\listabbrvname{Lista de Abreviaturas}
305 \NewChapListEnv{listofabbrv}{\listabbrvname} % this is the actual code used in ufrgscca-abnt.sty
306 \end{codestore}
307 \tscode*{d.newchapenv}
308
309 \begin{codedescribe}[code,update=2023/11/30]{\pubdate,\today,\monthname}
310 \begin{codesyntax}%
311 \tsmacro{\pubdatedate}[day]{month,year}
312 \tsmacro{\today}{}
313 \tsmacro{\monthname}{}
314 \end{codesyntax}
315 \end{codedescribe}
316 \tsmacro{\pubdate}{} sets the publication date. If not called by the user it \emph{defaults} to current month / year. \tsmacro{\today}{} returns the current \emph{locale} date, whilst \tsmacro{\monthname}{} returns the \emph{locale} name of the current month.
317 \begin{tsremark}[N.B.:]
318 If the package option \tsobj[option]{oldrenews} is used, the command \tsobj{\date} will be redefined as an allias to \tsobj{\pubdate}.
319 \end{tsremark}
320
321 \subsection{Environments}
322 \begin{codedescribe}[env,new=2023/11/18]{mainabstract}
323 \begin{codesyntax}%
324 \tsmacro{\begin{mainabstract}}[lang]{keywords}\ldots\tsmacro{\end{mainabstract}}{}
325 \end{codesyntax}
326 \tsobj[env]{mainabstract} is defined as a numberless chapter based on the current locale (default: Portuguese), at the end of it the keywords list created with \tsmacro{\mainkeyword}{} will be added.
327 \end{codedescribe}
328
329 \begin{codestore}[st=d.abstract]
330 \mainkeyword{a keyword}
331 \mainkeyword{another keyword}
332 \begin{mainabstract} some short summary of things\ldots
333 \end{mainabstract}
334 \end{codestore}
335 \tscode*{d.abstract}
336
337 \begin{codedescribe}[env,update=2023/11/18]{otherabstract}
338 \begin{codesyntax}%
339 \tsmacro{\begin{otherabstract}}[lang]\ldots\tsmacro{\end{otherabstract}}{}
340 \end{codesyntax}
341 This is the environment to create an abstract in a language other than the default one.
342 The default value for \tsobj[meta]{lang} is english, and it can be any value that \tsobj[pkg]{babel} understands. A keywords list created with \tsmacro{\otherkeyword}{} will be added at the end of it.
343 \end{codedescribe}
344
345 \begin{codestore}[st=d.oabstract]
346 \otherkeyword{a keyword}
347 \otherkeyword{another keyword}
348 \begin{otherabstract}[english] some short summary of things\ldots
349 \end{otherabstract}
350 \end{codestore}
351 \tscode*{d.oabstract}
352
353
354 \begin{codedescribe}[env]{listofabbrv,listofsymbols}
355 \begin{codesyntax}%
356 \tsmacro{\begin{listofabbrv}}[enum-opt]{ABBRV}\ldots\tsmacro{\end{listofabbrv}}{}
357 \tsmacro{\begin{listofsymbols}}[enum-opt]{SYMB}\ldots\tsmacro{\end{listofsymbols}}{}
358 \end{codesyntax}
359 \end{codedescribe}
360 Both environments create a description like list preceded by a numberless (\tsmacro{\nonum}{}) chapter. \tsobj[meta]{enum-opt} is any \tsobj[pkg]{enumitem} list valid key. Whereas \tsobj[meta]{ABBRV} / \tsobj[meta]{SYMB} are just the `biggest' abbreviation/symbol to be used as a tab reference.
361
362 \begin{codedescribe}[env]{appendix,annex}
363 \begin{codesyntax}%
364 \tsmacro{\begin{appendix}}{}.... \tsmacro{\end{appendix}}{}
365 \tsmacro{\begin{annex}}{}.... \tsmacro{\end{annex}}{}
366 \end{codesyntax}
367 \end{codedescribe}
368 Those two environments start the appendices and annex chapters (using locale). Chapters are alphabetic \emph{numbered} (starting at A).
369 \subsection{Tabular New Columns}
370 Thanks to \tsobj[pkg]{array} some new columns types are defined:
371 \begin{describelist}{value}
372 \describe {P} { \tsobj[value]{P\{\tsobj[marg]{width}\}} Normal text, ragged left.}
373
374 \describe {B} { \tsobj[value]{B\{\tsobj[marg]{width}\}} Bold text, ragged left.}
375 \describe {C} { \tsobj[value]{C\{\tsobj[marg]{width}\}} Normal text, centered.}
376 \describe {R} { \tsobj[value]{R\{\tsobj[marg]{width}\}} Normal text, ragged left.}
377 \describe {L} { \tsobj[value]{L\{\tsobj[marg]{width}\}} Normal text, ragged right.}
378 \describe {J} { \tsobj[value]{J\{\tsobj[marg]{width}\}} Normal text, justified.}
379 \end{describelist}
380
381
382
383 \subsection{enumitem Extra Keys}
384 Besides the \emph{default} keys defined by the \tsobj[pkg]{enumitem} package a few others are defined for author's convenience:
385
386 \begin{describelist}{key}
387 \describe {ppc, tcc} {\tsobj[key]{ppc} and \tsobj[key]{tcc} are alias of each other, and just assure that lists indentation will be the same as paragraphs default.}
388 \describe {parindent} {with \tsobj[key]{parindent}, the list number/mark is aligned with paragraph indentation.}
389 \describe {noindent} {\tsobj[key]{noindent} removes the label indentation.}
390
391 \begin{codestore}[st=enumA]
392 \begin{enumerate}[tcc]
393 \item some A
394 \item some B
395 \end{enumerate}
396 \begin{enumerate}[tcc,parindent]
397 \item some A
398 \item some B
399 \end{enumerate}
400 \begin{enumerate}[parindent]
401 \item some A
402 \item some B
403 \end{enumerate}
404 \begin{enumerate}[noindent]
405 \item some A
406 \item some B
407 \end{enumerate}
408
409 New paragraph, for reference.
410 \end{codestore}
411
412 % \tsdemo*[parindent=org]{enumA}
413 \tsdemo{enumA}
414
415 \describe {tight} {allows for very tight lists (no indentation) to be used, for instance, inside quotes. N.B. don't use it in normal paragraph mode, otherwise the labels will spill outside the default text window.}
416 \describe {miditemsep} {\tsobj[key]{miditemsep} halves items separation, as an alternative to \tsobj[key]{noitemsep} from \tsobj[pkg]{enumitem}}
417 \begin{codestore}[st=enumB]
418 \begin{enumerate}[tcc]
419 \item some A
420 \item some B
421 \end{enumerate}
422 \begin{enumerate}[tcc,miditemsep]
423 \item some A
424 \item some B
425 \end{enumerate}
426 \begin{enumerate}[tcc,noitemsep]
427 \item some A
428 \item some B
429 \end{enumerate}
430 \end{codestore}
431 \newpage
432 \tsdemo{enumB}
433
434
435 \describe {bullet} {for simple itemized lists, it will replace the default black dot by an `open bullet'}
436
437 \begin{codestore}[st=enumD]
438 \begin{itemize}[tcc,miditemsep]
439 \item some A
440 \item some B
441 \item some C
442 \end{itemize}
443 \begin{itemize}[tcc,bullet,miditemsep]
444 \item some A
445 \item some B
446 \item some C
447 \end{itemize}
448 \end{codestore}
449
450 \tsdemo{enumD}
451
452
453 \describe {arabic} {That's the \emph{default} enumerate style. Arabic numbers, starting at 1, followed by a dot.}
454 \describe {arabic)} {Label will be constructed as number followed by a parenthesis.}
455 \describe {(arabic)} {Label will be enclosed by parenthesis.}
456 \describe {arabic*} {(for secondary lists) Label will be constructed by the label of the outer list, this item number and a final dot.}
457 \describe {arabic*)} {(for secondary lists) Label will be constructed by the label of the outer list, this item number and a final parenthesis.}
458
459 \describe {roman} {This and below keys are the same as the arabic ones, but using lower case roman numbers.}
460 \describe {roman)} {lower case roman number, followed by a parenthesis.}
461 \describe {(roman)} {enclosed by parenthesis.}
462 \describe {roman*} {preceding one followed by roman number and a final dot.}
463 \describe {roman*)} {same, followed by a final parenthesis.}
464
465 \describe {Roman} {This and below keys are the same as the arabic ones, but using upper case roman numbers.}
466 \describe {Roman)} {upper case roman number, followed by a parenthesis.}
467 \describe {(Roman)} {enclosed by parenthesis.}
468 \describe {Roman*} {preceding one followed by roman number and a final dot.}
469 \describe {Roman*)} {same, followed by a final parenthesis.}
470
471 \describe {alpha} {This and below keys are the same as the arabic ones, but using lower case alpha numbers.}
472 \describe {alpha)} {lower case alpha number, followed by a parenthesis.}
473 \describe {(alpha)} {enclosed by parenthesis.}
474 \describe {alpha*} {preceding one followed by alpha number and a final dot.}
475 \describe {alpha*)} {same, followed by a final parenthesis.}
476
477 \describe {Alpha} {This and below keys are the same as the arabic ones, but using upper case alpha numbers.}
478 \describe {Alpha)} {upper case roman number, followed by a parenthesis.}
479 \describe {(Alpha)} {enclosed by parenthesis.}
480 \describe {Alpha*} {preceding one followed by roman number and a final dot.}
481 \describe {Alpha*)} {same, followed by a final parenthesis.}
482 \begin{codestore}[st=enumC]
483 \begin{enumerate}[tcc,roman]
484 \item some A
485 \item some B
486 \item some C
487 \end{enumerate}
488 \begin{enumerate}[tcc,Roman]
489 \item some A
490 \item some B
491 \begin{enumerate}[tcc,alpha*]
492 \item some A
493 \item some B
494 \item some C
495 \end{enumerate}
496 \item some C
497 \end{enumerate}
498 \begin{enumerate}[tcc,arabic]
499 \item some A
500 \item some B
501 \begin{enumerate}[tcc,roman*)]
502 \item some A
503 \item some B
504 \item some C
505 \end{enumerate}
506 \item some C
507 \end{enumerate}
508 \end{codestore}
509
510 \tsdemo{enumC}
511
512
513 \end{describelist}
514
515
516
517
518 \section{\tightul{ufrgscca-core} Package}
519 The \tsobj[pkg]{ufrgscca-core} package defines a set of commands for student's and activity's related info. It is needed by most/all of the bundled packages.
520
521 All data is stored in two main \tsobj[pack]{starray} defined as follow:
522
523 \begin{codestore}[st=activitydef]
524 {
525 name , acronym ,
526 coord . struct
527 {
528 name , title ,
529 article , Article , narticle , Narticle , carticle , Carticle ,
530 } ,
531 calendar . struct
532 {
533 date , week , event ,
534 } ,
535 chkmarked , chkunmarked , chkref
536 }
537 \end{codestore}
538
539 \tscode*[codeprefix={Activity's Structure Definition:},basicstyle={\scriptsize\ttfamily}]{activitydef}\label{activity-def}
540
541
542 \begin{codestore}[st=studentdef]
543 {
544 first , last , name , Nproc , ID , email , worktitle ,
545 article , Article , narticle , Narticle , carticle , Carticle ,
546 remarks , checklist , brief , reason ,
547 board-local , board-date , board-time , gradeavrg , grade ,
548 flag-graded , %%% IF gradeavrg AND finalgrade already calculated (or defined)
549 flag-exam ,
550 flag-ff ,
551 flag-dismiss , %%% IF it was the 1st semester.
552 flag-other , %%% "other list", placeholder for 'none of the above' lists.
553 flag-newpage , %% if it should go in a new page (board)
554 flag-distinctboard , %% if advisor isn't in the board
555 flag-approved ,
556 flag-coadvisor ,
557 advisor . struct {
558 first , last , name , institution , title , email , phone ,
559 article , Article , narticle , Narticle , carticle , Carticle ,
560 assessment
561 } ,
562 coadvisor . struct {
563 first , last , name , institution , title , email , phone ,
564 article , Article , narticle , Narticle , carticle , Carticle ,
565 reason
566 } ,
567 reviewer . struct {
568 first , last , name , institution , title , email , phone ,
569 article , Article , narticle , Narticle , carticle , Carticle ,
570 pointA , pointB , pointC , pointD , grade , gradetype , flag-examreview ,
571 } ,
572 altreviewer . struct {
573 first , last , name , institution , title , email , phone ,
574 article , Article , narticle , Narticle , carticle , Carticle ,
575 } ,
576 internship . struct {
577 company , field , start , end , length ,
578 } ,
579 tutor . struct {
580 first , last , name , title , email , phone ,
581 article , Article , narticle , Narticle , carticle , Carticle ,
582 } ,
583 supervisor . struct {
584 first , last , name , register , title , office , email , phone ,
585 article , Article , narticle , Narticle , carticle , Carticle ,
586 } ,
587 }
588 \end{codestore}
589
590 \tscode*[codeprefix={Student's Structure Definition:},basicstyle={\scriptsize\ttfamily}]{studentdef}\label{student-def}
591
592
593
594 \subsection{Core Commands}\label{core-commands}
595
596
597
598 \begin{codedescribe}[code,new=2023/11/18]{\NewActivity}
599 \begin{codesyntax}%
600 \tsmacro{\NewActivity}{act-hash}
601 \end{codesyntax}
602 This will create a new 'activity'. Predefined ones being: \tsobj[option]{course,tccI,tccII,internship,internship-opt}.
603 \end{codedescribe}
604 \begin{tsremark}
605 This will create a \tsobj[pack]{starray}, the \tsobj[meta]{act-hash} being it's \tsobj[meta]{hash}.
606 \end{tsremark}
607
608
609
610 \begin{codedescribe}[code,new=2023/11/18]{\ActivitySet,\ActivitySetCoordTitle,\ActivitySetCoord}
611 \begin{codesyntax}%
612 \tsmacro{\ActivitySet}[act-hash]{acronym,name}
613 \tsmacro{\ActivitySetCoordTitle}[act-hash]{title}
614 \tsmacro{\ActivitySetCoord}[act-hash]{name}\tsargs[oarg]{gender}
615 \end{codesyntax}
616 These will set an Activity many fields. \tsobj[meta]{acronym,name} being the short (acronym) and long name of an activity. \tsobj[meta]{title} is the coordinator formal title, and so on.
617 \end{codedescribe}
618
619
620
621 \begin{codedescribe}[code,new=2023/11/18]{\ActivitySelect,\Activity,\ActivityCoord}
622 \begin{codesyntax}%
623 \tsmacro{\ActivitySelect}{act-hash}
624 \tsmacro{\Activity}[act-hash]{act-field}
625 \tsmacro{\ActivityCoord}[act-hash]{coord-field}
626 \end{codesyntax}
627 \tsobj{\ActivitySelect} just sets \tsobj[meta]{act-hash} as the current activity (set's the \tsobj[pack]{starray} iter). \tsobj{\Activity,\ActivityCoord} gets the corresponding field.
628 Possible values for \tsobj[meta]{act-field} are: \tsobj[option]{name,acronym}.
629 Possible values for \tsobj[meta]{coord-field} are: \tsobj[option]{name,title,article,Article,narticle,Narticle,carticle,Carticle}, as defined by \emph{Activity's structure} (see \ref{activity-def}).
630
631 \end{codedescribe}
632
633 \subsection{Core Auxiliary Commands}
634
635
636 \begin{codedescribe}[code,new=2023/11/18]{\studentselect,\studentReviewerSelect}
637 \begin{codesyntax}%
638 \tsmacro{\studentselect}{student-hash}
639 \tsmacro{\studentReviewerSelect}{reviewer-hash}
640 \end{codesyntax}
641 Selects a student or reviewer based on theirs hash.
642 \end{codedescribe}
643
644
645
646
647 \begin{codedescribe}[code,new=2023/11/18,update=2024/04/18]{\DataFields,\eDataSet,\eDataFields,\DataGet}
648 \begin{codesyntax}%
649 \tsmacro{\DataFields}{starray-ref,field}
650 \tsmacro{\eDataSet}[act-hash]{starray-ref}
651 \tsmacro{\eDataFields}{field}
652 \tsmacro{\DataFields}{starray-ref,field,tl-var}
653 \end{codesyntax}
654 These are, respectively, \tsobj{\starray_get_prop:nn, \starray_term_parser:n,\starray_parsed_get_prop:n} and \tsobj{\starray_get_prop:nnN} from \tsobj[pack]{starray}. One can reference/get any field from the main \tsobj[pack]{starray} defined structures: \tsobj[key]{student,activity} as defined at chapter \ref{activity-def}.
655 \end{codedescribe}
656
657
658 \begin{codedescribe}[code,new=2023/11/18,update=2023/12/02]{\studentiterate,\studentadvisoriterate}
659 \begin{codesyntax}%
660 \tsmacro{\studentiterate}{code}
661 \tsmacro{\studentadvisoriterate}{code}
662 \end{codesyntax}
663 These are \tsobj{\starray_iterate_over:nn} from \tsobj[pack]{starray}. \tsobj[meta]{code} will be executed for every defined student, \tsobj{\studentiterate} or student's advisor, \tsobj{\studentadvisoriterate}.
664 \end{codedescribe}
665
666 \begin{codedescribe}[code,new=2023/11/29]{\ActivityCalendarIterate}
667 \begin{codesyntax}%
668 \tsmacro{\ActivityCalendarIterate}{code}
669 \end{codesyntax}
670 This is \tsobj{\starray_iterate_over:nn} from \tsobj[pack]{starray}. \tsobj[meta]{code} will be executed for every defined calendar item.
671 \end{codedescribe}
672
673
674 \subsection{Core Specific Commands}\label{core-specific-commands}
675
676 The following commands are more or less self-explanatory, \tsobj[meta]{ID} is the student's university ID. \tsobj[meta]{Nproc} is the process/request number. \tsobj[meta]{gender} can be either 'm' or 'f'.
677
678
679 \begin{codedescribe}[code,update=2023/11/18]{\student,\studentinfo}%,\studentgender}
680 \begin{codesyntax}
681 \tsobj[code]{\student}{\tsargs[oarg]{student-hash}\tsargs[marg]{last,first}\tsargs[oarg]{gender}}
682 \tsmacro{\studentinfo}[Nproc]{ID,email}
683 \end{codesyntax}
684 \end{codedescribe}
685 \begin{tsremark}[N.B.:]
686 If the package option \tsobj[option]{oldrenews} is used, the command \tsobj{\author,\authorinfo} will be redefined as an allias to \tsobj{\student,\studentinfo}.
687 \end{tsremark}
688
689
690
691 \begin{codedescribe}[code,new=2023/11/18]{\workbrief,\advisorreview,\coadvisorreason,\workchange}
692 \begin{codesyntax}%
693 \tsmacro{\workbrief}{work-summary}
694 \tsmacro{\advisorreview}{advisor's-review}
695 \tsmacro{\coadvisorreason}{reason-for-a-coadvisor}
696 \tsmacro{\workchange}{reason-for-the-change}
697 \end{codesyntax}
698 Those commands are only of use when using \tsobj[pkg]{ufrgscca-forms}. \tsmacro{\workbrief}{} sets the work initial summary, \tsmacro{\coadvisorreason}{} sets the justification for having a co-advisor, \tsmacro{\advisorreview}{} sets the advisor's review, \tsmacro{\workchange}{} sets the reason for the work's theme change.
699 \end{codedescribe}
700
701 \begin{codedescribe}{\advisor,\advisorinfo}%,\advisorgender}
702 \begin{codesyntax}
703 \tsobj[code]{\advisor}{\tsargs[oarg]{title}\tsargs[marg]{last,first}\tsargs[oarg]{gender}}
704 \tsmacro{\advisorinfo}{Institut,title-info,email,phone}
705 \end{codesyntax}
706 \end{codedescribe}
707
708 \begin{codedescribe}{\coadvisor,\coadvisorinfo}%,\coadvisorgender}
709 \begin{codesyntax}
710 \tsobj[code]{\coadvisor}{\tsargs[oarg]{title}\tsargs[marg]{last,first}\tsargs[oarg]{gender}}
711 \tsmacro{\coadvisorinfo}{Institut,title-info,email,phone}
712 \end{codesyntax}
713 \end{codedescribe}
714
715 \begin{codedescribe}[code,new=2023/11/18]{\distinctboard}
716 \begin{codesyntax}%
717 \tsmacro{\distinctboard}{}
718 \end{codesyntax}
719 For the rare case in which the advisor won't take part in the examiner's board.
720 \end{codedescribe}
721
722
723 \begin{codedescribe}{\examiner,\examinerinfo}%,\examinergender}
724 \begin{codesyntax}
725 \tsobj[code]{\examiner}{\tsargs[oarg]{title}\tsargs[marg]{last,first}\tsargs[oarg]{gender}}
726 \tsmacro{\examinerinfo}{Institut,title-info,email,phone}
727 \end{codesyntax}
728 \end{codedescribe}
729
730 \begin{codedescribe}{\altexaminer,\altexaminerinfo}%,\altexaminergender}
731 \begin{codesyntax}
732 \tsobj[code]{\altexaminer}{\tsargs[oarg]{title}\tsargs[marg]{last,first}\tsargs[oarg]{gender}}
733 \tsmacro{\altexaminerinfo}{Institut,title-info,email,phone}
734 \end{codesyntax}
735 \end{codedescribe}
736
737 \begin{codedescribe}[code,new=2023/11/18]{\internship}%,\tutorgender}
738 \begin{codesyntax}
739 \tsmacro{\internship}{company,field,start,end,length}
740 \end{codesyntax}
741 \end{codedescribe}
742
743 \begin{codedescribe}{\tutor,\tutorinfo}%,\tutorgender}
744 \begin{codesyntax}
745 \tsobj[code]{\tutor}{\tsargs[oarg]{title}\tsargs[marg]{last,first}\tsargs[oarg]{gender}}
746 \tsmacro{\tutorinfo}{Institut,title-info,email,phone}
747 \end{codesyntax}
748 \end{codedescribe}
749
750 \begin{codedescribe}{\supervisor,\supervisorinfo}%,\tutorgender}
751 \begin{codesyntax}
752 \tsobj[code]{\supervisor}{\tsargs[oarg]{title}\tsargs[marg]{last,first}\tsargs[oarg]{gender}}
753 \tsmacro{\supervisorinfo}{register,office,email,phone}
754 \end{codesyntax}
755 \end{codedescribe}
756
757 \begin{tsremark}[N.B.:]
758 The commands \tsobj{\advisor,\coadvisor,\examiner,\altexaminer} are meant to be used in a 'final work' doc. The Macros \tsobj{\internship,\tutor,\supervisor} in case of an internship report.
759 \end{tsremark}
760
761
762 \section{\tightul{ufrgscca-cover} Package}
763 This package is the one that sets the front pages, depending on the kind of 'report' being generated.
764
765
766 \subsection{Defined Commands}
767 \begin{codedescribe}[code,new=2023/11/18]{\MakeCoverPages}
768 \begin{codesyntax}%
769 \tsmacro{\MakeCoverPages}{type}
770 \end{codesyntax}
771 This is the main command, which will typeset the front matter, from the information already given. \tsobj[meta]{type} sets the 'kind' of cover pages to be generated. Currently, it can be one of:
772 \end{codedescribe}
773 \begin{describelist}{option}
774 \describe{tccI}{Generate 3 pages, a first cover one, a second with work's description and third last one with work's approval for TCC-I}
775 \describe{tccII}{Generate 3 pages, a first cover one, a second with work's description and third last one with work's approval for TCC-II}
776 \describe{internship}{Generate 2 pages, a first cover one, a second with work's approval for internship report}
777 \describe{internship-opt}{Generate 2 pages, a first cover one, a second with work's approval for optional internship report}
778 \describe{class-report}{Generate 1 cover page}
779 \end{describelist}
780 \begin{tsremark}[N.B.:]
781 If the package option \tsobj[option]{oldrenews} is used, the command \tsobj{\maketitle} will be redefined as an allias to \tsobj{\MakeCoverPages}.
782 \end{tsremark}
783
784
785 \begin{codedescribe}{\location}
786 \begin{codesyntax}%
787 \tsmacro{\location}{city,state}
788 \end{codesyntax}
789 To redefine the default values of \tsobj[meta]{city} and \tsobj[meta]{state} (Porto Alegre and RS).\\
790 \end{codedescribe}
791
792 \begin{codedescribe}[code,new=2023/11/18]{\class}
793 \begin{codesyntax}%
794 \tsmacro{\class}{code,name}
795 \end{codesyntax}
796 To set the class code and name, for the cover page, in case of a class report.
797 \end{codedescribe}
798
799
800 \begin{codedescribe}[code,new=2023/11/18]{\SetCoverFields}
801 \begin{codesyntax}%
802 \tsmacro{\SetCoverFields}{type,field,value}
803 \end{codesyntax}
804 This allows to redefine the aforementioned \tsobj[meta]{types} and create new types of cover pages. \tsobj[meta]{field} is one of:
805 \end{codedescribe}
806 \begin{describelist}{option}
807 \describe{clist}{this defines which kind, and order, of pages will be generated. Possible values are: \tsobj[option]{cover,desc,approval}.}
808 \describe{top}{This will be the common top matter used.}
809 \describe{students}{How students names, authors, will be presented}
810 \describe{title}{The title to be used}
811 \describe{bottom}{The bottom of the cover page.}
812 \describe{text-descpage}{The text presented in the desc page.}
813 \describe{advisor-descpage}{Advisor's matter.}
814 \describe{bottom-descpage}{The bottom of the desc page.}
815 \describe{text-approvalpage}{The text presented in the approval page.}
816 \describe{advisor-approvalpage}{Advisor's matter in the approval page.}
817 \describe{bottom-approvalpage}{The bottom of the approval page.}
818 \end{describelist}
819
820
821
822 \section{\tightul{ufrgscca-forms} Package}
823 This package defines just two user commands to create forms needed at UFRGS/EE.
824 \subsection{Package Options}
825 \begin{describelist}{option}
826 \describe {noxtrbookmarks} {By default, each form will have an associated PDF bookmark, this option will suppress them.}
827 \end{describelist}
828
829 \subsection{Forms Defined Commands}\label{forms.commands}
830 \begin{codedescribe}[code,update=2023/05/29]{\tcforms,\tcemptyforms}
831 \begin{codesyntax}%
832 \tsmacro{\tcforms}{formslist}
833 \tsmacro{\tcemptyforms}{formslist}
834 \end{codesyntax}
835 The command \tsmacro{\tcforms}{} will generate the many forms (\tsobj[meta]{formslist}) using the information from \emph{local.tex}, whilst \tsmacro{\tcemptyforms}{} will generate said forms with 'blanks' (to be filled by hand, for instance).
836
837 \end{codedescribe}
838
839 \tsobj[meta]{formslist} is a csv list of:
840 \begin{describelist*}{option}
841 \describe {reqform-I} {}
842 \describe {reqform-II} { Registration requirement form.}
843 \describe {coadvisor-I} {}
844 \describe {coadvisor-II} { Coadvisor justification form.}
845 \describe {boardapproval-I} {}
846 \describe {boardapproval-II} { Boards approval form.}
847 \describe {advisorsapproval-I} {}
848 \describe {advisorsapproval-II} { Advisors approval form.}
849 \describe {receipts-II} { Receipts forms (one per board member).}
850 \describe {examinersforms-I} {}
851 \describe {examinersforms-II} { Grades and correction forms (per board member).}
852 \describe {rectifyapproval-I} {}
853 \describe {rectifyapproval-II} { Corrections approval form.}
854 \describe {internreqform} { Internship Registration requirement form.}
855 \describe {internsupervisorform} { Internship Supervisor evaluation form.}
856 \describe {interntutorform} { Internship tutor evaluation form.}
857 \end{describelist*}
858 Please note that those '-I' regards TCC-I, while '-II' regards TCC-II.
859
860 \begin{codedescribe}[code,new=2023/11/18]{\SetForm,\MakeForm}
861 \begin{codesyntax}%
862 \tsmacro{\SetForm}{form-hash,field,code}
863 \tsmacro{\MakeForm}{form-hash}
864 \end{codesyntax}
865 \tsobj{\SetForm} can be used to set new forms (or redefine existent ones). \tsobj[meta]{form-hash} being a free identifier. Possible \tsobj[meta]{field} values are \tsobj[key]{top,heading,bookmark,title,opening,body,closing,footnone}. \tsobj{\MakeForm} typesets the selected form.
866 \end{codedescribe}
867
868
869 \section{\tightul{ufrgscca-lists} Package}
870 The following packages are always pre-loaded: \tsobj[pkg]{ newfloat, listings, xcolor}.
871 It defines a new \emph{floating environment} \tsobj[env]{codelist}. Combined with \tsobj[pkg]{listings} one can typeset exempts of a \emph{code listing}.
872
873 \subsection{Environment}
874 \begin{codedescribe}[env]{codelist}
875 \begin{codesyntax}%
876 \tsmacro{\begin{codelist}}{}\ldots \tsmacro{\end{codelist}}{}
877 \end{codesyntax}
878 \tsmacro{\caption}{} will be named 'Listing' (Listagem).
879
880 \begin{codestore}[st=d.listing]
881 \begin{codelist}[htbp]
882 \caption{sample C code}
883 \label{code01}
884 \begin{lstlisting}[language=C]
885 struct i2c_msg
886 {
887 __u16 addr; /* endereco do escravo */
888 __u16 flags;
889 }
890 \end{lstlisting}
891 {\sourcecitation{\textcite{Garg:SMA-2000}}}
892 \end{codelist}
893 \end{codestore}
894 \tscode*{d.listing}
895
896 \end{codedescribe}
897
898 \subsection{Declared Commands}
899 \begin{codedescribe}{listofcodelist}
900 \begin{codesyntax}%
901 \tsmacro{\listofcodelist}{}
902 \end{codesyntax}
903 This will create the 'List of ...' associated with the \tsobj[env]{codelist} environment.
904 \end{codedescribe}
905
906 \iffulldoc
907
908 \begin{codedescribe}{\DeclareNewFloat}
909 \begin{codesyntax}%
910 \tsmacro{\DeclareNewFloat}{env-name,file-ext,listname,listofname}
911 \end{codesyntax}
912 A new float environment, named \tsobj[env]{env-name}, will be created. Captions will be associated (numbered) as \textbf{\tsobj[meta]{listname} num:}. Finally, an associated command \tsmacro{\listof...}{} will be defined, using \tsobj[meta]{listofname} as a numberless \tsmacro{\chapter}{} title.
913
914 \begin{codestore}[st=d.float]
915 \def\listingname{Listing}%
916 \def\listlistingname{List of Listings}%
917 \DeclareNewFloat{codelist}{lox}{\listingname}{\listlistingname}%%
918 %% after that, one can do as in the previous example
919 %%
920 %% the list of, will be created as
921 \listofcodelist
922 \end{codestore}
923
924 \tscode*[emph={codelist,listofcodelist}]{d.float}
925 \end{codedescribe}
926 \fi
927
928
929 \iffulldoc
930 \section{\tightul{ufrgscca-coord} Package (extended documentation)}
931 This package defines a set of auxiliary commands meant to support the Professor coordinating students work.
932 it will always pre-load the \tsobj[pkg]{longtable} and \tsobj[pkg]{ufrgscca-forms} packages.
933
934 N.B. It might be also useful to use the commands defined at \autonameref{forms.commands}.
935
936 A \emph{report document} is composed of 2 main parts:
937 \begin{enumerate}[tcc,arabic,miditemsep]
938 \item A global preamble, where one sets
939 \begin{enumerate}[tcc,alpha*,noitemsep]
940 \item the current semester, Course/TCC/internship coordinator's names, etc. ,
941 \item auxiliary data, like students \emph{check list} items and
942 \item students data.
943 \end{enumerate}
944 \item A 'final part' whereas one set which reports are to be generated.
945 \end{enumerate}
946
947 One can (should) use the commands listed at \autonameref{core-commands}[], and these below:
948
949 \paragraph{Check List}
950 \begin{codedescribe}[code,update=2023/11/18]{\checkdef,\checklist}%,\checklist}
951 \begin{codesyntax}%
952 \tsmacro{\checkdef}{LxCy,check-item,check-text}
953 \tsmacro{\checklist}{check-items-list}
954 \end{codesyntax}
955 Whereas one has a '5x5 matrix' (\tsobj[meta]{checkLC} being one of L1C1...L1C5, ... , L5C1...L5C5). \tsobj[meta]{chek-item} is a free identifier (to be used with the \tsmacro{\checklist}{}), and \tsobj[meta]{check-text} the text to appear in the 'check list report'. Note this is a list \textbf{per activity} (the current one being set).
956
957 \tsmacro{\checklist}{} set's those items for the current student. \tsobj[marg]{check-items-list} is a comma separated list of \tsobj[marg]{check-item}.
958
959 \begin{codestore}[st=d.check]
960 \checkdef{L1C1}{tcc-part}{Rel. Parcial} % this creates the 'check item' tcc-part and associates it with the L1C1 position (first line, first column), display text 'Rel. Parcial'
961 \checkdef{L2C1}{partOK}{Aprov. Rel. Parcial} % this creates 'partOK' and associates it with L2C1 position
962
963 \checkdef{L1C2}{board}{Banca def.} %
964 \checkdef{L2C2}{board-date}{Data defesa} % 'board-date' is associated with the L2C2 position
965
966 \checkdef{L1C5}{tcc-final}{TCC final} %
967 \checkdef{L2C5}{approval}{Aprovação Correções} %
968 \checkdef{L4C5}{exam}{Em Exame} % 'exam' (display 'Em Exame') is associated with the L4C5 position
969 %%
970 %%
971 %% later on, one can use (inside a \NewStudent command)
972 \checklist{tcc-part,partOK,exam} % this will, for a given student, 'mark' the 'tcc-part', 'partOK' and 'exam' items.
973 \end{codestore}
974
975
976 \tscode*[emph={{tcc-part},partOK,board,board-date,{tcc-final},approval,exam}]{d.check}
977
978 \end{codedescribe}
979
980
981 \paragraph{Auxiliary / Report Specific}
982
983 \begin{codedescribe}[code,new=2023/11/18]{\ActivitySetNewEvent,\ActivitySetEventDay}
984 \begin{codesyntax}%
985 \tsmacro{\ActivitySetNewEvent}[act-hash]{event-hash,event-desc}
986 \tsmacro{\ActivitySetEventDay}[act-hash]{event-hash,day,week}
987 \end{codesyntax}
988 An activity may have a calendar/set of associated events. \tsobj[meta]{event-hash} is just a hash to reference it (\tsobj[pack]{starray} hash). \tsobj[meta]{event-desc} is the text associated with it. \tsobj[meta]{day,week} the associated date.
989 \end{codedescribe}
990
991
992 \begin{codedescribe}[code,new=2023/11/18]{\studentremark,\studentnewpage,\distinctboard}
993 \begin{codesyntax}%
994 \tsmacro{\studentremark}{remarks}
995 \tsmacro{\studentnewpage}[student-hash]{}
996 \tsmacro{\distinctboard}{}
997 \end{codesyntax}
998 Those commands are only of use when using \tsobj[pkg]{ufrgscca-coord}. \tsmacro{\studentremark}{} sets a free remark text (notes about). Whilst, \tsobj{\distinctboard,\studentnewpage} set the \tsobj[key]{flag-distinctboard,flag-newpage} flags..
999 \end{codedescribe}
1000
1001
1002 \begin{codedescribe}[code,new=2023/11/18,update=2023/12/02,update=2024/01/15,update=2024/02/22,update=2024/02/27]{\studentCase,\studentAdvCase,\studentCoadvCase,\studentDismissOtherCase,\studentNewPageCase,\studentDistinctBoardCase,\studentReviewerCase,\studentReviewerSetCase}
1003 \begin{codesyntax}%
1004 \tsmacro{\studentCase}{if-A-B-C,if-D,if-Exam-C,if-Exam-D,if-FF}
1005 \tsmacro{\studentAdvCase}{if-more-than-one,if-not}
1006 \tsmacro{\studentCoadvCase}{if-defined,if-not}
1007 \tsmacro{\studentDismissOtherCase}{if-dismiss-other,if-not}
1008 \tsmacro{\studentNewPageCase}{if-newpage,if-not}
1009 \tsmacro{\studentDistinctBoardCase}{if-distinct,if-not}
1010 \tsmacro{\studentReviewerCase}{rev-num,if-marked,if-not}
1011 \tsmacro{\studentReviewerSetCase}{rev-num,if-set,if-not}
1012 \end{codesyntax}
1013 These are a set of auxiliary conditionals, for instance, \tsobj{\StudentCase} will execute \emph{only one} of the \tsobj[meta]{if-} accordingly.
1014 \end{codedescribe}
1015
1016
1017 \begin{codedescribe}[code,new=2023/11/30]{\professor,\advisorprof,\coadvisorprof,\examinerprof,\altexaminerprof}
1018 \begin{codesyntax}%
1019 \tsobj[code]{\professor}\tsargs[oarg]{prof-ref}\tsargs[marg]{last,first,email,phone}\tsargs[oarg]{gender}
1020 \tsmacro{\advisorprof}{prof-ref}
1021 \tsmacro{\coadvisorprof}{prof-ref}
1022 \tsmacro{\examinerprof}{prof-ref}
1023 \tsmacro{\altexaminerprof}{prof-ref}
1024 \end{codesyntax}
1025 \tsobj{\professor} creates a \tsobj[oarg]{prof-ref} alias to a person's full name. \tsobj{\advisorprof} expands to a call for \tsobj{\advisor,\advisorinfo} using the properties stored by \tsobj{\professor}. Similarly, \tsobj{\coadvisorprof,\examinerprof,\altexaminerprof} results in call to \tsobj{\coadvisor,\coadvisorinfo,\examiner,\examinerinfo,\altexaminer,\altexaminerinfo} respectively.
1026 \end{codedescribe}
1027 \begin{tsremark}
1028 \tsobj{\professor} creates/uses an auxiliary \tsobj[pkg]{starray}, just mapping names for users convenience.
1029 \end{tsremark}
1030
1031
1032 \begin{codedescribe}[code,new=2023/11/18]{\boardtitle,\boardobs,\semester}
1033 \begin{codesyntax}%
1034 \tsmacro{\boardtitle}{title}
1035 \tsmacro{\boardobs}{obs}
1036 \tsmacro{\semester}{semester}
1037 \end{codesyntax}
1038 \tsmacro{\boardobs}{} allows to add an observation (\tsobj[meta]{obs}) for the 'boards schedule report', and \tsobj{\semester} sets the current semester value.
1039 \end{codedescribe}
1040
1041
1042 %%%%\paragraph{Internship Specific}
1043 %%%%
1044 %%%%\begin{codedescribe}{\intershipcommitdates}
1045 %%%% \begin{codesyntax}%
1046 %%%% \tsmacro{\intershipcommitdates}{date I}{date II}
1047 %%%% \end{codesyntax}
1048 %%%% Use \tsmacro{\intershipcommitdates}{} to set the semester deadlines. Both dates must be given in the dd/mm/yyyy format.
1049 %%%% \tsobj[meta]{date I} is the deadline for a given report still be fully evaluated. After \tsobj[meta]{date I} the given internship will be in “exam”. If the student report isn't submitted until \tsobj[meta]{date II} the student will fail with an “FF” grade.
1050 %%%%\end{codedescribe}
1051
1052
1053
1054 %%\subsubsection{Global Commands II}\label{new-student}
1055
1056 %%%%\begin{codedescribe}{\NewStudent}
1057 %%%% \begin{codesyntax}%
1058 %%%% \tsmacro{\NewStudent}{studentname,code}
1059 %%%% \end{codesyntax}
1060 %%%% This is the main command describing each \tsobj[meta]{student} associated work, advisor and exam board. In \tsobj[meta]{code} one should use the commands defined in \autonameref{core-specific-commands}, and \autonameref{student-specific-commands} (although one can use any valid \LaTeXe~ preamble code, keep in mind those will be executed BEFORE \tsmacro{\begin{document}}{}), to describe a student work.
1061 %%%%\end{codedescribe}
1062 %%%% So, for instance:
1063 %%%% \begin{codestore}[st=d.newstudent]
1064 %%%%\NewStudent{Artur}{
1065 %%%% \student{last}{first}[m]
1066 %%%%
1067 %%%% \studentinfo[]{243716}{email@somewhere}
1068 %%%% \TCCtitle{work title}
1069 %%%% \advisor{de Amorin}{Heraldo José}[m]
1070 %%%% \coadvisor{Camargo Nardelli}{Vítor}[m]
1071 %%%% \examinergrades{9.2}{8.5}{9.2}
1072 %%%% \examiner{Götz}{Marcelo}[m]
1073 %%%% \examinergrades{10}{9.5}{9.5}
1074 %%%% \examiner{Comparsi Laranja}{Rafael Antônio}
1075 %%%% \examinergrades{8.5}{8.5}{8}
1076 %%%% \altexaminer{Ventura Bayan Henriques}{Renato}
1077 %%%% %%
1078 %%%% %%
1079 %%%% \timeslot[Teams]{12/11}{15:30}
1080 %%%%
1081 %%%% \studentFate[Dismiss] %% FF or Dismiss ??
1082 %%%%}
1083 %%%%\end{codestore}
1084 %%%%
1085 %%%%\tscode*{d.newstudent}
1086 %%%%
1087 %%%%\begin{tsremark}[N.B.:]
1088 %%%%Internally, \tsmacro{\NewStudent}{} will create a command named \tsmacro{\studentname}{}, with a \emph{hook} named \tsmacro{\studentname.hook}{} (the dot is part of the hook's name).
1089 %%%%\end{tsremark}
1090 %%%%
1091 %%%%
1092 %%%%\begin{codedescribe}{\NewInternshipStudent}
1093 %%%% \begin{codesyntax}%
1094 %%%% \tsmacro{\NewInternshipStudent}{studentname,code}
1095 %%%% \end{codesyntax}
1096 %%%% This is the main command describing each \tsobj[meta]{student} associated internship, tutor and advisor. In \tsobj[meta]{code} one should use the commands defined in \autonameref{core-specific-commands}, and \autonameref{student-specific-commands} (although one can use any valid \LaTeXe~ preamble code, keep in mind those will be executed BEFORE \tsmacro{\begin{document}}{}), to describe a student internship.
1097 %%%% \end{codedescribe}
1098 %%%% So, for instance:
1099 %%%% \begin{codestore}[st=d.newstudentB]
1100 %%%% \NewStudent{Artur}{
1101 %%%% \student{last}{first}[m]
1102 %%%% \studentinfo[]{243716}{email@somewhere}
1103 %%%% \internship{Empresa I}{P\&D}{10/10/22}{20/12/22}{2 Meses}
1104 %%%%
1105 %%%% \supervisor[Eng. I]{do Supervisor}{Nome}[m]
1106 %%%% \supervisorinfo{crea I}{posição/cargo}{email}{ramal}
1107 %%%%
1108 %%%% \internshipsupervisorgrades{4}{4}{4}{4}{5}
1109 %%%% \internshipsupervisorgrades{4}{4}{4}{4}{5}
1110 %%%% \internshiptutorgrades{90}
1111 %%%% \internshipcoordgrades{90}
1112 %%%%
1113 %%%% \tutor[Prof.~Dr.]{do Tutor I}{Nome}[m]
1114 %%%% \tutorinfo{UFRGS}{Instituição I-- Cidade, País}{email}{ramal}
1115 %%%%
1116 %%%% \studentFate[Dismiss] %% FF or Dismiss ??
1117 %%%% }
1118 %%%%\end{codestore}
1119 %%%%
1120 %%%% \tscode*{d.newstudentB}
1121 %%%%\begin{tsremark}[N.B.:]
1122 %%%% Internally, \tsmacro{\NewInternshipStudent}{} will create a command named \tsmacro{\studentname}{}, with a \emph{hook} named \tsmacro{\studentname.hook}{} (the dot is part of the hook's name).
1123 %%%%\end{tsremark}
1124 %%%%
1125
1126 \paragraph{Student Specific Commands}\label{student-specific-commands}
1127 \begin{codedescribe}[code,update=2023/11/18,update=2024/02/15,update=2024/02/25]{\studentfate}
1128 \begin{codesyntax}%
1129 \tsmacro{\studentfate}[fate]{}
1130 \end{codesyntax}
1131 This assigns the \tsobj[meta]{fate} of a student, for those cases that one cannot rely on the 'calculated one' (from examiners individual grades). \tsobj[meta]{fate} can be either \emph{exam} (if the student is in exam, but didn't got a grade yet) \emph{C} or \emph{D} (in case a student in exam got graded), \emph{FF} for those that haven't finished the work, \emph{dismiss} for those that, for whatever reason, got dismissed and (finally, 2024/02/25) \emph{other} for all other cases (mainly record keeping). The default is 'do nothing' (no \tsobj[meta]{fate} assigned)
1132 \end{codedescribe}
1133 \begin{tsremark}
1134 (2024/02/15) In case some other, odd, value is assigned, this command will record as if the student is in 'exam', with the given grade \tsobj[oarg]{fate} marked in bold red.
1135 \end{tsremark}
1136
1137 \begin{codedescribe}[code,new=2023/12/04]{\studentaddtolist}
1138 \begin{codesyntax}%
1139 \tsmacro{\studentaddtolist}{listID}
1140 \end{codesyntax}
1141 Adds the student to a given list (defined by \tsobj[marg]{listID}), to be later used by \tsobj{\sortstudentlist} and \tsobj{\tcreport}.
1142 \end{codedescribe}
1143
1144 \begin{codedescribe}{\checklist}
1145 \begin{codesyntax}%
1146 \tsmacro{\checklist}{csv-checkitems}
1147 \end{codesyntax}
1148 \tsobj[meta]{csv-checkitems} is a csv list of valid 'items' (the ones defined by \tsmacro{\checkdef}{}) and it will 'mark' (check) the corresponding items for a given student.
1149 \end{codedescribe}
1150
1151
1152 \begin{codedescribe}[code,update=2023/11/29]{\timeslot}
1153 \begin{codesyntax}%
1154 \tsmacro{\timeslot}[local]{date,time}
1155 \end{codesyntax}
1156 To set the \tsobj[meta]{local}, \tsobj[meta]{date} and \tsobj[meta]{time} of a student's presentation work.
1157 \end{codedescribe}
1158
1159 \begin{tsremark}
1160 \tsobj[meta]{date} must be given in numerical form, either \tsmeta{day}/\tsmeta{month} or \tsmeta{day}/\tsmeta{month}/\tsmeta{year}. The day-of-the-week will be obtained using \tsobj[pkg]{pgfcalendar}.\\ Likewise, \tsobj[marg]{time} must be given in a (24h) \tsmeta{hour}:\tsmeta{min} format.
1161 \end{tsremark}
1162
1163
1164
1165 \begin{codedescribe}[code,update=2023/11/18]{\worktitle,\studentremark}
1166 \begin{codesyntax}%
1167 \tsmacro{\worktitle}{title}
1168 \tsmacro{\studentremark}{remark}
1169 \end{codesyntax}
1170 \end{codedescribe}
1171 \tsmacro{\worktitle}{} sets the current student “work's title”. \tsmacro{\studentremark}{} just inserts a \tsobj[meta]{remark}, which will appear in the \emph{report}'s report.
1172
1173
1174 \begin{codedescribe}[code,update=2023/11/18]{\distinctboard}
1175 \begin{codesyntax}%
1176 \tsmacro{\distinctboard}{}
1177 \end{codesyntax}
1178 Normally, the default, it's assumed that the student's advisor will also be a member of the student's exam board. For the ones in which this doesn't holds true, one should use the \tsmacro{\distinctboard}{} after setting a student's name (via \tsmacro{\student}{}) and before setting its advisor name (via \tsmacro{\advisor}{}).
1179 \end{codedescribe}
1180 For example:
1181
1182 \begin{codestore}[st=d.distinct]
1183
1184 \student[Arthur]{last}{first}[m]
1185
1186 \studentinfo[]{243716}{email@somewhere}
1187 \worktitle{work title}
1188 \distinctboard
1189 \advisor{de Amorin}{Heraldo José}[m]
1190 \examiner{Götz}{Marcelo}[m] % He will be the 1st examiner
1191 \examiner{Comparsi Laranja}{Rafael Antônio} % the 2nd
1192 \examiner{Ventura Bayan Henriques}{Renato} % the 3rd
1193 \end{codestore}
1194
1195 \tscode*[emph={distinctboard}]{d.distinct}
1196
1197
1198 \begin{codedescribe}[code,update=2023/11/18,update=2024/02/15]{\examinergrades}
1199 \begin{codesyntax}%
1200 \tsmacro{\examinersgrades}{N1,N2,N3}\tsargs[oarg]{N4}\tsverb[oarg]{*}
1201 \end{codesyntax}
1202 Quite obvious, this set the grades given by an examiner (the one defined by the 'last' \tsmacro{\examiner}{} before this.). In case \tsobj[oarg]{N4} is given it's assumed the TCC-I case, otherwise TCC-II. (update:2024/02/15) The 'star' at the end will mark said reviewer, in red, when generating a report.
1203 \end{codedescribe}
1204
1205
1206 \paragraph{Reports Command}
1207
1208
1209
1210
1211 \begin{codedescribe}[code,update=2023/11/29]{\setstudentlist}
1212 \begin{codesyntax}%
1213 \tsmacro{\setstudentlist}{listID,list}
1214 \end{codesyntax}
1215 This command will define/create a list named \tsobj[meta]{listID} composed of a csv \tsobj[meta]{list}~ of student hashes (as defined by \tsmacro{\student}[student-hash]{...}).
1216 \end{codedescribe}
1217
1218 \begin{codedescribe}[code,new=2023/12/04]{\sortstudentlist}
1219 \begin{codesyntax}%
1220 \tsmacro{\sortstudentlist}{listID}
1221 \tsmacro{\sortstudentlist*}{listID}
1222 \tsmacro{\sortstudentlist+}{listID}
1223 \end{codesyntax}
1224 These will sort (and classify) a given student list defined by \tsobj[meta]{listID}. The star version sorts the list by student's full name, the \emph{plus} version sorts the list by student's presentation date.
1225 By default, the list remains unchanged (no sort).
1226 \end{codedescribe}
1227
1228
1229 \begin{codedescribe}{\tcreports}
1230 \begin{codesyntax}%
1231 \tsmacro{\tcreports}[report-list]{listID}
1232 \end{codesyntax}
1233 This will typeset the many reports, using the student list defined by \tsobj[meta]{listID}.
1234 Where \tsobj[meta]{report-list} is a csv list of keys as follow:
1235 \end{codedescribe}
1236
1237 \begin{describelist}{option}
1238 \describe {calendar-I} { Calendar for the period, TCC-I.}
1239 \describe {report-I} { a student control report, for TCC-I.}
1240 \describe {checklist-I} { a student check list, for TCC-I.}
1241 \describe {revforms-I} { per student reviews forms, TCC-I.}
1242 \describe {referral-I} { per student referral letters, TCC-I.}
1243 \describe {calendar-II} { Calendar for the period, TCC-II.}
1244 \describe {report-II} { a student control report, for TCC-II.}
1245 \describe {checklist-II} { a student check list, for TCC-II.}
1246 \describe {revforms-II} { per student reviews forms, TCC-II.}
1247 \describe {referral-II} { per student referral letters, TCC-II.}
1248 \describe {boards} { exam board dates, TCC-II.}
1249 \describe {attendance} { a simple student's attendance list.}
1250 \describe {cocertificate} { per student coadvisor certificate letter (if any).}
1251 % \describe {checklist} { a students check list.}
1252 \end{describelist}
1253
1254 \begin{codedescribe}[code,new=2024/02/18]{\suppresschecklist}
1255 \begin{codesyntax}%
1256 \tsmacro{\suppresschecklist}{}
1257 \end{codesyntax}
1258 This will suppress the “student checklist” on the general report.
1259 \end{codedescribe}
1260
1261 \section{\tightul{ufrgscca-ppc} Package (extended documentation)}
1262 This contains a set of auxiliary commands to keep track of many \emph{indicators} whilst writing a \emph{PPC document} (which is going to be evaluated based on said \emph{indicators}, though the track of those \emph{indicators} themselves shall not appear in the final version of it). Keep in mind, when considering the use of it: “it works as is” but it hasn't being properly debugged, and it might change “as needed locally”.
1263
1264 The packages \tsobj[pkg]{longtable}, \tsobj[pkg]{pdfcomment}, \tsobj[pkg]{mdframed} and \tsobj[pkg]{ufrgscca-curr} will always be pre-loaded.
1265
1266 \subsection{Package Options}
1267 \begin{describelist}{option}
1268 \describe {showind} { (for drafts) it will display the report indicators, of those indicators whose family wasn't set to hide.}
1269 \describe {indlong} { (for drafts) when displaying an indicator, the long version of them will be used.}
1270 \describe {nocomments} { (for drafts) comments (created with the command \tsmacro{\comment}) will be suppressed.}
1271 \end{describelist}
1272
1273 \subsection{Defined Commands}
1274
1275 The next few commands use a finite set of \tsobj[meta]{status} which are a pre-defined list of:
1276 \begin{describelist*}{value}
1277 \describe {tbd} { “To Be Done”}
1278 \describe {done} { “Done”}
1279 \describe {review} { “to be reviewed”}
1280 \describe {attention} { Needs Attention}
1281 \describe {NSA} { NSA (portuguese for “do not apply”)}
1282 \describe {noref} { no references}
1283 \describe {EAD} { EAD (portuguese for “distance learning”)}
1284 \describe {MDi} { course ware (portuguese for “didactic material”) }
1285 \describe {DOCs} { other DOCs}
1286 \describe {default} { everything else}
1287 \end{describelist*}
1288
1289 \begin{codedescribe}{\declareindicator, \indicatorDesc, \indicatorText}
1290 \begin{codesyntax}%
1291 \tsobj{\declareindicator}\tsverb{*+}\tsargs[oarg]{status}\tsargs[marg]{fam,ID,text}
1292 \tsmacro{\indicatorDesc}{longdesc,extra}
1293 \tsmacro{\indicatorText}{text}
1294 \end{codesyntax}
1295 \tsmacro{\declareindicator}{} is the command to create/define a given “indicator”. \tsobj[meta]{fam} set's its \emph{family} group, \tsobj[meta]{ID} is the particular ID/term used to reference it (in a family of indicators), \tsobj[meta]{text} is a short text describing it (it is the text displayed when using the \tsmacro{\indref}{} below.). \tsmacro{\indicatorDesc}{} adds a \tsobj[meta]{longdesc} (long description) and \tsobj[meta]{extra} (extra long description) to a defined \tsmacro{\declareindicator}{} (it will add those text fields to the “last declared one”). \tsobj[meta]{longdesc} will also be displayed when using the \tsmacro{\indref}{} commands, but only if the \tsobj[option]{indlong} option was used. The \tsobj[meta]{extra} will only be used/displayed with the \tsmacro{\PrintIndicators}{} command. Finally, \tsmacro{\indicatorText}{} adds a remark \tsobj[meta]{text}, which will be also printed out when using \tsmacro{\lstind}{} (akin of an explanation/remark field.)
1296 \end{codedescribe}
1297
1298 \begin{codedescribe}{\indsetstatus, \indsetview, \indsethide}
1299 \begin{codesyntax}%
1300 \tsmacro{\indsetstatus}[status]{fam,ID}
1301 \tsmacro{\indsetview}{fam}
1302 \tsmacro{\indsethide}{fam}
1303 \end{codesyntax}
1304 \tsmacro{indsetstatus}{} sets the \tsobj[meta]{status} of a given indicator defined by \tsobj[meta]{fam} and \tsobj[meta]{ID}. \tsmacro{\indsetview}{} and \tsmacro{indsethide} set the visibility (or not) of a given “family” of indicators, meaning, if those indicators are going to be visible or not (command \tsmacro{\indref}{}, for instance) if the option \tsobj[option]{showind} is in use.
1305 \end{codedescribe}
1306
1307 \begin{codedescribe}{\lstind}
1308 \begin{codesyntax}%
1309 \tsmacro{\lstind}[seclvl1,seclvl2]{fam}
1310 \end{codesyntax}
1311 \tsmacro{\lstind}{} will produce a sectioning like list, \tsobj[meta]{seclvl1} defaults to \tsmacro{\section}{} and \tsobj[meta]{seclvl2} defaults to \tsmacro{\subsection}{}, those indicators marked with an \textbf{*} (when creating them) will be issued with \tsobj[meta]{seclvl1}, those marked with an \textbf{+} will be issued with \tsobj[meta]{seclvl2}. The indicator's short text will be the sectioning title, whilst the indicator's 'text' (the one assigned with \tsmacro{indicatorText}{} will be the sectioning body.)
1312 \end{codedescribe}
1313
1314 \begin{codedescribe}{\PrintIndicators}
1315 \begin{codesyntax}%
1316 \tsmacro{\PrintIndicators}[fam]{}
1317 \end{codesyntax}
1318 \tsmacro{\PrintIndicators}{} will produce a “list of contents” like list (with cross reference to all used \tsmacro{\indref}{} pages). It will either issue a list of all \tsmacro{\declareindicator}, or just the ones belonging to \tsobj[meta]{fam}. \tsobj[meta]{fam} can be a csv list of families. Each entry will be composed by indicator's “family”, “ID”, “short text”, “long text” and “extra description” but not the text issued with \tsmacro{\indicatorText}{}.
1319 \end{codedescribe}
1320
1321
1322 \begin{codedescribe}{\helpindicators}
1323 \begin{codesyntax}%
1324 \tsmacro{\helpindicators}{}
1325 \end{codesyntax}
1326 This will just prints, middle text, a quick “help text” listing the few main “indicators related command” (to help out those less \LaTeXe~ savvy writers.)
1327 \end{codedescribe}
1328
1329 \begin{codedescribe}{ \ifshowind}
1330 \begin{codesyntax}%
1331 \tsmacro{\ifshowind}{code-ifshow,code-ifnot}
1332 \end{codesyntax}
1333 Just a helping command, based on the package options. If the option \tsobj[option]{showind} was used, \tsobj[meta]{code-ifshow} is executed, otherwise \tsobj[meta]{code-ifnot}.
1334 \end{codedescribe}
1335
1336
1337 \begin{codedescribe}{\textmark, \comment}
1338 \begin{codesyntax}%
1339 \tsmacro{\textmark}[status]{text}
1340 \tsmacro{\comment}[status]{title,text}
1341 \end{codesyntax}
1342 Those are annotation, remark commands. The difference being that \tsmacro{\textmark}{} will just highlight the \tsobj[meta]{text} (using \tsobj[meta]{status} “format”), whilst \tsmacro{comment}{} will create a “remark box” (the same used when inserting an indicator's reference, commands below).
1343 \begin{tsremark}[N.B.:]
1344 The command \tsmacro{\comment}{} is suppressed unless the option \tsobj[option]{showind} is used.
1345 \end{tsremark}
1346 \end{codedescribe}
1347
1348 \begin{codedescribe}{\indref,\indreflst}
1349 \begin{codesyntax}%
1350 \tsmacro{\indref}<*>[status]{fam,ID,comment}
1351 \tsmacro{\indreflst}<*>[status]{fam,IDlist,comment}
1352 \end{codesyntax}
1353 \tsmacro{\indref}{} creates a box (\tsobj[pkg]{TikZ} based \tsobj[pkg]{mdframed} ) of the indicator denoted by \tsobj[meta]{fam} and \tsobj[meta]{ID}. The family and IDs will be issued as the “frame title”, the current indicator's \tsobj[meta]{status} will be printed out (the whole box will be highlighted accordly), the short version of the indicator will be used (the long version will “appear” as a \tsobj[pkg]{pdfcomment}), finally any \tsobj[meta]{comment} will be added to the text box. Each \tsmacro{\indref}{} box will have a link to the indicator's list (issued with \tsmacro{\PrintIndicators}{}). If the optional argument \tsobj[meta]{status} is used, the indicator's status will be updated accordly. The star version also prints the indicator's long text.
1354
1355 \tsmacro{\indreflst}{} behaves similarly, with the difference that \tsobj[meta]{IDlist} is a csv list of IDs (same family), moreover, each item of said list can have the form either just \tsobj[meta]{ID} or \tsobj[meta]{status:ID}, in the last form, that ID will have its status updated, as well.
1356 \end{codedescribe}
1357
1358 \begin{codedescribe}{\fancyquote}
1359 \begin{codesyntax}%
1360 \tsmacro{\fancyquote}[vspc]{text,author,dateref}
1361 \end{codesyntax}
1362 As quick “quote” hack, \tsmacro{\fancyquote}{} will typesets a \tsobj[meta]{text} (small size, italic text, in a minipage environment) followed by \tsobj[meta]{author} and \tsobj[meta]{dateref}. This is meant to be used after a \tsmacro{\chapter}{} or \tsmacro{\section}{} commands. \tsobj[meta]{vspc} is to be used in case one has to adjust the vertical space between the sectioning command, and the quote one.
1363 \end{codedescribe}
1364
1365
1366 \begin{codedescribe}{\labelhack}
1367 \begin{codesyntax}%
1368 \tsmacro{\labelhack}{text}
1369 \end{codesyntax}
1370 As the name implies, it is a hack. In some cases (which we haven't manage to found why/what), \tsobj[pkg]{hyperref} would fail miserably when using the \tsmacro{\nameref}{} (in some cases getting the sectioning correct, but not the name!). This just assures that \tsmacro{\nameref}{} will use the correct sectioning name in those cases.
1371 \begin{codestore}[st=d.labelhack]
1372 \section{this section}\labelhack{this section}\label{somelabel}
1373 \end{codestore}
1374 \tscode*[codeprefix={For Example:},emph={labelhack}]{d.labelhack}
1375 \end{codedescribe}
1376
1377 \begin{codedescribe}{\acrodef, \acro,\acrol,\acrols,\acrosl,\acrofoot,\printacrolist}
1378 \begin{codesyntax}%
1379 \tsmacro{\acrodef}{acroID}{acronym}{long}
1380 \tsmacro{\acro}{acroID}
1381 \tsmacro{\acrol}{acroID}
1382 \tsmacro{\acrols}{acroID}
1383 \tsmacro{\acrosl}{acroID}
1384 \tsmacro{\acrofoot}{acroID}
1385 \tsmacro{\printacrolist}[enumkeys]{widest}
1386 \end{codesyntax}
1387 Those are yet another acronym hack. \tsmacro{\acrodef}{} “creates” an acronym, identified by \tsobj[meta]{acroID}, whose short (acronym) version is \tsobj[meta]{acronym} and the long version in \tsobj[meta]{long}. \tsmacro{\acro}{} just typesets the \tsobj[meta]{acronym}, \tsmacro{\acrol}{} the \tsobj[meta]{long} version.
1388 \tsmacro{\acrols}{} typesets the the long version followed by the short (using a comma as separator).
1389 \tsmacro{\acrosl}{} prints the short version first. Finally, \tsmacro{\acrofoot}{} typesets the short version in text and the long as a footnote. \tsmacro{\printacrolist}{} creates a description list based on the \tsobj[env]{listofabbrv} environment.
1390 \end{codedescribe}
1391
1392 \subsection{Environments}
1393 \begin{codedescribe}[env]{ppc.quote}
1394 \begin{codesyntax}%
1395 \tsmacro{\begin{ppc.quote}}{} \ldots \tsmacro{\end{ppc.quote}}{}
1396 \end{codesyntax}
1397 \end{codedescribe}
1398 This is just a tailored “quote” environment, using almost all page width, just in a smaller font size.
1399
1400 \section{\tightul{ufrgscca-curr} Package (extended documentation)}
1401 The background of it: To have the ability to “describe” (store the information in a “structured way”) an University Course Curricula and have the possibility, later, to presented that same information in many different ways (including a dependence graph). All data is captured/stored in a set of 3 \tsobj[pkg]{starrays}:
1402
1403
1404 \begin{codestore}[st=topicsdef]
1405 {
1406 topichash = ,
1407 name = ,
1408 color = ,
1409 class . struct = {
1410 classcode = ,
1411 }
1412 }
1413 \end{codestore}
1414
1415 \tscode*[codeprefix={topics' Structure Definition:},basicstyle={\scriptsize\ttfamily}]{topicsdef}\label{topics-def}
1416
1417
1418 \begin{codestore}[st=classdef]
1419 {
1420 cred = ,
1421 classcode = ,
1422 name = ,
1423 summary = ,
1424 topichash = ,
1425 remark = ,
1426 bib = ,
1427 bib basic = ,
1428 bib compl = ,
1429 ref . struct = {
1430 currhash = ,
1431 semhash = ,
1432 kind = ,
1433 } ,
1434 }
1435 \end{codestore}
1436
1437 \tscode*[codeprefix={Classes' Structure Definition:},basicstyle={\scriptsize\ttfamily}]{classdef}\label{class-def}
1438
1439 \begin{codestore}[st=curriculadef]
1440 {
1441 currhash = ,
1442 name = ,
1443 text = ,
1444 sem.struct = {
1445 pos = ,
1446 semhash = ,
1447 name = ,
1448 class . struct = {
1449 classcode = ,
1450 kind = ,
1451 obs = ,
1452 pos = ,
1453 color = ,
1454 prereqset . struct = {
1455 prereq . struct = {
1456 starred = ,
1457 classcode = ,
1458 angIN = ,
1459 angOUT = ,
1460 }
1461 } ,
1462 } ,
1463 } ,
1464 }
1465 \end{codestore}
1466
1467 \tscode*[codeprefix={Curricula's Structure Definition:},basicstyle={\scriptsize\ttfamily}]{curriculadef}\label{curricula-def}
1468
1469
1470 The following commands “describe” a curricula, whereas one is a sequence of semesters \tsobj[meta]{semID}, each semester is composed by a list of classes, \tsobj[meta]{classID}, and each class has a list of dependencies, \tsobj[meta]{classID} as \tsmacro{\depdef}{}. All those lists are stored as csv lists, so “processing them” can be systematized.
1471
1472 \begin{codedescribe}{\topicdef,\defaulttopic}
1473 \begin{codesyntax}%
1474 \tsmacro{\topicdef}[color]{topicID,text}
1475 \tsmacro{\defaulttopic}{topicID}
1476 \end{codesyntax}
1477 \tsmacro{\topicdef}{} defines \tsobj[meta]{topicID} (to be used when describing a class) and associates a \tsobj[meta]{text} description and a \tsobj[meta]{color} (for topic highlight). \tsmacro{\defaulttopic}{} sets the default one (if not explicitly given when describing a class).
1478 \end{codedescribe}
1479
1480
1481 \begin{codedescribe}[code,update=2023/11/18]{\classdef,\classset}
1482 \begin{codesyntax}%
1483 \tsmacro{\classdef}[topicID]{classID,cred,name}
1484 \tsmacro{\classset}{classID}
1485 \end{codesyntax}
1486 \tsmacro{\classdef}{} defines a class \tsobj[meta]{classID} (with a given \tsobj[marg]{name} and number of \tsobj[marg]{name}) associated with a given \tsobj[meta]{topicID}. \tsmacro{\classset}{} sets the current class.
1487
1488 The following commands always refer to the “last defined” \tsmacro{\classdef}{} unless \tsmacro{\setclass}{} is used, which changes the “current class” for the following commands.
1489 \end{codedescribe}
1490
1491 \begin{codedescribe}[code,new=2023/11/18,update=2025/09/18]{\csummary,\classremark,\bibdef}
1492 \begin{codesyntax}%
1493 \tsmacro{\csummary}{desc}
1494 \tsmacro{\classremark}{remark}
1495 \tsmacro{\bibdef}[type]{bibref}
1496 \end{codesyntax}
1497 \tsobj{\csummary} sets a class summary, whilst \tsobj{\classremark} annotates a 'note/remark'. \tsobj{\bibdef}
1498 is used to set a list of bibliographies, one per issued command. The default \tsobj[meta]{type} value is \tsobj[key]{main}, other possible values \tsobj[key]{basic} and \tsobj[key]{compl}.
1499 \end{codedescribe}
1500
1501
1502
1503 \begin{codedescribe}[code,update=2023/11/18]{\currdef,\semdef}
1504 \begin{codesyntax}%
1505 \tsmacro{\currdef}{curr-ID,short name,long name}
1506 \tsmacro{\semdef}{semID,name,pos}
1507 \end{codesyntax}
1508 \tsobj{\currdef} creates a curricula (with a set of semesters defined as following).
1509 \tsobj{\semdef} creates a semester, \tsobj[meta]{semID}, \tsobj[meta]{pos} being a position 'hint' when creating a dependency graph (see below).
1510 \end{codedescribe}
1511
1512
1513 \begin{codedescribe}[code,update=2023/11/18]{\addclass,\depdef,\altdep}
1514 \begin{codesyntax}%
1515 \tsobj[code]{\addclass}\tsargs[oarg]{color}\tsargs[marg]{pos,classID,kind}\tsargs[oarg]{obs}
1516 \tsobj[code]{\depdef}\tsverb[oarg]{*}\tsargs[oarg]{pos}\tsargs[marg]{classID}
1517 \tsmacro{\altdep}{}
1518 \end{codesyntax}
1519 \tsmacro{\addclass}{} adds a class, \tsobj[marg]{classID}, to the current semester. \tsobj[marg]{pos} will set the vertical position of this class (when using \tsobj{\GraphEtp}. \tsobj[marg]{kind} will set the class kind and \tsobj[oarg]{obs} will add an observation.
1520 \tsmacro{\depdef}{} inserts/creates a “class dependency” list. \tsobj[meta]{pos} is used as a 'hint' for the incident (dependency) line angle. The starred version is meant to be used when the 'dependency' isn't another class but rather, for instance, a number of credits.
1521
1522 \tsmacro{\altdep}{} defines/start and alternate dependency list.
1523 \end{codedescribe}
1524
1525
1526 \begin{codedescribe}[code,update=2023/11/18]{\TabEtp,\TabTopic}
1527 \begin{codesyntax}%
1528 \tsobj[code]{\TabEtp}\tsverb[oarg]{*}\tsargs[oarg]{sectioning}\tsargs[marg]{semID}\tsargs[oarg]{font-fmt}
1529 \tsmacro{\TabTopic}{topicID}
1530 \end{codesyntax}
1531 \tsmacro{\TabEtp}{} will construct a longtable with all classes associated with \tsobj[meta]{semID}. The default 'font size', \tsobj[oarg]{font-fmt}, is \tsobj{\footnotesize}.
1532 The default \tsobj[oarg]{sectioning} is \tsobj{\notoc\section}.
1533 The non-star version includes the bibliography lists as well.
1534
1535 \tsmacro{\TabTopic}{} will construct a longtable with all classes associated with a \tsobj[meta]{topicID}.
1536
1537 \end{codedescribe}
1538
1539
1540 \begin{codedescribe}[code,update=2023/11/18]{\GraphEtp}
1541 \begin{codesyntax}%
1542 \tsmacro{\GraphEtp}{semID}
1543 \end{codesyntax}
1544 It will create a dependency graph for a given \tsobj[meta]{semId}. N.B. to start with, it is highly dependent on the semester sequence, one shall start with first semester and go from there.
1545 \end{codedescribe}
1546
1547 \fi
1548
1549
1550 \end{document}