LATEX-L Archives

Mailing list for the LaTeX3 project

LATEX-L@LISTSERV.UNI-HEIDELBERG.DE

Options: Use Classic View

Use Monospaced Font
Show Text Part by Default
Show All Mail Headers

Topic: [<< First] [< Prev] [Next >] [Last >>]

Print Reply
David Carlisle <[log in to unmask]>
Tue, 5 Jan 1999 19:01:51 GMT
text/plain (32 lines)
> What is very bad is TeX's behaviour of linespacing the lines with
> overhanging material (like integrals, badly formatted inline
> fractions...)

If you want to keep lines on the grid even in the presence of such stuff
you can ask tex to work a bit harder, eg:

\everymath{%
  \global\setbox1\hbox\bgroup\everymath{}$\aftergroup\foo}
\def\foo{\egroup$\smash{\box1}}

\def\x{aaaa aaaa aaaa aaaa aaaa aaaa aaaa  }

\x\x\x\x\x\x
${\displaystyle{a\over b}\over {c \over d}}\over
{\displaystyle{a\over b}\over {c \over d}}$
\x\x\x\x\x\x\x

\bye


You could make this a bit smarter, eg to snap the size of the box to
an integral number of baselineskips (rather than to zero as here)
and to unbox smaller examples to re-allow linebreaking, and to worry
about mathsurround etc...

Although as Michael said, it's not clear whether if you have a lot of
such things you are ever going to get it to fit the grid in a reasonable
way.

David

ATOM RSS1 RSS2