Skip to main content

You are not logged in. Your edit will be placed in a queue until it is peer reviewed.

We welcome edits that make the post easier to understand and more valuable for readers. Because community members review edits, please try to make the post substantially better than how you found it, for example, by fixing grammar or adding additional resources and hyperlinks.

Required fields*

4
  • Is there a significant difference between your succinct answer for inline text and the one proposed by @egreg in the comment above (\def\textvcenter{\hbox \bgroup$\everyvbox{\everyvbox{}\aftergroup$\aftergroup\egroup}\vcenter})? I just wonder why the TeX by Topic author chose to publish the latter. Commented Jun 18, 2015 at 14:55
  • @kgo Eijkhout's macro allows \setbox0=\textvcenter{...} Commented Jun 18, 2015 at 15:01
  • @egreg - I couldn't have said it more succinctly. :-) Commented Jun 18, 2015 at 15:08
  • 1
    And \setbox0 just hides text? So Eijkhout's solution just adds a hiding functionality to 'middletext'? Commented Jun 18, 2015 at 15:08