ntg-context - mailing list for ConTeXt users
 help / color / mirror / Atom feed
* grid+formulas: bug or expected behavior?
@ 2019-05-31 18:46 Luca Donetti
  2019-07-24 18:07 ` Henning Hraban Ramm
  2019-07-26 11:08 ` Wolfgang Schuster
  0 siblings, 2 replies; 6+ messages in thread
From: Luca Donetti @ 2019-05-31 18:46 UTC (permalink / raw)
  To: mailing list for ConTeXt users


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

Dear all,
I'm typesetting a document with grid layout and some formulas, like in the
minimal example below:

%%%%%%%%%%%%%%%%%%%%%%%%%%%%
\setuplayout[grid=yes]
\showgrid

\starttext
\input knuth
%\blank
\startformula
  a = b + c
\stopformula
\input knuth
\stoptext
%%%%%%%%%%%%%%%%%%%%%%%%%%%%

I don't have any specific need for the alignment of the formula with
respect to the grid, but I expect the text below the formula to be on the
grid. However, I've not been able to achieve that with any of the layout
options described in the latest "details.pdf" manual: in all cases I've
tried the text below the formula doesn't "sit" on the grid.

While I do not understand this behavior, I've thought that it could be the
intended one, because this is what happens in chapter 4 of the "details"
manual. Then, I noticed that in older versions of the same manual (for
example the one included in texlive 2017) the behavior shown in chapter 4
is the one I expect: the text after formulas is aligned to the grid. So I'm
a bit puzzled: should the text after formulas be aligned to the grid or
not? Is this a (known?) bug or intended behavior?

If this is the expected behavior, I can live with that because by trial and
error I found a workaround. If I employ a \blank command before the formula
(as in the commented line in the above example), the text after the formula
is "correctly" aligned.

Thank you in advance.

LD

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

end of thread, other threads:[~2019-07-26 16:52 UTC | newest]

Thread overview: 6+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
     [not found] <mailman.0.1564048801.22738.ntg-context@ntg.nl>
2019-07-25 17:29 ` grid+formulas: bug or expected behavior? Luca Donetti
2019-07-26  7:35   ` luigi scarso
2019-05-31 18:46 Luca Donetti
2019-07-24 18:07 ` Henning Hraban Ramm
2019-07-26 11:08 ` Wolfgang Schuster
2019-07-26 16:52   ` Luca Donetti

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