3

Supposedly, LaTeX puts a double space after a . (end of sentence), which can be suppressed by a following backslash .\. However, this does not seem to work in LaTeX beamer class. See the following MWE:

\documentclass[11pt]{beamer}

\usepackage[ngerman]{babel}
\usepackage[utf8]{inputenx}
\usepackage[T1]{fontenc}
\usepackage{lmodern}
\usepackage{verbatim}
\usepackage{ragged2e} 

\title{Beispiel in \LaTeX}
\author{rotton}

\begin{document}

\section{Horizontale Abstände}

\begin{frame}{Punkttest}
Nach Punkt: Stets doppeltes Leerzeichen, unterdrücken mit \texttt{.\textbackslash} : \\
\textbf{Flattersatz, linksbündig} \\
Prof.\ Dr.\ rer.\ nat.\ habil.\ Müller und noch etwas Text bis zum Zeilenende \\
Prof. Dr. rer. nat. habil. Müller und noch etwas Text bis zum Zeilenende

\justifying
\textbf{Der Rest im Blocksatz} \\
Prof.\ Dr.\ rer.\ nat.\ habil.\ Müller und noch etwas Text bis zum Zeilenende \\
Prof. Dr. rer. nat. habil. Müller und noch etwas Text bis zum Zeilenende

\end{frame}

\end{document}

I thought this was due to the ragged-right alignment, but even with \justifying, those spaces do not change at all! Horizontal spacing after period in beamer Can anyone explain this? Is it possible to obtain the default spacing behavior in beamer, and if, how?

winkmal
  • 845

1 Answers1

5

Loading \usepackage[ngerman]{babel} issues \frenchspacing, which affects the spacing (effectively suppressing them) around certain punctuation. These include ., ?, !, :, ; and ,. You can reverse this by issuing \nonfrenchspacing:

enter image description here

\documentclass[11pt]{beamer}

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

\title{Beispiel in \LaTeX}
\author{rotton}

\begin{document}

\nonfrenchspacing

\section{Horizontale Abstände}

\begin{frame}{Punkttest}
Nach Punkt: Stets doppeltes Leerzeichen, unterdrücken mit \texttt{.\textbackslash} : \\
\textbf{Flattersatz, linksbündig} \\
Prof.\ Dr.\ rer.\ nat.\ habil.\ Müller und noch etwas Text bis zum Zeilenende \\
Prof. Dr. rer. nat. habil. Müller und noch etwas Text bis zum Zeilenende

\justifying
\textbf{Der Rest im Blocksatz} \\
Prof.\ Dr.\ rer.\ nat.\ habil.\ Müller und noch etwas Text bis zum Zeilenende \\
Prof. Dr. rer. nat. habil. Müller und noch etwas Text bis zum Zeilenende

\end{frame}

\end{document}
Werner
  • 603,163