From e92fac1b64f7969cadd8ae60f336c43624250d42 Mon Sep 17 00:00:00 2001 From: Hans Hagen Date: Mon, 5 Aug 2019 11:51:52 +0200 Subject: 2019-08-05 10:42:00 --- tex/context/base/mkiv/page-txt.mkvi | 40 ++++++------------------------------- 1 file changed, 6 insertions(+), 34 deletions(-) (limited to 'tex/context/base/mkiv/page-txt.mkvi') diff --git a/tex/context/base/mkiv/page-txt.mkvi b/tex/context/base/mkiv/page-txt.mkvi index 2f0ac72de..4b3702ad7 100644 --- a/tex/context/base/mkiv/page-txt.mkvi +++ b/tex/context/base/mkiv/page-txt.mkvi @@ -25,12 +25,11 @@ \newtoks\texttextcontent %D \macros -%D {setuptop, setupheader, setuptext, -%D setupfooter, setupbottom} +%D {setuptop, setupheader, setuptext,setupfooter, setupbottom} %D -%D The macros in this module sometimes look a bit more complicated than -%D needed, which is a direct result of the fact that their ancestors are -%D quite old and upward compatibility is a must. +%D The macros in this module sometimes look a bit more complicated than needed, +%D which is a direct result of the fact that their ancestors are quite old and +%D upward compatibility is a must. %D %D \showsetup{setuptop} %D \showsetup{setupheader} @@ -136,8 +135,7 @@ %D \macros %D {noheaderandfooterlines,notopandbottomlines} %D -%D Although not really needed, the following shortcuts -%D sometimes come in handy. +%D Although not really needed, the following shortcuts sometimes come in handy. %D %D \showsetup{noheaderandfooterlines} %D \showsetup{notopandbottomlines} @@ -151,8 +149,7 @@ \setuplayoutelement[\v!bottom][\c!state=\v!empty]} %D \macros -%D {setuptoptexts, setupheadertexts, setuptexttexts, -%D setupfootertexts, setupbottomtexts} +%D {setuptoptexts,setupheadertexts,setuptexttexts,setupfootertexts,setupbottomtexts} %D %D The next macros take one or more arguments. The exact setup depends on the number %D of arguments. Although not that intuitive, the current scheme evolved out of the @@ -171,11 +168,6 @@ \unexpanded\def\setupfootertexts{\dosixtupleempty\page_layouts_setup_texts[\v!footer ]} \unexpanded\def\setupbottomtexts{\dosixtupleempty\page_layouts_setup_texts[\v!bottom ]} -% todo: \setuplayoutelementtext - -%D An alternative approach is to have more variables but that does not make the code -%D less complex (probably more). - \unexpanded\def\page_layouts_setup_text_six#vertical#horizontal#a#b#c#d% {\edef\currentlayoutelement{#vertical:#horizontal}% \setlayoutelementparameter\c!lefttext @@ -320,22 +312,6 @@ %D When specified, the texts are automatically limited in length. -% % where used ? -% -% \def\page_layouts_limitate_element_text#width% -% {\edef\currentlayoutelementwidth{\layoutelementparameter#width}% -% \ifx\currentlayoutelementwidth\empty -% \expandafter\firstofoneargument -% \else -% \expandafter\page_layouts_limitate_element_text_indeed -% \fi} -% -% \def\page_layouts_limitate_element_text_indeed#content% -% {\limitatetext{#content}\currentlayoutelementwidth\unknown} - -%D The placement of text is hooked into the token lists -%D associated to the area at hand. - \appendtoks \page_layouts_place_text_line\v!top \topheight \to \toptextcontent \appendtoks \page_layouts_place_text_line\v!header\headerheight \to \headertextcontent \appendtoks \page_layouts_place_text_line\v!text \textheight \to \texttextcontent @@ -814,10 +790,6 @@ \strc_pagenumbers_set_location % initializes -% will go to page-box.mkiv - -% the next macros will be redone (less boxing) - \newbox\b_page_layouts_element \def\page_layouts_insert_elements -- cgit v1.2.3