When using the package babel
with the norwegian option (\usepackage[norsk]{babel}
), double-quotation marks ("
) in \texttt{}
disappear if they occur before certain letters (e.g., b
, d
, and f
), but not for others. Is there any solution to this?
Minimal working example:
\documentclass[]{article}
\usepackage[norsk]{babel}
\begin{document}
\texttt{"a" "b" "c" "d" "e" "f"}
\texttt{"a"} \texttt{"b"} \texttt{"c"} \texttt{"d"} \texttt{"e"} \texttt{"f"}
\end{document}
with \usepackage[norsk]{babel}
(leading "
removed sometimes)
without \usepackage[norsk]{babel}
(this is how I want it to be)
"
is an active character in Norsk, if we look innorsk.ldf
we see for example that\declare@shorthand{norsk}{"e}{\textormath{\bbl@disc e{\'e}}{}}
, honestly I have no idea what it is doing here, but there is your rexplanationnorsk.pdf
you should hjave it on your computer, else find it on texdoc.net\shorthandoff{"}
. You can also use\usepackage[norsk,shorthands=off]{babel}