Empty last page, broken markings ??
![](https://secure.gravatar.com/avatar/067b85830c465c3f13bb006294fa2b0e.jpg?s=120&d=mm&r=g)
Hello, The last page in my documents is always empty. The document is setup as singlesided via *\setuppagenumbering[location=,alternative=singlesided,way=bytext,partnumber=no]* On http://wiki.contextgarden.net/Empty_page_at_the_end a workaround is given, by using \setupsectionblock[frontpart][page=no] \setupsectionblock[bodypart][page=no] \setupsectionblock[appendix][page=no] \setupsectionblock[backpart][page=no] In my environment I only use : *\setupsectionblock[bodypart][page=no]** * This eliminates the empty page at the end of my document, however the chapter and section markers in the page headers/footers for the last couple of pages are not working anymore. I use the following setup % reset footer texts \setupfootertexts[] % % First page of chapter has a footer, no header % \definetext[chapterfooter][footer][{{\blue\pagenumber} \hfill Hoofdstuk \getmarking[chapternumber]} ] \setuphead[chapter][footer=chapterfooter,header=empty] % % All other pages have a header, no footer % \setupheadertexts[\setups{texta}][][][\setups{textb}] \startsetups[texta] \inframed[frame=off,framecolor=black,rulethickness=0.8pt,bottomframe=on,width=\textwidth]{ {\blue\pagenumber} \hfill \getmarking[chapter] \hfill Hoofdstuk \getmarking[chapternumber]} \stopsetups \startsetups[textb] \inframed[frame=off,framecolor=black,rulethickness=0.8pt,bottomframe=on,width=\textwidth]{ {\blue\getmarking[sectionnumber]} \hfill \getmarking[section] \hfill {\blue\pagenumber}} \stopsetups I use a couple of environment files which all define several things, title page, Table of contents, Table of Figures, page layout, page numbering, headers/footers etc. I could attach all of them, but I think the above settings are the one's that matter. I am not sure how to proceed to provide the correct but minimal information. I tried to put everything in a test file, but I was not successful. I tried to attach the last three pages of my document, which demostrates the problem but I exceeded the 40 KB. Is there another way of uploading documents which are more than 40 KB in size ? Any help is appreciated Kind regards Wim Neimeijer
![](https://secure.gravatar.com/avatar/565476157eb3895a9c928ffce26d988d.jpg?s=120&d=mm&r=g)
Hi, WN wrote:
Hello,
The last page in my documents is always empty. The document is setup as singlesided via
Always, always (as in: it generates an empty page even if that results in an uneven number of pages)? Or does it fill out to an even number of generated pages? Or does it always create an odd number of pages (I've heard that happen with some conflicting settings between the use of sectionblocks and \setuppagenumbering)?
I use a couple of environment files which all define several things, title page, Table of contents, Table of Figures, page layout, page numbering, headers/footers etc. I could attach all of them, but I think the above settings are the one's that matter. I am not sure how to proceed to provide the correct but minimal information. I tried to put everything in a test file, but I was not successful.
What is the overall structure of your document? The setups look ok, so it is more likely something relating to your use (or not..) of section blocks. For example, it could be that your headings do not work inside appendices or backmatter?
I tried to attach the last three pages of my document, which demostrates the problem but I exceeded the 40 KB. Is there another way of uploading documents which are more than 40 KB in size ?
Putting them on the wiki temporarily is an option. Good luck, Taco
![](https://secure.gravatar.com/avatar/067b85830c465c3f13bb006294fa2b0e.jpg?s=120&d=mm&r=g)
taco@elvenkind.com wrote:
Hi,
WN wrote:
Hello,
The last page in my documents is always empty. The document is setup as singlesided via
Always, always (as in: it generates an empty page even if that results in an uneven number of pages)?
Correct, always an empty page. I have documents which have an uneven number of pages, and even number of pages.
Or does it fill out to an even number of generated pages?
Or does it always create an odd number of pages (I've heard that happen with some conflicting settings between the use of sectionblocks and \setuppagenumbering)?
I used the sectionblock option as described on http://wiki.contextgarden.net/Empty_page_at_the_end just 2 days ago to eliminate the empty page at the end of the document, which it does. I did not use the sectionblock construct before. Since then the markings as explained in my original email don't work for the last couple of pages.
I use a couple of environment files which all define several things, title page, Table of contents, Table of Figures, page layout, page numbering, headers/footers etc. I could attach all of them, but I think the above settings are the one's that matter. I am not sure how to proceed to provide the correct but minimal information. I tried to put everything in a test file, but I was not successful.
What is the overall structure of your document? The setups look ok, so it is more likely something relating to your use (or not..) of section blocks. For example, it could be that your headings do not work inside appendices or backmatter?
I don't use appendices or a backmatter (yet), the overall structure of all my documents look like this \startproject chn \mainlanguage[nl] \enablemode[withsections,font-normal] \input ../global \startbodymatter \input chn-chapter1 \input chn-chapter2 \input chn-chapter3 \input chn-chapter4 \input chn-chapter5 \input chn-chapter6 \input chn-chapter7 \stopbodymatter \stopproject chn
I tried to attach the last three pages of my document, which demostrates the problem but I exceeded the 40 KB. Is there another way of uploading documents which are more than 40 KB in size ?
Putting them on the wiki temporarily is an option.
I will try to do that Thanks so far Wim
Good luck, Taco _______________________________________________ ntg-context mailing list ntg-context@ntg.nl http://www.ntg.nl/mailman/listinfo/ntg-context
participants (2)
-
Taco Hoekwater
-
WN