* Concerning \startTEXpage ... \stopTEXpage... again
@ 2020-12-07 5:15 Jairo A. del Rio
2020-12-07 8:58 ` Hans Hagen
0 siblings, 1 reply; 4+ messages in thread
From: Jairo A. del Rio @ 2020-12-07 5:15 UTC (permalink / raw)
To: mailing list for ConTeXt users
[-- Attachment #1.1: Type: text/plain, Size: 452 bytes --]
Hi. Thanks to Hans for the quick fixes. However, some examples are still
misbehaving.
See the following:
\setupbodyfont[70pt]
\starttext
\startTEXpage
\framed{$a >> n = \left\lfloor\frac{a}{2^n}\right\rfloor$}
\stopTEXpage
\stoptext
It works in MkIV, but it has the right margin cut with LMTX. Also, both
MkIV and LMTX give cropped formulas when \framed is absent in the example
above. Thank you in advance for any feedback.
Best regards,
Jairo :)
[-- Attachment #1.2: Type: text/html, Size: 595 bytes --]
[-- Attachment #2: Type: text/plain, Size: 493 bytes --]
___________________________________________________________________________________
If your question is of interest to others as well, please add an entry to the Wiki!
maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context
webpage : http://www.pragma-ade.nl / http://context.aanhet.net
archive : https://bitbucket.org/phg/context-mirror/commits/
wiki : http://contextgarden.net
___________________________________________________________________________________
^ permalink raw reply [flat|nested] 4+ messages in thread
* Re: Concerning \startTEXpage ... \stopTEXpage... again
2020-12-07 5:15 Concerning \startTEXpage ... \stopTEXpage... again Jairo A. del Rio
@ 2020-12-07 8:58 ` Hans Hagen
2020-12-07 9:03 ` Jairo A. del Rio
0 siblings, 1 reply; 4+ messages in thread
From: Hans Hagen @ 2020-12-07 8:58 UTC (permalink / raw)
To: mailing list for ConTeXt users, Jairo A. del Rio
On 12/7/2020 6:15 AM, Jairo A. del Rio wrote:
> Hi. Thanks to Hans for the quick fixes. However, some examples are still
> misbehaving.
> See the following:
>
> \setupbodyfont[70pt]
> \starttext
> \startTEXpage
> \framed{$a >> n = \left\lfloor\frac{a}{2^n}\right\rfloor$}
> \stopTEXpage
> \stoptext
>
> It works in MkIV, but it has the right margin cut with LMTX. Also, both
> MkIV and LMTX give cropped formulas when \framed is absent in the
> example above. Thank you in advance for any feedback.
be careful with terms like 'bug' or 'misbehaving' ... in this case it's
what one expects
(1) this mechanism creates / operates in a vbox (using a hbox might have
been nicer in retrospect but then you would have more issues unless
configured)
(2) so, we need some default hsize to start with and this is the text
width by defalut unless you set one with the 'width' argument or when
you pass [align=]
(3) cropping takes place after all has been typeset but happens within
the width, again, this could be made more tolerant but then other cases
will fail
with mechanisms like there is always a catch: handle this well and
something else will fail (when it works as expected it's seen as a
feature and otherwise it's considered a bug)
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
-----------------------------------------------------------------
___________________________________________________________________________________
If your question is of interest to others as well, please add an entry to the Wiki!
maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context
webpage : http://www.pragma-ade.nl / http://context.aanhet.net
archive : https://bitbucket.org/phg/context-mirror/commits/
wiki : http://contextgarden.net
___________________________________________________________________________________
^ permalink raw reply [flat|nested] 4+ messages in thread
* Re: Concerning \startTEXpage ... \stopTEXpage... again
2020-12-07 8:58 ` Hans Hagen
@ 2020-12-07 9:03 ` Jairo A. del Rio
2020-12-07 9:46 ` Hans Hagen
0 siblings, 1 reply; 4+ messages in thread
From: Jairo A. del Rio @ 2020-12-07 9:03 UTC (permalink / raw)
To: Hans Hagen; +Cc: mailing list for ConTeXt users
[-- Attachment #1.1: Type: text/plain, Size: 1941 bytes --]
Understood. Sorry, I wasn't meant to be rude. In such cases, how should I
proceed? Is there a better way?
Thank you in advance.
Cordially,
Jairo :)
El lun, 7 de dic. de 2020 a la(s) 03:58, Hans Hagen (j.hagen@xs4all.nl)
escribió:
> On 12/7/2020 6:15 AM, Jairo A. del Rio wrote:
> > Hi. Thanks to Hans for the quick fixes. However, some examples are still
> > misbehaving.
> > See the following:
> >
> > \setupbodyfont[70pt]
> > \starttext
> > \startTEXpage
> > \framed{$a >> n = \left\lfloor\frac{a}{2^n}\right\rfloor$}
> > \stopTEXpage
> > \stoptext
> >
> > It works in MkIV, but it has the right margin cut with LMTX. Also, both
> > MkIV and LMTX give cropped formulas when \framed is absent in the
> > example above. Thank you in advance for any feedback.
> be careful with terms like 'bug' or 'misbehaving' ... in this case it's
> what one expects
>
> (1) this mechanism creates / operates in a vbox (using a hbox might have
> been nicer in retrospect but then you would have more issues unless
> configured)
>
> (2) so, we need some default hsize to start with and this is the text
> width by defalut unless you set one with the 'width' argument or when
> you pass [align=]
>
> (3) cropping takes place after all has been typeset but happens within
> the width, again, this could be made more tolerant but then other cases
> will fail
>
> with mechanisms like there is always a catch: handle this well and
> something else will fail (when it works as expected it's seen as a
> feature and otherwise it's considered a bug)
>
> 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
> -----------------------------------------------------------------
>
[-- Attachment #1.2: Type: text/html, Size: 2628 bytes --]
[-- Attachment #2: Type: text/plain, Size: 493 bytes --]
___________________________________________________________________________________
If your question is of interest to others as well, please add an entry to the Wiki!
maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context
webpage : http://www.pragma-ade.nl / http://context.aanhet.net
archive : https://bitbucket.org/phg/context-mirror/commits/
wiki : http://contextgarden.net
___________________________________________________________________________________
^ permalink raw reply [flat|nested] 4+ messages in thread
* Re: Concerning \startTEXpage ... \stopTEXpage... again
2020-12-07 9:03 ` Jairo A. del Rio
@ 2020-12-07 9:46 ` Hans Hagen
0 siblings, 0 replies; 4+ messages in thread
From: Hans Hagen @ 2020-12-07 9:46 UTC (permalink / raw)
To: Jairo A. del Rio; +Cc: mailing list for ConTeXt users
On 12/7/2020 10:03 AM, Jairo A. del Rio wrote:
> Understood. Sorry, I wasn't meant to be rude. In such cases, how should
Regarding the the 'tagging' as 'bug' ... it's more that once a question
mentions 'bug' it no longer serves as 'general question' with 'possible
answer' for anyone.
> I proceed? Is there a better way?
[align=]
will make it a hbox
just use similar k/v as with framed
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
-----------------------------------------------------------------
___________________________________________________________________________________
If your question is of interest to others as well, please add an entry to the Wiki!
maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context
webpage : http://www.pragma-ade.nl / http://context.aanhet.net
archive : https://bitbucket.org/phg/context-mirror/commits/
wiki : http://contextgarden.net
___________________________________________________________________________________
^ permalink raw reply [flat|nested] 4+ messages in thread
end of thread, other threads:[~2020-12-07 9:46 UTC | newest]
Thread overview: 4+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2020-12-07 5:15 Concerning \startTEXpage ... \stopTEXpage... again Jairo A. del Rio
2020-12-07 8:58 ` Hans Hagen
2020-12-07 9:03 ` Jairo A. del Rio
2020-12-07 9:46 ` Hans Hagen
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).