ntg-context - mailing list for ConTeXt users
 help / color / mirror / Atom feed
* floatcombination boundingbox
@ 2017-06-28 12:33 Mikael P. Sundqvist
  2017-06-29  7:55 ` Hans Hagen
  0 siblings, 1 reply; 3+ messages in thread
From: Mikael P. Sundqvist @ 2017-06-28 12:33 UTC (permalink / raw)
  To: mailing list for ConTeXt users

[-- Attachment #1: Type: text/plain, Size: 1672 bytes --]

Hi,

I wonder what is going on in the example given below (resulting pdf
attached)? The placement of the figures in floatcombination (this does
not happen if I place them one by one in a figure) are shifted
horizontally, and seems to depend on the boundingbox. Am I doing
something wrong?

This happens with current version: 2017.06.27 18:05 but also with a
version that is some weeks old.

/Mikael
\setupcombinations[
distance=1cm,
]

\starttext

\startuseMPgraphic{figa}
draw (1cm,1cm) --  origin -- (1cm,-1cm);
draw boundingbox currentpicture;
\stopuseMPgraphic

\startplacefigure[location={nonumber}]
\startfloatcombination[nx=2,ny=1]
\startplacefigure
\useMPgraphic{figa}
\stopplacefigure
\startplacefigure
\useMPgraphic{figa}
\stopplacefigure
\stopfloatcombination
\stopplacefigure

\startuseMPgraphic{figb}
draw (1cm,1cm) --  origin -- (1cm,-1cm);
setbounds currentpicture to
((0,-1cm)--(1cm,-1cm)--(1cm,1cm)--(0,1cm)--cycle) enlarged 0.2cm;
draw boundingbox currentpicture;
\stopuseMPgraphic


\startplacefigure[location={nonumber}]
\startfloatcombination[nx=2,ny=1]
\startplacefigure
\useMPgraphic{figb}
\stopplacefigure
\startplacefigure
\useMPgraphic{figb}
\stopplacefigure
\stopfloatcombination
\stopplacefigure


\startuseMPgraphic{figc}
draw (1cm,1cm) --  origin -- (1cm,-1cm);
setbounds currentpicture to
((0,-1cm)--(1cm,-1cm)--(1cm,1cm)--(0,1cm)--cycle) enlarged 0.5cm;
draw boundingbox currentpicture;
\stopuseMPgraphic


\startplacefigure[location={nonumber}]
\startfloatcombination[nx=2,ny=1]
\startplacefigure
\useMPgraphic{figc}
\stopplacefigure
\startplacefigure
\useMPgraphic{figc}
\stopplacefigure
\stopfloatcombination
\stopplacefigure

\stoptext

[-- Attachment #2: ctx-example24.pdf --]
[-- Type: application/pdf, Size: 7557 bytes --]

[-- Attachment #3: Type: text/plain, Size: 492 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] 3+ messages in thread

* Re: floatcombination boundingbox
  2017-06-28 12:33 floatcombination boundingbox Mikael P. Sundqvist
@ 2017-06-29  7:55 ` Hans Hagen
  2017-06-30 17:51   ` Mikael P. Sundqvist
  0 siblings, 1 reply; 3+ messages in thread
From: Hans Hagen @ 2017-06-29  7:55 UTC (permalink / raw)
  To: ntg-context

On 6/28/2017 2:33 PM, Mikael P. Sundqvist wrote:
> Hi,
> 
> I wonder what is going on in the example given below (resulting pdf
> attached)? The placement of the figures in floatcombination (this does
> not happen if I place them one by one in a figure) are shifted
> horizontally, and seems to depend on the boundingbox. Am I doing
> something wrong?
it's an interactioon between wide captions and narrow content (normally 
no problem in floats)

i rewrote that bit (for combinations) so the next beta might do better

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] 3+ messages in thread

* Re: floatcombination boundingbox
  2017-06-29  7:55 ` Hans Hagen
@ 2017-06-30 17:51   ` Mikael P. Sundqvist
  0 siblings, 0 replies; 3+ messages in thread
From: Mikael P. Sundqvist @ 2017-06-30 17:51 UTC (permalink / raw)
  To: mailing list for ConTeXt users


[-- Attachment #1.1: Type: text/plain, Size: 1498 bytes --]

Den 29 juni 2017 9:55 fm skrev "Hans Hagen" <pragma@wxs.nl>:

On 6/28/2017 2:33 PM, Mikael P. Sundqvist wrote:

> Hi,
>
> I wonder what is going on in the example given below (resulting pdf
> attached)? The placement of the figures in floatcombination (this does
> not happen if I place them one by one in a figure) are shifted
> horizontally, and seems to depend on the boundingbox. Am I doing
> something wrong?
>
it's an interactioon between wide captions and narrow content (normally no
problem in floats)

i rewrote that bit (for combinations) so the next beta might do better

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/list
info/ntg-context
webpage  : http://www.pragma-ade.nl / http://context.aanhet.net
archive  : https://bitbucket.org/phg/context-mirror/commits/
wiki     : http://contextgarden.net
____________________________________________________________
_______________________


Many thanks for the quick fix, the problem seems indeed to be solved.

/Mikael

[-- Attachment #1.2: Type: text/html, Size: 2887 bytes --]

[-- Attachment #2: Type: text/plain, Size: 492 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] 3+ messages in thread

end of thread, other threads:[~2017-06-30 17:51 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2017-06-28 12:33 floatcombination boundingbox Mikael P. Sundqvist
2017-06-29  7:55 ` Hans Hagen
2017-06-30 17:51   ` Mikael P. Sundqvist

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).