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{"} Dec 29, 2014 at 20:47
  • 2
    You shouldn't be using " anyway.
    – egreg
    Dec 29, 2014 at 20:49
  • 1
    Welcome to TeX.SX! Use the csquotes package for such stuff
    – user31729
    Dec 29, 2014 at 20:51
  • 1
    Or at least use ``overflow''. (But csquotes is better.)
    – cfr
    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
    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! Dec 29, 2014 at 21:07
  • @MoritzHoffmann: csquotes ist der einfachste Weg, um deutsche Anführungszeichen zu erhalten.
    – user31729
    Dec 29, 2014 at 21:08
  • Why the additional command to wrap around enquote?
    – MaxNoe
    Dec 30, 2014 at 0:04

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.