Does anyone know where I should put this realcalc.tex file?
I tried putting it in /usr/share/texmf/tex/inputs/ to no avail.
I am not sure how to make a sty file. That seems ideal. Copying realcalc.tex to realcalc.sty and isntalling that didn't work. I've tried running latex on a file with just these two lines in it:
The answer depends on your particular distribution. In my texlive I do the following for a pac_name.sty file:
1) create a directory pac_name on /usr/share/texmf-texlive/tex/latex/
2) copy the file pac_name.sty into this new directory
3) in a terminal, run
The problem is that I'm installing realcalc because it's a dependency for this invoice package.
After hearing your point that realcalc has issues, I'm thinking a simpler solution would be to make a PHP script do all the calculations and then layout a LaTeX file which would then generate a PDF invoice. It would also be more customized to my needs.
I don't know if this would be helpful to anyone but I made a quick sty install script (for *nix). Anyone who uses it would have to change the texdir variable to the correct path for your distribution.
Usage (assuming saved as styinstall):
styinstall package.sty
where the dots stand for whatever path leads to one of these folders (the first is preferable).
Then you must refresh the ls-R database (in TeXnicCenter) or similar in MikTeX; this is an important step whenever you add a new file, be it .tex, .cls or .sty, to your TeX distribution. (You need to close your TeX IDE down whilst you do this, so the new database will be loaded.)