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.

In http://www.logicmatters.net/latex-for-logicians/symbols/ I read that \boxright from txfonts or pxfonts can by used together with other fonts by doing the following:

\DeclareSymbolFont{symbolsC}{U}{txsyc}{m}{n}
\DeclareMathSymbol{\boxright}{\mathrel}{symbolsC}{128}

There is another symbol in txfonts and pxfonts that I'd like to use. How can I get its number so that I can use a similar \DeclareMathSymbol to access it? The symbol I'm after in txfonts and pxfonts is \Diamondright:

\Diamondright

share|improve this question
    
For future reference here's what I used to get the symbols I was after: \DeclareSymbolFont{symbolsC}{U}{pxsyc}{m}{n}% Use 'pxsyc' for Palatino and 'txsyc' for Times and Computer Modern \DeclareMathSymbol{\boxright}{\mathrel}{symbolsC}{128}% Lewis's 'would' counterfactual \DeclareMathSymbol{\diamondright}{\mathrel}{symbolsC}{132}% Lewis's 'might' counterfactual –  N.N. Oct 26 '11 at 10:13

1 Answer 1

up vote 16 down vote accepted

You could use the fonttable package:

\documentclass{article}
\usepackage{fonttable}
\begin{document}
\fonttable{txsyc}
\end{document}

There you can see it's 132.

font table

share|improve this answer
    
this not working with xelatex and ttf font –  Witold Aug 5 '13 at 13:45
    
@Witold No, it doesn't; the package is thought for eight bit fonts. –  egreg Aug 5 '13 at 15:20

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.