Quite often, especially when preparing slides, vertical space is precious. However, there is no automatic equivalent of "vertical kerning of lines", by which you would reduce or even have a negative line spacing when the highest elements of the lower line are on the right hand side while the upper line occupies only the left hand side.

A small example:


output of code

With commands such as \hphantom, you can have Latex not typeset the argument and reserve the space in bounding box. Can one do the reverse, display the overbrace above without updating the bounding box of the equation?

| improve this question | | | | |
  • you can use \vspace{-1in} before the display, or \text{\smash{unknown} to hide the height of unknown or \smash{$\displaystyle a+.... to hide the height of the whole display or .... – David Carlisle Nov 6 '15 at 17:32

Use \smash, maybe in connection with some \vphantom, which is not necessary in this case as the line already contains some non-smashed material. Of course you become responsible for avoiding clashes, but all presentations require some amount of visual formatting anyway.





Avoid $$ even in minipages.

enter image description here

| improve this answer | | | | |

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.