I've seen people use such constructs as \raisebox{-\height+\baselineskip}{...}, which works well using the calcpackage.

What equivalent would you use to achieve the same behaviour without the calc package?

  • 2
    You can also use \adjustbox{raise=-\height+\baselineskip}{...} from the adjustbox package. It uses e-TeX's \dimexpr by default, but also accepts the calc option to use the calc package. However, if your intention is to reduce the amount of packages used than this is of course a step in the wrong direction. Dec 30, 2011 at 16:43
  • 1

2 Answers 2

\raisebox{\dimexpr -\height+\baselineskip\relax}{...}

works with etex which should be the default off all TeX engines


You can use etex \dimexpr.

Test \raisebox{\dimexpr-\height+\baselineskip\relax}{Test} Test

enter image description here


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.