* (no subject)
@ 2019-07-23 14:16 Denis Maier
2019-07-24 7:08 ` Graphics placement with columnsets/page grids (was "no subject) Denis Maier
0 siblings, 1 reply; 4+ messages in thread
From: Denis Maier @ 2019-07-23 14:16 UTC (permalink / raw)
To: mailing list for ConTeXt users
[-- Attachment #1.1: Type: text/plain, Size: 1848 bytes --]
Hi,
I am typesetting a newsletter using newcolumnsets, and I am struggling with
placing my graphics. Why isn't the graphic on page 2 at the bottom (code
below)?
Best,
Denis
```
\usemodule[newcolumnsets,simulate]
\useMPlibrary[dum]
\setupbodyfont
[palatino]
\setuphead[section][style=\bfa\ss]
\setuplayout
[grid=yes]
\setuplayout
[backspace=20mm,
cutspace=15mm,
width=middle,
height=middle]
\setupsystem
[random=1234]
\setuppagenumbering [
alternative=,
location=,
]
\setupfootertexts
[Laubblatt 2019/1] [{\externalfigure[cow][height=15mm]}]
\setupfooter
[style=\ss]
\setuptolerance
[verytolerant,stretch]
\definecolor[color-1][.5(red,green)]
\definecolor[color-2][.5(green,blue)]
\definecolor[color-3][.5(blue,red)]
\definecolor[color-4][.5(white,black)]
\definecolor[color-5][.5(white,color-4)]
\startuniqueMPgraphic{frame}
fill OverlayBox withcolor \MPcolor{color-1} ;
\stopuniqueMPgraphic
\startuniqueMPgraphic{contrast}
fill OverlayBox withcolor \MPcolor{color-2} ;
\stopuniqueMPgraphic
\defineoverlay[frame] [\uniqueMPgraphic{frame}]
\defineoverlay[contrast][\uniqueMPgraphic{contrast}]
\definecolumnset[example][n=2]
%\setupcolumnsetstart[example][1][1][2]
%\setupcolumnsetstart[example][1][2][4]
%\setupcolumnsetlines[example][1][1][-5]
%\setupcolumnsetlines[example][1][2][-5]
\definecolumnsetspan[wide] [n=2,
background=contrast,
color=white,
]
\starttext
\startcolumnset[example]
\startcolumnsetspan[wide]
\subject{Einleitung}
{\tfx\setupinterlinespace\em
\dorecurse{1}{\fakewords{50}{100}\par}
}
\stopcolumnsetspan
\placefigure [btrl,none]
{}
{
\externalfigure[placeholder][width=\columnsetspanwidth{1}]
}
\dorecurse{5}{\fakewords{50}{100}\par}
\placefigure [btrl,none]
{}
{
\externalfigure[placeholder][width=\columnsetspanwidth{2}]
}
\dorecurse{5}{\fakewords{50}{100}\par}
\stopcolumnset
\stoptext
```
[-- Attachment #1.2: Type: text/html, Size: 2283 bytes --]
[-- Attachment #2: Type: text/plain, Size: 493 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://context.aanhet.net
archive : https://bitbucket.org/phg/context-mirror/commits/
wiki : http://contextgarden.net
___________________________________________________________________________________
^ permalink raw reply [flat|nested] 4+ messages in thread
* Graphics placement with columnsets/page grids (was "no subject)
2019-07-23 14:16 (no subject) Denis Maier
@ 2019-07-24 7:08 ` Denis Maier
2019-07-28 16:53 ` Denis Maier
2019-08-18 20:29 ` Again: Graphics placement with columnsets/page grids Denis Maier
0 siblings, 2 replies; 4+ messages in thread
From: Denis Maier @ 2019-07-24 7:08 UTC (permalink / raw)
To: mailing list for ConTeXt users
[-- Attachment #1.1: Type: text/plain, Size: 2541 bytes --]
Hi,
just a quick follow up:
This (i.e., deleting the "none") gives the right result:
```
\placefigure [btrl]
{}
{
\externalfigure[placeholder][width=\columnsetspanwidth{2}]
}
```
The figure is indeed at the bottom of the page. Yet, `\placefigure
[btrl,none]` seems to remove the caption, but the figure stays where it was
and we have additional lines under the figure. Shouldn't the figure stick
to the margin?
Best,
Denis
Am Di., 23. Juli 2019 um 16:16 Uhr schrieb Denis Maier <maier.de@gmail.com>:
> Hi,
> I am typesetting a newsletter using newcolumnsets, and I am struggling
> with placing my graphics. Why isn't the graphic on page 2 at the bottom
> (code below)?
> Best,
> Denis
>
> ```
> \usemodule[newcolumnsets,simulate]
>
> \useMPlibrary[dum]
>
> \setupbodyfont
> [palatino]
>
> \setuphead[section][style=\bfa\ss]
>
> \setuplayout
> [grid=yes]
>
> \setuplayout
> [backspace=20mm,
> cutspace=15mm,
> width=middle,
> height=middle]
>
> \setupsystem
> [random=1234]
>
> \setuppagenumbering [
> alternative=,
> location=,
> ]
>
> \setupfootertexts
> [Laubblatt 2019/1] [{\externalfigure[cow][height=15mm]}]
>
> \setupfooter
> [style=\ss]
>
> \setuptolerance
> [verytolerant,stretch]
>
> \definecolor[color-1][.5(red,green)]
> \definecolor[color-2][.5(green,blue)]
> \definecolor[color-3][.5(blue,red)]
> \definecolor[color-4][.5(white,black)]
> \definecolor[color-5][.5(white,color-4)]
>
> \startuniqueMPgraphic{frame}
> fill OverlayBox withcolor \MPcolor{color-1} ;
> \stopuniqueMPgraphic
>
> \startuniqueMPgraphic{contrast}
> fill OverlayBox withcolor \MPcolor{color-2} ;
> \stopuniqueMPgraphic
>
> \defineoverlay[frame] [\uniqueMPgraphic{frame}]
> \defineoverlay[contrast][\uniqueMPgraphic{contrast}]
>
> \definecolumnset[example][n=2]
>
> %\setupcolumnsetstart[example][1][1][2]
> %\setupcolumnsetstart[example][1][2][4]
> %\setupcolumnsetlines[example][1][1][-5]
> %\setupcolumnsetlines[example][1][2][-5]
>
>
>
> \definecolumnsetspan[wide] [n=2,
> background=contrast,
> color=white,
> ]
>
>
> \starttext
>
> \startcolumnset[example]
>
>
>
> \startcolumnsetspan[wide]
> \subject{Einleitung}
> {\tfx\setupinterlinespace\em
> \dorecurse{1}{\fakewords{50}{100}\par}
> }
> \stopcolumnsetspan
>
> \placefigure [btrl,none]
> {}
> {
> \externalfigure[placeholder][width=\columnsetspanwidth{1}]
> }
>
> \dorecurse{5}{\fakewords{50}{100}\par}
>
> \placefigure [btrl,none]
> {}
> {
> \externalfigure[placeholder][width=\columnsetspanwidth{2}]
> }
>
> \dorecurse{5}{\fakewords{50}{100}\par}
>
> \stopcolumnset
> \stoptext
> ```
>
[-- Attachment #1.2: Type: text/html, Size: 3311 bytes --]
[-- Attachment #2: Type: text/plain, Size: 493 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://context.aanhet.net
archive : https://bitbucket.org/phg/context-mirror/commits/
wiki : http://contextgarden.net
___________________________________________________________________________________
^ permalink raw reply [flat|nested] 4+ messages in thread
* Re: Graphics placement with columnsets/page grids (was "no subject)
2019-07-24 7:08 ` Graphics placement with columnsets/page grids (was "no subject) Denis Maier
@ 2019-07-28 16:53 ` Denis Maier
2019-08-18 20:29 ` Again: Graphics placement with columnsets/page grids Denis Maier
1 sibling, 0 replies; 4+ messages in thread
From: Denis Maier @ 2019-07-28 16:53 UTC (permalink / raw)
To: mailing list for ConTeXt users
[-- Attachment #1.1: Type: text/plain, Size: 3500 bytes --]
Ok, I have now tested a more minimal example with version in TL 2019 and
with the current standalone.
The example works perfectly with the version that was included in TL 2019
(2019.03.21 21:39).
In the current beta I get this behaviour: A figure on a page after page 1
does not stick to the bottom of the page if we have no caption.
```
\usemodule[newcolumnsets]
\setuplayout
[grid=yes]
\definecolumnset[example][n=2]
\starttext
\startcolumnset[example]
\dorecurse{11}{
\input ward\par
}
\placefigure [btrl,none]
{}
{
\externalfigure[placeholder][width=\columnsetspanwidth{2}]
}
\dorecurse{10}{
\input ward\par
}
\stopcolumnset
\stoptext
```
Is this a bug, or am I making a mistake somewhere?
Best,
Denis
Am Mi., 24. Juli 2019 um 09:08 Uhr schrieb Denis Maier <maier.de@gmail.com>:
> Hi,
>
> just a quick follow up:
>
> This (i.e., deleting the "none") gives the right result:
>
> ```
> \placefigure [btrl]
> {}
> {
> \externalfigure[placeholder][width=\columnsetspanwidth{2}]
> }
> ```
>
> The figure is indeed at the bottom of the page. Yet, `\placefigure
> [btrl,none]` seems to remove the caption, but the figure stays where it was
> and we have additional lines under the figure. Shouldn't the figure stick
> to the margin?
>
> Best,
> Denis
>
>
> Am Di., 23. Juli 2019 um 16:16 Uhr schrieb Denis Maier <maier.de@gmail.com
> >:
>
>> Hi,
>> I am typesetting a newsletter using newcolumnsets, and I am struggling
>> with placing my graphics. Why isn't the graphic on page 2 at the bottom
>> (code below)?
>> Best,
>> Denis
>>
>> ```
>> \usemodule[newcolumnsets,simulate]
>>
>> \useMPlibrary[dum]
>>
>> \setupbodyfont
>> [palatino]
>>
>> \setuphead[section][style=\bfa\ss]
>>
>> \setuplayout
>> [grid=yes]
>>
>> \setuplayout
>> [backspace=20mm,
>> cutspace=15mm,
>> width=middle,
>> height=middle]
>>
>> \setupsystem
>> [random=1234]
>>
>> \setuppagenumbering [
>> alternative=,
>> location=,
>> ]
>>
>> \setupfootertexts
>> [Laubblatt 2019/1] [{\externalfigure[cow][height=15mm]}]
>>
>> \setupfooter
>> [style=\ss]
>>
>> \setuptolerance
>> [verytolerant,stretch]
>>
>> \definecolor[color-1][.5(red,green)]
>> \definecolor[color-2][.5(green,blue)]
>> \definecolor[color-3][.5(blue,red)]
>> \definecolor[color-4][.5(white,black)]
>> \definecolor[color-5][.5(white,color-4)]
>>
>> \startuniqueMPgraphic{frame}
>> fill OverlayBox withcolor \MPcolor{color-1} ;
>> \stopuniqueMPgraphic
>>
>> \startuniqueMPgraphic{contrast}
>> fill OverlayBox withcolor \MPcolor{color-2} ;
>> \stopuniqueMPgraphic
>>
>> \defineoverlay[frame] [\uniqueMPgraphic{frame}]
>> \defineoverlay[contrast][\uniqueMPgraphic{contrast}]
>>
>> \definecolumnset[example][n=2]
>>
>> %\setupcolumnsetstart[example][1][1][2]
>> %\setupcolumnsetstart[example][1][2][4]
>> %\setupcolumnsetlines[example][1][1][-5]
>> %\setupcolumnsetlines[example][1][2][-5]
>>
>>
>>
>> \definecolumnsetspan[wide] [n=2,
>> background=contrast,
>> color=white,
>> ]
>>
>>
>> \starttext
>>
>> \startcolumnset[example]
>>
>>
>>
>> \startcolumnsetspan[wide]
>> \subject{Einleitung}
>> {\tfx\setupinterlinespace\em
>> \dorecurse{1}{\fakewords{50}{100}\par}
>> }
>> \stopcolumnsetspan
>>
>> \placefigure [btrl,none]
>> {}
>> {
>> \externalfigure[placeholder][width=\columnsetspanwidth{1}]
>> }
>>
>> \dorecurse{5}{\fakewords{50}{100}\par}
>>
>> \placefigure [btrl,none]
>> {}
>> {
>> \externalfigure[placeholder][width=\columnsetspanwidth{2}]
>> }
>>
>> \dorecurse{5}{\fakewords{50}{100}\par}
>>
>> \stopcolumnset
>> \stoptext
>> ```
>>
>
[-- Attachment #1.2: Type: text/html, Size: 4631 bytes --]
[-- Attachment #2: Type: text/plain, Size: 493 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://context.aanhet.net
archive : https://bitbucket.org/phg/context-mirror/commits/
wiki : http://contextgarden.net
___________________________________________________________________________________
^ permalink raw reply [flat|nested] 4+ messages in thread
* Again: Graphics placement with columnsets/page grids
2019-07-24 7:08 ` Graphics placement with columnsets/page grids (was "no subject) Denis Maier
2019-07-28 16:53 ` Denis Maier
@ 2019-08-18 20:29 ` Denis Maier
1 sibling, 0 replies; 4+ messages in thread
From: Denis Maier @ 2019-08-18 20:29 UTC (permalink / raw)
To: mailing list for ConTeXt users
[-- Attachment #1.1: Type: text/plain, Size: 557 bytes --]
Hi,
I have posted a question regarding floats and columnsets some time ago. I
am wondering why I am having text under a figure in a two column layout.
================
\usemodule[newcolumnsets]
\setuplayout
[grid=yes]
\definecolumnset[example][n=2]
\starttext
\startcolumnset[example]
\dorecurse{11}{
\input ward\par
}
\placefigure [btrl,none]
{}
{
\externalfigure[placeholder][width=\columnsetspanwidth{2}]
}
\dorecurse{10}{
\input ward\par
}
\stopcolumnset
\stoptext
================
Shouldn't the figure stick to the bottom?
Best,
Denis
[-- Attachment #1.2: Type: text/html, Size: 795 bytes --]
[-- Attachment #2: Type: text/plain, Size: 493 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://context.aanhet.net
archive : https://bitbucket.org/phg/context-mirror/commits/
wiki : http://contextgarden.net
___________________________________________________________________________________
^ permalink raw reply [flat|nested] 4+ messages in thread
end of thread, other threads:[~2019-08-18 20:29 UTC | newest]
Thread overview: 4+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2019-07-23 14:16 (no subject) Denis Maier
2019-07-24 7:08 ` Graphics placement with columnsets/page grids (was "no subject) Denis Maier
2019-07-28 16:53 ` Denis Maier
2019-08-18 20:29 ` Again: Graphics placement with columnsets/page grids Denis Maier
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).