* issue with layers and layouts @ 2013-10-21 15:23 Pablo Rodriguez 2013-10-21 15:43 ` luigi scarso 0 siblings, 1 reply; 7+ messages in thread From: Pablo Rodriguez @ 2013-10-21 15:23 UTC (permalink / raw) To: mailing list for ConTeXt users Dear list, I have the following sample and two issues that I must solve: \showframe\setuplayout[margin=20mm, width=fit, topspace=45mm, bottomspace=25mm, height=fit] \definelayout[first][topspace=70mm, bottomspace=30mm] \definelayer[avoidasfloat][x=0mm, y=0mm, hoffset=8mm, voffset=101mm, location={right,bottom}, state=start] \setlayer[avoidasfloat]{\startMPcode draw (0mm,0mm)--(55mm,0mm) ; draw (0mm,0mm)--(0mm,-86mm) ; draw (0mm,-86mm)--(55mm,-86mm) ; draw (55mm,-86mm)--(55mm,0mm) ; \stopMPcode } \setupbackgrounds[page][background={avoidasfloat}] \starttext \dorecurse{40}{\input knuth\par} \stoptext First, the layout is right on the first two pages, but it is wrong from page three. The text doesn’t reach the bottom frame. I have the info on multiple layers from the wiki (it isn’t a complete example, though). After Wolfgang’s reply last Friday, I spend hours searching on the mailing list trying to find relevant information to know what I was doing wrong. If this isn’t a bug, what am I missing here? My second question is about the layer: is there no way to force the text to avoid it as if it were a float? Many thanks for your help, Pablo -- http://www.ousia.tk ___________________________________________________________________________________ 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://tex.aanhet.net archive : http://foundry.supelec.fr/projects/contextrev/ wiki : http://contextgarden.net ___________________________________________________________________________________ ^ permalink raw reply [flat|nested] 7+ messages in thread
* Re: issue with layers and layouts 2013-10-21 15:23 issue with layers and layouts Pablo Rodriguez @ 2013-10-21 15:43 ` luigi scarso 2013-10-21 16:28 ` Pablo Rodriguez 0 siblings, 1 reply; 7+ messages in thread From: luigi scarso @ 2013-10-21 15:43 UTC (permalink / raw) To: mailing list for ConTeXt users [-- Attachment #1.1: Type: text/plain, Size: 2250 bytes --] On Mon, Oct 21, 2013 at 5:23 PM, Pablo Rodriguez <oinos@gmx.es> wrote: > Dear list, > > I have the following sample and two issues that I must solve: > > \showframe\setuplayout[margin=20mm, width=fit, topspace=45mm, > bottomspace=25mm, > height=fit] > \definelayout[first][topspace=70mm, bottomspace=30mm] > \definelayer[avoidasfloat][x=0mm, y=0mm, hoffset=8mm, voffset=101mm, > location={right,bottom}, state=start] > \setlayer[avoidasfloat]{\startMPcode > draw (0mm,0mm)--(55mm,0mm) ; > draw (0mm,0mm)--(0mm,-86mm) ; > draw (0mm,-86mm)--(55mm,-86mm) ; > draw (55mm,-86mm)--(55mm,0mm) ; > \stopMPcode > } > \setupbackgrounds[page][background={avoidasfloat}] > \starttext > \dorecurse{40}{\input knuth\par} > \stoptext > > First, the layout is right on the first two pages, but it is wrong from > page three. The text doesn’t reach the bottom frame. > > I have the info on multiple layers from the wiki (it isn’t a complete > example, though). After Wolfgang’s reply last Friday, I spend hours > searching on the mailing list trying to find relevant information to > know what I was doing wrong. > > If this isn’t a bug, what am I missing here? > > from http://wiki.contextgarden.net/Odd,_even_,_first_page_not_working \showframe %\setuplayout[margin=20mm, width=fit, topspace=45mm, % bottomspace=25mm, % height=fit] \definelayout[1][topspace=120mm, bottomspace=30mm,height=fit] \definelayout[even][margin=20mm, width=fit, topspace=45mm, bottomspace=25mm, height=fit] \definelayout[odd][margin=20mm, width=fit, topspace=45mm, bottomspace=25mm, height=fit] \definelayer[avoidasfloat][x=0mm, y=0mm, hoffset=8mm, voffset=101mm,location={right,bottom}, state=start] \setlayer[avoidasfloat]{\startMPcode draw (0mm,0mm)--(55mm,0mm) ; draw (0mm,0mm)--(0mm,-86mm) ; draw (0mm,-86mm)--(55mm,-86mm) ; draw (55mm,-86mm)--(55mm,0mm) ; \stopMPcode } \setupbackgrounds[page][background={avoidasfloat}] \starttext \dorecurse{40}{\input knuth\par} \stoptext > My second question is about the layer: is there no way to force the text > to avoid it as if it were a float? > > Many thanks for your help, > hm what do you want to avoid ? -- luigi [-- Attachment #1.2: Type: text/html, Size: 3171 bytes --] [-- Attachment #2: Type: text/plain, Size: 485 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://tex.aanhet.net archive : http://foundry.supelec.fr/projects/contextrev/ wiki : http://contextgarden.net ___________________________________________________________________________________ ^ permalink raw reply [flat|nested] 7+ messages in thread
* Re: issue with layers and layouts 2013-10-21 15:43 ` luigi scarso @ 2013-10-21 16:28 ` Pablo Rodriguez 2013-10-22 10:29 ` Wolfgang Schuster 0 siblings, 1 reply; 7+ messages in thread From: Pablo Rodriguez @ 2013-10-21 16:28 UTC (permalink / raw) To: mailing list for ConTeXt users On 10/21/2013 05:43 PM, luigi scarso wrote: > On Mon, Oct 21, 2013 at 5:23 PM, Pablo Rodriguez wrote: > [...] > First, the layout is right on the first two pages, but it is wrong from > page three. The text doesn’t reach the bottom frame. > [...] > If this isn’t a bug, what am I missing here? > > from http://wiki.contextgarden.net/Odd,_even_,_first_page_not_working > > \showframe > %\setuplayout[margin=20mm, width=fit, topspace=45mm, > % bottomspace=25mm, > % height=fit] > > \definelayout[1][topspace=120mm, bottomspace=30mm,height=fit] > > \definelayout[even][margin=20mm, width=fit, topspace=45mm, > bottomspace=25mm, > height=fit] > > \definelayout[odd][margin=20mm, width=fit, topspace=45mm, > bottomspace=25mm, > height=fit] Many thanks for your reply, Luigi. If I don’t get it wrong, if I define a layout for the first page, I have to define it for even and odd pages, haven’t I?. > My second question is about the layer: is there no way to force the text > to avoid it as if it were a float? > > hm what do you want to avoid ? I want the text flow to avoid the layer "avoidasfloat" as it avoids the figures. \definelayer[avoidasfloat][x=0mm, y=0mm, hoffset=8mm, voffset=101mm,location={right,bottom}, state=start] \setlayer[avoidasfloat]{\startMPcode draw (0mm,0mm)--(55mm,0mm) ; draw (0mm,0mm)--(0mm,-86mm) ; draw (0mm,-86mm)--(55mm,-86mm) ; draw (55mm,-86mm)--(55mm,0mm) ; \stopMPcode } \setupbackgrounds[page][background={avoidasfloat}] \starttext \dorecurse{40}{\input knuth\placefigure[right]{}{}\par} \stoptext Layer has text inside in the sample above. I’d like to have it as a float. Many thanks for your help, Pablo -- http://www.ousia.tk ___________________________________________________________________________________ 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://tex.aanhet.net archive : http://foundry.supelec.fr/projects/contextrev/ wiki : http://contextgarden.net ___________________________________________________________________________________ ^ permalink raw reply [flat|nested] 7+ messages in thread
* Re: issue with layers and layouts 2013-10-21 16:28 ` Pablo Rodriguez @ 2013-10-22 10:29 ` Wolfgang Schuster 2013-10-22 17:13 ` Pablo Rodriguez 0 siblings, 1 reply; 7+ messages in thread From: Wolfgang Schuster @ 2013-10-22 10:29 UTC (permalink / raw) To: mailing list for ConTeXt users Am 21.10.2013 um 18:28 schrieb Pablo Rodriguez <oinos@gmx.es>: > I want the text flow to avoid the layer "avoidasfloat" as it avoids the > figures. > > \definelayer[avoidasfloat][x=0mm, y=0mm, hoffset=8mm, > voffset=101mm,location={right,bottom}, state=start] > \setlayer[avoidasfloat]{\startMPcode > draw (0mm,0mm)--(55mm,0mm) ; > draw (0mm,0mm)--(0mm,-86mm) ; > draw (0mm,-86mm)--(55mm,-86mm) ; > draw (55mm,-86mm)--(55mm,0mm) ; > \stopMPcode > } > \setupbackgrounds[page][background={avoidasfloat}] > \starttext > \dorecurse{40}{\input knuth\placefigure[right]{}{}\par} > \stoptext > > Layer has text inside in the sample above. I’d like to have it as a float. > > Many thanks for your help, You can use positioned layers (mentioned in the metafun manual but currently broken in MkIV) but you have to place the layer with a float to reserve the necessary space. % engine=pdftex \definelayer[avoidasfloat][position=yes] \setupbackgrounds[page][background=avoidasfloat] \starttext \placefigure[right,none]{}{\setlayer[avoidasfloat]{\startMPcode draw unitsquare scaled 4cm ; \stopMPcode}} \input knuth \stoptext 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://tex.aanhet.net archive : http://foundry.supelec.fr/projects/contextrev/ wiki : http://contextgarden.net ___________________________________________________________________________________ ^ permalink raw reply [flat|nested] 7+ messages in thread
* Re: issue with layers and layouts 2013-10-22 10:29 ` Wolfgang Schuster @ 2013-10-22 17:13 ` Pablo Rodriguez 2013-10-23 0:55 ` Wolfgang Schuster 0 siblings, 1 reply; 7+ messages in thread From: Pablo Rodriguez @ 2013-10-22 17:13 UTC (permalink / raw) To: mailing list for ConTeXt users On 10/22/2013 12:29 PM, Wolfgang Schuster wrote: > Am 21.10.2013 um 18:28 schrieb Pablo Rodriguez <oinos@gmx.es>: >> [...] >> Layer has text inside in the sample above. I’d like to have it as a float. > > You can use positioned layers (mentioned in the metafun manual but currently broken in MkIV) > but you have to place the layer with a float to reserve the necessary space. > > % engine=pdftex > > \definelayer[avoidasfloat][position=yes] > > \setupbackgrounds[page][background=avoidasfloat] > > \starttext > > \placefigure[right,none]{}{\setlayer[avoidasfloat]{\startMPcode draw unitsquare scaled 4cm ; \stopMPcode}} > \input knuth > > \stoptext Many thanks for your reply, Wolfgang. Is there no way to place that layer exactly 8mm from left page border and 110mm from top page border? I really need the layer in that position (otherwise it doesn’t make sense). Many thanks for your help, Pablo -- http://www.ousia.tk ___________________________________________________________________________________ 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://tex.aanhet.net archive : http://foundry.supelec.fr/projects/contextrev/ wiki : http://contextgarden.net ___________________________________________________________________________________ ^ permalink raw reply [flat|nested] 7+ messages in thread
* Re: issue with layers and layouts 2013-10-22 17:13 ` Pablo Rodriguez @ 2013-10-23 0:55 ` Wolfgang Schuster 2013-10-23 15:49 ` Pablo Rodriguez 0 siblings, 1 reply; 7+ messages in thread From: Wolfgang Schuster @ 2013-10-23 0:55 UTC (permalink / raw) To: mailing list for ConTeXt users Am 22.10.2013 um 19:13 schrieb Pablo Rodriguez <oinos@gmx.es>: > On 10/22/2013 12:29 PM, Wolfgang Schuster wrote: >> Am 21.10.2013 um 18:28 schrieb Pablo Rodriguez <oinos@gmx.es>: >>> [...] >>> Layer has text inside in the sample above. I’d like to have it as a float. >> >> You can use positioned layers (mentioned in the metafun manual but currently broken in MkIV) >> but you have to place the layer with a float to reserve the necessary space. >> >> % engine=pdftex >> >> \definelayer[avoidasfloat][position=yes] >> >> \setupbackgrounds[page][background=avoidasfloat] >> >> \starttext >> >> \placefigure[right,none]{}{\setlayer[avoidasfloat]{\startMPcode draw unitsquare scaled 4cm ; \stopMPcode}} >> \input knuth >> >> \stoptext > > Many thanks for your reply, Wolfgang. > > Is there no way to place that layer exactly 8mm from left page border > and 110mm from top page border? > > I really need the layer in that position (otherwise it doesn’t make sense). Remove “position=yes” when you want the layer on a certain position on the page but don’t expect the text to flow around the layer. 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://tex.aanhet.net archive : http://foundry.supelec.fr/projects/contextrev/ wiki : http://contextgarden.net ___________________________________________________________________________________ ^ permalink raw reply [flat|nested] 7+ messages in thread
* Re: issue with layers and layouts 2013-10-23 0:55 ` Wolfgang Schuster @ 2013-10-23 15:49 ` Pablo Rodriguez 0 siblings, 0 replies; 7+ messages in thread From: Pablo Rodriguez @ 2013-10-23 15:49 UTC (permalink / raw) To: mailing list for ConTeXt users On 10/23/2013 02:55 AM, Wolfgang Schuster wrote: > Am 22.10.2013 um 19:13 schrieb Pablo Rodriguez <oinos@gmx.es>: >> On 10/22/2013 12:29 PM, Wolfgang Schuster wrote: >>> Am 21.10.2013 um 18:28 schrieb Pablo Rodriguez <oinos@gmx.es>: >>>> [...] >>>> Layer has text inside in the sample above. I’d like to have it as a float. >>> >>> You can use positioned layers (mentioned in the metafun manual but currently broken in MkIV) >>> but you have to place the layer with a float to reserve the necessary space. >> [...] >> Is there no way to place that layer exactly 8mm from left page border >> and 110mm from top page border? >> >> I really need the layer in that position (otherwise it doesn’t make sense). > > Remove “position=yes” when you want the layer on a certain position on the page but don’t > expect the text to flow around the layer. Many thanks for your reply, Wolfgang. I’m afraid that I need the layer on that position and text flowing around the layer. Is there no way to do place a MP graphic on a certain position and make the text flow around it? Sorry for insisting, but it surprises me that such a basic need seems impossible with ConTeXt. Many thanks for your help, Pablo -- http://www.ousia.tk ___________________________________________________________________________________ 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://tex.aanhet.net archive : http://foundry.supelec.fr/projects/contextrev/ wiki : http://contextgarden.net ___________________________________________________________________________________ ^ permalink raw reply [flat|nested] 7+ messages in thread
end of thread, other threads:[~2013-10-23 15:49 UTC | newest] Thread overview: 7+ messages (download: mbox.gz / follow: Atom feed) -- links below jump to the message on this page -- 2013-10-21 15:23 issue with layers and layouts Pablo Rodriguez 2013-10-21 15:43 ` luigi scarso 2013-10-21 16:28 ` Pablo Rodriguez 2013-10-22 10:29 ` Wolfgang Schuster 2013-10-22 17:13 ` Pablo Rodriguez 2013-10-23 0:55 ` Wolfgang Schuster 2013-10-23 15:49 ` Pablo Rodriguez
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).