diff options
author | Hans Hagen <pragma@wxs.nl> | 2004-06-10 00:00:00 +0200 |
---|---|---|
committer | Hans Hagen <pragma@wxs.nl> | 2004-06-10 00:00:00 +0200 |
commit | 51d573f4c0e8d3b8499bff7a3c6fba3dcd71d725 (patch) | |
tree | a902c3c67fe2272ee9e2325d6a6f28f0fd15d9d8 /tex/context/base/prop-run.tex | |
parent | ab3f887feadf929129087cd2cbc3783064507565 (diff) | |
download | context-51d573f4c0e8d3b8499bff7a3c6fba3dcd71d725.tar.gz |
stable 2004.06.10
Diffstat (limited to 'tex/context/base/prop-run.tex')
-rw-r--r-- | tex/context/base/prop-run.tex | 21 |
1 files changed, 13 insertions, 8 deletions
diff --git a/tex/context/base/prop-run.tex b/tex/context/base/prop-run.tex index 1f4f12d17..4eb853b42 100644 --- a/tex/context/base/prop-run.tex +++ b/tex/context/base/prop-run.tex @@ -11,18 +11,23 @@ %C therefore copyrighted by \PRAGMA. See mreadme.pdf for %C details. -\unprotect +\unprotect -\doglobal\newif\ifshowcomponents +\doglobal\newif\ifshowcomponents \gdef\showlayoutcomponents {\showcomponentstrue} - + +% By postponing loading of the next two macro's till their usage, we +% don't put a burden on the system when they are not used. + \gdef\startlayoutcomponent#1#2% - {\ifshowcomponents - \doifelsenothing{#2}% - {\defineproperty[#1][layer][\c!titel=#1]}% - {\defineproperty[#1][layer][\c!titel=#2]}% + {\ifshowcomponents + \doifelseproperty{#1} + \donothing + {\doifelsenothing{#2}% + {\defineproperty[#1][\s!layer]}% [\c!title=#1] + {\defineproperty[#1][\s!layer][\c!title=#2]}}% \startproperty[#1]% \fi} @@ -31,4 +36,4 @@ \stopproperty \fi} -\protect \endinput +\protect \endinput |