diff options
author | Denis 'GNUtoo' Carikli <GNUtoo@cyberdimension.org> | 2019-11-28 17:15:32 +0100 |
---|---|---|
committer | Denis 'GNUtoo' Carikli <GNUtoo@cyberdimension.org> | 2019-12-13 00:17:16 +0100 |
commit | 920b433ec1223f9ec8edbdadcbbbe2f511416e1a (patch) | |
tree | 158dfcf06f09bf54992c54ba0b2e7faa16b839d3 | |
parent | 82c947a07e937a1f164e970058686a2b8e6d7e62 (diff) | |
download | documents-920b433ec1223f9ec8edbdadcbbbe2f511416e1a.tar.gz documents-920b433ec1223f9ec8edbdadcbbbe2f511416e1a.tar.bz2 documents-920b433ec1223f9ec8edbdadcbbbe2f511416e1a.zip |
move costs calculation in its own LaTeX file
Signed-off-by: Denis 'GNUtoo' Carikli <GNUtoo@cyberdimension.org>
-rw-r--r-- | NLnet/porting_replicant_to_android9/costs.tex | 32 | ||||
-rw-r--r-- | NLnet/porting_replicant_to_android9/porting_replicant_to_android9.tex | 30 |
2 files changed, 33 insertions, 29 deletions
diff --git a/NLnet/porting_replicant_to_android9/costs.tex b/NLnet/porting_replicant_to_android9/costs.tex new file mode 100644 index 0000000..79a09af --- /dev/null +++ b/NLnet/porting_replicant_to_android9/costs.tex @@ -0,0 +1,32 @@ +%% Calculate various costs +\usepackage{calc} + +\newcounter{hours} +\newcounter{rate} +\setcounter{rate}{27} +\newcounter{totalhours} +\setcounter{totalhours}{0} +\newcounter{totalhourcosts} +\setcounter{totalhourcosts}{0} + +\newcounter{cost} +\newcommand{\workhours}[1] { + \setcounter{hours}{#1} + \setcounter{cost}{\thehours*\therate} + + \thehours h + \euro{\thecost} + + %% For the total at the end + \setcounter{totalhours}{\thetotalhours +\thehours} +} + +\newcommand{\worktotal}[0] { + \setcounter{totalhourcosts}{\thetotalhours*\therate} + + \thetotalhours h (\euro{\thetotalhourcosts}) + + \setcounter{totalhours}{0} + \setcounter{totalhourcosts}{0} +} + diff --git a/NLnet/porting_replicant_to_android9/porting_replicant_to_android9.tex b/NLnet/porting_replicant_to_android9/porting_replicant_to_android9.tex index ced2219..afd5de7 100644 --- a/NLnet/porting_replicant_to_android9/porting_replicant_to_android9.tex +++ b/NLnet/porting_replicant_to_android9/porting_replicant_to_android9.tex @@ -2,7 +2,6 @@ \usepackage[english]{babel} \usepackage[a4paper]{geometry} -\usepackage{calc} \usepackage[gen]{eurosym} \usepackage{hyperref} \usepackage[utf8]{inputenc} @@ -13,34 +12,7 @@ \author{Denis 'GNUtoo' Carikli \and NLnet} \date{\today} -\newcounter{hours} -\newcounter{rate} -\setcounter{rate}{27} -\newcounter{cost} -\newcounter{totalhours} -\setcounter{totalhours}{0} -\newcounter{totalcost} -\setcounter{totalcost}{0} - -\newcommand{\workhours}[1] { - \setcounter{hours}{#1} - \setcounter{cost}{\thehours*\therate} - - \thehours h - \euro{\thecost} - - %% For the total at the end - \setcounter{totalhours}{\thetotalhours +\thehours} -} - -\newcommand{\worktotal}[0] { - \setcounter{totalcost}{\thetotalhours*\therate} - - \thetotalhours h (\euro{\thetotalcost}) - - \setcounter{totalhours}{0} - \setcounter{totalcost}{0} -} +\input{costs.tex} \begin{document} \begin{titlepage} |