Take the 2-minute tour ×
TeX - LaTeX Stack Exchange is a question and answer site for users of TeX, LaTeX, ConTeXt, and related typesetting systems. It's 100% free, no registration required.

1 Answer

up vote 6 down vote accepted

You can adapt this answer using the T4 encoding

\documentclass{article}

\pdfpkresolution=1200
\pdfpkmode{ljfzzz}

\usepackage[T4,T1]{fontenc}

\makeatletter
\def\easytfoursymbol#1{\mathord{\mathchoice
  {\mbox{\fontsize\tf@size\z@\usefont{T4}{\rmdefault}{m}{it}\char#1}}
  {\mbox{\fontsize\tf@size\z@\usefont{T4}{\rmdefault}{m}{it}\char#1}}
  {\mbox{\fontsize\sf@size\z@\usefont{T4}{\rmdefault}{m}{it}\char#1}}
  {\mbox{\fontsize\ssf@size\z@\usefont{T4}{\rmdefault}{m}{it}\char#1}}
}}
\makeatother

\newcommand{\hookD}{\easytfoursymbol{129}}

\begin{document}
$\hookD\ne D\quad \hookD_{\hookD_{\hookD}}$
\end{document}

enter image description here

You can create a table of the T4 encoding by typesetting the following document:

\documentclass{article}
\usepackage[T4]{fontenc}
\usepackage{fonttable}
\begin{document}
\xfonttable{T4}{cmr}{m}{n}
\end{document}

This is how I found the magic number 129.

Unfortunately, T4 fonts for the Computer Modern family (FC fonts) don't have a Type1 version and this is the reason of the lines \pdfpkresolution and \pdfpkmode: creating bitmaps at high resolution.


Here's a solution for XeLaTeX (assuming that the main font has the glyph and that a matching math font exists). Also unicode-math could be used, of course.

\documentclass{article}
\usepackage{newtxmath}
\usepackage{fontspec}
\setmainfont{Times New Roman}
\usepackage{newunicodechar}
\makeatletter
\newunicodechar{Ɗ}{%
  \ifmmode
    \mathord{\mathchoice
      {\mbox{\fontsize\tf@size\z@\normalfont\itshape Ɗ}}
      {\mbox{\fontsize\tf@size\z@\normalfont\itshape Ɗ}}
      {\mbox{\fontsize\sf@size\z@\normalfont\itshape Ɗ}}
      {\mbox{\fontsize\ssf@size\z@\normalfont\itshape Ɗ}}
    }%
  \else
    Ɗ%
  \fi}
\makeatother

\begin{document}
Ɗ

$Ɗ\ne D$
\end{document}

enter image description here

share|improve this answer
    
So this one's actually not in tipa nor anywhere else in The Comprehensive List? –  doncherry May 20 '12 at 22:35
1  
@doncherry The uppercase version isn't an IPA symbol, so not in TIPA. –  Alan Munn May 20 '12 at 22:37
    
@AlanMunn: Thanks, I shouldn't only have skimmed the Wiki article :) –  doncherry May 20 '12 at 22:57
    
Thanks very much for the help –  adam May 21 '12 at 11:00
add comment

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.