Skip to main content
4 events
when toggle format what by license comment
Jun 28, 2013 at 19:17 comment added A.Ellett But without a strut and without raising the box, "Hello" would be set between the lines. As I understand it \strut would add invisible height and depth. That might lead me to think that the correct value to pass to \raisebox would be something like \dimexpr\dp\strutbox+\ht\strutbox\relax. But that would be wrong. Given that \raisebox{\depth}[0pt][0pt]{Why} works and since "Hello" has zero depth, I would then naively think that \raisebox{0pt}.... should do the trick, which it doesn't.
Jun 28, 2013 at 19:02 comment added Przemysław Scherwentke @A.Ellett Because "Hello" has zero depth. Hence \strutboxadds an additional depth and the lines are aligned.
Jun 28, 2013 at 18:55 comment added A.Ellett I agree with you about the typical case. But, where "Hello" is jutting out into the margin doesn't seem very typical to me. And in this particular scenario it's much more a mystery to me why \strut is working than the other.
Jun 28, 2013 at 18:52 history answered Przemysław Scherwentke CC BY-SA 3.0