# Problem with letter “\dj” in small-caps font

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?

-
Welcome to TeX.sx! A tip: If you indent lines by 4 spaces, they'll be marked as a code sample. You can also highlight the code and click the "code" button (with "{}" on it). –  egreg Mar 19 '13 at 11:06

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}


-