TransWikia.com

How do I vertically shift letter in the text

TeX - LaTeX Asked by Josef Bobek on June 28, 2021

I’d like to type the word TRENTo, as the acronym of something. But I’d need the letter "R" to be shifted down a little bit… Something similar to as letter "E" in the LaTeX symbol. And I’d like to have it outside the math mode if it’s possible.

2 Answers

Use raisebox with a negative argument to lower text, and I suggest some negative kerning, to fill in the gaps. Finally, stick it in a macro for convenience.

documentclass{article}
newcommandTRENTo{Tkern-.4exraisebox{-.48ex}{R}kern-.40ex ENTo}
begin{document}
TRENTo{} to the rescue!
end{document}

enter image description here

If you want to protect it from changing to different font families or shapes due to the underlying text, then you can put it in a group with the desired font properties, as in

newcommandTRENTo{begingroupnormalfont
  Tkern-.4exraisebox{-.48ex}{R}kern-.40ex ENToendgroup}

Answered by Steven B. Segletes on June 28, 2021

Look at the TeX macro definition. TeX has primitive lower or raise followed by dimen and box. The box is shifted by the given dimen (in horizontal mode). You tas can be solved by:

protecteddefTRENTo{Tkern-.4exlower.48exhbox{R}kern-.4ex ENTo}

Answered by wipet on June 28, 2021

Add your own answers!

Ask a Question

Get help from others!

© 2024 TransWikia.com. All rights reserved. Sites we Love: PCI Database, UKBizDB, Menu Kuliner, Sharing RPP