From 0396ead2bd0816d7e546848690271bbbe9077334 Mon Sep 17 00:00:00 2001 From: Marius Date: Wed, 30 Nov 2011 00:40:14 +0200 Subject: beta 2011.11.29 23:11 --- tex/context/base/cont-new.mkii | 2 +- tex/context/base/cont-new.mkiv | 2 +- tex/context/base/context-version.pdf | Bin 4076 -> 4069 bytes tex/context/base/context-version.png | Bin 106398 -> 105821 bytes tex/context/base/context.mkii | 2 +- tex/context/base/context.mkiv | 2 +- tex/context/base/page-ini.mkiv | 46 ++++++------ tex/context/base/page-set.mkiv | 8 ++ tex/context/base/status-files.pdf | Bin 24036 -> 23989 bytes tex/context/base/status-lua.pdf | Bin 169513 -> 169508 bytes tex/context/base/strc-flt.mkvi | 83 +++++++++++---------- tex/context/base/strc-ref.mkvi | 4 + tex/generic/context/luatex/luatex-fonts-merged.lua | 2 +- 13 files changed, 86 insertions(+), 65 deletions(-) diff --git a/tex/context/base/cont-new.mkii b/tex/context/base/cont-new.mkii index 8b24f4548..6124778a6 100644 --- a/tex/context/base/cont-new.mkii +++ b/tex/context/base/cont-new.mkii @@ -11,7 +11,7 @@ %C therefore copyrighted by \PRAGMA. See mreadme.pdf for %C details. -\newcontextversion{2011.11.29 18:47} +\newcontextversion{2011.11.29 23:11} %D This file is loaded at runtime, thereby providing an %D excellent place for hacks, patches, extensions and new diff --git a/tex/context/base/cont-new.mkiv b/tex/context/base/cont-new.mkiv index 6b0b7821c..f141e451f 100644 --- a/tex/context/base/cont-new.mkiv +++ b/tex/context/base/cont-new.mkiv @@ -11,7 +11,7 @@ %C therefore copyrighted by \PRAGMA. See mreadme.pdf for %C details. -\newcontextversion{2011.11.29 18:47} +\newcontextversion{2011.11.29 23:11} %D This file is loaded at runtime, thereby providing an %D excellent place for hacks, patches, extensions and new diff --git a/tex/context/base/context-version.pdf b/tex/context/base/context-version.pdf index 719e68b01..3a029c70b 100644 Binary files a/tex/context/base/context-version.pdf and b/tex/context/base/context-version.pdf differ diff --git a/tex/context/base/context-version.png b/tex/context/base/context-version.png index d5c91793d..84c8ee74e 100644 Binary files a/tex/context/base/context-version.png and b/tex/context/base/context-version.png differ diff --git a/tex/context/base/context.mkii b/tex/context/base/context.mkii index 984774ac2..caae9f255 100644 --- a/tex/context/base/context.mkii +++ b/tex/context/base/context.mkii @@ -20,7 +20,7 @@ %D your styles an modules. \edef\contextformat {\jobname} -\edef\contextversion{2011.11.29 18:47} +\edef\contextversion{2011.11.29 23:11} %D For those who want to use this: diff --git a/tex/context/base/context.mkiv b/tex/context/base/context.mkiv index 08c785b5e..0cb59b556 100644 --- a/tex/context/base/context.mkiv +++ b/tex/context/base/context.mkiv @@ -20,7 +20,7 @@ %D your styles an modules. \edef\contextformat {\jobname} -\edef\contextversion{2011.11.29 18:47} +\edef\contextversion{2011.11.29 23:11} %D For those who want to use this: diff --git a/tex/context/base/page-ini.mkiv b/tex/context/base/page-ini.mkiv index 4b325cc85..c9bd05775 100644 --- a/tex/context/base/page-ini.mkiv +++ b/tex/context/base/page-ini.mkiv @@ -197,31 +197,33 @@ % todo: \registerotrcommand\output, is a toks -\registerotrcommand\setvsize % \def\setvsize {\OTRcommand\setvsize} -\registerotrcommand\sethsize % \def\sethsize {\OTRcommand\sethsize} -\registerotrcommand\finalsidefloatoutput % \def\finalsidefloatoutput {\OTRcommand\finalsidefloatoutput} -\registerotrcommand\dopagecontents % \def\dopagecontents {\OTRcommand\dopagecontents} -\registerotrcommand\dosettopinserts % \def\dosettopinserts {\OTRcommand\dosettopinserts} -\registerotrcommand\dosetbotinserts % \def\dosetbotinserts {\OTRcommand\dosetbotinserts} -\registerotrcommand\dotopinsertions % \def\dotopinsertions {\OTRcommand\dotopinsertions} -\registerotrcommand\dobotinsertions % \def\dobotinsertions {\OTRcommand\dobotinsertions} -\registerotrcommand\dosetbothinserts % \def\dosetbothinserts {\OTRcommand\dosetbothinserts} -\registerotrcommand\doflushfloats % \def\doflushfloats {\OTRcommand\doflushfloats} -\registerotrcommand\flushfloatbox % \def\flushfloatbox {\OTRcommand\flushfloatbox} -\registerotrcommand\docheckiffloatfits % \def\docheckiffloatfits {\OTRcommand\docheckiffloatfits} -\registerotrcommand\flushsavedfloats % \def\flushsavedfloats {\OTRcommand\flushsavedfloats} -\registerotrcommand\synchronizehsize % \def\synchronizehsize {\OTRcommand\synchronizehsize} -\registerotrcommand\gotonextpage % \def\gotonextpage {\OTRcommand\gotonextpage } -\registerotrcommand\gotonextpageX % \def\gotonextpageX {\OTRcommand\gotonextpageX} % will become obsolete +\registerotrcommand\setvsize +\registerotrcommand\sethsize +\registerotrcommand\finalsidefloatoutput +\registerotrcommand\dopagecontents +\registerotrcommand\dosettopinserts +\registerotrcommand\dosetbotinserts +\registerotrcommand\dotopinsertions +\registerotrcommand\dobotinsertions +\registerotrcommand\dosetbothinserts +\registerotrcommand\doflushfloats +\registerotrcommand\flushfloatbox +\registerotrcommand\docheckiffloatfits +\registerotrcommand\flushsavedfloats +\registerotrcommand\synchronizehsize +\registerotrcommand\gotonextpage +\registerotrcommand\gotonextpageX + +\registerotrcommand\setfloathsize % wrong, will be redone % -% \registerotrcommand\someherefloat % \def\someherefloat {\OTRcommand\someherefloat} -% \registerotrcommand\somefixdfloat % \def\somefixdfloat {\OTRcommand\somefixdfloat} -% \registerotrcommand\somepagefloat % \def\somepagefloat {\OTRcommand\somepagefloat} -% \registerotrcommand\sometopsfloat % \def\sometopsfloat {\OTRcommand\sometopsfloat} -% \registerotrcommand\somebotsfloat % \def\somebotsfloat {\OTRcommand\somebotsfloat} -% \registerotrcommand\somesidefloat % \def\somesidefloat {\OTRcommand\somesidefloat} +% \registerotrcommand\someherefloat +% \registerotrcommand\somefixdfloat +% \registerotrcommand\somepagefloat +% \registerotrcommand\sometopsfloat +% \registerotrcommand\somebotsfloat +% \registerotrcommand\somesidefloat % beter een \installotr#1 met #1 = macro en auto test diff --git a/tex/context/base/page-set.mkiv b/tex/context/base/page-set.mkiv index 0c3dfff30..0796dbb2b 100644 --- a/tex/context/base/page-set.mkiv +++ b/tex/context/base/page-set.mkiv @@ -2406,6 +2406,14 @@ \def\setcolumnsetspanhsize#1#2% x nx / uses counta/b {\!!counta#1\!!countb#2\docalculatecolumnsetspan \edef\columnsetspanhsize{\the\!!widtha}} + +\def\OTRSETsetfloathsize % new, otherwise wrong spanning floats in columnset + {\hsize % maybe checking optional + \ifdim\tempfloatwidth>\makeupwidth + \makeupwidth + \else + \tempfloatwidth + \fi} \unexpanded\def\definecolumnsetspan {\dodoubleempty\dodefinecolumnsetspan} diff --git a/tex/context/base/status-files.pdf b/tex/context/base/status-files.pdf index a4cfc9fe9..3b3b029d1 100644 Binary files a/tex/context/base/status-files.pdf and b/tex/context/base/status-files.pdf differ diff --git a/tex/context/base/status-lua.pdf b/tex/context/base/status-lua.pdf index 9f4eb79ff..93d4231cb 100644 Binary files a/tex/context/base/status-lua.pdf and b/tex/context/base/status-lua.pdf differ diff --git a/tex/context/base/strc-flt.mkvi b/tex/context/base/strc-flt.mkvi index 34bcf0538..939cb2736 100644 --- a/tex/context/base/strc-flt.mkvi +++ b/tex/context/base/strc-flt.mkvi @@ -706,13 +706,13 @@ \def\float_place_packaged_boxes {\bgroup \ifconditional\usesamefloatnumber - \globallet\currentfloatnumber \previousfloatnumber - \globallet\currentfloatattribute \empty - \globallet\currentfloatsynchronize\relax + \globallet\currentfloatnumber \previousfloatnumber + \globallet\currentfloatattribute \empty + \globallet\currentfloatsynchronize\relax \else - \ifnofloatnumber \else \ifnofloatcaption \else - \doincrementsubstructurecounter[\@@thestructurecounter\currentfloat][1]% - \fi \fi + \ifnofloatnumber \else \ifnofloatcaption \else + \doincrementsubstructurecounter[\@@thestructurecounter\currentfloat][1]% + \fi \fi \dostructurecountercomponent {float}% \setupcurrentfloatcaption @@ -1173,7 +1173,7 @@ \postponenotes \dontcomplain \setbox\float_content_box\vbox{\borderedfloatbox}% - \let\float_align_content \float_align_content_indeed + \let\float_align_content\float_align_content_indeed \let\float_align_caption\float_align_caption_indeed \check_float_caption_content \ifcase\floatparameter\c!method @@ -1507,26 +1507,28 @@ {\expanded{\doifinset{\v!overlay}{\floatcaptionparameter\c!location}}\tophangfloat {\tempfloatwidth\wd\float_content_box \ifparfloat - \hbox{\locatesidefloat{\box\float_caption_box}}% + \hbox{\locate_side_float {\box\float_caption_box}}% \dofloatboxbetweenstack - \hbox{\hbox {\box\float_content_box }}% + \hbox{\hbox {\box\float_content_box}}% \else - \hbox{\locatetextfloat{\box\float_caption_box}} + \setfloathsize + \hbox{\locate_text_float {\box\float_caption_box}} \dofloatboxbetweenstack - \hbox{\float_align_content {\box\float_content_box }}% + \hbox{\float_align_content{\box\float_content_box}}% \fi}} \def\dofloatboxnormalbotstackbuilder {\expanded{\doifinset{\v!overlay}{\floatcaptionparameter\c!location}}\bothangfloat {\tempfloatwidth\wd\float_content_box \ifparfloat - \hbox{\hbox {\box\float_content_box }}% + \hbox{\hbox {\box\float_content_box}}% \dofloatboxbetweenstack - \hbox{\locatesidefloat{\box\float_caption_box}}% + \hbox{\locate_side_float {\box\float_caption_box}}% \else - \hbox{\float_align_content {\box\float_content_box }}% + \setfloathsize + \hbox{\float_align_content{\box\float_content_box}}% \dofloatboxbetweenstack - \hbox{\locatetextfloat{\box\float_caption_box}}% + \hbox{\locate_text_float {\box\float_caption_box}}% \fi}} \def\dofloatboxgridtopstackbuilder @@ -1534,13 +1536,14 @@ \setbox\scratchbox\vbox {\tempfloatwidth\wd\float_content_box \ifparfloat - \locatesidefloat{\box\float_caption_box}% + \locate_side_float {\box\float_caption_box}% \vss\dofloatboxbetweenstack - \hbox {\box\float_content_box }% + \hbox {\box\float_content_box}% \else - \locatetextfloat{\box\float_caption_box}% + \setfloathsize + \locate_text_float {\box\float_caption_box}% \vss\dofloatboxbetweenstack - \float_align_content {\box\float_content_box }% + \float_align_content{\box\float_content_box}% \fi}% \getnoflines{\dimexpr\htdp\scratchbox-10\scaledpoint\relax}% get rid of inaccuracy \vbox to \noflines\lineheight{\unvbox\scratchbox}} @@ -1550,13 +1553,14 @@ \setbox\scratchbox\vbox {\tempfloatwidth\wd\float_content_box \ifparfloat - \hbox {\box\float_content_box }% + \hbox {\box\float_content_box}% \vss\dofloatboxbetweenstack - \locatesidefloat{\box\float_caption_box}% + \locate_side_float {\box\float_caption_box}% \else - \float_align_content {\box\float_content_box }% + \setfloathsize + \float_align_content{\box\float_content_box}% \vss\dofloatboxbetweenstack - \locatetextfloat{\box\float_caption_box}% + \locate_text_float {\box\float_caption_box}% \fi}% \getnoflines{\dimexpr\htdp\scratchbox-10\scaledpoint\relax}% get rid of inaccuracy \vbox to \noflines\lineheight{\unvbox\scratchbox}} @@ -1570,13 +1574,14 @@ \vbox to \noflines\lineheight {\tempfloatwidth\wd\float_content_box \ifparfloat - \locatesidefloat{\box\float_caption_box}% + \locate_side_float {\box\float_caption_box}% \vss\dofloatboxbetweenstack\vss - \hbox {\box\float_content_box }% + \hbox {\box\float_content_box}% \else - \locatetextfloat{\box\float_caption_box}% + \setfloathsize + \locate_text_float {\box\float_caption_box}% \vss\dofloatboxbetweenstack\vss - \float_align_content {\box\float_content_box }% + \float_align_content{\box\float_content_box}% \fi}} \def\dofloatboxstretchbotstackbuilder @@ -1588,13 +1593,14 @@ \vbox to \noflines\lineheight {\tempfloatwidth\wd\float_content_box \ifparfloat - \hbox {\box\float_content_box }% + \hbox {\box\float_content_box}% \vss\dofloatboxbetweenstack\vss - \locatesidefloat{\box\float_caption_box} + \locate_side_float {\box\float_caption_box} \else - \float_align_content {\box\float_content_box }% + \setfloathsize + \float_align_content{\box\float_content_box}% \vss\dofloatboxbetweenstack\vss - \locatetextfloat{\box\float_caption_box}% + \locate_text_float {\box\float_caption_box}% \fi}} \def\dofloatboxtopbuilder @@ -1626,7 +1632,7 @@ \processcommacommand[\floatcaptionparameter\c!location]\docommand \executeifdefined{\??kj:\floatcaptionarrangement}{\getvalue{\??kj:\s!default}}}} -\def\locatetextfloat +\def\locate_text_float {\let\next\float_align_caption \expanded{\processallactionsinset[\floatcaptionparameter\c!location]} [ \v!left=>\let\next\relocatecaptionleft, @@ -1731,15 +1737,16 @@ \float_make_complete_caption}}}% \dostoptagged} +\def\locate_side_float#1% + {\begingroup + \alignstrutmode\zerocount + \hsize\tempfloatwidth \forgetall + \alignedline{\floatparameter\c!location}\v!middle{#1}% + \endgroup} + \def\build_side_float_box {\let\float_align_content\relax \let\float_align_caption\relax - \def\locatesidefloat##1% - {\begingroup - \alignstrutmode\zerocount - \hsize\tempfloatwidth \forgetall - \alignedline{\floatparameter\c!location}\v!middle{##1}% - \endgroup}% \build_float_box} \newif\ifparfloat diff --git a/tex/context/base/strc-ref.mkvi b/tex/context/base/strc-ref.mkvi index e285a1a8d..dfb31d066 100644 --- a/tex/context/base/strc-ref.mkvi +++ b/tex/context/base/strc-ref.mkvi @@ -687,6 +687,10 @@ \unexpanded\def\popreferenceprefix {\popmacro\referenceprefix} +\appendtoks + \setupreferenceprefix[\@@rfprefix] +\to \everysetupreferencing + %D We can typeset a reference using \type{\in}, \type{\at} and %D \type{\about} and goto specific locations using %D \type{\goto}. The last one does not make that much sense in diff --git a/tex/generic/context/luatex/luatex-fonts-merged.lua b/tex/generic/context/luatex/luatex-fonts-merged.lua index 907b4fd81..5686a4177 100644 --- a/tex/generic/context/luatex/luatex-fonts-merged.lua +++ b/tex/generic/context/luatex/luatex-fonts-merged.lua @@ -1,6 +1,6 @@ -- merged file : luatex-fonts-merged.lua -- parent file : luatex-fonts.lua --- merge date : 11/29/11 18:47:56 +-- merge date : 11/29/11 23:11:46 do -- begin closure to overcome local limits and interference -- cgit v1.2.3