0

This question already has an answer here:

I am writing a German text with some Scandinavian names which include characters like ø. In one case the ø is at the end of the word and the following whitespace is ignored.

MWE:

\documentclass{article}

\begin{document}

Near the town of Errits\o is Fredericia. 

\end{document}

appears as

enter image description here

The word separation between "Erritsø" and "is" is missing. What is causing this problem and how can I solve it? (How) Is it affected by inputenc and/or fontenc?

marked as duplicate by Werner, jubobs, clemens, barbara beeton, egreg Aug 5 '14 at 19:24

This question has been asked before and already has an answer. If those answers do not fully address your question, please ask a new question.

  • 6
    Use Near the town of Errits\o{} is Fredericia. Spaces are gobbled after control sequences by default. – Werner Aug 5 '14 at 19:17
  • See for example tex.stackexchange.com/questions/173678/… – Joseph Wright Aug 5 '14 at 19:18
  • AFAIK the space marks the end of the command \o. Otherwise the system has no way to recognize where the end of a command is. That's also why it is gobbled and vanishes. Otherwise you would have difficulties writing words with an \o in the middle. – Count Zero Aug 5 '14 at 19:20
  • Makes sense. I tried a second space... Thanks, and sorry for the dupe - I couldn´t find anything since I didn´t know what to look for. – Paul Paulsen Aug 5 '14 at 19:27
  • 2
    If you have access to the letter ø on your keyboard and use an appropriate input encoding, then just type the letter directly without using macros. Also remember to use a suitable font encoding. – daleif Aug 5 '14 at 19:28