ntg-context - mailing list for ConTeXt users
 help / color / mirror / Atom feed
* floatcombination alignment has changed?
       [not found] <mailman.1.1481194801.9275.ntg-context@ntg.nl>
@ 2016-12-08 11:27 ` Jeong Dal
  0 siblings, 0 replies; 6+ messages in thread
From: Jeong Dal @ 2016-12-08 11:27 UTC (permalink / raw)
  To: ntg-context

Dear Christoph,

I don’t know how to put figures horizontally using “\startfloatcombination”.
Is there any reason to use “\startfloatcombination”?

I usually use the following code when I need to display the figures.
It is displayed horizontally and center aligned nicely.


\useMPlibrary[dum]
    
\starttext
\placefigure{}{
 \startcombination[2*1]
    {\externalfigure[cow.pdf]}{}
   {\externalfigure[cow.pdf]}{}
 \stopcombination}
 \stoptext

Best regards,

Dalyoung

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

* Re: floatcombination alignment has changed?
@ 2017-01-04  9:13 Christoph Reller
  0 siblings, 0 replies; 6+ messages in thread
From: Christoph Reller @ 2017-01-04  9:13 UTC (permalink / raw)
  To: ntg-context

Hi,

I have come up with a simpler MWE which shows the problem more explicitly:

\setupcaptions[number=no]

\starttext

\startplacefigure[location=right]
  \startfloatcombination
    \placefigure{A Cow}{\externalfigure[cow.pdf]}
    \placefigure{Another Cow}{\externalfigure[cow.pdf]}
  \stopfloatcombination
\stopplacefigure
\input ward

\startplacefigure[location=right,title=A Single Cow]
  \externalfigure[cow.pdf]
\stopplacefigure
\input ward

\stoptext

In the latest version of ConTeXt, the floatcombination is shoved to
the left and overlaps the text which is also shoved to the left and
narrowed down to a minimum. The single figure, on the other hand, is
shoved correctly to the right and the text is at the left.

In earlier versions of ConTeXt, the floatcombination is correctly
shoved to the right. The reason for this change could be line 490 of
pack-com.mkiv (in the definition of \pack_combinations_start_float).
If I delete \dontleavehmode from this line then the correct layout is
restored.

Since I don't want to maintain my own version of ConTeXt, I very much
would appreciate If anyone could tell me how to get the correct layout
back, or fix this issue in ConTeXt.

Your effort is genuinely appreciated!

Christoph
___________________________________________________________________________________
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] 6+ messages in thread

* Re: floatcombination alignment has changed?
@ 2016-12-28 10:43 Christoph Reller
  0 siblings, 0 replies; 6+ messages in thread
From: Christoph Reller @ 2016-12-28 10:43 UTC (permalink / raw)
  To: ntg-context

Dear List,

Consider the following MWE:

\startplacefigure
  \startfloatcombination
    \startplacetable[title={Table I}] % <- shifted
    %\startplacetable                   % <- not shifted
      \bTABLE
        \bTR \bTD Foo \eTD \bTD Text. \eTD \eTR
      \eTABLE
    \stopplacetable
    \startplacetable[title={Table II}] % <- shifted
    %\startplacetable                    % <- not shifted
      \bTABLE
          \bTR \bTD Foo \eTD \bTD Text. \eTD \eTR
      \eTABLE
    \stopplacetable
  \stopfloatcombination
\stopplacefigure

The resulting output looks strange to me. The tables are shifted to
the left when compared with omitting the titles. In earlier versions
of ConTeXt, no such shift happens.

Do floatcombinations not work?

Any feedback is welcome.

Cheers,
Christoph
___________________________________________________________________________________
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] 6+ messages in thread

* Re: floatcombination alignment has changed?
       [not found] <mailman.1.1481367601.421.ntg-context@ntg.nl>
@ 2016-12-10 13:05 ` Jeong Dal
  0 siblings, 0 replies; 6+ messages in thread
From: Jeong Dal @ 2016-12-10 13:05 UTC (permalink / raw)
  To: ntg-context

Dear Christoph,

Your knowledge on ConTeXt is much better than me.  I am just an end user.
It seems to me that you already found a solution.
However, many experts in this list will clear your question soon.
Good luck!

Best regards,

Dalyoung




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

* Re: floatcombination alignment has changed?
@ 2016-12-09 13:23 Christoph Reller
  0 siblings, 0 replies; 6+ messages in thread
From: Christoph Reller @ 2016-12-09 13:23 UTC (permalink / raw)
  To: ntg-context

On Thu, 08 Dec 2016 20:27:12 +0900, Jeong Dal <haksan@me.com> wrote:
> I don’t know how to put figures horizontally using “\startfloatcombination”.
> Is there any reason to use “\startfloatcombination”?

Dear Dalyoung,

Thank you for your feedback. Indeed, \startcombinantion produces
centered combinations by default.

The problem is, that within the combination I would like to use floats
defined with \setupfloat. This is not supported by \startcombination.

I noticed that line 490 of pack-com.mkiv has an added \dontleavehmode
in the definition of \pack_combinations_start_float. When deleting
this, the combination is centered. What is the reason for
\dontleavehmode here?

Is packing floats inside a floatcombination not recommended in general?

Any feedback is welcome

Cheers,
Christoph
___________________________________________________________________________________
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] 6+ messages in thread

* floatcombination alignment has changed?
@ 2016-12-07 16:21 Christoph Reller
  0 siblings, 0 replies; 6+ messages in thread
From: Christoph Reller @ 2016-12-07 16:21 UTC (permalink / raw)
  To: ntg-context


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

Hi,

In recent versions of ConTeXt, floatcombinations are not placed centered by
default anymore. Consider the following MWE in which two cows are placed
side by side:

\placefigure{}{
  \startfloatcombination
    \placefigure{}{\externalfigure[cow.pdf]}
    \placefigure{}{\externalfigure[cow.pdf]}
  \stopfloatcombination}

In version 2016.07.01_16.28, the combination is placed horizontally. In the
latest version, the combination is flushed to the left.

Is this change by intention? If yes, could please anybody tell me how to
restore the previous behavior; changing the "location" does not help.

Thank you for your effort.

Cheers,

Christoph

[-- Attachment #1.2: Type: text/html, Size: 938 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] 6+ messages in thread

end of thread, other threads:[~2017-01-04  9:13 UTC | newest]

Thread overview: 6+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
     [not found] <mailman.1.1481194801.9275.ntg-context@ntg.nl>
2016-12-08 11:27 ` floatcombination alignment has changed? Jeong Dal
2017-01-04  9:13 Christoph Reller
  -- strict thread matches above, loose matches on Subject: below --
2016-12-28 10:43 Christoph Reller
     [not found] <mailman.1.1481367601.421.ntg-context@ntg.nl>
2016-12-10 13:05 ` Jeong Dal
2016-12-09 13:23 Christoph Reller
2016-12-07 16:21 Christoph Reller

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