<div>Ok, this seems to be basically working:</div><div><br></div><div>\newcommand{\activateff}[1]{ </div><div>\makeatletter </div><div>\nextpage=\thepage </div><div>\advance\nextpage by 1 </div><div>\edef\ffpages{\csname @ff@pages@\romannumeral#1\endcsname} </div>
<div>\setflowframe{#1}{pages={\ffpages,\the\nextpage}} </div><div>\makeatother </div><div>}</div><div><br></div><div>What this does is to add the next page (following the current one given by \thepage) to the specified flowframe's pages list.  Theoretically, that means those frames will get populated when we get to that page.  However, this still seems to leave blank pages in some cases.  </div>
<div><br></div><div>I'm wondering if flowframe is looking ahead one page before it actually ships out the current page.  This is obliquely hinted at in the flowfram FAQ, but no details are given.</div><div><br></div><div>
Anyone?</div><div><br></div><div>-pd</div><div><br></div><br><div class="gmail_quote">On Sat, Oct 22, 2011 at 10:13 PM, Peter Davis <span dir="ltr"><<a href="mailto:pfd@pfdstudio.com">pfd@pfdstudio.com</a>></span> wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex;">Ok, I'm getting frantic, after many hours of not being able to get this working.  I know that flowfram allows many frames to be defined, and each has a page list.  So those are stored in<div>
<br></div><div>\csname @ff@pages@\romannumeral#1\endcsname, where #1 is the number of the frame being referenced.</div>
<div><br></div><div>I'm trying to write a macro that will let me add a page to a frame's page list.  As far as I can make out, this has to happen before the page actually starts, so I have a count register, \nextpage, that's supposed to give the next page number.  The two macros I'm using are:</div>

<div><br></div><div>\newcommand{\ffpages}[1]{\makeatletter\csname @ff@pages@\romannumeral#1\endcsname\makeatother}</div><div>\newcommand{\activateff}[1]{\nextpage=\thepage\advance\nextpage by 1\setflowframe{#1}{pages={\ffpages{#1},\nextpage}}}<p>

</p>
<p style="margin-top:0px;margin-bottom:0px;margin-left:0px;margin-right:0px;text-indent:0px"></p><p></p>
<p style="margin-top:0px;margin-bottom:0px;margin-left:0px;margin-right:0px;text-indent:0px"></p>Can anyone spot a problem with either of these?  When I get to the end of the doc, I try displaying the lists with:</div>
<div><br></div><div>Frame 1 pages: \ffpages{1}</div><div><br></div><div>and all I get, for all the frames, is page 1.</div><div><br></div><div>Anything?</div><div><br></div><div>Thanks,</div><div>-pd</div><div><div></div>
<div class="h5"><div><br><br><div class="gmail_quote">
On Sat, Oct 22, 2011 at 9:05 AM, Peter Davis <span dir="ltr"><<a href="mailto:pfd@pfdstudio.com" target="_blank">pfd@pfdstudio.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">

Can anyone explain to me how flowfram decides what frames to use on a page?  I want to be able to 'activate' or 'deactivate' frames on the fly as the document is being composed, but I can't figure out when I have to update the frames' list of pages.  I'm a longtime LaTeX user, but a complete novice at TeX programming.<div>


<br></div><div>I have a short sample document containing a 1-page, 2-page and 3-page letter.  I wrote a macro called \newletter which begins a new letter.  If I code this macro one way, the second letter (2-pages) has a blank first page, but everything else is ok.  If I code the macro another way, that second letter has a blank 2nd page, but everything else is ok.</div>


<div><br></div><div>It's very confusing.  Can anyone shed any light on this?</div><div><br></div><div>Thanks!</div><div><br></div><div>-pd<br><font color="#888888"><div><br clear="all"><div><br></div>-- <br><span style="font-family:arial, sans-serif;border-collapse:collapse">----<div>


The Tech Curmudgeon</div><div><a href="http://www.techcurmudgeon.com/" style="color:rgb(17, 65, 112)" target="_blank">http://www.techcurmudgeon.com</a></div><div style="font-size:10.8333px"><br></div></span><br>
</div></font></div>
</blockquote></div><br><br clear="all"><div><br></div>-- <br><span style="font-family:arial, sans-serif;border-collapse:collapse">----<div>The Tech Curmudgeon</div><div><a href="http://www.techcurmudgeon.com/" style="color:rgb(17, 65, 112)" target="_blank">http://www.techcurmudgeon.com</a></div>

<div style="font-size:10.8333px"><br></div></span><br>
</div>
</div></div></blockquote></div><br><br clear="all"><div><br></div>-- <br><span style="font-family:arial, sans-serif;border-collapse:collapse">----<div>The Tech Curmudgeon</div><div><a href="http://www.techcurmudgeon.com/" style="color:rgb(17, 65, 112)" target="_blank">http://www.techcurmudgeon.com</a></div>
<div style="font-size:10.8333px"><br></div></span><br>