[texhax] Time calculations within LaTeX?

Richard Hartmann richih.mailinglist at gmail.com
Sat Feb 9 11:48:36 CET 2008

On Feb 9, 2008 6:56 AM, E. Krishnan <ekmath at asianetindia.com> wrote:

> Then \timediff10:15-16:00 gives 5.75 and \timediff10:15-01:00 gives 14.75.

Uh.. this is one of the situations where I can just say 'Wow, thanks!'. That's
a huge lot more than I even dared to expect!

The function I want to put this into (\Fee from the invoice package), is failing
no matter if I try to put \timediff10:15-16:00 into it directly:

  l.47 ...cd.de}     {12.5}   {\timediff10:15-16:00}

try to put it into a variable with

  l.40 \setcounter{X}{\timediff10:15-16:00}

so I am assuming there is some magic escape I need to cast a function
call into a variable? I am looking around the web to find out, atm. :)

If anyone wants to look at the source, I included a basic example mixed
of the invoice package & your function.

Again, thanks!
-------------- next part --------------
A non-text attachment was scrubbed...
Name: invoice_template.tex
Type: application/x-tex
Size: 1610 bytes
Desc: not available
Url : http://tug.org/pipermail/texhax/attachments/20080209/6d953b57/attachment.tex 

More information about the texhax mailing list