Hi, A few things (1) Thomas and I picked up the facing floats thread. I will probably remove the experimental code from mkiv and only work on the lmtx implementation. The same can be true for streams. (2) The \limits and \nolimist etc commands are actually modifiers and so are \Umathadapttoright and \Umathadapttoleft. Because we have a couple of 'handy' options in several math constructs in the engine I decided to add a few more modifiers to (ab)use those features too. The next examples are for 'math detail lovers': % \displaylimits % \limits % \nolimits % \ordlimits (maybe replace that one now or maybe no longer needed anyway) % \Umathadapttoleft % \Umathadapttoright % \Umathaxis % \Umathnoaxis % \Umathphantom % \Umathvoid % \Umathopenupheight <dimension> % \Umathopenupdepth <dimension> % \Umathlimits % \Umathnolimits \startTEXpage[offset=5mm] \startformula x = \integral^1_2 \mathinner{\vrule height 10mm depth 10mm width 5mm} = x = \integral^1_2 \mathinner{\vrule height 20mm depth 20mm width 5mm} = x = \integral^1_2 \mathinner{\vrule height 30mm depth 30mm width 5mm} = x = \integral^1_2 \mathinner{x} = x = \integral^1_2 x \stopformula \stopTEXpage \startTEXpage[offset=5mm] $ x = \integral^1_2 \mathinner{\vrule height 10mm depth 10mm width 5mm} = x = \integral^1_2 \mathinner{\vrule height 20mm depth 20mm width 5mm} = x = \integral^1_2 \mathinner{\vrule height 30mm depth 30mm width 5mm} = x = \integral^1_2 x = $ \stopTEXpage \def\rab {\Umathchar"1"00"007C } \def\lrab{\Umathchar"4"00"007C } \def\rrab{\Umathchar"5"00"007C } % \Umathmodifier : plus\minus \definecolor[mtestcolor][a=1,t=.5,s=.5] \startTEXpage[offset=5mm] $ \color[green]{\rab\Umathadapttoright^{\black 1}_{\black 2}^^3__4} \color[blue] {\mathinner{\vrule height 30mm depth 30mm width 5mm}} \color[red] {\rab\Umathadapttoleft ^5_6^^{\black 7}__{\black 8}} $ \quad $ \rab\Umathadapttoright^1_2^^3__4 \mathinner{\vrule height 30mm depth 30mm width 5mm} \rab\Umathadapttoleft^5_6^^7__8 $ \quad $ \showboxes \rab\Umathadapttoright\Umathnoaxis^1_2^^3__4 \mathinner{\vrule height 30mm depth 30mm width 5mm} \rab\Umathadapttoleft\Umathnoaxis^5_6^^7__8 $ \quad $ \showboxes \rab\Umathadapttoright\Umathnoaxis\Umathphantom^1_2^^3__4 \mathinner{\vrule height 30mm depth 30mm width 5mm} \rab\Umathadapttoleft\Umathnoaxis\Umathphantom^5_6^^7__8 $ \quad $ \showboxes \rab\Umathadapttoright\Umathnoaxis\Umathvoid^1_2^^3__4 \mathinner{\vrule height 30mm depth 30mm width 5mm} \rab\Umathadapttoleft\Umathnoaxis\Umathvoid^5_6^^7__8 $ \quad $ \showboxes \rab\Umathadapttoright\Umathnoaxis\Umathvoid\Umathopenupheight5mm^1_2^^3__4 \mathinner{\vrule height 30mm depth 30mm width 5mm} \rab\Umathadapttoleft \Umathnoaxis\Umathvoid\Umathopenupdepth 5mm^5_6^^7__8 $ \stopTEXpage \startTEXpage[offset=5mm] $ \showmakeup[math] \rab\Umathadapttoright\Umathnoaxis\Umathopenupheight 5mm^1_2^^3__4 \mathinner{\mtestcolor\vrule height 10mm depth 10mm width 5mm} \rab\Umathadapttoleft \Umathnoaxis\Umathopenupdepth 5mm^5_6^^7__8 $ \quad $ \showmakeup[math] \openinnerspacing \textstyle 5mu \innerclosespacing\textstyle 5mu \lrab\Umathadapttoright\Umathnoaxis\Umathopenupheight 5mm^1_2^^3__4 \mathinner{\mtestcolor\vrule height 10mm depth 10mm width 5mm} \rrab\Umathadapttoleft \Umathnoaxis\Umathopenupdepth 5mm^5_6^^7__8 $ \quad $ \showmakeup[math] \openinnerspacing \textstyle 5mu \innerclosespacing\textstyle 5mu \lrab\Umathnolimits\Umathadapttoright\Umathnoaxis\Umathopenupheight 5mm^1_2^^3__4 \mathinner{\mtestcolor\vrule height 10mm depth 10mm width 5mm} \rrab\Umathlimits \Umathadapttoleft \Umathnoaxis\Umathopenupdepth 5mm^5_6^^7__8 $ \stopTEXpage \startTEXpage[offset=5mm] $ \showmakeup[math] \frozen\openinnerspacing \textstyle 10mu \frozen\innerclosespacing\textstyle 10mu \lrab\Umathnolimits\Umathadapttoright\Umathnoaxis^1_2^^3__4 \mathinner{\mtestcolor\vrule height 10mm depth 10mm width 5mm} \rrab\Umathlimits \Umathadapttoleft \Umathnoaxis^5_6^^7__8 = \frozen\openinnerspacing \textstyle 2mu \frozen\innerclosespacing\textstyle 2mu \lrab\Umathnolimits\Umathadapttoright\Umathnoaxis^1_2^^3__4 \mathinner{\mtestcolor\vrule height 10mm depth 10mm width 5mm} \rrab\Umathlimits \Umathadapttoleft \Umathnoaxis^5_6^^7__8 $ \stopTEXpage \stoptext I'm still wondering about some interfacing but that depends on it being used (at all) but at least we can finetune a bit more abstract if we want to. It is also fun to play with (come up with new math notations and so). Hans ----------------------------------------------------------------- Hans Hagen | PRAGMA ADE Ridderstraat 27 | 8061 GH Hasselt | The Netherlands tel: 038 477 53 69 | www.pragma-ade.nl | www.pragma-pod.nl -----------------------------------------------------------------
On 6/13/21 7:31 PM, Hans Hagen wrote:
Hi,
A few things
(1) Thomas and I picked up the facing floats thread. I will probably remove the experimental code from mkiv and only work on the lmtx implementation. The same can be true for streams.
Many thanks for the new latest, Hans. I have compiled the sample from page-ffl.mkxl: \starttext \definefacingfloat [whatever] \setupfacingfloat [whatever] [style=bold, width=frame, offset=10pt, color=white] \setupfacingfloat [whatever:left] [background=color, backgroundcolor=red] \setupfacingfloat [whatever:right] [background=color, backgroundcolor=green] \startfacingfloat[whatever] {\dorecurse{10}{\samplefile{tufte} }} {\dorecurse{10}{\samplefile{ward} }} {\dorecurse{10}{\samplefile{tufte} }} {\dorecurse{10}{\samplefile{ward} }} \stopfacingfloat \startfacingfloat[whatever] \startcontent \dorecurse{10}{\samplefile{tufte} } \stopcontent \startcontent \dorecurse{10}{\samplefile{ward} } \stopcontent \startcontent \dorecurse{10}{\samplefile{tufte} } \stopcontent \startcontent \dorecurse{10}{\samplefile{ward} } \stopcontent \stopfacingfloat \dorecurse{10}{\samplefile{sapolsky} } \stoptext I’m afraid that the resulting PDF document only contains the text from Sapolsky (no facing floats). Sorry, but I have no idea about what I may be doing wrong (or whether there is an issue here). Many thanks for your help, Pablo -- http://www.ousia.tk
On 6/14/2021 5:13 PM, Pablo Rodriguez wrote:
On 6/13/21 7:31 PM, Hans Hagen wrote:
Hi,
A few things
(1) Thomas and I picked up the facing floats thread. I will probably remove the experimental code from mkiv and only work on the lmtx implementation. The same can be true for streams.
Many thanks for the new latest, Hans.
I have compiled the sample from page-ffl.mkxl:
\starttext \definefacingfloat [whatever]
\setupfacingfloat [whatever] [style=bold, width=frame, offset=10pt, color=white]
\setupfacingfloat [whatever:left] [background=color, backgroundcolor=red]
\setupfacingfloat [whatever:right] [background=color, backgroundcolor=green]
\startfacingfloat[whatever] {\dorecurse{10}{\samplefile{tufte} }} {\dorecurse{10}{\samplefile{ward} }} {\dorecurse{10}{\samplefile{tufte} }} {\dorecurse{10}{\samplefile{ward} }} \stopfacingfloat
\startfacingfloat[whatever] \startcontent \dorecurse{10}{\samplefile{tufte} } \stopcontent \startcontent \dorecurse{10}{\samplefile{ward} } \stopcontent \startcontent \dorecurse{10}{\samplefile{tufte} } \stopcontent \startcontent \dorecurse{10}{\samplefile{ward} } \stopcontent \stopfacingfloat
\flushfacingfloats
\dorecurse{10}{\samplefile{sapolsky} } \stoptext
I’m afraid that the resulting PDF document only contains the text from Sapolsky (no facing floats).
Sorry, but I have no idea about what I may be doing wrong (or whether there is an issue here). The interface is evolving (so it's not meant for production ... it's what Thomas and i are exploring so it might change till it suits his needs).
Hans ----------------------------------------------------------------- Hans Hagen | PRAGMA ADE Ridderstraat 27 | 8061 GH Hasselt | The Netherlands tel: 038 477 53 69 | www.pragma-ade.nl | www.pragma-pod.nl -----------------------------------------------------------------
On 6/14/21 5:22 PM, Hans Hagen wrote:
On 6/14/2021 5:13 PM, Pablo Rodriguez wrote:
[...] Sorry, but I have no idea about what I may be doing wrong (or whether there is an issue here). The interface is evolving (so it's not meant for production ... it's what Thomas and i are exploring so it might change till it suits his needs).
Many thanks for your fast reply, Hans. It would be great to have facing streams in ConTeXt. Many thanks for your help, Pablo -- http://www.ousia.tk
participants (2)
-
Hans Hagen
-
Pablo Rodriguez