ntg-context - mailing list for ConTeXt users
 help / color / mirror / Atom feed
From: "kauśika via ntg-context" <ntg-context@ntg.nl>
To: Mailing List for ConTeXt Users <ntg-context@ntg.nl>
Cc: kauśika <citturs@gmail.com>,
	"Ajith R via ntg-context" <ntg-context@ntg.nl>
Subject: Re: aligning Malayalam horizontally across column
Date: Fri, 31 Dec 2021 20:49:30 +0530	[thread overview]
Message-ID: <2221959.ElGaqSPkdT@sreeramtplt> (raw)
In-Reply-To: <20211231182501.66267835@desktop.home>

On Friday, December 31, 2021 6:25:01 PM IST Ajith R via ntg-context wrote:
> The problems are that - a) the group, with the two short paras get
> separated into different columns and sometimes pages. How can I prevent
> that? In other words, how do I tell Context that this should be treated
> as cohesive unit? b) The horizontal space doesn't align across columns.
> This probably is because the different conjuncts in each of these lines
> have different heights. How can I ask Context to treat each of these
> cohesive units as having the same height?

Your example is not clear enough for me to address b). I think I understand 
what problem you have described in a).

If you want to explicitly typeset paragraphs into a columnar format, use 
'paragraphs':

\defineparagraphs[mypar][n=5]
\setupparagraphs[mypar][1][width=…]
\setupparagraphs[mypar][2][width=…]
\setupparagraphs[mypar][3][width=…]
\setupparagraphs[mypar][4][width=…]
\setupparagraphs[mypar][5][width=…]

Now, you can do
\startmypar
this is the first column
\mypar
and here is the second column
\mypar
the third column is here
\mypar
and the fourth column is here
\mypar
and the last (fifth) column
\stopmypar

[If you end up using this you will have to "denote columns" in your script-
generated file by using \mypar]

Look into the options of \setupparagraphs for more details (there is a height 
option as well). If the height varies due to the formation of conjuncts, I 
think you are better off using "(natural) tables" :
https://wiki.contextgarden.net/TABLE
In particular, setting align=lohi for the two columns concerned should work. 
Again, your example is not clear enough for me to suggest much.

kauśika


___________________________________________________________________________________
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
___________________________________________________________________________________

  reply	other threads:[~2021-12-31 15:19 UTC|newest]

Thread overview: 6+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
     [not found] <20211231182501.66267835.ref@desktop.home>
2021-12-31 12:55 ` Ajith R via ntg-context
2021-12-31 15:19   ` kauśika via ntg-context [this message]
2022-01-01 10:20     ` Ajith R via ntg-context
2022-01-01 10:12   ` Hans Hagen via ntg-context
2022-01-02  7:08     ` Ajith R via ntg-context
2022-01-02 10:57       ` Hans Hagen via ntg-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=2221959.ElGaqSPkdT@sreeramtplt \
    --to=ntg-context@ntg.nl \
    --cc=citturs@gmail.com \
    /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).