text flowing around images
![](https://secure.gravatar.com/avatar/e5aa6984b53b8925e405ebbdbc051ad9.jpg?s=120&d=mm&r=g)
Ahoi, in my current project I must include a bunch of illustrations in my layout, and the text should flow around their irregular shapes (side placement in single text column only). I got the pictures as TIFFs with alpha channel, but of course I can change that. I’m quite sure I remember that it was possible to let text flow around shapes somehow, but I can’t find documentation or a sample. I’d be thankful for hints. Greetlings, Hraban --- https://www.fiee.net http://wiki.contextgarden.net https://www.dreiviertelhaus.de GPG Key ID 1C9B22FD
![](https://secure.gravatar.com/avatar/e5aa6984b53b8925e405ebbdbc051ad9.jpg?s=120&d=mm&r=g)
No hints?
If it’s not possible, I must redo the whole layout in InDesign. I’d like to avoid that (footnotes!).
Best, Hraban
Am 2019-02-04 um 11:10 schrieb Henning Hraban Ramm
Ahoi,
in my current project I must include a bunch of illustrations in my layout, and the text should flow around their irregular shapes (side placement in single text column only). I got the pictures as TIFFs with alpha channel, but of course I can change that.
I’m quite sure I remember that it was possible to let text flow around shapes somehow, but I can’t find documentation or a sample. I’d be thankful for hints.
Greetlings, Hraban --- https://www.fiee.net http://wiki.contextgarden.net https://www.dreiviertelhaus.de GPG Key ID 1C9B22FD
___________________________________________________________________________________ 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 ___________________________________________________________________________________
![](https://secure.gravatar.com/avatar/6e50a7aa57f5569d881f204f124d96ef.jpg?s=120&d=mm&r=g)
\parshape
On Tue, 5 Feb 2019 21:38:29 +0100
Henning Hraban Ramm
No hints?
If it’s not possible, I must redo the whole layout in InDesign. I’d like to avoid that (footnotes!).
Best, Hraban
Am 2019-02-04 um 11:10 schrieb Henning Hraban Ramm
: Ahoi,
in my current project I must include a bunch of illustrations in my layout, and the text should flow around their irregular shapes (side placement in single text column only). I got the pictures as TIFFs with alpha channel, but of course I can change that.
I’m quite sure I remember that it was possible to let text flow around shapes somehow, but I can’t find documentation or a sample. I’d be thankful for hints.
Greetlings, Hraban --- https://www.fiee.net http://wiki.contextgarden.net https://www.dreiviertelhaus.de GPG Key ID 1C9B22FD
___________________________________________________________________________________ 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 ___________________________________________________________________________________
___________________________________________________________________________________ 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 ___________________________________________________________________________________
![](https://secure.gravatar.com/avatar/74d41c3215dcdd377343cdc47311757c.jpg?s=120&d=mm&r=g)
The metafun manual should have a few examples. Wolfgang Alan Braslau schrieb am 05.02.19 um 21:48:
\parshape
On Tue, 5 Feb 2019 21:38:29 +0100 Henning Hraban Ramm
wrote: No hints?
If it’s not possible, I must redo the whole layout in InDesign. I’d like to avoid that (footnotes!).
Best, Hraban
Am 2019-02-04 um 11:10 schrieb Henning Hraban Ramm
: Ahoi,
in my current project I must include a bunch of illustrations in my layout, and the text should flow around their irregular shapes (side placement in single text column only). I got the pictures as TIFFs with alpha channel, but of course I can change that.
I’m quite sure I remember that it was possible to let text flow around shapes somehow, but I can’t find documentation or a sample. I’d be thankful for hints.
Greetlings, Hraban --- https://www.fiee.net http://wiki.contextgarden.net https://www.dreiviertelhaus.de GPG Key ID 1C9B22FD
___________________________________________________________________________________ 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 ___________________________________________________________________________________
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 ___________________________________________________________________________________
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 ___________________________________________________________________________________
![](https://secure.gravatar.com/avatar/c5ae4f9aa0d3a9bd5376e92b322c3e50.jpg?s=120&d=mm&r=g)
On Tue, 5 Feb 2019, Wolfgang Schuster wrote:
Am 2019-02-04 um 11:10 schrieb Henning Hraban Ramm
: Ahoi,
in my current project I must include a bunch of illustrations in my layout, and the text should flow around their irregular shapes (side placement in single text column only). I got the pictures as TIFFs with alpha channel, but of course I can change that.
I’m quite sure I remember that it was possible to let text flow around shapes somehow, but I can’t find documentation or a sample. I’d be thankful for hints.
The metafun manual should have a few examples.
See https://tex.stackexchange.com/a/32308/323 which is based on an example in the metafun manual. Aditya
![](https://secure.gravatar.com/avatar/e5aa6984b53b8925e405ebbdbc051ad9.jpg?s=120&d=mm&r=g)
Am 2019-02-06 um 00:19 schrieb Aditya Mahajan
On Tue, 5 Feb 2019, Wolfgang Schuster wrote:
Am 2019-02-04 um 11:10 schrieb Henning Hraban Ramm
: Ahoi,
in my current project I must include a bunch of illustrations in my layout, and the text should flow around their irregular shapes (side placement in single text column only). I got the pictures as TIFFs with alpha channel, but of course I can change that.
I’m quite sure I remember that it was possible to let text flow around shapes somehow, but I can’t find documentation or a sample. I’d be thankful for hints.
The metafun manual should have a few examples.
See https://tex.stackexchange.com/a/32308/323 which is based on an example in the metafun manual.
Thank you all! I guess I can reduce the flow cases to <10 and use \parshape directly; thinking in lines looks a bit easier than the MetaPost way. Calculating the MP path from the TIFF alpha channel would be interesting, but is way above my head. I guess it would work like: * preprocessing: - find the outer contour of the image (after some threshold value of color value or alpha channel) - simplify and vectorize that (I remember there were different OS tools/libraries used with FontForge or Inkscape) - convert this outline (SVG or EPS I guess) into MP * within the ConTeXt run: - place the (scaled) picture - preliminary page/paragraph breaking to find where there might be overlaps - calculate the fitting paragraph shape (rectangle minus overlapping part of the scaled outline) - probably some new line/paragraph breaking? Greetlings, Hraban --- https://www.fiee.net http://wiki.contextgarden.net https://www.dreiviertelhaus.de GPG Key ID 1C9B22FD
![](https://secure.gravatar.com/avatar/6e50a7aa57f5569d881f204f124d96ef.jpg?s=120&d=mm&r=g)
p.101 of the TeXbook ...
On Tue, 5 Feb 2019 13:48:14 -0700
Alan Braslau
\parshape
On Tue, 5 Feb 2019 21:38:29 +0100 Henning Hraban Ramm
wrote: No hints?
If it’s not possible, I must redo the whole layout in InDesign. I’d like to avoid that (footnotes!).
Best, Hraban
Am 2019-02-04 um 11:10 schrieb Henning Hraban Ramm
: Ahoi,
in my current project I must include a bunch of illustrations in my layout, and the text should flow around their irregular shapes (side placement in single text column only). I got the pictures as TIFFs with alpha channel, but of course I can change that.
I’m quite sure I remember that it was possible to let text flow around shapes somehow, but I can’t find documentation or a sample. I’d be thankful for hints.
Greetlings, Hraban --- https://www.fiee.net http://wiki.contextgarden.net https://www.dreiviertelhaus.de GPG Key ID 1C9B22FD
___________________________________________________________________________________ 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 ___________________________________________________________________________________
___________________________________________________________________________________ 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 ___________________________________________________________________________________
___________________________________________________________________________________ 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 ___________________________________________________________________________________
![](https://secure.gravatar.com/avatar/74d41c3215dcdd377343cdc47311757c.jpg?s=120&d=mm&r=g)
Alan Braslau schrieb am 05.02.19 um 21:56:
p.101 of the TeXbook ... or page 40 of Einführung in TeX: https://www.ruhr-uni-bochum.de/schwarz/TeX/
Wolfgang
![](https://secure.gravatar.com/avatar/60f3cc97f94fa3690ba406f8c1a7fc4f.jpg?s=120&d=mm&r=g)
For LaTeX there is a tool called fig2sty which can take an XFig figure and transform it into a LaTeX sty file. Maybe you could adapt it to ConTeXt. https://www.ctan.org/pkg/fig2sty On 6/02/19 9:38 AM, Henning Hraban Ramm wrote:
No hints?
If it’s not possible, I must redo the whole layout in InDesign. I’d like to avoid that (footnotes!).
Best, Hraban
Am 2019-02-04 um 11:10 schrieb Henning Hraban Ramm
: Ahoi,
in my current project I must include a bunch of illustrations in my layout, and the text should flow around their irregular shapes (side placement in single text column only). I got the pictures as TIFFs with alpha channel, but of course I can change that.
I’m quite sure I remember that it was possible to let text flow around shapes somehow, but I can’t find documentation or a sample. I’d be thankful for hints.
Greetlings, Hraban --- https://www.fiee.net http://wiki.contextgarden.net https://www.dreiviertelhaus.de GPG Key ID 1C9B22FD
___________________________________________________________________________________ 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 ___________________________________________________________________________________
___________________________________________________________________________________ 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 ___________________________________________________________________________________
participants (5)
-
Aditya Mahajan
-
Alan Braslau
-
Henning Hraban Ramm
-
Henri Menke
-
Wolfgang Schuster