2

I am using the babel ngerman package and my inputenc is set to utf-8, so I only need the translation strings for things like the \tableofcontents. How can I disable the Umlaut translation like "overflow" -> överflow", without having to escape the quotation mark?

5
  • 3
    \shorthandoff{"} Commented Dec 29, 2014 at 20:47
  • 2
    You shouldn't be using " anyway.
    – egreg
    Commented Dec 29, 2014 at 20:49
  • 1
    Welcome to TeX.SX! Use the csquotes package for such stuff
    – user31729
    Commented Dec 29, 2014 at 20:51
  • 1
    Or at least use ``overflow''. (But csquotes is better.)
    – cfr
    Commented Dec 29, 2014 at 20:52
  • @UlrikeFischer's suggestion also fixes ! Argument of \language@active@arg has an extra }. errors for e.g. Dutch.
    – Mew
    Commented Aug 20, 2021 at 12:26

1 Answer 1

2

This uses a command \afz{Overflow} which provides german style of "" - quotes.

(afz stands for "Anführungszeichen", the German word for this ;-))

\documentclass{article}

\usepackage[ngerman]{babel}

\usepackage[babel,style=german]{csquotes}

\newcommand{\afz}[1]{\enquote{#1}}%



\begin{document}

\tableofcontents


\section{\afz{Overflow}}

\end{document}

enter image description here

3
  • okay, I will start using csquotes from now :) Thanks for your help! Commented Dec 29, 2014 at 21:07
  • @MoritzHoffmann: csquotes ist der einfachste Weg, um deutsche Anführungszeichen zu erhalten.
    – user31729
    Commented Dec 29, 2014 at 21:08
  • Why the additional command to wrap around enquote?
    – MaxNoe
    Commented Dec 30, 2014 at 0:04

You must log in to answer this question.

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