Take the 2-minute tour ×
TeX - LaTeX Stack Exchange is a question and answer site for users of TeX, LaTeX, ConTeXt, and related typesetting systems. It's 100% free, no registration required.

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?

share|improve this question
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  

2 Answers 2

up vote 9 down vote accepted
\raisebox{\dimexpr -\height+\baselineskip\relax}{...}

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

share|improve this answer
    
Neat! Thanks a lot. –  Clément Dec 30 '11 at 16:32

You can use etex \dimexpr.

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

enter image description here

share|improve this answer
    
Thanks for the detailed example! –  Clément Dec 30 '11 at 21:46

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

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