ntg-context - mailing list for ConTeXt users
 help / color / mirror / Atom feed
* Page building and vertical stretching
@ 2021-04-22 15:57 denis.maier
  0 siblings, 0 replies; only message in thread
From: denis.maier @ 2021-04-22 15:57 UTC (permalink / raw)
  To: ntg-context


[-- Attachment #1.1: Type: text/plain, Size: 1680 bytes --]

Hi,

in addition to my previous mails about \setupalign[height], a further question related to page building :
I'm trying to understand how ConTeXt builds pages, and how this can be influenced. Regarding the example below, the aim is to have pages that always end at the same place.
Now, how will ConTeXt use stretching? Blanks are set to flexible, and the interlinespacing is set to stretch. (But different values for blockquotes.)
In which order will ConTeXt proceed? Interlinespacing first, then blanks? Or the other way round? Or both at the same time?
And, can this be influenced somehow?

Best,
Denis


\setuppapersize[A5][A5]
\showframe

\setupblank[big,flexible]

\setupinterlinespace[stretch=0.03]
\setuptolerance[vertical,stretch]
\setupalign[height]

\setuphead
                [section,subject]
                [
                before={\blank[2*big,flexible]},
                after={\blank[big,flexible]},
                ]

\setupdelimitedtext[blockquote]
                                                               [
                                                               before={\tfx\setupinterlinespace[stretch=0.05]},
                                                               spacebefore={medium,flexible},
                                                               left=
                                                               ]

\starttext

\input knuth

\section{A section heading}

\input knuth\par
\blank
\input knuth\par

\startblockquote
\input knuth\par
\stopblockquote

\input knuth\par

\startblockquote
\input knuth\par
\stopblockquote

\input knuth\par

\stoptext

[-- Attachment #1.2: Type: text/html, Size: 8111 bytes --]

[-- Attachment #2: Type: text/plain, Size: 493 bytes --]

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

^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2021-04-22 15:57 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2021-04-22 15:57 Page building and vertical stretching denis.maier

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).