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?

1

1 Answer 1

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

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .