I've seen people use such constructs as \raisebox{-\height+\baselineskip}{...}
, which works well using the calc
package.
What equivalent would you use to achieve the same behaviour without the calc
package?
TeX - LaTeX Stack Exchange is a question and answer site for users of TeX, LaTeX, ConTeXt, and related typesetting systems. It only takes a minute to sign up.
Sign up to join this communityI've seen people use such constructs as \raisebox{-\height+\baselineskip}{...}
, which works well using the calc
package.
What equivalent would you use to achieve the same behaviour without the calc
package?
\raisebox{\dimexpr -\height+\baselineskip\relax}{...}
works with etex which should be the default off all TeX engines
You can use etex \dimexpr
.
\documentclass{standalone}
\begin{document}
Test \raisebox{\dimexpr-\height+\baselineskip\relax}{Test} Test
\end{document}
\adjustbox{raise=-\height+\baselineskip}{...}
from theadjustbox
package. It uses e-TeX's\dimexpr
by default, but also accepts thecalc
option to use thecalc
package. However, if your intention is to reduce the amount of packages used than this is of course a step in the wrong direction.