From: Aditya Mahajan <adityam@umich.edu>
To: mailing list for ConTeXt users <ntg-context@ntg.nl>
Subject: Re: Text to be placed into the free space after columns and end of the page
Date: Thu, 21 May 2020 04:52:35 -0400 (EDT) [thread overview]
Message-ID: <nycvar.YAK.7.77.849.2005210447030.479097@nqv-guvaxcnq> (raw)
In-Reply-To: <1460f41e9acb5a1c48c60e657c3753cc@vivaldi.net>
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
___________________________________________________________________________________
next prev parent reply other threads:[~2020-05-21 8:52 UTC|newest]
Thread overview: 4+ messages / expand[flat|nested] mbox.gz Atom feed top
2020-05-20 14:38 context
2020-05-21 8:30 ` context
2020-05-21 8:52 ` Aditya Mahajan [this message]
2020-05-22 9:30 ` context
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=nycvar.YAK.7.77.849.2005210447030.479097@nqv-guvaxcnq \
--to=adityam@umich.edu \
--cc=ntg-context@ntg.nl \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
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).