11

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. – Martin Scharrer Dec 30 '11 at 16:43
  • 1
11
\raisebox{\dimexpr -\height+\baselineskip\relax}{...}

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

15

You can use etex \dimexpr.

\documentclass{standalone}
\begin{document}
Test \raisebox{\dimexpr-\height+\baselineskip\relax}{Test} Test
\end{document}

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.