ntg-context - mailing list for ConTeXt users
 help / color / mirror / Atom feed
* [achim@jander.de: Re: startcolumns: text runs into footer]
@ 2010-12-20  9:57 Philipp Gesang
  2010-12-20 10:07 ` Wolfgang Schuster
  0 siblings, 1 reply; 5+ messages in thread
From: Philipp Gesang @ 2010-12-20  9:57 UTC (permalink / raw)
  To: ntg-context


[-- Attachment #1.1: Type: text/plain, Size: 2661 bytes --]

Hi all,

I’m just forwarding this to the ml as I can’t help any further
and I’d like to know the answer too.

@Achim: have you tried locally chopping off a line from the text
area with “\[start|stop]columns”? Something like this:

··8<·····························································

\newdimen\Reducedtextheight
\let\Reducedtextheight\makeupheight
\advance\Reducedtextheight-\baselineskip
\setuplayout[height=\Reducedtextheight]

··8<·····························································

Not a clean solution, but it might still get you what you want.

Philipp


----- Forwarded message from achim@jander.de -----

Date: Mon, 20 Dec 2010 09:12:37 +0100
From: achim@jander.de
To: Philipp Gesang <pgesang@ix.urz.uni-heidelberg.de>
Subject: Re: [NTG-context] startcolumns: text runs into footer
User-Agent: Internet Messaging Program (IMP) H3 (4.0.3)

Hi Philipp,
thank you for your reply.

> 
> (1) Columnsets cause less trouble than the ordinary
> ?\[start|stop]columns?; (2) you have to define the vskips prior
> to using them with ?\setupwhitespace? or ?\blank?.
> 

that takes me a bit further. But columnsets seem to have one great
disadvantage
regarding my project (as far as i could figure out): you have to manually
balance the columns. Thats not practical within a 1200-pages book with
a lot of
balanced breaks.

Another problem (but that may result of my missing knowledge): I could not get
the columns to fill the page (now the contrary problem than before).
I've tried
setupalign[line] before as well as inside the columnset without any effort.
Example below.

Looking into spac-ver.mkiv did not really enlighten me (but i sure
have to take
a deeper look).

Thanks again,
Achim

\showframe
\definecolumnset[two][n=2]

\newskip\Hugeskip
\Hugeskip = 1em plus 4em minus 4em %that should be enough stretchability

\definevspacingamount[Huge][\Hugeskip][\Hugeskip]           % for \blank
\definewhitespacemethod[Notsohuge]{\ctxparskip.5\Hugeskip}  % for
\setupwhitespace

\setupalign[line] %does not work

\starttext

\startcolumnset[two]

\setupalign[line] %does not work also

%\setupwhitespace[Notsohuge, flexible] no effect

\setupwhitespace[Notsohuge]
%\setupwhitespace[flexible] no effect

\dorecurse{10}{\input knuth}

\stopcolumnset

\stoptext



----- End forwarded message -----

-- 
()  ascii ribbon campaign - against html e-mail
/\  www.asciiribbon.org   - against proprietary attachments

[-- Attachment #1.2: Type: application/pgp-signature, Size: 198 bytes --]

[-- Attachment #2: Type: text/plain, Size: 486 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] 5+ messages in thread

* Re: [achim@jander.de: Re: startcolumns: text runs into footer]
  2010-12-20  9:57 [achim@jander.de: Re: startcolumns: text runs into footer] Philipp Gesang
@ 2010-12-20 10:07 ` Wolfgang Schuster
  2010-12-20 10:12   ` Taco Hoekwater
  0 siblings, 1 reply; 5+ messages in thread
From: Wolfgang Schuster @ 2010-12-20 10:07 UTC (permalink / raw)
  To: mailing list for ConTeXt users


Am 20.12.2010 um 10:57 schrieb Philipp Gesang:

> Hi all,
> 
> I’m just forwarding this to the ml as I can’t help any further
> and I’d like to know the answer too.
> 
> @Achim: have you tried locally chopping off a line from the text
> area with “\[start|stop]columns”? Something like this:
> 
> ··8<·····························································
> 
> \newdimen\Reducedtextheight
> \let\Reducedtextheight\makeupheight
> \advance\Reducedtextheight-\baselineskip
> \setuplayout[height=\Reducedtextheight]
> 
> ··8<·····························································
> 
> Not a clean solution, but it might still get you what you want.

\setuplayout[lines=40]

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

* Re: [achim@jander.de: Re: startcolumns: text runs into footer]
  2010-12-20 10:07 ` Wolfgang Schuster
@ 2010-12-20 10:12   ` Taco Hoekwater
  2010-12-20 12:22     ` achim
  0 siblings, 1 reply; 5+ messages in thread
From: Taco Hoekwater @ 2010-12-20 10:12 UTC (permalink / raw)
  To: mailing list for ConTeXt users

On 12/20/2010 11:07 AM, Wolfgang Schuster wrote:
>
> Am 20.12.2010 um 10:57 schrieb Philipp Gesang:
>
>> Hi all,
>>
>> I’m just forwarding this to the ml as I can’t help any further
>> and I’d like to know the answer too.
>>
>> @Achim: have you tried locally chopping off a line from the text
>> area with “\[start|stop]columns”? Something like this:
>>
>> ··8<·····························································
>>
>> \newdimen\Reducedtextheight
>> \let\Reducedtextheight\makeupheight
>> \advance\Reducedtextheight-\baselineskip
>> \setuplayout[height=\Reducedtextheight]
>>
>> ··8<·····························································
>>
>> Not a clean solution, but it might still get you what you want.
>
> \setuplayout[lines=40]

And you need

   \setuplayout[grid=yes] % or grid=tolerant

to get \setupalign[line] to work.

Best wishes,
Taco
___________________________________________________________________________________
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] 5+ messages in thread

* Re: [achim@jander.de: Re: startcolumns: text runs into footer]
  2010-12-20 10:12   ` Taco Hoekwater
@ 2010-12-20 12:22     ` achim
  2010-12-20 15:12       ` achim
  0 siblings, 1 reply; 5+ messages in thread
From: achim @ 2010-12-20 12:22 UTC (permalink / raw)
  To: ntg-context

Hi at all,
thank you for the replies. Im still not fully happy, but i get ahead.
\setuplayout[lines=40] seems to do the job and holds the text inside the area.

Zitat von Taco Hoekwater <taco@elvenkind.com>:

>>
>> \setuplayout[lines=40]
>
> And you need
>
>   \setuplayout[grid=yes] % or grid=tolerant
>
> to get \setupalign[line] to work.
>

With grid=yes or grid=tolerant the spacing between the paragraphs goes to one
full line. Thats too much. What i want to achieve is to have each 
column spaced
to the full height, but i need no grid inbetween. I only want to have 
the first
and last line one the same height, and the paragraphs been spaced in the
smallest possible amount.


\showframe

\setuptolerance[horizontal, verytolerant]

\newskip\Hugeskip
%\Hugeskip = 1em plus 8em minus 1em
\Hugeskip = 4pt plus 16pt minus 0pt

\definevspacingamount[Huge][\Hugeskip][\Hugeskip]           % for \blank
\definewhitespacemethod[Notsohuge]{\ctxparskip.5\Hugeskip}  % for
\setupwhitespace

\setupalign[line]
\setuplayout[grid=tolerant]
\setuplayout[lines=41]

%\showgrid
\starttext


\startcolumns[n=2, align=yes]

\clubpenalty10000
\widowpenalty10000

\setupwhitespace[Notsohuge]

%\setuplayout[grid=tolerant]

\dorecurse{10}{\input knuth}

\stopcolumns

\stoptext



Thanks,
Achim


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

* Re: [achim@jander.de: Re: startcolumns: text runs into footer]
  2010-12-20 12:22     ` achim
@ 2010-12-20 15:12       ` achim
  0 siblings, 0 replies; 5+ messages in thread
From: achim @ 2010-12-20 15:12 UTC (permalink / raw)
  To: ntg-context

Hi again,
I played around a litte, and i'm coming nearer to the result i desire.
The example:

\showframe

\setuptolerance[horizontal, verytolerant]

\definewhitespacemethod[Test]{\ctxparskip 0pt plus4pt minus0pt}

\setupalign[line]
%\setuplayout[grid=yes]
\setuplayout[lines=41]

%\showgrid
\starttext


\startcolumns[n=2, align=yes, balance=yes]

\clubpenalty10000
\widowpenalty10000

\setupwhitespace[Test, flexible]

%\setuplayout[grid=tolerant]

\dorecurse{10}{\input knuth}

\stopcolumns

\stoptext

is a big step in the right direction. Pages 1 & 2 are perfect now, but 
I wonder,
why on page 3 there is such a big space in the right column. (the space is
needed to adjust the columns, but they are not really exact adjusted??)
Are there any ideas for improvement?

Thanks,
Achim



Zitat von achim@jander.de:

> Hi at all,
> thank you for the replies. Im still not fully happy, but i get ahead.
> \setuplayout[lines=40] seems to do the job and holds the text inside 
> the area.
>
> Zitat von Taco Hoekwater <taco@elvenkind.com>:
>
>>>
>>> \setuplayout[lines=40]
>>
>> And you need
>>
>>   \setuplayout[grid=yes] % or grid=tolerant
>>
>> to get \setupalign[line] to work.
>>
>
> With grid=yes or grid=tolerant the spacing between the paragraphs goes to one
> full line. Thats too much. What i want to achieve is to have each 
> column spaced
> to the full height, but i need no grid inbetween. I only want to have 
> the first
> and last line one the same height, and the paragraphs been spaced in the
> smallest possible amount.
>
>
> \showframe
>
> \setuptolerance[horizontal, verytolerant]
>
> \newskip\Hugeskip
> %\Hugeskip = 1em plus 8em minus 1em
> \Hugeskip = 4pt plus 16pt minus 0pt
>
> \definevspacingamount[Huge][\Hugeskip][\Hugeskip]           % for \blank
> \definewhitespacemethod[Notsohuge]{\ctxparskip.5\Hugeskip}  % for
> \setupwhitespace
>
> \setupalign[line]
> \setuplayout[grid=tolerant]
> \setuplayout[lines=41]
>
> %\showgrid
> \starttext
>
>
> \startcolumns[n=2, align=yes]
>
> \clubpenalty10000
> \widowpenalty10000
>
> \setupwhitespace[Notsohuge]
>
> %\setuplayout[grid=tolerant]
>
> \dorecurse{10}{\input knuth}
>
> \stopcolumns
>
> \stoptext
>
>
>
> Thanks,
> Achim
>
>
> ___________________________________________________________________________________
> 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
> ___________________________________________________________________________________
>



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

end of thread, other threads:[~2010-12-20 15:12 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2010-12-20  9:57 [achim@jander.de: Re: startcolumns: text runs into footer] Philipp Gesang
2010-12-20 10:07 ` Wolfgang Schuster
2010-12-20 10:12   ` Taco Hoekwater
2010-12-20 12:22     ` achim
2010-12-20 15:12       ` achim

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