diff options
author | Hans Hagen <pragma@wxs.nl> | 2011-10-20 15:49:00 +0200 |
---|---|---|
committer | Hans Hagen <pragma@wxs.nl> | 2011-10-20 15:49:00 +0200 |
commit | 833cf5633ca02333e5a4880647cc3e69b71a314f (patch) | |
tree | 80af726cda5c9bb37771b244bdce7a1e4d35354b /tex/context/base/page-lay.mkiv | |
parent | f62e9381921f6e370da2a03b2d1fed2653a0c2a5 (diff) | |
download | context-833cf5633ca02333e5a4880647cc3e69b71a314f.tar.gz |
beta 2011.10.20 15:49
Diffstat (limited to 'tex/context/base/page-lay.mkiv')
-rw-r--r-- | tex/context/base/page-lay.mkiv | 10 |
1 files changed, 9 insertions, 1 deletions
diff --git a/tex/context/base/page-lay.mkiv b/tex/context/base/page-lay.mkiv index 7ff3420d9..b3c2f535c 100644 --- a/tex/context/base/page-lay.mkiv +++ b/tex/context/base/page-lay.mkiv @@ -135,6 +135,13 @@ \presetcenterpagebox \to \everysetuplayout +\def\doiflayoutdefinedelse#1% + {\ifcsname\??ly#1\c!state\endcsname % maybe a helper + \expandafter\firstoftwoarguments + \else + \expandafter\secondoftwoarguments + \fi} + \def\layoutdistance#1#2{\ifdim\zeropoint<#1#2\else\zeropoint\fi} \def\setlayoutdimensions @@ -834,12 +841,13 @@ \unexpanded\def\startlayout[#1]% {\page \pushmacro\currentlayout - \setuplayout[#1]} + \doiflayoutdefinedelse{#1}{\setuplayout[#1]}\donothing} % {\setuplayout[\currentlayout]}} \unexpanded\def\stoplayout {\page \popmacro\currentlayout \setuplayout[\currentlayout]} + % describe interface |