Peter Rolf wrote:
Miguel Queiros wrote:
Hello Peter,
\start ... \stop mark the boundaries of the local (layout) setup, which is defined between \startlocal ... \stoplocal. This way you don't need to redefine your old layout after a local (one page) style change. ConTeXt returns to the prior layout automatically.
So deleting them is no good idea (results in extra work for you) :)
Yes, I noticed that... :)
If you can make a minimal example of your buffer problems...
Ok, I'v attached the example. It seems that If I use \start \startlocal and \stop and \stoplocal I get some errors...
Hi Miguel. I have attached a working example (sorry for the crippled output; seems, my emacs is not configured right for utf).
Greets, Peter
Thanks for your help! Miguel Queirós
------------------------------------------------------------------------
\starttext
P�gina 1.
\startbuffer[teste] \starttable[|c|c|c|] \HL[2] \NC test \NC test \NC test \NC \FR \NC test \NC test \NC test \NC \MR \NC test \NC test \NC test \NC \LR \stoptable \stopbuffer
\page P�gina 2.
% It works if you place a comment \start \startlocal and \stoplocal and \stop % It wont work without the "%"
% \start % \startlocal \placetable{Just an example}{\externalfigure[teste.tmp]}
This is what I call 'creative usage' of a feature :) Better use \getbuffer for this.
\setuppapersize[A4,landscape][A4,landscape] % \stoplocal % \stop
\page \setuppapersize[A4][A4] P�gina 3.
\page P�gina 4.
\stoptext
------------------------------------------------------------------------
_______________________________________________ ntg-context mailing list ntg-context@ntg.nl http://www.ntg.nl/mailman/listinfo/ntg-context
enough suffereing ...
% for cont-new.tex: \unprotect \def\definepapersize {\dotripleempty\dodefinepapersize} \def\dodefinepapersize[#1][#2][#3]% {\ifsecondargument \doifsomething{#1} % to be sure {\doifassignmentelse{#2} {\getparameters [\??pp#1] % geen \c!scale, scheelt hash ruimte [\c!width=\@@ppwidth,\c!height=\@@ppheight,\c!offset=\@@ppoffset,#2]} {\setvalue{\??pp:1:#1}{#2}% \setvalue{\??pp:2:#1}{#3}}}% \else \getparameters[\??pp][#1]% \setuppapersize \fi} \def\dosetuppapersize[#1][#2]% {\doifassignmentelse{#1} {\setuppaper[#1]} {\doifelsenothing{#2} {\expanded{\dodosetuppapersize [\executeifdefined{\??pp:1:#1}{#1}]% [\executeifdefined{\??pp:2:#1}{}]}} {\doifassignmentelse{#2} {\getparameters[\??pp\executeifdefined{\??pp:1:#1}{#1}][#2]} {\expanded{\dodosetuppapersize [\executeifdefined{\??pp:1:#1}{#1}]% [\executeifdefined{\??pp:1:#2}{#2}]}}}}} \let\reinstatepapersize\relax \def\adaptpapersize {\global\let\reinstatepapersize\restorepapersize \setuppapersize} \appendtoks \reinstatepapersize \global\let\reinstatepapersize\relax \to \everyaftershipout \protect \definepapersize[main] [A4] [A4] \definepapersize[extra][A4,landscape] [A4,landscape] \starttext \setuppapersize[main] Page 1. \page Page 2. \page \setuppapersize[extra] Page 2 \page \setuppapersize[main] Page 3. \page Page 4. \page \adaptpapersize[extra] Page 5. \page Page 6. \page \stoptext ----------------------------------------------------------------- Hans Hagen | PRAGMA ADE Ridderstraat 27 | 8061 GH Hasselt | The Netherlands tel: 038 477 53 69 | fax: 038 477 53 74 | www.pragma-ade.com | www.pragma-pod.nl -----------------------------------------------------------------