summaryrefslogtreecommitdiff
path: root/Master/texmf-dist/doc/latex/ftc-notebook/newmeeting.sh
blob: e00937b198aaefab4349672e8fb975f66415a277 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
#!/bin/bash
# file name, entry num
if [ $# -ne 2 ];
    then echo "
  USAGE: newmeeting.sh name num
    create a new directory and tex file for your meeting, where
      name: file directory and file name for the new entry (e.g. sept06)
      num:  populate src/name/name.tex with num tasks"
  exit
fi

# customize your list of team members
MEMBERS="Alonso, Aman, Arjun, Cadence, David, Deeya, Divek, Elina, Kaitlyn, Nicky, Zachary"

DIR=src/$1
FILE=src/$1.tex

if [ -d "$DIR" ]; then
    # Control will enter here if $DIRECTORY doesn't exist.
    echo "directory $DIR exists already, pick a new name"
    exit
fi

mkdir $DIR

# print new day entry
echo "
\begin{Meeting}% [type]% optional type (Preseason, Competition)
  {}% title
  {}% date
  {hours}% duration
  {$MEMBERS}% members
  {% list of tasks" > $FILE

# print task within new day entry
for i in `seq 1 $2`;
do
  echo "     %
     \TaskInfo{}{task:$1:}% title & label
       {}% reflection" >> $FILE
done
echo "}

" >> $FILE

# print tasks
for i in `seq 1 $2`;
do
  echo "

%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%

\Task% optional continuation of task, e.g. [\TaskRef{task:}]
  {}% {num}[num]: num in 1-6: 1 Strategy; 2 Design; 3 Build; 4 Math/Physic; 5 Software; 6 Team

\MeetingSummary

%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
\Section{Purpose and Overview}

%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
\Section{Design Process and Decisions}

%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
\Section{Conclusions}

" >> $FILE
done

# print end of new day entry
echo "
 \end{Meeting}
" >> $FILE

echo "add following in main tex file:
    \input{src/$1.tex}
"