ntg-context - mailing list for ConTeXt users
 help / color / mirror / Atom feed
From: Rik Kabel <context@rik.users.panix.com>
To: ntg-context@ntg.nl
Subject: Re: line correction
Date: Thu, 28 Sep 2017 23:19:56 -0400	[thread overview]
Message-ID: <e4c351d5-ef5c-3933-1378-2aef1e3c7b0f@rik.users.panix.com> (raw)
In-Reply-To: <1506638156.3753.5.camel@fastwebnet.it>

Massi and list,

There is one issue with \startlinecorrection  of which you should be 
aware. The text is set in a vbox. If the block quotation it encloses (or 
whatever text it encloses) does not fit on the current page, a page 
break will be generated. This makes it useless with quotes near the 
bottom of a page.  Enclosed texts longer than a page run over the bottom 
margin of the new page.

It would be nice to have an alternative that does not have that limitation.

-- 
Rik

On 2017-09-28 18:35, mf wrote:
> Thank you Henri,
> a slightly modified version of your solution works!
>
> This is what I wanted to achieve:
>
> \setuplayout[grid=both]
> \setupquotation[before={\switchtobodyfont[9pt]}]
>
> \starttext
> \showgrid
>
> \input knuth
>
> \startlinecorrection[halfline]
> \startquotation
>    \input sapolsky
> \stopquotation
> \stoplinecorrection
>
> \input knuth
> %\vadjust pre{\blank[line]}% not line, but halfline!
> \vadjust pre{\blank[halfline]}%
> $\displaystyle{\frac{1}{a + b}}$
> %\vadjust{\blank[line]}% not line, but halfline!
> \vadjust{\blank[halfline]}%
> \input knuth
>
> \stoptext
>
> In general, I'm ok without grid snapping, because the default
> typesetting of taller formulas inside text is good enough for my goals.
>
> But I have many quotations (and floats), whose spaces before and after
> should be manually tuned not to push the main text out of the grid.
> And here grid snapping does a very good (and automated) job.
>
> But sometimes grid snapping is too strict, as in the tall formula
> example. I'm still afraid it's too strict and it will hurt in other
> places of the text, but now I have a solution, at least for that
> problem.
> So thank you again,
> best regards,
> 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://context.aanhet.net
archive  : https://bitbucket.org/phg/context-mirror/commits/
wiki     : http://contextgarden.net
___________________________________________________________________________________

  reply	other threads:[~2017-09-29  3:19 UTC|newest]

Thread overview: 14+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2017-09-28 14:21 MF
2017-09-28 19:48 ` Henri
2017-09-28 21:30   ` mf
2017-09-28 21:47     ` luigi scarso
2017-09-29  8:33       ` Hans Hagen
2017-09-28 21:51     ` Henri
2017-09-28 21:55     ` Henri
2017-09-28 22:35       ` mf
2017-09-29  3:19         ` Rik Kabel [this message]
2017-09-29  9:30           ` Risposta: " MF
2017-09-29 12:08             ` Hans Hagen
2017-09-29  8:37         ` Hans Hagen
2017-09-29  9:53           ` Risposta: " MF
2017-09-29 21:38             ` Rik Kabel

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=e4c351d5-ef5c-3933-1378-2aef1e3c7b0f@rik.users.panix.com \
    --to=context@rik.users.panix.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).