Debian Codegraph @

texmf-dist/doc/latex/ftc-notebook/newmeeting.sh

raw symbols SCIP
1 #!/bin/bash
2 # file name, entry num
3 if [ $# -ne 2 ];
4 then echo "
5 USAGE: newmeeting.sh name num
6 create a new directory and tex file for your meeting, where
7 name: file directory and file name for the new entry (e.g. sept06)
8 num: populate src/name/name.tex with num tasks"
9 exit
10 fi
11
12 # customize your list of team members
13 MEMBERS="Alonso, Aman, Arjun, Cadence, David, Deeya, Divek, Elina, Kaitlyn, Nicky, Zachary"
14
15 DIR=src/$1
16 FILE=src/$1.tex
17
18 if [ -d "$DIR" ]; then
19 # Control will enter here if $DIRECTORY doesn't exist.
20 echo "directory $DIR exists already, pick a new name"
21 exit
22 fi
23
24 mkdir $DIR
25
26 # print new day entry
27 echo "
28 \begin{Meeting}% [type]% optional type (Preseason, Competition)
29 {}% title
30 {}% date
31 {hours}% duration
32 {$MEMBERS}% members
33 {% list of tasks" > $FILE
34
35 # print task within new day entry
36 for i in `seq 1 $2`;
37 do
38 echo " %
39 \TaskInfo{}{task:$1:}% title & label
40 {}% reflection" >> $FILE
41 done
42 echo "}
43
44 " >> $FILE
45
46 # print tasks
47 for i in `seq 1 $2`;
48 do
49 echo "
50
51 %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
52 %% task:
53 %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
54
55 \Task% optional continuation of task, e.g. [\TaskRef{task:}]
56 {}% {num}[num]: num in 1-6: 1 Strategy; 2 Design; 3 Build; 4 Math/Physic; 5 Software; 6 Team
57
58
59 %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
60 \Section{Purpose and Overview}
61
62 %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
63 \Section{Design Process and Decisions}
64
65 %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
66 \Section{Conclusions}
67
68 " >> $FILE
69 done
70
71 # print end of new day entry
72 echo "
73 \end{Meeting}
74 " >> $FILE
75
76 echo "add following in main tex file:
77 \input{src/$1.tex}
78 "
79
80
81
82
83