Home > luatex > How to change the mathematical symbol class of a unicode math symbol?

# How to change the mathematical symbol class of a unicode math symbol?

February 22Hits:3

In unicode-math-table.tex the math class of many symbols is defined by lines like:

\UnicodeMathSymbol{"026AC}{\mdsmwhtcircle}{\mathord}{medium small white circle}%

Now if I want to use this particular circle as binary operator for function composition I have to change its math class to \mathbin. What I would like to do in the preamble is something like:

\usepackage{unicode-math}% \UnicodeMathSymbol{"026AC}{\mdsmwhtcircle}{\mathbin}{medium small white circle}%


Thereby overwriting unicode-math’s defaults. However the marco \UnicodeMathSymbol seems only to be available internally, when unicode-math processes unicode-math-table.tex.

Of course I can copy unicode-math-table.tex to a local texmf-tree, modify it and achieve the desired result. But I would prefer to keep this change local to the document and make the change in the preamble.

How can I overwrite unicode-math’s defaults with regard to the symbols math class?

There are two choices; one is easier:

\documentclass{article}
\usepackage{unicode-math}
\setmathfont{XITS Math}

\newcommand{\bcirc}{\mathbin{\mdsmwhtcircle}}

\begin{document}
$f\bcirc g$
\end{document}



The second one is more complicated:

\documentclass{article}
\usepackage{unicode-math}
\setmathfont{XITS Math}

\ExplSyntaxOn
\AtBeginDocument
{
\um_process_symbol_noparse:nnn {"026AC}{\mdsmwhtcircle}{\mathbin}
}
\ExplSyntaxOff

\begin{document}
$f\mdsmwhtcircle g$
\end{document}

`

Unfortunately there is apparently no higher level tool for setting symbols.

## Related Articles

• ### How to change the mathematical symbol class of a unicode math symbol?February 22

In unicode-math-table.tex the math class of many symbols is defined by lines like: \UnicodeMathSymbol{"026AC}{\mdsmwhtcircle}{\mathord}{medium small white circle}% Now if I want to use this particular circle as binary operator for function compositio

• ### Entering unicode math symbols into LaTeX, direct from keyboard, on a MacApril 22

I would like my LaTeX files to contain Unicode characters. For instance, I want to see ∃x．x ⟶ β in my text editor, rather than \exists x\ldotp x\longrightarrow\beta Also, I would like to type these characters directly from my keyboard. For instance,

• ### Why can't I display Unicode math symbols (U+2200..U+22FF)?March 20

I have windows XP and in any application on my computer i don't see this range, nether in IE nor in Notepad++... I become crazy... Thank you very much for ahead. --------------Solutions------------- You need a good Unicode font. For Windows, the typi

• ### How can I use math symbols in Ubuntu?August 19

I tried to use Mathematics symbols in web to search a formula directly,but I don't know how to insert mathematics symbols? I can't find any Mathematics options in Ubuntu's Character Map application, --------------Solutions------------- Use CharacterM

• ### Math symbols in androidSeptember 12

How to input math symbols in android?i need to input calculus and trignometric notations in android.can any one help me? --------------Solutions------------- Some replacement Android keyboards on Google Play deal with mathematical characters (I don't

• ### Missing \varepsilon symbol using unicode-math and XeLaTeXDecember 10

I like using Unicode symbols together with XeLaTeX, especially in mathematical documents, as it improves code readability. However there is a problem with the ɛ symbol. This should be mapped to \varepsilon, but as you can see from the result below, t

• ### Vim for Math SymbolsSeptember 14

I'm trying to use vim to take math notes in a game theory class. I checked out digraphs, and they are great for entering math symbols, but there's some things that it doesn't cover. Is there any easy way to enter things like enter a x with a tilda ov

• ### How to look up a symbol or identify a math symbol or character?July 26

I know what my symbol or character looks like, but I don't know what the command is or which math alphabet it came from. How do I go about finding this out? --------------Solutions------------- You can look things up in the Comprehensive LaTeX symbol

• ### New Large Math SymbolAugust 30


• ### Math symbols not showing while using fontspecDecember 8

Math, symbols are not showing when i am using the fontspec package. Here i paste the command and output please tell me as to how i can rectify this. Command: \documentclass[10pt,amssymb]{revtex4} \usepackage{amsmath,fontspec} \setmainfont[Mapping=tex