ntg-context - mailing list for ConTeXt users
 help / color / mirror / Atom feed
* text surrounding graphic in columns
@ 2020-10-14 16:58 Jan U. Hasecke
  2020-10-14 17:36 ` Henning Hraban Ramm
  2020-10-15  7:15 ` Hans Hagen
  0 siblings, 2 replies; 6+ messages in thread
From: Jan U. Hasecke @ 2020-10-14 16:58 UTC (permalink / raw)
  To: mailing list for ConTeXt users


Hi,

how can I get a graphic that floats left or right from the text in
columns or columnsets?

\starttext
\startcolumns[2]

\placefigure[left, high, none]{}
    {\externalfigure[dummy][width=3em]}
    \input ward

    \input ward
\stopcolumns

\blank

\placefigure[left, high, none]{}
    {\externalfigure[dummy][width=3em]}
    Without columns it works.
    \input ward

    \input ward

\stoptext

TIA
juh
___________________________________________________________________________________
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: text surrounding graphic in columns
  2020-10-14 16:58 text surrounding graphic in columns Jan U. Hasecke
@ 2020-10-14 17:36 ` Henning Hraban Ramm
  2020-10-15  6:29   ` Jan U. Hasecke
  2020-10-15  7:15 ` Hans Hagen
  1 sibling, 1 reply; 6+ messages in thread
From: Henning Hraban Ramm @ 2020-10-14 17:36 UTC (permalink / raw)
  To: mailing list for ConTeXt users



> Am 14.10.2020 um 18:58 schrieb Jan U. Hasecke <juh+ntg-context@mailbox.org>:
> 
> how can I get a graphic that floats left or right from the text in
> columns or columnsets?

You can’t, sorry.

Hraban

___________________________________________________________________________________
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: text surrounding graphic in columns
  2020-10-14 17:36 ` Henning Hraban Ramm
@ 2020-10-15  6:29   ` Jan U. Hasecke
  0 siblings, 0 replies; 6+ messages in thread
From: Jan U. Hasecke @ 2020-10-15  6:29 UTC (permalink / raw)
  To: ntg-context

Thanks Hraban!

On 14.10.20 19:36, Henning Hraban Ramm wrote:
>> how can I get a graphic that floats left or right from the text in
>> columns or columnsets?
> 
> You can’t, sorry.

I feared that. I changed my layout a bit and use tables now.

juh
___________________________________________________________________________________
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: text surrounding graphic in columns
  2020-10-14 16:58 text surrounding graphic in columns Jan U. Hasecke
  2020-10-14 17:36 ` Henning Hraban Ramm
@ 2020-10-15  7:15 ` Hans Hagen
  2020-10-15 10:02   ` Jan U. Hasecke
  2020-10-15 10:54   ` Herbert Voss
  1 sibling, 2 replies; 6+ messages in thread
From: Hans Hagen @ 2020-10-15  7:15 UTC (permalink / raw)
  To: mailing list for ConTeXt users, Jan U. Hasecke

On 10/14/2020 6:58 PM, Jan U. Hasecke wrote:
> 
> Hi,
> 
> how can I get a graphic that floats left or right from the text in
> columns or columnsets?
> 
> \starttext
> \startcolumns[2]
> 
> \placefigure[left, high, none]{}
>      {\externalfigure[dummy][width=3em]}
>      \input ward
> 
>      \input ward
> \stopcolumns
> 
> \blank
> 
> \placefigure[left, high, none]{}
>      {\externalfigure[dummy][width=3em]}
>      Without columns it works.
>      \input ward
> 
>      \input ward
> 
> \stoptext
experimental (already there for a while but i need top pickup on it):

\starttext

\setupbodyfont[plex,10pt]
\setupalign[tolerant,stretch]
\useMPlibrary[dum]

\startpagecolumns[n=2]
     \dorecurse {10} {
         \startplacefigure[location={left,none}]
             \externalfigure[dummy][width=3em]
         \stopplacefigure

         \dorecurse {4} {
             \samplefile{ward}\par
         }
     }
\stoppagecolumns

\stoptext

don't tell Hraban

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

* Re: text surrounding graphic in columns
  2020-10-15  7:15 ` Hans Hagen
@ 2020-10-15 10:02   ` Jan U. Hasecke
  2020-10-15 10:54   ` Herbert Voss
  1 sibling, 0 replies; 6+ messages in thread
From: Jan U. Hasecke @ 2020-10-15 10:02 UTC (permalink / raw)
  To: Hans Hagen, mailing list for ConTeXt users

Thanks a lot for this hint, Hans!

On 15.10.20 09:15, Hans Hagen wrote:
> \starttext
> 
> \setupbodyfont[plex,10pt]
> \setupalign[tolerant,stretch]
> \useMPlibrary[dum]
> 
> \startpagecolumns[n=2]
>     \dorecurse {10} {
>         \startplacefigure[location={left,none}]
>             \externalfigure[dummy][width=3em]
>         \stopplacefigure
> 
>         \dorecurse {4} {
>             \samplefile{ward}\par
>         }
>     }
> \stoppagecolumns
> 
> \stoptext
> 
> don't tell Hraban

I promise. ;-)

I can't test it thoroughly, but I've got these issues.

I have problems with the grid on such a page. The last column of three
does not align the lines at the grid. With columnsets the grid is ok.

These columnsets as described in the manual looked very promising to me
as I could change the column layout on the page. The columnsetspan
feature is nice to make elements spread over multiple columns. Areas
also looks promising but I did not try them.

I had some problems while using columnsets with respect to switch this
span feature on and off. But I managed it kind of. The last thing I
couldn't get to work were images with location left of the text.

I'll have a deeper look at the examples in
./tex/texmf-context/doc/context/sources/general/manuals/columnsets

Thanks a lot for these features.
juh

juh
___________________________________________________________________________________
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: text surrounding graphic in columns
  2020-10-15  7:15 ` Hans Hagen
  2020-10-15 10:02   ` Jan U. Hasecke
@ 2020-10-15 10:54   ` Herbert Voss
  1 sibling, 0 replies; 6+ messages in thread
From: Herbert Voss @ 2020-10-15 10:54 UTC (permalink / raw)
  To: ntg-context

Am 15.10.20 um 09:15 schrieb Hans Hagen:
> experimental (already there for a while but i need top pickup on it):
>
> \starttext
>
> \setupbodyfont[plex,10pt]
> \setupalign[tolerant,stretch]
> \useMPlibrary[dum]
>
> \startpagecolumns[n=2]
>      \dorecurse {10} {
>          \startplacefigure[location={left,none}]
>              \externalfigure[dummy][width=3em]

using width=13em gives funny output ...

Herbert



> \stopplacefigure
>
>          \dorecurse {4} {
>              \samplefile{ward}\par
>          }
>      }
> \stoppagecolumns
>
> \stoptext




___________________________________________________________________________________
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:[~2020-10-15 10:54 UTC | newest]

Thread overview: 6+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2020-10-14 16:58 text surrounding graphic in columns Jan U. Hasecke
2020-10-14 17:36 ` Henning Hraban Ramm
2020-10-15  6:29   ` Jan U. Hasecke
2020-10-15  7:15 ` Hans Hagen
2020-10-15 10:02   ` Jan U. Hasecke
2020-10-15 10:54   ` Herbert Voss

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