source: anr/anr.sty @ 291

Last change on this file since 291 was 279, checked in by coach, 14 years ago

1) Fixed problems with the \CoutHorsD macro.
2) Renamed as \OtherPartner?{debu}{fin}{partener}{moyen-an-1:moyen-an-2:moyen-an-3}.
3) Updated document for using it.
4) Changed the "model use" delivrable.

File size: 7.7 KB
Line 
1%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
2\catcode`\@=11
3%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
4
5%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
6\newlength{\desclen}
7\newlength{\yearlen}
8\newlength{\mmlen}
9
10%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
11%{\catcode`\<=1\catcode`\>=2
12%       <\catcode`\{=12\gdef\OBraceTw<{>>
13%       <\catcode`\}=12\gdef\CBraceTw<}>>
14%>
15%\@ifundefined{specHasManual}{\let\specHasManual\relax}{}
16\let\specHasManual\relax
17\let\specCsgManual\relax
18\let\specXilinxOptimization\relax
19
20\def\setMacroInAuxFile#1{%
21    \global\expandafter\edef\csname#1\endcsname{\name}
22    \expandafter\immediate\expandafter\write\@auxout\expandafter{\expandafter\string\expandafter\gdef\expandafter\string\csname #1\endcsname{\name}}
23}
24\def\eoa{end-of-args}
25\def\@novers#1-#2\eoa{#1}
26\def\novers#1{\ifx\relax#1\def\next{{\color{red}FIXME}}\else\def\next{\expandafter\@novers#1\eoa}\fi\next}
27
28%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
29\newcount\supportercnt\supportercnt=1
30\newwrite\supporter
31\immediate\openout\supporter=anr-supporter.tex
32\def\letterOfInterest#1#2{{%
33  \let\subsection\relax%
34  \let\label\relax%
35  \let\begin\relax%
36  \let\end\relax%
37  \let\includegraphics\relax%
38  \let\linewidth\relax%
39  \let\newpage\relax%
40  \immediate\write\supporter{%
41    \subsection{#1} \label{supp:\the\supportercnt}}%
42  \immediate\write\supporter{%
43    \begin{center}\includegraphics[width=0.9\linewidth]{#2}\end{center}}%
44    \newpage%
45  }%
46  #1 (page \pageref{supp:\the\supportercnt})%
47  \advance\supportercnt1%
48}
49\def\letterOfInterestPlus#1{{%
50  \let\begin\relax%
51  \let\end\relax%
52  \let\includegraphics\relax%
53  \let\linewidth\relax%
54  \let\newpage\relax%
55  \immediate\write\supporter{%
56    \begin{center}\includegraphics[width=0.9\linewidth]{#1}\end{center}}%
57    \newpage%
58  }%
59}
60
61\def\letterOfInterestNb{?}
62\def\letterOfInterestClose{
63  \advance\supportercnt-1
64  \immediate\closeout\supporter
65  \immediate\write\@auxout{%
66    \string\gdef\string\letterOfInterestNb{\the\supportercnt}
67  }
68}
69
70
71%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
72\let\ganttlf\relax
73\newwrite\ganttdata
74\immediate\openout\ganttdata=anr.gantt
75
76\def\enable{enable}
77\def\disable{disable}
78\def\leader{leader}
79\newenvironment{taskinfo}%
80{%
81\let\ALL\disable%
82\let\IRISA\disable%
83\let\LIP\disable%
84\let\TIMA\disable%
85\let\UBS\disable%
86\let\UPMC\disable%
87\let\BULL\disable%
88\let\THALES\disable%
89\let\MDS\disable%
90}{%
91\ifx\ALL\enable%
92  \ifx\IRISA\disable\let\IRISA\enable\fi%
93  \ifx\LIP\disable\let\LIP\enable\fi%
94  \ifx\UPMC\disable\let\UPMC\enable\fi%
95  \ifx\TIMA\disable\let\TIMA\enable\fi%
96  \ifx\UBS\disable\let\UBS\enable\fi%
97  \ifx\BULL\disable\let\BULL\enable\fi%
98  \ifx\THALES\disable\let\THALES\enable\fi%
99  \ifx\MDS\disable\let\MDS\enable\fi%
100\fi%
101\def\@leader{\begin{small}\textcolor{red}{lead.}\end{small}}
102\def\@partner{\begin{small}\textcolor{blue}{part.}\end{small}}
103\def\@IRISA{\ifx\IRISA\disable{}\else\ifx\IRISA\enable{\@partner}\else{\@leader}\fi\fi}%
104\def\@LIP{\ifx\LIP\disable{}\else\ifx\LIP\enable{\@partner}\else{\@leader}\fi\fi}%
105\def\@UPMC{\ifx\UPMC\disable{}\else\ifx\UPMC\enable{\@partner}\else{\@leader}\fi\fi}%
106\def\@TIMA{\ifx\TIMA\disable{}\else\ifx\TIMA\enable{\@partner}\else{\@leader}\fi\fi}%
107\def\@UBS{\ifx\UBS\disable{}\else\ifx\UBS\enable{\@partner}\else{\@leader}\fi\fi}%
108\def\@BULL{\ifx\BULL\disable{}\else\ifx\BULL\enable{\@partner}\else{\@leader}\fi\fi}%
109\def\@THALES{\ifx\THALES\disable{}\else\ifx\THALES\enable{\@partner}\else{\@leader}\fi\fi}%
110\def\@MDS{\ifx\MDS\disable{}\else\ifx\MDS\enable{\@partner}\else{\@leader}\fi\fi}%
111\begin{tabular}{|c|c|c|c|c|c|c|c|}\hline
112\Sirisa  & \Slip  & \Stima  & \Subs  & \Supmc  & \Smds & \Sbull  & \Sthales \\\hline
113\@IRISA  & \@LIP  & \@TIMA  & \@UBS  & \@UPMC  & \@MDS & \@BULL  & \@THALES \\\hline
114\end{tabular}\par
115}
116
117%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
118\newenvironment{objectif}%
119{\begin{description}\item[Objectives]}
120{\end{description}}
121
122%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
123\newcount\taskcnt\taskcnt=0
124\newcount\subtaskcnt
125\newcount\livrablecnt
126\newenvironment{workpackage}%
127{\global\advance\taskcnt1
128 \global\subtaskcnt0
129 \def\taskname{T\the\taskcnt}%
130 \begin{description}%
131 %\let\itemsave\item%
132 \def\subtask##1{%
133    \global\advance\subtaskcnt1
134    \def\subtaskname{S\taskname-\the\subtaskcnt}%
135    \item[\subtaskname: ##1]\mbox{}\\}}
136{\end{description}}
137
138%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
139\def\writeganttinfo#1#2#3#4#5#6{{%
140    \let\xcoach\relax
141    \let\xcoachplus\relax
142    \let\irisa\relax    \let\Sirisa\relax
143    \let\lip\relax      \let\Slip\relax
144    \let\tima\relax     \let\Stima\relax
145    \let\ubs\relax      \let\Subs\relax
146    \let\upmc\relax     \let\Supmc\relax
147    \let\altera\relax   \let\Saltera\relax
148    \let\bull\relax     \let\Sbull\relax
149    \let\thales\relax   \let\Sthales\relax
150    \let\mds\relax      \let\Smds\relax
151    \let\xilinx\relax
152    \immediate\write\ganttdata{%
153      L=1 T=\the\taskcnt\space S=\the\subtaskcnt\space%
154      D=\the\livrablecnt\space V=\vers\space%
155      BM=#1 EM=#2 R=#3 PART={#4} KIND={#5} TITLE=#6%
156    }
157}}
158\newenvironment{livrable}%
159{%
160 \newcount\verscnt\verscnt=-1
161 \newif\ifIsLivrableStarted\IsLivrableStartedfalse
162 \newif\ifLivrableTopLine\LivrableTopLinetrue
163 \def\livrableTableDef{\begin{tabular}{|c|c|c|c|p{.625\linewidth}|}\hline}
164 \def\livrableTableLine##1##2##3##4{%
165    \makebox[3.5em]{\begin{small}##1\end{small}} &
166    \makebox[2.2em]{\begin{small}##2\end{small}} &
167    \makebox[1.5em]{\begin{small}##3\end{small}} &
168    \makebox[2.2em]{\begin{small}##4\end{small}} &
169 }
170 \def\livrableTableTopLine{%
171   \livrableTableLine{number}{date}{type}{resp.} description
172 }
173 \livrablecnt-1
174 \ifvmode \else\par\fi
175   
176 \def\itemV##1##2##3##4##5{%
177    \ifIsLivrableStarted
178        \global\advance\verscnt1
179    \else
180        \global\advance\livrablecnt1
181        \global\verscnt1
182    \fi
183    \def\vers{V\the\verscnt}
184    \global\edef\name{D\the\taskcnt\the\subtaskcnt\the\livrablecnt-\vers}%
185    \writeganttinfo{##1}{##2}{none}{##4}{##3}{##5}
186    \\\hline
187    \ifLivrableTopLine
188      \ifIsLivrableStarted\else\hline\hline\fi
189    \else
190      \ifIsLivrableStarted\else\end{tabular}\\\livrableTableDef\fi
191    \fi
192    \global\LivrableTopLinefalse
193    \global\IsLivrableStartedtrue
194    %\global\LivrableStartfalse
195    \livrableTableLine%
196        {\textsc{\name}}%
197        {\textsc{T0+##2}}%
198        {\textsc{##3}}%
199        {\textsc{##4}}%
200 }
201 \def\itemL##1##2##3##4##5##6{%
202    \ifIsLivrableStarted
203        %\global\advance\verscnt1
204    \else
205        \global\advance\livrablecnt1
206        %\global\verscnt1
207    \fi
208    \def\vers{VF}
209    \global\edef\name{D\the\taskcnt\the\subtaskcnt\the\livrablecnt-\vers}%
210    \writeganttinfo{##1}{##2}{##6}{##4}{##3}{##5}
211    \\\hline
212    \ifLivrableTopLine
213      \ifIsLivrableStarted\else\hline\hline\fi
214    \else
215      \ifIsLivrableStarted\else\end{tabular}\\\livrableTableDef\fi
216    \fi
217    \global\LivrableTopLinefalse
218    \global\IsLivrableStartedfalse
219    %\global\LivrableStartfalse
220    \livrableTableLine%
221        {\textsc{\name}}%
222        {\textsc{T0+##2}}%
223        {\textsc{##3}}%
224        {\textsc{##4}}%
225 }
226 \def\OtherPartner##1##2##3##4{%
227    \let\xcoach\relax
228    \let\xcoachplus\relax
229    \let\irisa\relax    \let\Sirisa\relax
230    \let\lip\relax      \let\Slip\relax
231    \let\tima\relax     \let\Stima\relax
232    \let\ubs\relax      \let\Subs\relax
233    \let\upmc\relax     \let\Supmc\relax
234    \let\altera\relax   \let\Saltera\relax
235    \let\bull\relax     \let\Sbull\relax
236    \let\thales\relax   \let\Sthales\relax
237    \let\mds\relax     \let\Smds\relax
238    \immediate\write\ganttdata{%
239      L=0 T=\the\taskcnt\space S=\the\subtaskcnt\space%
240      D=\the\livrablecnt\space BM=##1 EM=##2 R=##4 PART={##3} TITLE=%
241    }
242 }
243% \begin{small}
244 \livrableTableDef
245 \livrableTableTopLine
246 %\begin{tabular}{|c|c|c|c|p{.55\linewidth}|}\hline%
247 %\makebox[3.5em]{number} & \makebox[1.5em]{date} & type & resp. & description
248}
249{\\\hline\end{tabular}\\%
250%\end{small}\\%
251}
252
253%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
254\catcode`\@=12
255%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
Note: See TracBrowser for help on using the repository browser.