Ok, let me try one more idea here.  What I've been trying to do is basically 'activate' various flowframes on various pages by setting the page list of to the new page, by something like:<div><br></div><div>    \setflowframe*{firstpage}{pages=\thepage}</div>
<div><br></div><div>I *think* the problem I'm having is that if I do this before the \finishthepage (setting the page list to the following page), it effectively deactivates the frame on the current page.  But if I wait until after the \finishthepage, the text for the new page has already started being composed, so it's too late to assign new frames.</div>
<div><br></div><div>So I think the solution is to modify the 'pages' attribute before \finishthepage, but to *add* the next page to the list, instead of replacing the list.  In that case, the question becomes: "How can I query the 'pages' attribute of a flowframe?""</div>
<div><br></div><div>Anyone? I can just about understand the package code in flowfram.sty to gather that it's stored in ff@pages, but I don't know how to access that for a specific frame, or how to add a page to that list.</div>
<div><br></div><div>Thanks!</div><div>-pd</div><div><br><br><div class="gmail_quote">On Thu, Oct 20, 2011 at 2:48 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, there are two problems with my example (attached again).  If you comment out the last paragraph or two of the "Lorem ipsum ..." text, the problems are:<div>
<br></div><div>1) The first letter has a second (blank) page, even though there's no overflowing text to go on it, and</div>
<div>2) The first page of each letter after the first is blank.</div><div><br></div><div>I would appreciate any ideas or suggestions on how to overcome these problems.</div><div><br></div><div>Thank you!</div><div><br></div>
<font color="#888888">
<div>-pd</div></font><div><div></div><div class="h5"><div><br><br><div class="gmail_quote">On Thu, Oct 20, 2011 at 12:51 PM, 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">
<div>Mine was a very simplified example, just to illustrate the problem of reusing page layouts.  In real life, each "letter" would be like an InDesign document, with multiple frames on a page, with text flowing from frame to frame on a page, and from page to page.  I'm trying to imitate the flexibility of InDesign layouts.  I'm pretty sure flowfram is the only package that provides that flexibility.</div>


<div><br></div><div>But the problem here is one of turning frames on and off, in effect, so that the start of each letter has one set of frames, and pages 2-n have a different set.</div><div><br></div><div>Thanks,</div><div>


-pd</div><div><div></div><div><div><br></div><br><div class="gmail_quote">On Thu, Oct 20, 2011 at 12:46 PM, Uwe Ziegenhagen <span dir="ltr"><<a href="mailto:ziegenhagen@gmail.com" target="_blank">ziegenhagen@gmail.com</a>></span> wrote:<br>

<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
<br>From the template you gave I cannot see anything which couldn't be done with scrlttr2.<br><br></blockquote><div><br></div><div> </div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">


Here a multi-page template, in German:<br><br>\documentclass[DIN,pagenumber=false,parskip=full,fontsize=12pt,fromalign=center,fromrule=aftername,fromfax=true,fromemail=true,fromphone=true,fromurl=true,numericaldate=true]{scrlttr2}<br>



%pagenumber=false, bot, botright, botleft<br>%parskip=full, <br>%fontsize=12pt,10pt<br>%fromrule=aftername,afteraddress<br>\usepackage[german]{babel}<br>\usepackage[]{blindtext}<br>\usepackage[latin1]{inputenc}<br>\setkomavar{customer}[Kunden-ID]{uz2002-2384757}<br>



%\setkomavar{date}{04.09.2002}<br>\setkomavar{fromurl}{<a href="http://www.mustermann.de" target="_blank">www.mustermann.de</a>}<br>\<a href="mailto:setkomavar%7Bfromemail%7D%7Bhans@mustermann.de" target="_blank">setkomavar{fromemail}{hans@mustermann.de</a>}<br>



\setkomavar{fromfax}{030-123-4567}<br>\setkomavar{fromphone}{030-123-4568}<br>\setkomavar{fromname}{Hans Mustermann}<br>\setkomavar{fromaddress}{Musterweg 1 12345 Musterstadt}<br>\setkomavar{invoice}{HM-2002-123}<br>\setkomavar{myref}{HM020902/3}<br>



\setkomavar{subject}{Rückerstattung Lohnsteuer}<br>\setkomavar{title}{Mahnung}<br>\setkomavar{yourmail}{02.09.2002}<br>\setkomavar{yourref}{müller2002}<br>\setkomavar{frombank}{Konto 12\,345\,678\\<br>bei der HansWurstBank\\<br>



BLZ 876\,543\,21}<br><br>\firstfoot{%<br>\parbox[t]{\textwidth}{\footnotesize<br>\begin{tabular}[t]{l@{}}%<br>\multicolumn{1}{@{}l@{}}{Gesellschafter:}\\<br>Hugo Mayer\\<br>Bernd Müller<br>\end{tabular}%<br>\hfill<br>\begin{tabular}[t]{l@{}}%<br>



\multicolumn{1}{@{}l@{}}{Geschäftsführerin:}\\<br>Liselotte Mayer\\[1ex]<br>\multicolumn{1}{@{}l@{}}{Gerichtsstand:}\\<br>Hinterdupfeldingen<br>\end{tabular}%<br>\ifkomavarempty{frombank}{}{%<br>\hfill<br>\begin{tabular}[t]{l@{}}%<br>



\multicolumn{1}{@{}l@{}}{\usekomavar*{frombank}:}\\<br>\usekomavar{frombank}<br>\end{tabular}%<br>}%<br>}%<br>}<br><br>\begin{document}<br>\begin{letter}{Finanzamt Musterstadt \\ Musterweg 2\\12345 Musterstadt}<br>\opening{Sehr geehrte Damen und Herren,}<br>



<br>hiermit bitte ich Sie letztmalig um Rückerstattung meiner gezahlten Lohnsteuer für die Jahre 1995-2001. <br>\blindtext[10]<br><br><br>\vspace{1cm}<br>\encl{Anlage 1 \\ Anlage 2}<br>\closing{Mit freundlichen Grüßen}<br>



\end{letter}<br>\end{document}<br><br><div class="gmail_quote">2011/10/20 Peter Davis <span dir="ltr"><<a href="mailto:pfd@pfdstudio.com" target="_blank">pfd@pfdstudio.com</a>></span><br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">


<div><div></div><div>
I have an *almost* working version of this.  I'm attaching a short (though not minimal) example that outputs three letters of different lengths.  Each has a first page style which includes a logo in the upper left, and a later page style which has no logo and a larger text flowframe.<div>




<br></div><div>The problem is that after the first letter, the other letters get a first page with a logo, but no text.  Then subsequent pages of the 2nd and 3rd letters look ok.  Any clues about how to fix this would be much appreciated.</div>




<div><br></div><div>Thanks!</div><div><br></div><font color="#888888"><div>-pd</div></font><div><div></div><div><div><br><br><div class="gmail_quote">On Thu, Oct 20, 2011 at 10:04 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">Ok, I think I'm close to solving this problem.  I think the approach is to define a macro like:<div><br></div><div>




\newcommand{\newletter}{%</div><div>\finishthispage%</div><div>\setallflowframes{pages=none}%</div><div>
\setflowframes*{logo,address,firpagetext}{pages=\thepage}%</div><div>\setflowframes*{laterpagetext}{pages={>\thepage}}}<br><br>Then I just output that at the start of each letter.  I haven't tested this yet, but it seems about right based on my other experiments.  NOTE: I changed the staticframes for logo and address to flowframes here for simplicity.</div>





<div><br></div><div>Thanks,</div><div>-pd</div><div><div></div><div><div><br><br><div class="gmail_quote">On Thu, Oct 20, 2011 at 6:35 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">Thanks, Uwe.  No, the pages will all print on the same paper.  Only the layout will vary between the first page and subsequent pages.  But<div>





1) I need the flexibility of flowfram, and </div><div>2) all the letters will be in one document, so it may go something like:</div>
<div><br></div><div>page 1: letter 1, first page</div><div>page 2: letter 1, second page</div><div>page 3: letter 2, first page</div><div>page 4: letter 3, first page</div><div>page 5: letter 3, second page</div><div>page 6: letter 3, third page</div>






<div>page 7: letter 4, first page</div><div>etc.</div><div><br></div><div>So pages 1, 3, 4 and 7 will use one layout, and the remaining pages will use another.  The difficulty with using flowfram with this is that I don't know in advance how many pages each letter will require.</div>






<div><br></div><div>Thanks,</div><div>-pd<div><br><br><br><div class="gmail_quote">On Thu, Oct 20, 2011 at 2:57 AM, Uwe Ziegenhagen <span dir="ltr"><<a href="mailto:ziegenhagen@gmail.com" target="_blank">ziegenhagen@gmail.com</a>></span> wrote:<br>






<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div bgcolor="#FFFFFF"><div>So the paper itself is different for the different pages? If not the scrlttr2 class from the KOMA bundle has settings which differentiate between different page layout for the first and subsequent pages.</div>






<div><br></div><div>Uwe<br><br>Von meinem iPad gesendet</div><div><br>Am 20.10.2011 um 01:14 schrieb Peter Davis <<a href="mailto:pfd@pfdstudio.com" target="_blank">pfd@pfdstudio.com</a>>:<br><br></div><div><div></div>






<div><div></div><blockquote type="cite"><div><br>Ok, let me try this another way.  Suppose I'm creating a document which is really a bunch of letters that will get mailed out.  The first page of each letter should appear to be on letterhead stationery ... with logos, return address, etc.  The second an subsequent pages will be just plain.<div>







<br></div><div>So when I define frames, I might do something like:</div><div><br></div><div>\newstaticframe[1]{width}{height}{x}{y}{logo}</div><div><div><div>\newstaticframe[1]{width}{height}{x}{y}{address}</div><div></div>







</div><div>\newflowframe[1]{width}{height}{x}{y}{firstpagetext}</div><div>\newflowframe[>1]{width}{height}{x}{y}{laterpagetext}</div><div><br></div><div>Ok, that's all well and good for one single letter.  But what if I want to do multiple letters of different lengths, one after another in one document?  Some are 1 page, some 2 and some 3.</div>







<div><br></div><div>Is there any way to set the pages keyword for these frames to get them in the rightplaces?</div><div><br></div><div>Thanks for any suggestions, pointers, etc.</div><div><br></div><div>Cheers,</div><div>







-pd</div><div><br></div></div></div></blockquote></div></div></div></blockquote><div><br></div></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>
</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>
</div>
</div></div><br></div></div><div>_______________________________________________<br>
TeX FAQ: <a href="http://www.tex.ac.uk/faq" target="_blank">http://www.tex.ac.uk/faq</a><br>
Mailing list archives: <a href="http://tug.org/pipermail/texhax/" target="_blank">http://tug.org/pipermail/texhax/</a><br>
More links: <a href="http://tug.org/begin.html" target="_blank">http://tug.org/begin.html</a><br>
<br>
Automated subscription management: <a href="http://tug.org/mailman/listinfo/texhax" target="_blank">http://tug.org/mailman/listinfo/texhax</a><br>
Human mailing list managers: <a href="mailto:postmaster@tug.org" target="_blank">postmaster@tug.org</a><br></div></blockquote></div><font color="#888888"><br><br clear="all"><br>-- <br>Uwe Ziegenhagen<br><<a href="http://www.uweziegenhagen.de" target="_blank">http://www.uweziegenhagen.de</a>><br>




</font></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></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>
</div>