text flowing around images
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
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 ___________________________________________________________________________________
\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 ___________________________________________________________________________________
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 ___________________________________________________________________________________
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
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
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 ___________________________________________________________________________________
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
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