6

My babel configuration includes ngerman and english ...

\documentclass[
oneside, openright, titlepage,
dottedtoc, numbers=noenddot,
headinclude, footinclude=true,
cleardoublepage=empty, abstractoff,
BCOR=5mm, paper=a4, fontsize=11pt,
ngerman,
american,
draft
]
{scrreprt}

\PassOptionsToPackage{utf8}{inputenc}
\usepackage{inputenc}
\usepackage[ngerman,english]{babel}
\usepackage[pdfspacing]{classicthesis}

\begin{document}

% Disable paragraph indentation.
\setlength{\parindent}{0pt}

9. Wie lange benötigen die Personen für die Erfassung/Aktualisierung
der Daten vor Ort und bei der Nachbearbeitung im Büro?\\

10. Verwenden Sie ein kommerzielles Hardware- oder Software-Produkt
für die Verwaltung\\

\end{document}

..., however, the hyphenation seems to be not working correctly, as I can see in draft mode.

German hypenation

Questions:

  • What do I need to configure in order to use auto-hyphenation?
  • Side question: Why do I need to add \\ to get an empty line between 9. and 10.?
18
  • 2
    Use "~ for dashes or "=. And /""... for the /. See the documentation of babel
    – topskip
    Commented Aug 22, 2012 at 17:09
  • 4
    Use \usepackage[english,ngerman]{babel}. Unless you say \selectlanguage later the last language in the option list is active.
    – cgnieder
    Commented Aug 22, 2012 at 17:09
  • 3
    Also words with dashes hyphens like Software-Produkt will only be hyphenated at the dash unless you follow @PatrickGundlach's advice and write Software"=Produkt.
    – cgnieder
    Commented Aug 22, 2012 at 17:18
  • 2
    You may also want to use \slash instead of the / symbol; this tells LaTeX that it's OK to break the long "word" Erfassung/Aktualisierung after the slash.
    – Mico
    Commented Aug 22, 2012 at 17:30
  • 2
    Another addition: I think, actually your problem is, that you already declared languages in the documentclass options. And once again: If you mostly want to use German in your document, you should change the order in the babel or (exclusive or) documentclass options – what Patrick said: Read the babel documentation.
    – Speravir
    Commented Aug 22, 2012 at 18:31

1 Answer 1

8

You have to select the language that is used. So add \selectlanguage{ngerman} in front of German text and \selectlanguage{english}in front of english text.

The hyphenation is not working because LaTeX has problems to hyphenate Erfassung/Aktualisierung correctly. Insert (you are using babel) "- to mark the places a hyphenation can occur.

Use \begin{enumerate} to build well typesetted enumerations.

I added these thing in your MWE:

\documentclass[
oneside, openright, titlepage,
dottedtoc, numbers=noenddot,
headinclude, footinclude=true,
cleardoublepage=empty, abstractoff,
BCOR=5mm, paper=a4, fontsize=11pt,
ngerman,
american,
draft
]
{scrreprt}

\PassOptionsToPackage{utf8}{inputenc}
\usepackage{inputenc}
\usepackage[ngerman,english]{babel}
\usepackage[pdfspacing]{classicthesis}

\begin{document}

% Disable paragraph indentation.
\setlength{\parindent}{0pt}
\selectlanguage{ngerman}
\begin{enumerate}
  \item Wie lange benötigen die Personen für die Erfassung/Aktuali"-sierung 
    der Daten vor Ort und bei der Nachbearbeitung im Büro?
  \item Verwenden Sie ein kommerzielles Hardware- oder Software-Produkt
    für die Verwaltung
\end{enumerate}

\end{document}
3
  • 1
    @JJD when you remove the american/ngerman from the global option list, you can see the differences in the order for babel by using the "= and similar shorthands.
    – topskip
    Commented Aug 22, 2012 at 18:07
  • 1
    @PatrickGundlach When I use \usepackage{babel} with \selectlanguage{ngerman} and put "= or "- it still works. Sorry for my confusion.
    – JJD
    Commented Aug 22, 2012 at 18:16
  • 2
    And I thought German didn't hyphenate because those Germans (I am one culturally, too) much prefer the look of Verylongcompoundwordswithouthyphenationjusttoconfusethefrench. Silly me. Commented Jan 9, 2015 at 19:22

You must log in to answer this question.

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