ntg-context - mailing list for ConTeXt users
 help / color / mirror / Atom feed
* Text to be placed into the free space after columns and end of the page
@ 2020-05-20 14:38 context
  2020-05-21  8:30 ` context
  0 siblings, 1 reply; 4+ messages in thread
From: context @ 2020-05-20 14:38 UTC (permalink / raw)
  To: ConTeXt

[-- Attachment #1: Type: text/plain, Size: 685 bytes --]

Hello,

suppose the minimal example:

----
\showboxes
\starttext
   \startcolumns[n=2,balance=no,]
     \input knuth
   \stopcolumns
   \vfill
   abcd
\stoptext
----

This produces two page document with columns on the first page and text 
"abcd" on the second.

But - I want the text "abcd" to be placed to the bottom of the same page 
as columns are (thus I attempted to put \vfill into the code, but it 
doesn't work), so to get one page document looking like:

+------ page width -----+
Column text | (unused)
column text |
column text |
column text |
column text |
column text |

(some vertical space)

abcd
+----- end of page -----+

- How to achieve this?

Best regards,

Lukas

[-- Warning: decoded text below may be mangled, UTF-8 assumed --]
[-- Attachment #2: Col.mkiv --]
[-- Type: text/x-tex; name=Col.mkiv, Size: 121 bytes --]

\showboxes
\starttext
  \startcolumns[n=2,balance=no,]
    \input knuth
  \stopcolumns
  \vfill
  abcd
\stoptext

[-- Attachment #3: Col.pdf --]
[-- Type: application/pdf, Size: 14115 bytes --]

[-- Attachment #4: 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: Text to be placed into the free space after columns and end of the page
  2020-05-20 14:38 Text to be placed into the free space after columns and end of the page context
@ 2020-05-21  8:30 ` context
  2020-05-21  8:52   ` Aditya Mahajan
  0 siblings, 1 reply; 4+ messages in thread
From: context @ 2020-05-21  8:30 UTC (permalink / raw)
  To: mailing list for ConTeXt users

Hello,

at least a short reaction would be appreciated - is it possible to get 
the desired with ConTeXt?

- I need to typeset a column-shaped document with a colofon in the 
bottom of the page, so my interest is not academical but very practical;
and the code presented bellow is a minimalistic version ("abcd" stands 
for colofon).

Best regards,

Lukas


On 2020-05-20 16:38, context@vivaldi.net wrote:
> Hello,
> 
> suppose the minimal example:
> 
> ----
> \showboxes
> \starttext
>   \startcolumns[n=2,balance=no,]
>     \input knuth
>   \stopcolumns
>   \vfill
>   abcd
> \stoptext
> ----
> 
> This produces two page document with columns on the first page and
> text "abcd" on the second.
> 
> But - I want the text "abcd" to be placed to the bottom of the same
> page as columns are (thus I attempted to put \vfill into the code, but
> it doesn't work), so to get one page document looking like:
> 
> +------ page width -----+
> Column text | (unused)
> column text |
> column text |
> column text |
> column text |
> column text |
> 
> (some vertical space)
> 
> abcd
> +----- end of page -----+
> 
> - How to achieve this?
> 
> Best regards,
> 
> Lukas
___________________________________________________________________________________
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: Text to be placed into the free space after columns and end of the page
  2020-05-21  8:30 ` context
@ 2020-05-21  8:52   ` Aditya Mahajan
  2020-05-22  9:30     ` context
  0 siblings, 1 reply; 4+ messages in thread
From: Aditya Mahajan @ 2020-05-21  8:52 UTC (permalink / raw)
  To: mailing list for ConTeXt users

On Thu, 21 May 2020, context@vivaldi.net wrote:

> Hello,
>
> at least a short reaction would be appreciated - is it possible to get 
> the desired with ConTeXt?
>
> - I need to typeset a column-shaped document with a colofon in the 
> bottom of the page, so my interest is not academical but very practical;
> and the code presented bellow is a minimalistic version ("abcd" stands 
> for colofon).
>
> Best regards,
>
> Lukas
>
>
> On 2020-05-20 16:38, context@vivaldi.net wrote:
>> Hello,
>> 
>> suppose the minimal example:
>> 
>> ----
>> \showboxes
>> \starttext
>>   \startcolumns[n=2,balance=no,]
>>     \input knuth
>>   \stopcolumns
>>   \vfill
>>   abcd
>> \stoptext
>> ----
>> 
>> This produces two page document with columns on the first page and
>> text "abcd" on the second.

It is not clear to me why you are using columns here. If you want balanced columns, you could use:

\starttext
\startsimplecolumns[n=2]
\input knuth
\stopsimplecolumns
\vfill
abcd
\stoptext

>> But - I want the text "abcd" to be placed to the bottom of the same
>> page as columns are (thus I attempted to put \vfill into the code, but
>> it doesn't work), so to get one page document looking like:
>> 
>> +------ page width -----+
>> Column text | (unused)
>> column text |
>> column text |
>> column text |
>> column text |
>> column text |
>> 
>> (some vertical space)
>> 
>> abcd
>> +----- end of page -----+
>> 
>> - How to achieve this?

If you just want a narrower one column output (since using balance=no and \vfill after that only makes sense if the length of the content is less than a single column), you can use

\setupnarrower[right=0.5\textwidth]
\startnarrower[right]
\input knuth
\stopnarrower

or to get right frame:

\startframedtext[width=0.45\textwidth,frame=off, rightframe=on, roffset=0.5em]
   \input knuth
\stopframedtext

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
___________________________________________________________________________________

^ permalink raw reply	[flat|nested] 4+ messages in thread

* Re: Text to be placed into the free space after columns and end of the page
  2020-05-21  8:52   ` Aditya Mahajan
@ 2020-05-22  9:30     ` context
  0 siblings, 0 replies; 4+ messages in thread
From: context @ 2020-05-22  9:30 UTC (permalink / raw)
  To: mailing list for ConTeXt users

Hello Aditya,

thanks for all your answers.

You were right - my minimalist sample was not very suitable, and my real 
sample can be successfuly handled with \startnarrower.

Thanks again for your time.

Best regards,

Lukas


On 2020-05-21 10:52, Aditya Mahajan wrote:
> On Thu, 21 May 2020, context@vivaldi.net wrote:
> 
>> Hello,
>> 
>> at least a short reaction would be appreciated - is it possible to get 
>> the desired with ConTeXt?
>> 
>> - I need to typeset a column-shaped document with a colofon in the 
>> bottom of the page, so my interest is not academical but very 
>> practical;
>> and the code presented bellow is a minimalistic version ("abcd" stands 
>> for colofon).
>> 
>> Best regards,
>> 
>> Lukas
>> 
>> 
>> On 2020-05-20 16:38, context@vivaldi.net wrote:
>>> Hello,
>>> 
>>> suppose the minimal example:
>>> 
>>> ----
>>> \showboxes
>>> \starttext
>>>   \startcolumns[n=2,balance=no,]
>>>     \input knuth
>>>   \stopcolumns
>>>   \vfill
>>>   abcd
>>> \stoptext
>>> ----
>>> 
>>> This produces two page document with columns on the first page and
>>> text "abcd" on the second.
> 
> It is not clear to me why you are using columns here. If you want
> balanced columns, you could use:
> 
> \starttext
> \startsimplecolumns[n=2]
> \input knuth
> \stopsimplecolumns
> \vfill
> abcd
> \stoptext
> 
>>> But - I want the text "abcd" to be placed to the bottom of the same
>>> page as columns are (thus I attempted to put \vfill into the code, 
>>> but
>>> it doesn't work), so to get one page document looking like:
>>> 
>>> +------ page width -----+
>>> Column text | (unused)
>>> column text |
>>> column text |
>>> column text |
>>> column text |
>>> column text |
>>> 
>>> (some vertical space)
>>> 
>>> abcd
>>> +----- end of page -----+
>>> 
>>> - How to achieve this?
> 
> If you just want a narrower one column output (since using balance=no
> and \vfill after that only makes sense if the length of the content is
> less than a single column), you can use
> 
> \setupnarrower[right=0.5\textwidth]
> \startnarrower[right]
> \input knuth
> \stopnarrower
> 
> or to get right frame:
> 
> \startframedtext[width=0.45\textwidth,frame=off, rightframe=on, 
> roffset=0.5em]
>   \input knuth
> \stopframedtext
> 
> 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
___________________________________________________________________________________

^ permalink raw reply	[flat|nested] 4+ messages in thread

end of thread, other threads:[~2020-05-22  9:30 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2020-05-20 14:38 Text to be placed into the free space after columns and end of the page context
2020-05-21  8:30 ` context
2020-05-21  8:52   ` Aditya Mahajan
2020-05-22  9:30     ` context

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