Debian Codegraph @

texmf-dist/doc/latex/ftc-notebook/ftc-notebook.tex

raw
1 %% change version number & date here, in README.md, and in ftc-notebook.sty
2 \documentclass{ltxdoc}
3 \usepackage[T1]{fontenc}
4 \usepackage{lmodern}
5 \usepackage[numbered]{hypdoc}
6 \usepackage{listings}
7 \usepackage{float}
8 \usepackage{array}
9 \usepackage{multirow}
10 \usepackage{tabu}
11 \usepackage{tocloft}
12 \renewcommand\cftloftitlefont{\Large}
13 \renewcommand\cftlottitlefont{\Large}
14 \lstnewenvironment{dtxverblisting}{%
15 \lstset{
16 gobble=2,
17 basicstyle=\ttfamily,
18 columns=fullflexible,
19 keepspaces=true,
20 }%
21 }{}
22 \addtolength\textwidth{15pt}
23 %\addtolength\oddsidemargin{-10pt}
24 %\addtolength\evensidemargin{-10pt}
25 \EnableCrossrefs
26 \CodelineIndex
27 \RecordChanges
28 \begin{document}
29
30 %% update version, dates in 2 places
31 \title{\textsf{ftc-notebook} --- Formating for FIRST Tech Challenge (FTC) Notebooks\thanks{%
32 This file describes version 1.1, last revised on 2019/02/16.%
33 }%
34 }
35 \author{FTC 9773, Robocracy\thanks{E-mail: [email protected]}}
36 \date{Released Feb 16th, 2019}
37
38 \maketitle
39
40 \begin{abstract}
41
42 The \texttt{ftc-notebook} package will greatly simplify filling entries
43 for your FTC engineering or outreach notebook. We build on top of
44 LaTeX, a robust system that can easily accommodates 100+ pages of
45 documents, figures, and tables while providing support for
46 cross-references. We developed this package to support most
47 frequently used constructs encountered in an FTC notebook: meetings,
48 tasks, decisions with pros and cons, tables, figures with
49 explanations, team stories and bios, and more. We developed this
50 package during the 2018-2019 season and are using it for our
51 engineering notebook. Team Robocracy is sharing this style in the
52 spirit of coopertition.
53
54 \end{abstract}
55 \sloppy
56 %% update: add new change
57 \changes{v1.0}{2019/02/06}{First public release.}
58 \changes{v1.1}{2019/02/16}{Added hyperlinks, signees for meeting.}
59 \tableofcontents
60 \newpage
61 \listoffigures
62 \listoftables
63 \newpage
64
65 \section{Overview}
66
67 The LaTeX package \texttt{ftc-notebook} provides help to format a
68 FIRST Tech Challenge (FTC) engineering or outreach notebook. Using
69 this style, you will be able to seamlessly produce a high quality
70 notebook. Its main features are as follows.
71
72 \begin{itemize}
73 \item Esthetically pleasing cover pages for the notebook and monthly updates.
74 \item Easy to use format to enter a team story and a bio for
75 each of the team members.
76 \item Quick references using list of tasks, figures, and tables.
77 \item Meeting entries separated into lists of tasks.
78 \item Each task is visually labeled as one of several kind of activities,
79 such as Strategy, Design, Build, Software,... Activity kind can be
80 customized to reflect a team's particular focus.
81 \item Support for supporting your decisions in clear tables that
82 list the pros and cons of each of your decisions.
83 \item Support for illustrating your robot using pictures with
84 callouts. A callout is text in a box with an arrow pointing
85 toward an interesting feature on your picture.
86 \item Support for pictures with textual explanation, and groups of
87 picture within a single figure.
88 \end{itemize}
89
90
91 We developed this style during the 2018-2019 FTC season and we used
92 it successfully during our competitive season. Compared to other
93 online documents, it is much more robust for large documents. By
94 designing a common style for all frequent patterns, the document also
95 has a much cleaner look. LaTeX is also outstanding at supporting
96 references. Try combining it with an online service like Overleaf,
97 and your team will be generating quality notebooks in no time by
98 actively collaborating online.
99
100 We developed this package to require little knowledge of LaTeX. We
101 have tried to hide of the implementation details as much as
102 possible. We explain LaTeX concepts as we encountered them in the
103 document, so we recommend that LaTeX novices read the document once
104 from front to back. Experienced users may jump directly to figures and
105 sections explaining specific environment and commands.
106
107 The overall structure of an FTC notebook should be as shown in
108 Figure~\ref{fig:template} below.
109
110 \begin{figure}[H]
111 \begin{dtxverblisting}
112 \documentclass[11pt]{article}
113 \usepackage[Num=FTC~9773, Name=Robocracy]{ftc-notebook}
114 \begin{document}
115 % 1: cover page and lists
116 \CoverPage{2018-19}{robocracy18.jpg}
117 \ListOfTasks
118 \ListOfFigures
119 \ListOfTables
120
121 % 2: start of the actual notebook with optional team story and bios
122 \StartNotebook
123 \input{src/story.tex}
124 \input{src/bio.tex}
125
126 % 3: meeting entries with optional month delimiters
127 \Month{August}{aug18.jpg}
128 \input{src/aug19.tex}
129 \input{src/aug21.tex}
130 % repeat for successive months until the end of your successful season
131 \end{document}
132 \end{dtxverblisting}
133 \caption{Template for notebook.}
134 \label{fig:template}
135 \end{figure}
136
137 A document consists of three distinct parts. First, we generate a
138 cover page, followed by lists of tasks, figures, and tables. Pages
139 use alphabetical numbering, as customary for initial front matter. As
140 shown in Figure~\ref{fig:template}, a Latex document starts with a
141 \cs{documentclass} command, followed by a list of packages used, and
142 then a \cs{begin\{document\}} command. In LaTeX, comments use "\%."
143
144 Second, we indicate the beginning of the actual notebook using the
145 \cs{StartNotebook} command. Pages are then numbered with numerical
146 page numbers starting at 1. A team story and team bio can be entered
147 here, and have specific LaTeX commands detailed in
148 Sections~\ref{sec:story} and~\ref{sec:bio}. For users unfamiliar with
149 LaTeX, \cs{input} commands are used to include separate files whose
150 file names are passed as arguments. The included files are processed
151 as if they were directly listed in the original file. We will use this
152 feature extensively to manage large documents such as an engineering
153 notebook.
154
155 Third, we have the actual content of the notebook. We structure
156 entries by meeting and suggest that each meeting uses a distinct input
157 file for its text and a corresponding subdirectory for its
158 supporting material, such as pictures. A meeting entry typically
159 consists of a list of tasks. Optionally, a new month can be started
160 with a cover page that includes a picture that highlights the
161 accomplishment of the team for that month.
162
163 We strongly recommend that you use the following file structure
164 for your notebook.
165
166 \begin{figure}[H]
167 \begin{dtxverblisting}
168 Directory structure:
169 notebook.tex: Your main latex file.
170 ftc-notebook.sty: This package files, unless the package was
171 installed in your LaTeX install directory.
172 newmeeting.sh: A bash script that allows you to create a new
173 meeting file that is pre-filled. The script can
174 be customized for your team.
175 src: A directory where all the meeting info will go.
176 |
177 --> image: A subdirectory where all the global pictures will
178 | go. We recommend to place there the team logo,
179 | team picture, and monthly pictures.
180 | Pictures are searched there by default.
181 --> aug19.tex A file that includes all the text for your
182 | (hypothetical) August 19th meeting.
183 --> aug19: A subdirectory where with all the images
184 needed for your aug19.tex LaTeX file.
185 \end{dtxverblisting}
186 \caption{Directory structure.}
187 \end{figure}
188
189 We recommend to use a pair of "date.tex" LaTeX file and "date"
190 subdirectory for each meeting. This structure minimizes the risk of
191 name conflicts for pictures and other attachments during the FTC
192 season. Generally, directories logically organized by dates also
193 facilitate searching for specific information.
194
195 \section{Package Description and Customization\label{sec:package}}
196
197 The package parameters are used to customize the notebook with the
198 team name, team number, and the filename for a jpeg logo file. These
199 are required parameters, as this style will not work without them. In
200 particular, the logo file is expected to be either in the root
201 directory or in the src/image subdirectory. The second line of
202 Figure~\ref{fig:template} illustrates the mandatory parameters that
203 we used for our team. Use a "\textasciitilde" character instead of a
204 space when defining your parameters.
205
206 In addition, each task in an FTC season is categorized by 6 distinct
207 activity kinds. The default activity kinds are "Strategy," "Design,"
208 "Build," "Physics and Math," "Software," and "Team". The default
209 values can be changed easily using the Kind parameters
210 listed in Table~\ref{tab:arguments}.
211
212 \begin{table}[H]
213 \begin{center}
214 \begin{tabular}{|p{2cm}|p{5cm}|p{5cm}|}
215 \hline
216 \textbf{option name} & \textbf{description} & \textbf{default} \\ \hline
217 \texttt{Num} & team number & FTC\textasciitilde 000 \\
218 \texttt{Name} & team name & Outstanding\textasciitilde Team \\
219 \texttt{Notebook} & notebook type & Engineering\textasciitilde Notebook \\ \hline
220 \texttt{Green} & green color scheme & (default) \\
221 \texttt{Orange} & orange color scheme & \\
222 \texttt{Blue} & blue color scheme & \\ \hline
223 \texttt{Grid} & enables grid overlay over pictures & \\ \hline
224 \texttt{KindOne} & first task kind & Strategy \\
225 \texttt{KindTwo} & second task kind & Design \\
226 \texttt{KindThree} & third task kind & Build \\
227 \texttt{KindFour} & fourth task kind & Physics and Math \\
228 \texttt{KindFive} & fifth task kind & Software \\
229 \texttt{KindSix} & sixth task kind & Team \\\hline
230 \end{tabular}
231 \end{center}
232 \caption{Parameters for package, using "\textasciitilde" wherever a space is needed.}
233 \label{tab:arguments}
234 \end{table}
235
236 Additionally, default colors can be changed using one of the
237 Green, Orange, or Blue parameters. If more custom colors are desired, the
238 \cs{definecolor} commands as shown below can be used to provide a
239 specific RGB triplet of values for each of the five colors used by the
240 package.
241
242 \begin{figure}[H]
243 \begin{dtxverblisting}
244 \definecolor{TitleColor}{rgb}{0.65, 0.73, 0.29}
245 \definecolor{MainTableHeaderColor}{rgb}{0.84, 0.96, 0.29}
246 \definecolor{MainTableCellColor}{rgb}{0.70, 0.82, 0.32}
247 \definecolor{NormalTableHeaderColor}{rgb}{0.84, 0.96, 0.29}
248 \definecolor{NormalTableCellColor}{rgb}{0.94, 0.99, 0.78}
249 \definecolor{NormalTableCellWhite}{rgb}{1.0, 1.0, 1.0}
250 \end{dtxverblisting}
251 \caption{Example of how to change the default colors of the titles.}
252 \end{figure}
253
254 These commands must be placed after the \cs{usepackage} command and
255 before the \cs{begin\{document\}} command.
256
257 \section{Entering Text for a Meeting\label{sec:meeting}}
258
259 In this section, we describe the environments and commands
260 used to generate a report summarizing the activities of a
261 meeting. A meeting can report a day's worth of work, or a weekend, or
262 even a week. Our preference is to use one meeting report per weekend.
263
264 The structure of a meeting is as follows. It starts with a high level
265 description of the meeting, including date, title, and a list of
266 members that participated to the meeting. The high level description
267 also includes a list of task accomplished. The goal of this high
268 level description is to allow a team to quickly locate prior tasks
269 that were accomplished in a meeting. No-one will have to read the
270 whole file to determine if a new drivetrain was attempted on that
271 weekend, or not. It should be right at the beginning of the meeting
272 file.
273
274 After the high level info, we will have the text, figures, and
275 tables associated with each of the tasks.
276
277 \subsection{Meeting Description}
278
279 \begin{macro}{Meeting}
280
281 Let us now look at the format of a meeting entry, for example for an
282 hypothetical August~19 meeting written in a "src/aug18.tex" LaTeX
283 file.
284
285 \begin{figure}[H]
286 \begin{dtxverblisting}
287 \begin{Meeting}[<kind>]%
288 {<title>} {<date>} {<duration>} {<members>}%
289 {% list of tasks
290 \TaskInfo{<task title>}{<task label>}{<task reflection>}%
291 }
292 % meeting info
293 \end{meeting}
294 \end{dtxverblisting}
295 \caption{Meeting entry (first and last command in a given meeting file).}
296 \label{fig:meeting}
297 \end{figure}
298
299 The overall structure is a \texttt{Meeting} environment. In LaTeX,
300 environments are delineated with a \cs{begin\{env\}} command and a
301 matching \cs{end\{env\}} command at the end of the environment. The
302 \cs{begin\{Meeting\}} command initialize the \texttt{Meeting}
303 environment with one optional argument and five mandatory arguments.
304 This command should be the first LaTeX command in the "src/aug18.tex"
305 file.
306
307 In LaTeX, mandatory arguments are given in curly braces, and optional
308 arguments are passed in square brackets. For commands with long
309 parameters, it is tempting to separate the arguments in many
310 lines. When doing so, especially with optional arguments, we
311 recommend to start a comment at the end of each of the parameter lines
312 (i.e. add a "\%" character). This will let LaTeX know that the next lines
313 may contain an additional argument.
314
315 The first argument \oarg{kind} is optional and describes the meeting
316 kind. A typical meeting kind may be "Meeting," "Preseason,"
317 "Competition," "Outreach," or something of this sort. "Meeting" is
318 used by default if the optional argument is omitted. The second
319 argument \marg{title} is mandatory and indicates the meeting's
320 title. The third argument \marg{date} is mandatory and provides the
321 meeting's date or date range. The fourth argument \marg{duration} is
322 mandatory and describes the duration of the meeting. The fifth
323 argument \marg{members} is mandatory and lists the name of the team
324 members present at the meeting. The sixth and last argument is
325 mandatory and provides a list of tasks performed at the meeting. This
326 list provides one \cs{TaskInfo} command per task. This command is
327 detailed in Section~\ref{sec:taskinfo}.
328
329 After the \cs{begin\{Meeting\}} command, we have the actual
330 content of the meeting. We provide many commands to properly format
331 most typical entries, such as sections, subsections, figures,
332 tables, list of decisions... These commands will be detailed in
333 subsequent sections.
334
335 The file is terminated by the \cs{end\{Meeting\}} command to
336 indicate that all of the info about this meeting has be given. It
337 will print a box where team members can sign the entry as requested
338 by FTC best practices.
339
340 \end{macro}
341
342 \begin{macro}{\Signee}
343
344 When giving the team member names in the mandatory \marg{members}
345 argument for the \texttt{Meeting} environment, you can indicate the
346 members that should sign the entry using the \cs{Signee} command with
347 the \marg{name} argument. For example, if Ann, Ben, and Carol attended
348 the meeting and you would like Ben and Carol to sign the entry, the
349 \marg{members} should be given as follows: ``Ann, \cs{Signee}\{Ben\},
350 \cs{Signee}\{Carol\}''.
351
352 \end{macro}
353
354
355 \subsection{Task Description\label{sec:taskinfo}}
356
357 \begin{macro}{\TaskInfo}
358
359 A meeting is structured in several tasks. Each task is first
360 described within the \cs{begin\{Meeting\}} command's sixth argument
361 using the \cs{TaskInfo} command. This command has three mandatory
362 arguments, as shown in Figure~\ref{fig:meeting}.
363
364 The first argument \marg{task title} indicates the title of the
365 task. The second argument \marg{task label} provides a unique label
366 for this task. The third argument \marg{task reflection} is used to
367 provide a short reflection on the status of this task. This can
368 typically be something like "we discovered new problems," "we
369 realized that this approach works much better than previous
370 solutions," or any other high-level observation that you want
371 to share with the readers.
372
373 If you accomplished three tasks during a given meeting, then three
374 \cs{TaskInfo} entries must be provided within the list of tasks.
375
376 \end{macro}
377
378 Now is a good time to mention how labels and references are used in
379 LaTeX. Wherever a reference is needed, we must give a unique string
380 that will describe the location in the document associated with the
381 label, typically a page, task, figure, or table number. We recommend
382 to structure the label with the kind (\texttt{task}, \texttt{fig},
383 \texttt{tab}), followed by the file name, followed by a string that
384 make sense to the particular label. Later in the text, you can
385 explicitly reference the given label, for example with
386 "Task\textasciitilde \cs{ref\{task:aug19:challenge\}},"
387 "Figure\textasciitilde \cs{ref\{fig:aug19:lift\}}," or
388 "Table\textasciitilde \cs{ref\{tab:aug19:decision\}}." For users not
389 familiar with LaTeX, a "\textasciitilde" character is used to
390 represent a space where the text before and after the tilde cannot be
391 separated by an end-of-line.
392
393 \begin{macro}{\TaskRef}
394 \begin{macro}{\TableRef}
395 \begin{macro}{\FigureRef}
396
397 We also provide custom commands to generate the task/table/figure
398 number as well as the page number of where to find the
399 task/table/figure: \cs{TaskRef\{<label>\}}, \cs{TableRef\{<label>\}},
400 or \cs{FigureRef\{<label>\}}. These commands are convenient to refer
401 to task/table/figures far in the past.
402
403 \end{macro}
404 \end{macro}
405 \end{macro}
406
407 \begin{macro}{\Task}
408
409 Between the \cs{begin\{Meeting\}} and \cs{end\{Meeting\}} constructs,
410 we must provide detailed info for each task. Below is the command
411 used to do to start the actual description of a given task.
412
413 \begin{figure}[H]
414 \begin{dtxverblisting}
415 \Task [<prior task>] {<first kind>} [<second kind>]
416 \end{dtxverblisting}
417 \caption{Start of a task description.}
418 \label{fig:task}
419 \end{figure}
420
421 This command will start a new task section. One such command is
422 needed for each of the \cs{TaskInfo} listed in the
423 \cs{begin\{Meeting\}} command. This command will reuse the title
424 listed by the \cs{TaskInfo} command in the same order. We decided on
425 this structure so that if a team member were to change the title of
426 the task in the \cs{TaskInfo} arguments, this change would
427 automatically be reflected at the start of the task's description
428 here.
429
430 The first optional argument \oarg{prior task} let us indicates if
431 this task is a continuation of one or more prior tasks. We strongly
432 recommend to fill in this argument when appropriate. For example, if
433 a given task is the continuation of a task with label
434 \texttt{task:aug06:challenge}, the argument should be set to
435 \cs{TaskRef\{task:aug06:challenge\}}.
436
437 The second mandatory argument \marg{first kind} indicates which kind
438 of tasks this is. Recall that we are able to change the default kinds
439 in Section~\ref{sec:package} in Table~\ref{tab:arguments}. If the
440 type corresponds to the first kind (e.g. "Strategy" by default), then
441 we expect the number "1" here. Acceptable values are numbers between
442 1 and 6, inclusively. Sometimes, it may be hard to classify a task
443 with only one type: the optional third argument \oarg{second kind}
444 let us input a second kind. The order between the first and second
445 numbers is not important.
446
447 \end{macro}
448
449 \subsection{Sections and Lists}
450
451 \begin{macro}{\Section}
452 \begin{macro}{\Section*}
453 \begin{macro}{\Subsection}
454 \begin{macro}{\Subsection*}
455
456 Now that we have a task section, we can can start filling the
457 description for that task. Most likely, we will want to have sections
458 and subsections to group related material
459 together. \cs{Section\{<title>\}} and \cs{Subsection\{<title>\}}
460 respectively starts a numbered section and subsection with the given
461 title. The starred versions are variants that omit the section
462 numbering.
463
464 \end{macro}
465 \end{macro}
466 \end{macro}
467 \end{macro}
468
469 \begin{macro}{\MeetingSummary}
470
471 The \cs{MeetingSummary} simply emits a unnumbered section title with a
472 "Meeting Summary" title.
473
474 \end{macro}
475
476 \begin{macro}{EnumerateWithTitle}
477 \begin{macro}{ItermizeWithTitle}
478
479 A frequent pattern is to have a section title followed by a list of
480 items. In LaTeX, numbered lists are referred as \texttt{enumerate}
481 environment and unnumbered or bulleted lists are referred as
482 \texttt{itemize} environment. Regardless of the type of list,
483 elements of the list always start with an \cs{item} command.
484
485 While traditional LaTeX list environments can be used, we define here
486 two custom list environments that provide for an unnumbered section
487 title followed by a list of numbered or unnumbered list element. The
488 figure below illustrates a possible use of such constructs.
489
490 \begin{figure}[H]
491 \begin{dtxverblisting}
492 \begin{EnumerateWithTitle}{A numbered list title}
493 \item one enumeration
494 \item another enumeration, add more as needed
495 \end{EnumerateWithTitle}
496
497 \begin{ItemizeWithTitle}{A bulleted list title}
498 \item one bullet, add more as needed
499 \end{ItemizeWithTitle}
500 \end{dtxverblisting}
501 \caption{Titled sections with numbered and unnumbered lists.}
502 \end{figure}
503
504 In general, you can always use the LaTeX default list environments
505 (to be used with \cs{begin\{<environment>\}} and
506 \cs{end\{<environment>\}}, namely \texttt{enumerate},
507 \texttt{itemize}, or \texttt{compactitem} for, respectively, a number
508 list of items, a list of bulleted items, or a compact list of
509 bulleted items.
510
511 \end{macro}
512 \end{macro}
513
514 \subsection{Tables}
515
516 When entering data for a task, one pattern that we often use is a
517 table of pros and cons arguments. We need a table
518 with three columns: one describing the option considered, a second
519 column describing the pros of this option, and a third column
520 describing the drawbacks of this option. Below is an example of such
521 a decision tables.
522
523 \begin{figure}[H]
524 \begin{dtxverblisting}
525 \begin{DecisionTable}
526 {Decisions about lift}
527 {tab:aug06:lift:decision}
528 %
529 \TableEntryTextItemItem{
530 drawer slides
531 } {% pros items
532 \item works well
533 } {% minus item
534 \item heavy
535 }
536 \\ \hline
537 %
538 \TableEntryTextItemItem{
539 rev slides
540 } {% pros items
541 \item light
542 } {% minus item
543 \item difficult under heavily load
544 }
545 % omit "\\ \hline" for last row
546 \end{DecisionTable}
547 \end{dtxverblisting}
548 \caption{Example of decision table with pros and cons.}
549 \label{fig:decision example}
550 \end{figure}
551
552 Before going in the details of the environments and commands,
553 Figure~\ref{fig:decision example} illustrates a comparison for a
554 lift, comparing drawer slides to REV slides. Each row is given by a
555 \cs{TableEntry} type of commands, two in this case, separated by
556 \cs{\textbackslash~\textbackslash hline} commands. This
557 first type of commands provides the data for a given row, and that
558 latter type of commands forces LaTeX to create a new line and
559 separate the entries by a horizontal line inside of the table.
560
561 \begin{macro}{DecisionTable}
562
563 A decision tables always consists of a table environment with three
564 columns. Its arguments are as follows.
565
566 \begin{figure}[H]
567 \begin{dtxverblisting}
568 \begin{DecisionTable} [<first col name>]%
569 [<second col name>] [<third col name>]%
570 {<caption>} {<label>}
571
572 \end{DecisionTable}
573 \end{dtxverblisting}
574 \caption{Decision table.}
575 \label{fig:decision}
576 \end{figure}
577
578 The first three optional arguments, \oarg{first col name},
579 \oarg{second col name}, and \oarg{third col name}, are used to change
580 the default column names, respectively "Option," "Pro," and "Cons."
581 The fourth mandatory argument \marg{caption} is the title of the
582 table. This caption will also be listed in the list of tables
583 generated by the \cs{ListOfTables} command. The fifth mandatory
584 argument \marg{label} is a label to be used when referencing the
585 table. We strongly encourage each table to be referenced at least
586 once in the text.
587
588 \end{macro}
589
590 \begin{macro}{DescriptionTable}
591 \begin{macro}{DescriptionTable*}
592
593 We often need tables with two columns. For this purpose, we
594 propose the following \texttt{DescriptionTable} environments.
595
596 \begin{figure}[H]
597 \begin{dtxverblisting}
598 \begin{DescriptionTable} {<first col name>}%
599 {<second col name>} {<caption>} {<label>}
600
601 \end{DescriptionTable}
602 \end{dtxverblisting}
603 \caption{Decision table.}
604 \label{fig:description}
605 \end{figure}
606
607 The first two mandatory arguments \marg{first col name} and
608 \marg{second col name} indicate the titles of each column. The
609 next tow mandatory arguments \marg{caption} and \marg{label}
610 provides, respectively, the caption and a label to refer to the
611 table.
612
613 The two environments are very similar. The non-starred environment
614 has a narrow column followed by a wider column, ideal for title
615 followed by a longer text in the second column. The starred
616 environment has two columns of equal sizes.
617
618 \end{macro}
619 \end{macro}
620
621 \begin{macro}{\TableEntryTextTextText}
622 \begin{macro}{\TableEntryTextItemItem}
623
624 The rows of tables with three columns are entered by the
625 \cs{TableEntryTextTextText} and \cs{TableEntryTextItemItem}
626 commands. Each take three mandatory arguments to input the data for each
627 of the three columns in a given row. The first command takes three text
628 entries, and the second command takes one text entry followed by two
629 bulleted lists. As shown in Figure~\ref{fig:decision example}, the
630 bulleted lists are entered as lines each starting by the \cs{item}
631 command. In tables, LaTeX does not like empty lines. So do not
632 include empty lines, and if you need a line break, you can always
633 enter the \cs{\textbackslash} new line command explicitly.
634
635 \end{macro}
636 \end{macro}
637
638 \begin{macro}{\TableEntryTextText}
639 \begin{macro}{\TableEntryTextItem}
640 \begin{macro}{\TableEntryItemItem}
641
642 The rows of tables with two columns are similarly entered with the
643 \cs{TableEntryTextText}, \cs{TableEntryTextItem}, and
644 \cs{TableEntryItemItem} commands. Each takes two mandatory arguments,
645 one for each column. Text or items are expected in the arguments
646 depending on the name of the command used.
647
648 \end{macro}
649 \end{macro}
650 \end{macro}
651
652
653 \begin{macro}{RawDecisionTable}
654 \begin{macro}{RawDescriptionTable}
655
656 Sometimes, you may need to get a decision or description table with an
657 arbitrary number of columns of varying different sizes. The
658 \texttt{RawDecisionTable} and \texttt{RawDescriptionTable}
659 environments allow you to create such tables. They take four mandatory
660 arguments: a column format given by \marg{format}, an ``\&'' separated
661 list of column titles given by \marg{titles}, a caption text given by
662 \marg{caption}, and a table label given by \marg{label}. Please refer
663 to the LaTeX \texttt{tabluar} environment for hints on how to express
664 table column format.
665
666 \end{macro}
667 \end{macro}
668
669 \subsection{Figures}
670
671 Figures are important in notebooks, and the package
672 proposes several commands to help us with them. First, you need to
673 know that LaTeX primarily likes JPEG format, so pictures will
674 need to be converted to JPEGs. By convention, the pictures are
675 expected in the "src/aug19" subdirectory when processing the
676 "src/aug19.tex" meeting entry. It's a convention, not mandatory, but
677 useful to follow as long term there are lots of pictures, so grouping
678 them by meeting is convenient.
679
680 \begin{macro}{\PictFigure}[H]
681
682 The first, simplest command will generate a figure with a caption for
683 a single JPEG file. It expects the following arguments.
684
685 \begin{figure}
686 \begin{dtxverblisting}
687 \PictFigure [<location>] {<jpeg file>} [<horizontal fraction>]%
688 {<caption>} {<label>} [<callout>]
689 \end{dtxverblisting}
690 \caption{Figure with one picture.}
691 \end{figure}
692
693 The second mandatory argument \marg{jpeg file} provides the path to
694 the JPEG file as well as the file name, including the ".jpg"
695 extension. It is best to use the full path from the root directory,
696 for example "src/aug19/game.jpg". The third optional argument \oarg{horizontal
697 fraction} provides an optional fraction (between 0 and 1) that
698 indicates the fraction of the horizontal page that should be utilized
699 for the picture. Default is 0.9 or 90\% of the horizontal space. The
700 fourth argument \marg{caption} is the caption text, and the fifth
701 argument \marg{label} is a label string used to create a unique
702 reference to this figure. The caption of each figure will also be
703 listed in the list of figures generated by the \cs{ListOfFigure}
704 command.
705
706 Figures are floating object, they move where LaTeX estimate they fit
707 best. You can have some influence over the placement of the figures
708 using the first optional argument \oarg{location}. Possible values
709 are combinations of the entries shown in the table below.
710
711 \begin{table}[H]
712 \begin{center}
713 \begin{tabular}{|p{2cm}|p{9cm}|}
714 \hline
715 \textbf{Key} & \textbf{Description}
716 \\ \hline
717 h for here & try to put the figure close to where it is in the text \\
718 t for top & try to put it at the top of a page\\
719 b for bottom & try to put the figure at the bottom of a page \\
720 p for page & try to put it on a separate page (not with other text) \\
721 H for HERE & try harder to put it here \\
722 ! & try to force your choice. \\
723 htb & You can put several choices at once, e.g. a frequent one is [htb] %
724 for here, or top, or bottom. \\
725 \hline
726 \end{tabular}
727 \end{center}
728 \caption{Values for floating object location in LaTex.}
729 \label{tab:location}
730 \end{table}
731
732 The last optional argument \oarg{callout} is used to add one or more
733 callouts. Callouts are used to overlay a text box on a figure, along
734 with an arrow pointing to the location of the interesting feature
735 is. So for example, the \cs{Callout\{-6,5\}\{Look Here\}\{-1,1\}}
736 command place a text box with text "Look Here" at the coordinate (X,
737 Y) = (-6, 5) with an arrow starting at the box and pointing to the
738 coordinate (X, Y) = (-1, 1). You may have arbitrary many callouts
739 inside the \oarg{callout} optional argument. Recall that if you write
740 the callout argument on a new line, we recommend to start a comment
741 at the end of the prior argument lines (i.e. add a "\%"
742 character). This will let LaTeX know that the next line contains
743 the optional argument.
744
745 Because callouts require us to know the precise coordinates at which
746 to locate the text box and the arrow, we have added a parameter to
747 the \texttt{ftc-notebook} package, namely \texttt{grid}, as defined in
748 Table~\ref{tab:arguments}. When setting this package parameter, every
749 figure will include a grid that will help us determine the proper
750 coordinates for the callouts. Simply remove the parameter when done.
751
752 \end{macro}
753
754 \begin{macro}{\ExplainedPictFigure}
755
756 Another frequent pattern is to have a picture one side of the page,
757 with a textual explanation next to it. For this pattern, we introduce the
758 \cs{ExplainedPictFigure} command which add one parameter to the
759 previous \cs{PictFigure} command to provide for a textual explanation.
760
761 \begin{figure}[H]
762 \begin{dtxverblisting}
763 \ExplainedPictFigure [<location>] {<jpeg files>}%
764 [<horizontal fraction>] {<caption>} {<label>}
765 {<explanation>} [<callout>]
766 \end{dtxverblisting}
767 \caption{An explained picture.}
768 \label{fig:explained picture}
769 \end{figure}
770
771 Because the picture and the textual explanation share the width of
772 the page, we suggest to use a smaller fraction of the horizontal
773 space for the picture. In Figure~\ref{fig:explained picture} we may
774 use a \marg{horizontal value} of 0.5 for 50\% of the space for the
775 picture, thus leaving the remaining 50\% for the text. In the
776 mandatory argument \marg{explanation} we can enter a text such as the
777 one below.
778
779 \begin{figure}[H]
780 \begin{dtxverblisting}
781 {% explanation (no empty line allowed);
782 Interesting features:
783 \begin{compactitem}
784 \item compact
785 \end{compactitem}
786 }
787 \end{dtxverblisting}
788 \caption{Example of an explanation text.}
789 \label{fig:explanation text}
790 \end{figure}
791
792 In this example, we have a phrase followed by a compact list of bullets.
793
794 \end{macro}
795
796 \begin{macro}{GroupedFigures}
797 \begin{macro}{PictSubfigure}
798 \begin{macro}{ExplainedPictSubfigure}
799
800 Another frequent pattern is to add a group of pictures. To handle this
801 case, we introduce here a \texttt{GroupedFigures} environment
802 to encapsulate several subfigures. The commands are as below.
803
804 \begin{figure}[H]
805 \begin{dtxverblisting}
806 \begin{GroupedFigures} [<locations>] {<caption>} {<label>}
807
808 \PictSubfigure {<jpeg file>} [<horizontal fraction>]%
809 {<caption>} {<label>} [<callout>]
810
811 \ExplainedPictFigure {<jpeg files>}%
812 [<horizontal fraction>] {<caption>} {<label>}
813 {<explanation>} [<callout>]
814
815 \end{GroupedFigures}
816 \end{dtxverblisting}
817 \caption{Example of grouped figures.}
818 \label{fig:groups fig}
819 \end{figure}
820
821 The \cs{begin\{GroupedFigures\}} has the usual optional argument
822 \oarg{location} and mandatory arguments \marg{caption} and
823 \marg{label}.
824
825 In turn, all of the subfigures have arguments similar to the figures
826 command previously seen, expect that they omit the optional location
827 argument as they are already grouped in a single floating figure.
828
829 \end{macro}
830 \end{macro}
831 \end{macro}
832
833 \begin{macro}{RawPict}
834
835 There is one additional command that is convenient for pictures.
836
837 \begin{figure}[H]
838 \begin{dtxverblisting}
839 \RawPict {<jpeg file>} {<horizontal fraction>} {<callout>}
840 \end{dtxverblisting}
841 \caption{Raw picture.}
842 \label{fig:raw picture}
843 \end{figure}
844
845 This \cs{RawPict} command is used to insert a figure directly in a
846 table without labels, captions, and other arguments. It just take the
847 JPEG file name, its horizontal size, and callout which can be left
848 empty by using "\texttt{\{\}"}.
849
850 \end{macro}
851
852 This give you the essentials of the \texttt{ftc-notebook} package, many
853 more basic LaTeX command are useful, here is a list:
854 \texttt{enumerate}, \texttt{itemize}, \texttt{textbf}, handling
855 native \texttt{tabular} (tables in LaTeX) or \texttt{longtable}
856 (tables that can be split among consecutive pages).
857
858 \section{Team Story\label{sec:story}}
859
860 \begin{macro}{TeamStory}
861 We can add a "Team Story" page by using the following environment.
862
863 \begin{figure}[H]
864 \begin{dtxverblisting}
865 \begin{TeamStory}{<moto>}
866
867 % team story
868
869 \end{TeamStory}
870 \end{dtxverblisting}
871 \caption{Team story.}
872 \label{fig:story}
873 \end{figure}
874
875 This environment let us enter a team story page with a mandatory
876 \marg{moto} argument, for example the team goal of the team for the
877 season.
878
879 \end{macro}
880
881 \section{Team Biography\label{sec:bio}}
882
883 \begin{macro}{Bio}
884 \begin{macro}{BioEntry}
885
886 We can also add a list of biographies for each team member as follows.
887
888 \begin{figure}[H]
889 \begin{dtxverblisting}
890 \begin{Bio}
891
892 \BioEntry {<name>} {<title>}%
893 [<role title>] {<role description>}%
894 [<outreach role title>] {<outreach role description>}%
895 {<jpeg file>} [<horizontal fraction>]%
896 {<full bio>}
897
898 \end{Bio}
899 \end{dtxverblisting}
900 \caption{Team biography table.}
901 \label{fig:bio}
902 \end{figure}
903
904 The \texttt{Bio} environment creates a table in which the bio of each
905 team member can be given. The format for each team member comprises
906 of a picture given by the \marg{jpeg file} argument with the team
907 member's name from the \marg{name} argument and title from the
908 \marg{title} argument.
909
910
911 Below the picture, we will also generate two role entries, each with
912 an optional role title and a mandatory role description. This is can
913 be used to highlight the team role and outreach role of each team
914 member. The full bio given by \marg{full bio} is listed in a second
915 column, next to the picture.
916
917
918 \end{macro}
919 \end{macro}
920
921 \section{Miscellaneous Commands}
922
923 \begin{macro}{\CoverPage}
924
925 The \cs{CoverPage} command is used to generate a cover page for your
926 notebook. It takes two mandatory arguments: \marg{date} and
927 \marg{jpeg file}. The date is used to describe the season,
928 e.g. "2018-2019". The second argument gives the picture to be
929 used on the cover page. By default, the picture is expected in the
930 "src/image" directory, but you can provide a different file path to
931 the file, e.g. "src/story/teampict.jpg".
932
933 \end{macro}
934
935 \begin{macro}{\ListOfTasks}
936 \begin{macro}{\ListOfFigures}
937 \begin{macro}{\ListOfTables}
938
939 These commands create the corresponding list of tasks, figures, and
940 tables. We recommend that they are used before the \cs{StartNotebook}
941 command as the page numbering prior to the start command uses
942 alphabetical page numbering. This will allow the notebook to grow,
943 with the corresponding lists of tasks, figures, and tables to also
944 grow without changing the page numbering of your older notebook entry
945 pages.
946
947 \end{macro}
948 \end{macro}
949 \end{macro}
950
951 \begin{macro}{\StartNotebook}
952
953 Use this command to separate the front matter (cover pages and list
954 of content) from your actual notebook entry.
955
956 \end{macro}
957
958 \begin{macro}{\Month}
959
960 The \cs{month} command is used to create a cover page for a new
961 month. It takes two mandatory arguments: \marg{month} and \marg{jpeg
962 file}. The first argument indicates the month, and the second
963 arguments gives a path to the picture you want to use for the month
964 cover page.
965
966 \end{macro}
967
968 \StopEventually{%
969 \PrintChanges
970 \PrintIndex
971 }
972
973 \end{document}
974