LATEX-L Archives

Mailing list for the LaTeX3 project

LATEX-L@LISTSERV.UNI-HEIDELBERG.DE

Options: Use Forum View

Use Monospaced Font
Show Text Part by Default
Condense Mail Headers

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

Print Reply
Sender:
Mailing list for the LaTeX3 project <[log in to unmask]>
Subject:
From:
David Carlisle <[log in to unmask]>
Date:
Tue, 5 Jan 1999 19:01:51 GMT
In-Reply-To:
<[log in to unmask]> (message from Thierry Bouche on Tue, 5 Jan 1999 18:39:57 +0100)
Reply-To:
Mailing list for the LaTeX3 project <[log in to unmask]>
Parts/Attachments:
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