<br>
<br><font size=2><tt>Brent Legge/CA/AM/TSA wrote on 08/11/2005 11:57:54
AM:<br>
<br>
=&gt; Hello all,</tt></font>
<br><font size=2><tt>=&gt; <br>
=&gt; I am using longtable to create a document that is data driven where<br>
=&gt; I need to capture the last known balance in a transaction so it can<br>
=&gt; be used in the head and foot.</tt></font>
<br><font size=2><tt>=&gt; I have tried using \newcounter, \newsavebox
and \sbox, \savebox and<br>
=&gt; \setcounter to store the value for later retrieval but I'm not <br>
=&gt; getting the value I think I have set. &nbsp;</tt></font>
<br><font size=2><tt>=&gt; <br>
=&gt; I want to be able to set a value in memory (+ or &nbsp;- &nbsp;999,99)
and <br>
=&gt; update it every time a transaction is created. &nbsp;When a page
break <br>
=&gt; occurs I want to retrieve that value</tt></font>
<br><font size=2><tt>=&gt; with in a command {\continuehead and \continuefoot).</tt></font>
<br><font size=2><tt>=&gt; <br>
=&gt; What should I be using to accomplish this?</tt></font>
<br><font size=2><tt>=&gt; <br>
</tt></font>
<br><font size=2><tt>I did some more digging and came up with a de.comp.text.tex
thread named &quot;longtable hack&quot;</tt></font>
<br>
<br><font size=2><tt>http://groups.google.ca/group/de.comp.text.tex/browse_thread/thread/124b328784d9a21a/687161cba9342ba0?lnk=st&amp;q=comp.text.tex+%22longtable+hack%22&amp;rnum=1&amp;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. &nbsp;</tt></font>
<br>
<br><font size=2><tt>This suggests that I should use my \transactiondata
command to &quot;redefine&quot; the entire \LT@head and \LT@foot. &nbsp;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 &quot;dummy&quot;
\LT@foot &nbsp;with an updated \continuehead(&lt;value&gt;) 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>