1

How can I prevent that the number of a footnote is placed on a new line?

enter image description here

I am using this code:

erfüllen und nicht von den Erlöschens-\footnote{The text of the footnote.}
oder Ausschlussgründen\footnote{Text.} der IRO-Verfassung erfasst werden.
  • Welcome, guess: Erlöschens"-\footnote – Johannes_B Jan 29 '17 at 7:58
  • Do you use the babel package? Please advise. – Mico Jan 29 '17 at 7:59
  • @Mico Yes, I am using \usepackage[ngerman]{babel}. – Jonas Jan 29 '17 at 8:00
  • 1
    You already got two answers, but a minimal working exampple would be needed to reliably answer your question. That is true for almost all LaTeX questions. – Johannes_B Jan 29 '17 at 8:10
  • 1
    @Johannes_B - Agree, I did some guesswork in terms of the packages he is using, seeing the German language. The complete parapgraph text would also been helpful. – vaettchen Jan 29 '17 at 8:18
0

Packaging the hyphen into an \mbox works for me:

erfüllen und nicht von den Erlöschens\mbox{-}\footnote{The text of the footnote.}
oder Ausschlussgründen\footnote{Text.} der IRO-Verfassung erfasst werden.

(thanks @barbara beeton)

  • it should suffice to put only the hyphen in the \mbox. – barbara beeton Jan 29 '17 at 14:43
  • @barbara beeton True, thanks, and I have edited my answer accordingly – vaettchen Jan 29 '17 at 14:53
0

One possible solution: Load the amsmath package (which you may already be doing anyway) and use the \nobreakdash macro:

enter image description here

\documentclass{article}
\usepackage[utf8]{inputenc}
\usepackage[T1]{fontenc}
\usepackage[ngerman]{babel}

\usepackage{amsmath}         % for '\nobreakdash' macro
\setlength\textwidth{5.5cm}  % just for this example
\begin{document}

\noindent
erfüllen und nicht von den Erlöschens-\footnote{Text}
oder Ausschlussgründen\footnote{Text} der IRO-Verfassung erfasst werden.

\bigskip\noindent
erfüllen und nicht von den Erlöschens\nobreakdash-\footnote{Text}
oder Ausschlussgründen\footnote{Text} der IRO-Verfassung erfasst werden.

\end{document}
  • Thank you for your answer. Since I am not using the amsmath package I accepted @vaettchen's answer that does not require the use of an additional package. – Jonas Jan 29 '17 at 8:15
  • @Jonas - What's your reason for not wanting to load one additional package? – Mico Jan 29 '17 at 8:16
  • I do not know if it makes sense to load an additional package which I do not need for other things when I can achieve the desired result without using the package? – Jonas Jan 29 '17 at 8:25
  • @jonas - It would have been really helpful if you had posted a full minimal working example and had mentioned which packages you use and which ones you do not want to use. – Mico Jan 29 '17 at 8:30
  • I am sorry. I will keep this in mind for further questions. – Jonas Jan 29 '17 at 8:32

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.