How to Type đ (D with stroke) on LaTeX
đ is d with stroke, a letter used in Croatian and Vietnamese. On LaTeX, the quickest way to get it is \dj. This guide covers every method that works, including the capital Đ and fixes for common problems.
đ on LaTeX: \dj
Đ on LaTeX: \DJ
Or copy it:
Method 1: LaTeX command
Write \dj in text mode. This command needs \usepackage[T1]{fontenc}.
Method 2: Type the character directly
Since 2018 pdfLaTeX reads UTF-8 by default, so you can paste đ into your source. On Overleaf, set the compiler in Menu → Compiler.
How to type the capital Đ
The uppercase form works the same way with Shift added where a letter is typed.
LaTeX command
Write \DJ in text mode. This command needs \usepackage[T1]{fontenc}.
Type the character directly
Since 2018 pdfLaTeX reads UTF-8 by default, so you can paste Đ into your source. On Overleaf, set the compiler in Menu → Compiler.
About the letter đ
đ is Unicode U+0111, named LATIN SMALL LETTER D WITH STROKE. It is used in Croatian and Vietnamese. A line through the letter itself. Examples are ø (Danish, Norwegian), ł (Polish), đ (Vietnamese, Croatian) and ħ (Maltese). See the đ character page for every code and shortcut.
Troubleshooting
- Accents on i and j need the dotless forms \i and \j in old LaTeX; modern LaTeX handles this automatically.
- If the letter is missing in the PDF, the font lacks it. Switch to XeLaTeX or LuaLaTeX with a broader font.
- Wrap commands in braces when the next character is a letter: \'{e}x, not \'ex.
Frequently asked questions
What is the shortcut for đ on LaTeX?
\dj.
Can I just copy and paste đ?
Yes. Click the copy button above, then paste with Ctrl+V on Windows and Chromebook, Cmd+V on a Mac, or touch and hold and choose Paste on a phone.
What is the Unicode code for đ?
U+0111. In HTML it is đ.
Related guides
- How to Type đ (D with stroke) on Windows
- How to Type đ (D with stroke) on Mac
- How to Type đ (D with stroke) on iPhone
- How to Type đ (D with stroke) on Android
- How to Type đ (D with stroke) on Microsoft Word
- How to Type đ (D with stroke) on Google Docs
- How to Type ć (C with acute) on LaTeX
- How to Type ď (D with caron) on LaTeX
- How to Type ę (E with ogonek) on LaTeX
- How to Type ě (E with caron) on LaTeX