[texhax] Symbol to number correspondence for fonts.

Axel E. Retif axel.retif at mac.com
Tue Apr 16 08:08:22 CEST 2013


On 04/15/2013 10:50 PM, Rolf Turner wrote:

[...]


> First off I'm not quite sure how to interpret the table.  The solid
> diamond suit
> symbol appears in a row labelled " '12x " and a column labelled " '7 " so I
> first conjectured that the corresponding number would (might?) be 127.

That's correct ---either '127 or "57 (but see: a single ' or double ", 
from the right hand column).

[...]


> One more question:  My code (following the recipe from Paul Isambert)
> looks like:
>
> \documentclass[12pt]{article}
> \font\heartfont=favmr7y at 12pt % set your own size here

You are declaring the size (12pt). Let's do it `a la LaTeX':


\documentclass[12pt]{article}

\DeclareSymbolFont{extraup}{U}{zavm}{m}{n}
\DeclareMathSymbol{\solidheart}{\mathord}{extraup}{'126}
\DeclareMathSymbol{\soliddiamond}{\mathord}{extraup}{'127}


\begin{document}

{\Huge
$\heartsuit$  $\solidheart$ $\diamondsuit$ $\soliddiamond$

}

\end{document}

I took the line \DeclareSymbolFont{extraup}{U}{zavm}{m}{n} from 
arevmath.sty.

You can change \solidheart and \soliddiamond to whatever is appropriate 
for you.

Change \mathord to \mathbin or \mathrel as appropriate.


Best

Axel




More information about the texhax mailing list