Why can't I get a D with stroke?

The Comprehensive Latex Symbol list tells me that I can't get Đ with OT1 using the command \DJ, and that I need T1 font encoding. When I use [T1]{fontenc} in the preamble, this doesn't work either.

So how do I get Đ?

-
It works on my machine. Please edit your question and add an example code that reproduces the problem. Without this it will be difficult for anyone to help you. –  Ian Thompson Dec 4 '12 at 21:31
Works on my machine. Are you sure you called \usepackage[T1]{fontenc}  –  A.Ellett Dec 4 '12 at 21:33
As well, try \usepackage{lmodern} and possibly, \usepackage[utf8]{inputenc} and then directly the symbol Đ as it appears in the question. –  tohecz Dec 4 '12 at 22:24

A minimal example producing your symbol (D stroke, unicode U+0110) is

\documentclass{article}

\usepackage[T1]{fontenc}
\begin{document}
\DJ
\end{document}


Should there be some reason you do not wish to load T1 fonts, you can provide a reasonable fake in OT1 encoding with

\documentclass{article}

\ProvideTextCommand{\DJ}{OT1}{\raisebox{0.25ex}{-}\kern-0.4em D}

\begin{document}
\DJ
\end{document}


which scales will in other point sizes thanks to @egreg pointing out than one can use ex and em units. Note that \newcommand will not work in this situation because \DJ is defined for the T1 encoding.

-
You could use ex and em based length, so the constructions would be independent of the font size. –  egreg Dec 7 '12 at 15:09
it looks like the cross on the T1 D stroke is more like an en-dash. possibly changing the - in the OT1 compound to -- with perhaps a bit of adjustment in the shifting would look more like the pre-composed one. –  barbara beeton Dec 7 '12 at 21:43
@barbarabeeton The length of the T1 version is somewhere between that of an ordinary dash and an en-dash. For real fine adjustment one can use an \hrule. –  Andrew Swann Dec 8 '12 at 12:23