1

I have a problem with letter đ because everytime I write something in serbian latex document fails to compile this letter. Is there any package that can fix this or always change đ to dj when I compile it so I don't need to manually fix it every time.

10
  • Welcome to TeX.SX! Do you want the output of đ to be dj? May 8, 2019 at 13:27
  • No i want đ to change to dj in original tex file so it can compile May 8, 2019 at 13:29
  • đ should work anyway, what error do you get? May 8, 2019 at 13:33
  • l.15 ...monović. Svima se tema svidjela osim Anđ i ko ! ==> Fatal error occurred, no output PDF file produc Transcript written on D.log. May 8, 2019 at 13:34
  • 1
    can you add the actual log file (not the terminal output) as a code block in your question May 8, 2019 at 13:35

1 Answer 1

3

By default

\documentclass{article}
\usepackage[T1]{fontenc}
\begin{document}


abcđ 

\end{document}

Produces

enter image description here

If you need dj then

\documentclass{article}
\usepackage[T1]{fontenc}
\DeclareUnicodeCharacter{0111}{dj}
\begin{document}


abcđ 

\end{document}

producing

enter image description here

You must log in to answer this question.

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