Re: [NTG-context] Page breaks with \defineparagraphs possible?

2023-06-05 Thread Berend de Boer via ntg-context

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
___


Re: [NTG-context] Page breaks with \defineparagraphs possible?

2023-06-05 Thread Berend de Boer via ntg-context

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
___


Re: [NTG-context] Page breaks with \defineparagraphs possible?

2023-06-05 Thread Berend de Boer via ntg-context

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
___


Re: [NTG-context] Page breaks with \defineparagraphs possible?

2023-06-04 Thread Wolfgang Schuster via ntg-context

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
___


Re: [NTG-context] page breaks before titles

2015-03-07 Thread Pablo Rodriguez
On 03/07/2015 12:46 AM, mf wrote:
 Hello,
 I'm trying to typeset a book made of letters with ConTeXt.
 Every letter has a title a subtitle and a date, before it
 starts with Dear ...
 Like this:
 -
   Title
  subtitle
 where, when
 Dear ...,
 the rest of the letter
 ... 
 -
 
 The letters are very different in length -- some are long,
 some are made of a couple of lines --, so I'd like to
 typeset them continuously, without skipping to a new page
 every new letter (\setuphead[LetterTitle][page=no]).
 
 This way a letter could finish beyond the half of a page,
 and the next one could have no space left to get the part
 from Title to the first lines of the body on the same page.
 
 That's why I disabled page breaks from Title to the first
 paragraph after Dear ...: it would be ugly having only
 the title in one page and the rest in the next ones.
 
 But there's a side effect: the title of the new letter
 pulls the last two lines (the penalties are set to avoid
 one-line widows) of the previous letter to the new page,
 even when there's room for them on the previous page.
 In this case I would like ConTeXt to break the page at
 the end of the previous letter, before the next letter title.
 That's why I've set 
   before={\blank[2*line]\page[preference]} 
 in LetterTitle. But it does not work.

Hi Massi,

how about before={\blank[2*line]\page[bigpreference]}?

As Wolgang noted before, a minimal sample is essential to be able to
provide a solution.


Pablo
-- 
http://www.ousia.tk
___
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://tex.aanhet.net
archive  : http://foundry.supelec.fr/projects/contextrev/
wiki : http://contextgarden.net
___

Re: [NTG-context] page breaks before titles

2015-03-07 Thread mf

 You can use the \testpage command where you can set how many
 lines should remain on the page before a page breaks happens.
 
 \setuphead[LetterTitle][before={\testpage[8]\blank[2*line]}]
 
 If this doesn’t help you should make a *working* minimal example.
 
 Wolfgang

Thanks Wolfgang (and Pablo),
\testpage[lines] solved the problem.

Massi

___
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://tex.aanhet.net
archive  : http://foundry.supelec.fr/projects/contextrev/
wiki : http://contextgarden.net
___

Re: [NTG-context] page breaks before titles

2015-03-07 Thread Wolfgang Schuster

 Am 07.03.2015 um 00:46 schrieb mf mass...@fastwebnet.it:
 
 Hello,
 I'm trying to typeset a book made of letters with ConTeXt.
 Every letter has a title a subtitle and a date, before it
 starts with Dear ...
 Like this:
 -
  Title
 subtitle
where, when
 Dear ...,
 the rest of the letter
 ... 
 -
 
 The letters are very different in length -- some are long,
 some are made of a couple of lines --, so I'd like to
 typeset them continuously, without skipping to a new page
 every new letter (\setuphead[LetterTitle][page=no]).
 
 This way a letter could finish beyond the half of a page,
 and the next one could have no space left to get the part
 from Title to the first lines of the body on the same page.
 
 That's why I disabled page breaks from Title to the first
 paragraph after Dear ...: it would be ugly having only
 the title in one page and the rest in the next ones.
 
 But there's a side effect: the title of the new letter
 pulls the last two lines (the penalties are set to avoid
 one-line widows) of the previous letter to the new page,
 even when there's room for them on the previous page.
 In this case I would like ConTeXt to break the page at
 the end of the previous letter, before the next letter title.
 That's why I've set 
  before={\blank[2*line]\page[preference]} 
 in LetterTitle. But it does not work.
 Example:
 -   -
 text of the previoustext of the previous 
 letter with room to be  letter with room to be
 all typeset hereall typeset here
 page 11  last two lines of the
 [room for 2 lines] the previous letter
 
 page break---   ==  ---
 last two lines of the Title
 the previous letter subtitle
 ...
 page 12   Title
subtitle 
 ...
 
 
 
 Is there a way to know the vertical location where the
 previous letter ends, to decide whether to skip to a new
 page?

You can use the \testpage command where you can set how many
lines should remain on the page before a page breaks happens.

\setuphead[LetterTitle][before={\testpage[8]\blank[2*line]}]

If this doesn’t help you should make a *working* minimal example.

Wolfgang
___
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://tex.aanhet.net
archive  : http://foundry.supelec.fr/projects/contextrev/
wiki : http://contextgarden.net
___

Re: [NTG-context] Page Breaks after Headings

2015-01-22 Thread Pablo Rodriguez
On 01/20/2015 11:41 PM, Malte Stien wrote:
 Hi all,
 
 Is there a way I can avoid page breaks after “headings”, i.e.
 \section, \subsection, \subject, \subsubject, etc?

Hi Malte,

since I experienced this before and Wolfgang kindly explained to me, the
workaround is:

   \setuphead[section][after={\blank[samepage]}]

Only defining after for section (I think it) should work for other headings.

I hope it helps,


Pablo
-- 
http://www.ousia.tk
___
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://tex.aanhet.net
archive  : http://foundry.supelec.fr/projects/contextrev/
wiki : http://contextgarden.net
___

Re: [NTG-context] Page Breaks after Headings

2015-01-20 Thread Hans Hagen

On 1/20/2015 11:41 PM, Malte Stien wrote:

Hi all,

Is there a way I can avoid page breaks after “headings”, i.e. \section, 
\subsection, \subject, \subsubject, etc?


example needed ... normally page breaks are avoided

-
  Hans Hagen | PRAGMA ADE
  Ridderstraat 27 | 8061 GH Hasselt | The Netherlands
tel: 038 477 53 69 | voip: 087 875 68 74 | www.pragma-ade.com
 | www.pragma-pod.nl
-
___
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://tex.aanhet.net
archive  : http://foundry.supelec.fr/projects/contextrev/
wiki : http://contextgarden.net
___

Re: [NTG-context] page breaks in cells?

2010-10-14 Thread Wolfgang Schuster

Am 13.10.2010 um 23:41 schrieb Steffen Wolfrum:

 Which kind table supports page breaks in cells?
 
 tabulate
 
 but there we (still) don't have vertical lines, right?

yes, tabulate has no vertical lines but anch-pgr.mkix shows
a few ways to make framed cells, e.g. here is a slightly
modified example from the source

\starttext

\definepositionframed[y][frame=off,leftframe=on,rightframe=on,frameoffset=1ex]

\starttabulate[|p|p|]
\XC[a:y] \input knuth \NC \input tufte \NC\NR
\XC[b:y] \input knuth \NC \input tufte \NC\NR
\XC[c:y] \input knuth \NC \input tufte \NC\NR
\XC[d:y] \input knuth \NC \input tufte \NC\NR
\stoptabulate

\stoptext

Wolfgang

___
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://tex.aanhet.net
archive  : http://foundry.supelec.fr/projects/contextrev/
wiki : http://contextgarden.net
___


Re: [NTG-context] page breaks in cells?

2010-10-14 Thread Steffen Wolfrum

Am 13.10.2010 um 23:44 schrieb Arthur Reutenauer:

 ... look at the date/time: This was almost instant reply!
 
  It's still more than one minute...


It was 80 seconds (see log below).

Who wants to beat this record?!


(13. Oktober 2010 23:34:14 MESZ
13. Oktober 2010 23:35:34 MESZ)



Steffen
___
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://tex.aanhet.net
archive  : http://foundry.supelec.fr/projects/contextrev/
wiki : http://contextgarden.net
___


Re: [NTG-context] page breaks in cells?

2010-10-14 Thread luigi scarso
On Thu, Oct 14, 2010 at 8:06 AM, Wolfgang Schuster
schuster.wolfg...@googlemail.com wrote:

 Am 13.10.2010 um 23:41 schrieb Steffen Wolfrum:

 Which kind table supports page breaks in cells?

 tabulate

 but there we (still) don't have vertical lines, right?

 yes, tabulate has no vertical lines but anch-pgr.mkix shows
Hm, we need something like \fromfutureimport[module=anch-pgr.mkix]
O perhaps
\fromDistantFutureimport[module=anch-pgr.mkix]
given the ix suffix.

-- 
luigi
___
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://tex.aanhet.net
archive  : http://foundry.supelec.fr/projects/contextrev/
wiki : http://contextgarden.net
___


Re: [NTG-context] page breaks in cells?

2010-10-14 Thread Henning Hraban Ramm


Am 2010-10-14 um 09:09 schrieb luigi scarso:


On Thu, Oct 14, 2010 at 8:06 AM, Wolfgang Schuster
schuster.wolfg...@googlemail.com wrote:


Am 13.10.2010 um 23:41 schrieb Steffen Wolfrum:


Which kind table supports page breaks in cells?


tabulate


but there we (still) don't have vertical lines, right?


yes, tabulate has no vertical lines but anch-pgr.mkix shows

Hm, we need something like \fromfutureimport[module=anch-pgr.mkix]
O perhaps
\fromDistantFutureimport[module=anch-pgr.mkix]
given the ix suffix.


Oh, Wolfgang's time machine! So, Guido isn't the only time traveller.

Greetlings, Hraban
___
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://tex.aanhet.net
archive  : http://foundry.supelec.fr/projects/contextrev/
wiki : http://contextgarden.net
___


Re: [NTG-context] page breaks in cells?

2010-10-14 Thread Wolfgang Schuster

Am 14.10.2010 um 09:09 schrieb luigi scarso:

 On Thu, Oct 14, 2010 at 8:06 AM, Wolfgang Schuster
 schuster.wolfg...@googlemail.com wrote:
 
 Am 13.10.2010 um 23:41 schrieb Steffen Wolfrum:
 
 Which kind table supports page breaks in cells?
 
 tabulate
 
 but there we (still) don't have vertical lines, right?
 
 yes, tabulate has no vertical lines but anch-pgr.mkix shows
 Hm, we need something like \fromfutureimport[module=anch-pgr.mkix]

I’m sorry to disappoint you but the „x“ is only a placeholder for either „i“ or 
„v“ because the example is in both files.

Wolfgang


___
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://tex.aanhet.net
archive  : http://foundry.supelec.fr/projects/contextrev/
wiki : http://contextgarden.net
___


Re: [NTG-context] page breaks in cells?

2010-10-14 Thread luigi scarso
On Thu, Oct 14, 2010 at 11:23 AM, Wolfgang Schuster
schuster.wolfg...@googlemail.com wrote:
 I’m sorry to disappoint you but the „x“ is only a placeholder for either „i“ 
 or „v“ because the example is in both files.
what a pity ...
-- 
luigi
___
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://tex.aanhet.net
archive  : http://foundry.supelec.fr/projects/contextrev/
wiki : http://contextgarden.net
___


Re: [NTG-context] page breaks in cells?

2010-10-13 Thread Wolfgang Schuster

Am 13.10.2010 um 23:34 schrieb Steffen Wolfrum:

 Hi,
 
 Which kind table supports page breaks in cells?

tabulate

Wolfgang

___
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://tex.aanhet.net
archive  : http://foundry.supelec.fr/projects/contextrev/
wiki : http://contextgarden.net
___


Re: [NTG-context] page breaks in cells?

2010-10-13 Thread Steffen Wolfrum

... look at the date/time: This was almost instant reply!

Great, thank you Wolfgang,
Steffen


Am 13.10.2010 um 23:35 schrieb Wolfgang Schuster:

 
 Am 13.10.2010 um 23:34 schrieb Steffen Wolfrum:
 
 Hi,
 
 Which kind table supports page breaks in cells?
 
 tabulate
 
 Wolfgang
 
 ___
 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://tex.aanhet.net
 archive  : http://foundry.supelec.fr/projects/contextrev/
 wiki : http://contextgarden.net
 ___

___
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://tex.aanhet.net
archive  : http://foundry.supelec.fr/projects/contextrev/
wiki : http://contextgarden.net
___


Re: [NTG-context] page breaks in cells?

2010-10-13 Thread Arthur Reutenauer
 ... look at the date/time: This was almost instant reply!

  It's still more than one minute...

Arthur
___
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://tex.aanhet.net
archive  : http://foundry.supelec.fr/projects/contextrev/
wiki : http://contextgarden.net
___


Re: [NTG-context] Page breaks

2009-10-28 Thread Arthur Reutenauer
 What's would be wrong about to place the three lines of the second page 
 on the first page and to start the second page with the section?

  It's funny that you should say this, because what you describe is exactly
what I see on my computer with my ConTeXt installation (see attachment).
Please send a PDF along with the log file.

Arthur


harder.pdf
Description: Adobe PDF document
___
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://tex.aanhet.net
archive  : http://foundry.supelec.fr/projects/contextrev/
wiki : http://contextgarden.net
___


Re: [NTG-context] Page breaks

2009-10-28 Thread Wolfgang Schuster


Am 28.10.2009 um 22:53 schrieb Andreas Harder:


Hi all!

What is the benefit of the page break chosen by ConTeXt. Look at the  
following example:


The answer why this happens in MkIV can only give Hans (could be a  
side effect of the new
spacing mechanism) but you can give TeX/ConTeXt hints where pagebreaks  
are allowed.


\setuphead[section][before={\allowbreak\blank[2*big]}]

Wolfgang

___
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://tex.aanhet.net
archive  : http://foundry.supelec.fr/projects/contextrev/
wiki : http://contextgarden.net
___


Re: [NTG-context] Page breaks

2009-10-28 Thread Andreas Harder


Am 28.10.2009 um 23:05 schrieb Arthur Reutenauer:

What's would be wrong about to place the three lines of the second  
page

on the first page and to start the second page with the section?


 It's funny that you should say this, because what you describe is  
exactly
what I see on my computer with my ConTeXt installation (see  
attachment).

Please send a PDF along with the log file.




test-pagebreak2.pdf
Description: Adobe PDF document


test-pagebreak2.log
Description: Binary data



That's interesting …

Andreas___
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://tex.aanhet.net
archive  : http://foundry.supelec.fr/projects/contextrev/
wiki : http://contextgarden.net
___


Re: [NTG-context] Page breaks

2009-10-28 Thread Andreas Harder


Am 28.10.2009 um 23:17 schrieb Wolfgang Schuster:



Am 28.10.2009 um 22:53 schrieb Andreas Harder:


Hi all!

What is the benefit of the page break chosen by ConTeXt. Look at  
the following example:


The answer why this happens in MkIV can only give Hans (could be a  
side effect of the new
spacing mechanism) but you can give TeX/ConTeXt hints where  
pagebreaks are allowed.


\setuphead[section][before={\allowbreak\blank[2*big]}]


Thank you Wolfgang, it looks much better now!

Andreas___
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://tex.aanhet.net
archive  : http://foundry.supelec.fr/projects/contextrev/
wiki : http://contextgarden.net
___


Re: [NTG-context] page breaks and itemization

2007-08-30 Thread Henning Hraban Ramm
Am 2007-08-30 um 11:30 schrieb Jörg Hagmann:

 Itemizations occur very often in my manuscript (typically
 [packed,joinedup]). I would like page breaking to occur when the  
 page is
 full, regardless of the number of lines left over on the next page (or
 the number of lines at the bottom of a page). At present, the gaps  
 left
 at the bottom of a page look ugly, especially when there is a footnote
 with its line above.
 \adaptlayout doesn't do anything

 Is there a way to setup this behaviour (without affecting pagebreaking
 outsitde itemizations)?

Normally yoou influence pagebreaking with \setuptolerance, or plain  
TeX style with setting the appropriate penalties.
I don't know if it would work to set club and widow penalty to a very  
low value inside of the itemization (setup before or the like). (Is  
this setting always global or does it work locally?)

\setuptolerance [{horizontal, verytolerant},{vertical, verystrict}]
%\clubpenalty=8000  % no clubs / keine Schusterjungen
%\widowpenalty=8000 % no widows / keine Hurenkinder
%\tolerance=1750% line breaking tolerance (ca. 500--3000)
%\emergencystretch=10 pt% additional stretching space per line


Greetlings from Lake Constance!
Hraban
---
http://www.fiee.net/texnique/
http://wiki.contextgarden.net
https://www.cacert.org (I'm an assurer)

___
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://tex.aanhet.net
archive  : https://foundry.supelec.fr/projects/contextrev/
wiki : http://contextgarden.net
___


Re: [NTG-context] page breaks broken?

2006-01-10 Thread Taco Hoekwater

Idris Samawi Hamid wrote:

Dear gang,

Having serious trouble with pagebreaks:


For the 'right'  to work, you need an extra

  \setuppagenumbering[alternative=doublesided]

I don't know what's wrong with the other \page
command.

Cheers, Taco
___
ntg-context mailing list
ntg-context@ntg.nl
http://www.ntg.nl/mailman/listinfo/ntg-context