ntg-context - mailing list for ConTeXt users
 help / color / mirror / Atom feed
* Columns and figures in MKIV
@ 2011-06-29 23:24 Jason Earl
  2011-06-30  8:23 ` Willi Egger
  0 siblings, 1 reply; 3+ messages in thread
From: Jason Earl @ 2011-06-29 23:24 UTC (permalink / raw)
  To: ntg-context


I am trying to upgrade an existing document from using texexec and
pdftex to context and luatex.  Unfortunately, the document relies pretty
heavily on columns (using \startcolumns[n=2,tolerant=verytolerant]) and
the idea that figures that are too wide to place in a column float to
the top of the next page.

Unfortunately, this does not seem to be the case with the current
minimals.  The following example works fine for texexec (even if I
comment out the \startpostponing \stoppostponing code).  The figure is
placed (centered) at the top of page 2.  With MKIV, however, the figure
stays in the first column and bleeds over into the second column (the
postponing code does change it to the next page, but it doesn't force it
out of the column).

--8<---------------cut here---------------start------------->8---
\enableregime[utf-8]

\starttext
\startcolumns
\chapter[chap:testing]{Testing}

\startcolumns[n=2, tolerant=verytolerant]
\input knuth

%\startpostponing
  \placefigure
    [center][fig:foo]
    {none}
    {\externalfigure[foo][]
      [width=1.5\textwidth]}
%\stoppostponing

\input tufte

\input knuth

\input tufte

\input knuth

\input tufte

\stopcolumns
\stoptext--8<---------------cut here---------------end--------------->8---

I am using the Context minimal distribution (on Linux) and context
reports that the current version as:

current version: 2011.06.29 09:57

It is quite likely that I am simply doing this wrong, but I have read:

http://wiki.contextgarden.net/Columns

and it appears to support what I am trying to do.  I have experimented a
bit with columnsets, but they appear to be overkill for my use.  Then
again, I am probably doing it wrong.  Any advice would be appreciated.

Jason Earl
___________________________________________________________________________________
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] 3+ messages in thread

* Re: Columns and figures in MKIV
  2011-06-29 23:24 Columns and figures in MKIV Jason Earl
@ 2011-06-30  8:23 ` Willi Egger
  2011-07-01 15:42   ` Jason Earl
  0 siblings, 1 reply; 3+ messages in thread
From: Willi Egger @ 2011-06-30  8:23 UTC (permalink / raw)
  To: mailing list for ConTeXt users

Columnsets provide you the possibility to place column spanning pictures:

Willi

\definecolumnset[Doublecoltext][n=2,balance=no]
\setupcolumnset[Doublecoltext][2][distance=5mm]
\starttext
\startcolumnset[Doublecoltext]
\chapter[chap:testing]{Testing}


\input knuth

%\startpostponing
 \placefigure
   [btlr][fig:foo]
   {none}
   {\externalfigure[mill][width=1.5\textwidth,height=5cm]}
%\stoppostponing

\input tufte

\input knuth

\input tufte

\input knuth

\input tufte

\stopcolumnset
\stoptext



On 30 Jun 2011, at 01:24, Jason Earl wrote:

> \starttext
> \startcolumns
> \chapter[chap:testing]{Testing}
> 
> \startcolumns[n=2, tolerant=verytolerant]
> \input knuth
> 
> %\startpostponing
>  \placefigure
>    [center][fig:foo]
>    {none}
>    {\externalfigure[foo][]
>      [width=1.5\textwidth]}
> %\stoppostponing
> 
> \input tufte
> 
> \input knuth
> 
> \input tufte
> 
> \input knuth
> 
> \input tufte
> 
> \stopcolumns
> \stoptext

___________________________________________________________________________________
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] 3+ messages in thread

* Re: Columns and figures in MKIV
  2011-06-30  8:23 ` Willi Egger
@ 2011-07-01 15:42   ` Jason Earl
  0 siblings, 0 replies; 3+ messages in thread
From: Jason Earl @ 2011-07-01 15:42 UTC (permalink / raw)
  To: mailing list for ConTeXt users


On Thu, Jun 30 2011, Willi Egger wrote:

> Columnsets provide you the possibility to place column spanning pictures:

Thank you for the advice.  I was hoping to avoid having to learn about
columnsets, but I suppose learning is good.  Any hints on getting
columnsets and footnotes to play nicely?  Here's an example of how I
would normally use footnotes, but the footnote is obscured by the text.

--8<---------------cut here---------------start------------->8---
\definecolumnset[Doublecoltext][n=2,balance=no]
\setupcolumnset[Doublecoltext][2][distance=5mm]
\starttext
\chapter[chap:testing]{Testing}

\startcolumnset[Doublecoltext]

  This is a short paragraph.  I think it should have a
  footnote.\footnote{And so it shall!  Unfortunately you won't be able
    to see it because it is covered up with the text in the
    columnsets.}

\input knuth

%\startpostponing
 \placefigure
   [btlr][fig:foo]
   {none}
   {\externalfigure[mill][width=1.5\textwidth,height=5cm]}
%\stoppostponing

\input tufte

\input knuth

\input tufte

\input knuth

\input tufte

\stopcolumnset
\stoptext
--8<---------------cut here---------------end--------------->8---

Once again, I am sorry if my question is naive.  I am working through
the examples in the Columnset manual to try and wrap my head around
them, but it is becoming pretty clear to me that it is a tool for layout
designers far more accomplished than I am.

Jason
___________________________________________________________________________________
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] 3+ messages in thread

end of thread, other threads:[~2011-07-01 15:42 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2011-06-29 23:24 Columns and figures in MKIV Jason Earl
2011-06-30  8:23 ` Willi Egger
2011-07-01 15:42   ` Jason Earl

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).