Re: [NTG-context] text flowing around images
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 ___ 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 ___
Re: [NTG-context] text flowing around images
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___ 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 ___
Re: [NTG-context] text flowing around images
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 ___ 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 ___
Re: [NTG-context] text flowing around images
p.101 of the TeXbook ... On Tue, 5 Feb 2019 13:48:14 -0700 Alan Braslau wrote: > \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 > ___ ___ 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 ___
Re: [NTG-context] text flowing around images
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 ___ ___ 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 ___
Re: [NTG-context] text flowing around images
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 > ___ > ___ 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 ___
Re: [NTG-context] text flowing around images
\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 ___
Re: [NTG-context] text flowing around images
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 ___
[NTG-context] 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 ___ 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 ___