I would like to create a logo in LaTeX. Here I need to adjust two words relative to each other by a chosen letter.

Here is an example, where I'd like to get the two red characters exact among the other:



        \node at (0, 0) [above] {Irg\textcolor{red}{e}ndeinWort};
        \node at (0, 0) [below] {Hi\textcolor{red}{e}r};


Do you have an idea how to do this without guessing the right values? Also it would be fine to have a solution independent from font size changes.

1 Answer 1


can be done with a simple tabular. You can also define a new macro for this if you need different texts and colors




Irg & e & ndeinWort\\
Hi & e & r


enter image description here

or if you do not have the same characters

    Irgende & i & nWort\\
    Hi \kern0pt& \makebox[0pt]{m} & \kern2.5pt mel\\
  • Thanks! An easy way is always the best one. But often missed.
    – Dirk
    Nov 19, 2012 at 12:01
  • This works too. Thank you! But I tried it with an "l" instead of the "m" and the distances are wrong again. How did you find 0pt and 2.5pt?
    – Dirk
    Nov 20, 2012 at 12:39
  • trial and error ... it is not really easy to catch all different combinations of characters with correct spacing
    – user2478
    Nov 20, 2012 at 12:45
  • Ok, I did it this way. Some spaces are good in ex and em, but can only find by trial and error. Thx!
    – Dirk
    Nov 21, 2012 at 13:29

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .