-
Notifications
You must be signed in to change notification settings - Fork 24
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
math error #2
Comments
Unfortunately, still not sorted as seen by the following two examples, one running with the Running here \documentclass{invoice}
\begin{document}
\hourlyrate{180}
\begin{invoiceTable}
\hourrow{January 3, 2011}{1}
\hourrow{January 7, 2011}{.7}
\end{invoiceTable}
\end{document} older invoice class distributed at latex-templates %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
% Invoice Template
% LaTeX Template
% Version 1.0 (3/11/12)
%
% This template has been downloaded from:
% http://www.LaTeXTemplates.com
%
% Original author:
% Trey Hunner (http://www.treyhunner.com/)
%
% License:
% CC BY-NC-SA 3.0 (http://creativecommons.org/licenses/by-nc-sa/3.0/)
%
% Important note:
% This template requires the invoice.cls file to be in the same directory as
% the .tex file. The invoice.cls file provides the style used for structuring the
% document.
%
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
\documentclass{invoice} % Use the custom invoice class (invoice.cls)
\begin{document}
\begin{invoiceTable}
\hourrow{bla bla}{1.0}{180}
% \hourrow{bla bla}{0.20}{180}
\hourrow{bla bla}{0.70}{180}
\subtotal
\end{invoiceTable}
\end{document} Thanks for taking a look at this. |
New instance of the problem at TeX.Stackexchange
|
Thanks for adding more context @johannesbottcher. I haven't experienced this problem before, but I can't argue against the math in this package probably being faulty. I am a LaTeX novice and I don't actually know what I'm doing. 😅 If anyone has a solution for the math errors, I'd gladly welcome a pull request. 😸 |
Here is a fixed version for your class
|
Here's another version using only
|
eg9's solution worked great for me, thanks! |
The addition provided by the template is wrong.
100.08+81.32+65.68+121.97+50.04 = 419.09
The PDF shows the subtotal as 419.08.
The text was updated successfully, but these errors were encountered: