12

The letter \dj has its bar placed too high when used in lower case small caps, e.g.

\documentclass[a4paper]{article}
\usepackage[croatian]{babel}

\begin{document}
\textsc{\dj}
\end{document}

What do I need to add to the preamble in order to correct this?

Psychonaut
  • 3,142

1 Answers1

12

For Croatian (and most continental European languages) it's recommended to use T1 encoded fonts; if you load also the inputenc package (and save your documents in UTF-8 encoding) you're also allowed to input characters with diacritics directly:

\documentclass[a4paper]{article}
\usepackage[T1]{fontenc}
\usepackage[utf8]{inputenc}
\usepackage[croatian]{babel}

\begin{document}
\title{A paper}
\author{Ivica Smolić}
\maketitle

\textsc{\dj} \textsc{đ}
\end{document}

enter image description here

egreg
  • 1,121,712