ntg-context - mailing list for ConTeXt users
 help / color / mirror / Atom feed
* [NTG-context] Page breaks with \defineparagraphs possible?
@ 2023-06-04 22:02 Berend de Boer via ntg-context
  2023-06-04 22:30 ` Wolfgang Schuster via ntg-context
  0 siblings, 1 reply; 5+ messages in thread
From: Berend de Boer via ntg-context @ 2023-06-04 22:02 UTC (permalink / raw)
  To: NTG-ConTeXt mailing list; +Cc: Berend de Boer

Dear all,

I've noticed that \defineparagraphs does not break across pages. That
would be a huge page saver in my case. Do I have any options for page
breaking across a set of parallel paragraphs?

Initially I just had a \hbox{\vtop{#1}\hfil\vtop{#2}} but obviously
that doesn't break, so went for more ConTeXt style, but couldn't see a
good mechanism.


Example file where you can see the entire paragraphs thing is put on the next page.

==================================================

\setuppapersize[A5]

\defineparagraphs[bilingual][n=2,tolerance=stretch,before=,after=,distance=\0.06\textwidth]
\setupparagraphs[bilingual][1][width=0.47\textwidth]
\setupparagraphs[bilingual][2][width=0.47\textwidth]

\starttext

\input tufte

\startbilingual
  \input tufte
  \nextbilingual
  \input knuth

\stopbilingual

\stoptext

==================================================

-- 
All the best,

Berend de Boer
___________________________________________________________________________________
If your question is of interest to others as well, please add an entry to the Wiki!

maillist : ntg-context@ntg.nl / https://www.ntg.nl/mailman/listinfo/ntg-context
webpage  : https://www.pragma-ade.nl / http://context.aanhet.net
archive  : https://bitbucket.org/phg/context-mirror/commits/
wiki     : https://contextgarden.net
___________________________________________________________________________________

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

* Re: [NTG-context] Page breaks with \defineparagraphs possible?
  2023-06-04 22:02 [NTG-context] Page breaks with \defineparagraphs possible? Berend de Boer via ntg-context
@ 2023-06-04 22:30 ` Wolfgang Schuster via ntg-context
  2023-06-05  6:14   ` Berend de Boer via ntg-context
                     ` (2 more replies)
  0 siblings, 3 replies; 5+ messages in thread
From: Wolfgang Schuster via ntg-context @ 2023-06-04 22:30 UTC (permalink / raw)
  To: Berend de Boer via ntg-context; +Cc: Wolfgang Schuster

Berend de Boer via ntg-context schrieb am 05.06.2023 um 00:02:
> Dear all,
>
> I've noticed that \defineparagraphs does not break across pages. That
> would be a huge page saver in my case. Do I have any options for page
> breaking across a set of parallel paragraphs?
>
> Initially I just had a \hbox{\vtop{#1}\hfil\vtop{#2}} but obviously
> that doesn't break, so went for more ConTeXt style, but couldn't see a
> good mechanism.

You can use the tabulate environment to create parallel paragraphs.

\setuppapersize[A5]

\definetabulate[bilingual][|pA{normal,verytolerant,stretch}|pA{normal,verytolerant,stretch}|]

\starttext

\startbilingual
\NC \input tufte
\NC \input knuth
\NC\NR
\stopbilingual

\stoptext

Wolfgang

___________________________________________________________________________________
If your question is of interest to others as well, please add an entry to the Wiki!

maillist : ntg-context@ntg.nl / https://www.ntg.nl/mailman/listinfo/ntg-context
webpage  : https://www.pragma-ade.nl / http://context.aanhet.net
archive  : https://bitbucket.org/phg/context-mirror/commits/
wiki     : https://contextgarden.net
___________________________________________________________________________________

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

* Re: [NTG-context] Page breaks with \defineparagraphs possible?
  2023-06-04 22:30 ` Wolfgang Schuster via ntg-context
@ 2023-06-05  6:14   ` Berend de Boer via ntg-context
  2023-06-05  6:23   ` Berend de Boer via ntg-context
  2023-06-05  6:38   ` Berend de Boer via ntg-context
  2 siblings, 0 replies; 5+ messages in thread
From: Berend de Boer via ntg-context @ 2023-06-05  6:14 UTC (permalink / raw)
  To: mailing list for ConTeXt users; +Cc: Berend de Boer

Hi Wolfgang,

> You can use the tabulate environment to create parallel paragraphs.

Ah yes, that's working! Thank you so much!

One question on the pA{normal,verytolerant,stretch}: what does that do exactly?

From the manual I got that A only takes one key, what does specifying three keys mean?

-- 
All the best,

Berend de Boer
___________________________________________________________________________________
If your question is of interest to others as well, please add an entry to the Wiki!

maillist : ntg-context@ntg.nl / https://www.ntg.nl/mailman/listinfo/ntg-context
webpage  : https://www.pragma-ade.nl / http://context.aanhet.net
archive  : https://bitbucket.org/phg/context-mirror/commits/
wiki     : https://contextgarden.net
___________________________________________________________________________________

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

* Re: [NTG-context] Page breaks with \defineparagraphs possible?
  2023-06-04 22:30 ` Wolfgang Schuster via ntg-context
  2023-06-05  6:14   ` Berend de Boer via ntg-context
@ 2023-06-05  6:23   ` Berend de Boer via ntg-context
  2023-06-05  6:38   ` Berend de Boer via ntg-context
  2 siblings, 0 replies; 5+ messages in thread
From: Berend de Boer via ntg-context @ 2023-06-05  6:23 UTC (permalink / raw)
  To: mailing list for ConTeXt users; +Cc: Berend de Boer

Hi Wolfgang,

> You can use the tabulate environment to create parallel paragraphs.

Just one thing for others, this solution as the same problem as
paragraphs: \placeinitial won't work.

I.e. this:

    \setupinitial[text=#1]\placeinitial

inside the tabulate or paragraphs doesn't work (but here I simply use
a \hbox{\vbox{}\hfil\vbox{}} solution which works well enough I think,
as I only need this for the opening paragraph.

-- 
All the best,

Berend de Boer
___________________________________________________________________________________
If your question is of interest to others as well, please add an entry to the Wiki!

maillist : ntg-context@ntg.nl / https://www.ntg.nl/mailman/listinfo/ntg-context
webpage  : https://www.pragma-ade.nl / http://context.aanhet.net
archive  : https://bitbucket.org/phg/context-mirror/commits/
wiki     : https://contextgarden.net
___________________________________________________________________________________

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

* Re: [NTG-context] Page breaks with \defineparagraphs possible?
  2023-06-04 22:30 ` Wolfgang Schuster via ntg-context
  2023-06-05  6:14   ` Berend de Boer via ntg-context
  2023-06-05  6:23   ` Berend de Boer via ntg-context
@ 2023-06-05  6:38   ` Berend de Boer via ntg-context
  2 siblings, 0 replies; 5+ messages in thread
From: Berend de Boer via ntg-context @ 2023-06-05  6:38 UTC (permalink / raw)
  To: mailing list for ConTeXt users; +Cc: Berend de Boer

Hi Wolfgang,

> \definetabulate[bilingual][|pA{normal,verytolerant,stretch}|pA{normal,verytolerant,stretch}|]

One more on this actually: how can I influence the white space between
the columns? I tried to set distance, but that didn't do anything.

Setting p(4cm) or so, made the paragraphs smaller, but did not impact
the white space between the columns.

-- 
All the best,

Berend de Boer
___________________________________________________________________________________
If your question is of interest to others as well, please add an entry to the Wiki!

maillist : ntg-context@ntg.nl / https://www.ntg.nl/mailman/listinfo/ntg-context
webpage  : https://www.pragma-ade.nl / http://context.aanhet.net
archive  : https://bitbucket.org/phg/context-mirror/commits/
wiki     : https://contextgarden.net
___________________________________________________________________________________

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

end of thread, other threads:[~2023-06-05  6:38 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2023-06-04 22:02 [NTG-context] Page breaks with \defineparagraphs possible? Berend de Boer via ntg-context
2023-06-04 22:30 ` Wolfgang Schuster via ntg-context
2023-06-05  6:14   ` Berend de Boer via ntg-context
2023-06-05  6:23   ` Berend de Boer via ntg-context
2023-06-05  6:38   ` Berend de Boer via ntg-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).