<br>
<br><font size=2><tt>Brent Legge/CA/AM/TSA wrote on 08/11/2005 11:57:54
AM:<br>
<br>
=> Hello all,</tt></font>
<br><font size=2><tt>=> <br>
=> I am using longtable to create a document that is data driven where<br>
=> I need to capture the last known balance in a transaction so it can<br>
=> be used in the head and foot.</tt></font>
<br><font size=2><tt>=> I have tried using \newcounter, \newsavebox
and \sbox, \savebox and<br>
=> \setcounter to store the value for later retrieval but I'm not <br>
=> getting the value I think I have set. </tt></font>
<br><font size=2><tt>=> <br>
=> I want to be able to set a value in memory (+ or - 999,99)
and <br>
=> update it every time a transaction is created. When a page
break <br>
=> occurs I want to retrieve that value</tt></font>
<br><font size=2><tt>=> with in a command {\continuehead and \continuefoot).</tt></font>
<br><font size=2><tt>=> <br>
=> What should I be using to accomplish this?</tt></font>
<br><font size=2><tt>=> <br>
</tt></font>
<br><font size=2><tt>I did some more digging and came up with a de.comp.text.tex
thread named "longtable hack"</tt></font>
<br>
<br><font size=2><tt>http://groups.google.ca/group/de.comp.text.tex/browse_thread/thread/124b328784d9a21a/687161cba9342ba0?lnk=st&q=comp.text.tex+%22longtable+hack%22&rnum=1&hl=en#687161cba9342ba0</tt></font>
<br>
<br><font size=2><tt>Sadly I do not know a lick of German but a referring
thread seemed to say that because the \endhead and \endfoot are stored
as a \box it is already expanded before any dynamic values can be passed
to it. </tt></font>
<br>
<br><font size=2><tt>This suggests that I should use my \transactiondata
command to "redefine" the entire \LT@head and \LT@foot. I've
taken a couple of kicks at the proverbial cat, but alas I am fruitless
in my efforts. Instead, all I seem to be able to accomplish is to get it
to spit out my \continuehead and/or \continuefoot at every transaction.</tt></font>
<br>
<br><font size=2><tt>If I want to replace the current "dummy"
\LT@foot with an updated \continuehead(<value>) what do I need
to do to get this to happen?</tt></font>
<br>
<br><font size=2><tt>Maybe if any of the German-Anglo TeXHaX'ers out there
could give me a run down of the imporntant points in the above thread,
I could get some clarity on what must be done.</tt></font>
<br>
<br><font size=2><tt>Cheers,</tt></font>
<br>