ntg-context - mailing list for ConTeXt users
 help / color / mirror / Atom feed
From: seyal.zavira@gmail.com
To: ntg-context@ntg.nl
Subject: [NTG-context] Re: simplify side by side Poems
Date: Sat, 25 May 2024 06:40:57 -0000	[thread overview]
Message-ID: <171661925727.1997.4781357823497414215@cgl.ntg.nl> (raw)
In-Reply-To: <06f1229c-9888-b87e-a539-5c2a42481518@gmail.com>

Thanks so much

i also could define poem structure like this:

Using table method: 
\protected\def\PoemStart#1\PoemStop
   {\bTABLE[setups=tablepoem]#1\eTABLE}
\protected\def\Beyt#1
   {\bTR #1 \eTR}
\protected\def\Misra#1
   {\bTD #1 \eTD}
   
\starttext
\PoemStart
\Beyt{\Misra{the first sentence}   \Misra{the second sentence}}
\Beyt{\Misra{the third sentence}   \Misra{the fourth sentence}}
\PoemStop
\stoptext

also it can be done with itemize(easier but less flexible):
\defineitemgroup[Mypoem]
\setupitemgroup[Mypoem][horizontal,two]

\protected\def\PoemStart#1\PoemStop
   {\startitemgroup[Mypoem]#1\stopitemgroup}
\protected\def\Misra#1
   {\startitem#1\stopitem}

\starttext
\PoemStart
\Misra{the first sentence}  \Misra{the second sentence}
\Misra{the third sentence}  \Misra{the fourth sentence}
\PoemStop
\stoptext

there is also another method by using buffers and lua code (part of the answer to my question on the stack site).
___________________________________________________________________________________
If your question is of interest to others as well, please add an entry to the Wiki!

maillist : ntg-context@ntg.nl / https://mailman.ntg.nl/mailman3/lists/ntg-context.ntg.nl
webpage  : https://www.pragma-ade.nl / https://context.aanhet.net (mirror)
archive  : https://github.com/contextgarden/context
wiki     : https://wiki.contextgarden.net
___________________________________________________________________________________

      reply	other threads:[~2024-05-25  6:41 UTC|newest]

Thread overview: 5+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2024-05-23 12:13 [NTG-context] " seyal.zavira
2024-05-23 12:32 ` [NTG-context] " Wolfgang Schuster
2024-05-23 16:59   ` seyal.zavira
2024-05-23 20:44     ` Wolfgang Schuster
2024-05-25  6:40       ` seyal.zavira [this message]

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=171661925727.1997.4781357823497414215@cgl.ntg.nl \
    --to=seyal.zavira@gmail.com \
    --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).