I am working on a research proposal and I found a great class, euproposal, an extension of proposal. It does a lot of great things like keeping track of deliverables, calculating summary tables and such.
I have however a serious problem with man-months. Man-months (or resource-months, RM) can only be integers in this class, but our project will likely need some decimal numbers. This is difficult because the RM are implemented as counters (integer only), and this is needed to generate summary tables (they are summed up in various ways).
My idea is now to hack around the problem by inputting the RMs multiplied by 100 (so, for 2 RMs I would input 200) and divide the counter by 100 when it has to be represented.
I worked on an example by Knuth in the TeXbook,
\dollaramount
, that was similar enough, and came up with the following:
Code: Select all
\newcount\RMc
\newcount\RMd
\def\hundredths#1{\RMd=#1
\divide\RMd by 100 \number\RMd
\multiply\RMd by -100 \advance\RMd by #1
\ifnum \RMd = 0 \else .%
\RMc=\RMd
\divide\RMd by 10 \number\RMd
\multiply\RMd by -10 \advance\RMd by \RMc
\ifnum \RMd = 0 \else \number\RMd \fi
\fi
}
However I cannot get it to work in the proposal class.
I'm sure the code is horrible and there must be trivial mistakes, but my skills in plain TeX are puny.
The minimum working example follows:
Code: Select all
\documentclass[noworkareas]{euproposal}
\WAperson[id=archimede,
personaltitle=Dr.,
birthdate={January 1, 1901},
academictitle=All-round genius,
affiliation=lap,
email=archimede@pitagorico.pp,
workaddress={Paperopoli}]
{Archimede Pitagorico}
\WAinstitution[id=lap,
townzip={Paperopoli},
countryshort=US,
country=United States,
type=Research Institute,
acronym=LAP,
shortname=LAP]
{Laboratorio A. Pitagorico}
\WAinstitution[id=pp,
townzip={Paperopoli},
countryshort=US,
country=United States,
type=Bassa manovalanza,
acronym=PP,
shortname=PP]
{Paolino Paperino}
\begin{document}
\begin{proposal}[
site=lap,lapRM=2000,
site=pp,ppRM=2000,
coordinator=archimede,
acronym={\sc Project},
title= {Gran bell'idea},
callname = Nome call,
callid = id call,
instrument= Collaborative Project (CP),
challengeid = X,
challenge = Tagliaburro a raggi laser,
objectiveid={XYZ},
objective = {Realizzare un pratico tagliaburro a raggi laser},
months=36,
compactht]
\wpfig[pages,type,start,end]
\begin{workpackage}[id=mgt,type=MGT,wphases=1-36,
title={Management},short=MGT,
lead=lap, lapRM=600, ppRM=100]
\wpheadertable
\end{workpackage}
\begin{workpackage}[id=work,type=RDT,wphases=1-36,
title={Actual work},short=WRK,
lead=pp, lapRM=100, ppRM=1000]
\wpheadertable
\end{workpackage}
\end{proposal}
\end{document}
- proposal class
- pdata package
- eupdata package
- euproposal class
\wpfig
and \wpheadertable
. They are usually printed with a \the\local@count
instruction or similar.I am enormously grateful for any help!
Regards,
-Federico