4

Compiling with polyglossia, there's extra space before the year in the \today command:

\documentclass{article}
\usepackage{polyglossia}
    \setdefaultlanguage{norsk}

\begin{document}
\today

7. desember 2016
\end{document}

enter image description here

This does not happen when compiling with babel:

\documentclass{article}
\usepackage[main = norsk]{babel}

\begin{document}
\today

7. desember 2016
\end{document}

enter image description here

Why does this happen? Bug? How can I fix it?

3

There is a spurious space in gloss-norsk.ldf:

\def\datenorsk{%   
   \def\today{\number\day.~\ifcase\month\or
    januar\or februar\or mars\or april\or mai\or juni\or
    juli\or august\or september\or oktober\or november\or desember
    \fi\space\number\year}%
    }

There is no % after desember, which makes for an additional space when the current month is December.

Temporary fix: add

\def\datenorsk{%   
   \def\today{\number\day.~\ifcase\month\or
    januar\or februar\or mars\or april\or mai\or juni\or
    juli\or august\or september\or oktober\or november\or desember%
    \fi\space\number\year}%
    }

in the preamble.

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.