ntg-context - mailing list for ConTeXt users
 help / color / mirror / Atom feed
* calculating optimal height of textblock
@ 2021-04-28 12:07 denis.maier
  2021-04-28 15:57 ` Hans Hagen
  0 siblings, 1 reply; 5+ messages in thread
From: denis.maier @ 2021-04-28 12:07 UTC (permalink / raw)
  To: ntg-context


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

Hi,

how do you usually calcultate your layouts? For example in this example, the third value for height is not really helpful as there will never be a complete line :

=================
\setupbodyfont[10pt]

\definepapersize[test][width=140mm,height=208mm]
\setuppapersize[test][test]

\setuplayout[reset]
\setuplayout[backspace=17mm,
                                          topspace=19mm,
                                          header=0mm,
                                          footerdistance=4mm,
                                          footer=5mm,
                                          width=105mm,
                                          %height=174mm,
                                          height=178mm,
                                          %height=177mm, % does not suffice for a complete line
                                          rightmargin=0mm,
                                          leftmargin=0mm,
                                          ]

\startsetups[mypenalties]
    \setdefaultpenalties
    \setpenalties\clubpenalties{2}{0}
    \setpenalties\widowpenalties{2}{0}
    \setpenalties\displaywidowpenalties{2}{0}
\stopsetups
\setuplayout[setups=mypenalties]

%\showframe
\showmakeup
%\showsetups

\starttext

\dorecurse{5}{\input knuth\par}

\stoptext
=================

How do you do this usually? Any best-practices? Hints? Trial and error seems to work ok, but maybe there is a more efficient method...

Best
Denis

[-- Attachment #1.2: Type: text/html, Size: 8461 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] 5+ messages in thread

end of thread, other threads:[~2021-04-29 11:30 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2021-04-28 12:07 calculating optimal height of textblock denis.maier
2021-04-28 15:57 ` Hans Hagen
2021-04-29  8:03   ` denis.maier
2021-04-29  9:59     ` denis.maier
2021-04-29 11:30       ` Hans Hagen

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