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
Advertisement

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?

Answers

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}

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

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?

    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)?

    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

  • Math symbols in tt font

    Math symbols in tt fontJune 19

    I am trying to typeset some mathematics all in typewriter font; aiming to emulate the appearance of a particular computing environment. However, \mathtt in math mode doesn't appear to affect the symbols. For example, in something like: $\mathtt{\{a[1

  • How does XeTeX typeset (math) symbols which are input as unicode?July 22

    I'm considering moving to Xe(La)TeX for the main reason that it allows me to use unicode in my LaTeX code, making said code easier to read, especially the math. But I'm confused on how XeTeX typesets symbols based on my input. I see three possibiliti

  • No Math Symbols appearing November 23

    This question already has an answer here: Fourier package causes equation to not show up properly 1 answer In my tex file, = doesn't appear. \RequirePackage[l2tabu]{nag} \makeatletter \renewcommand*\cleardoublepage{\clearpage\[email protected] \ifodd\[email protected]

  • How can I write math symbols or Greek letters in Gmail?October 9

    How can I write math symbols or Greek letters in Gmail? --------------Solutions------------- The most popular answer on gmail forums seems to be type it out in word and copy and paste into gmail. http://www.google.com/support/forum/p/gmail/thread?tid

  • Does gnome-character-map include any math symbols?November 20

    I found gnome-character-map very useful application, when I need to construct simple math formula, it has greek letters, therefore I wanted to go further, does gnome-character-map have any other math symbols, "great or equal","doesn't equal

  • How does one stop automatic line spacing increases when typesetting tall math symbols?

    How does one stop automatic line spacing increases when typesetting tall math symbols?December 12

    Often when typesetting mathematics, one wants to use math symbols in line. When these are certain symbols, or more often, decorated symbols, whose height is sufficiently large, the line spacing (that is, the space between the current line and the pre

  • Shortcuts and/or user-defined shortcuts for math symbols in LaTeX?January 28

    I am very new to being able to use LaTeX to type up mathematical papers, and I just got my "system" set up. Currently I have installed TexWorks, and MikTex, and I have put together a 'hello world' article which seems to run well. I have also use

  • The √ symbol in the unicode-math package

    The √ symbol in the unicode-math packageNovember 7

    I'm using the unicode-math package in comination with xelatex. Thanks to this package I can write unicode symbols in the tex code. However some unicode symbols, don't compile the way I would expect it. For example, I hoped that if type $√{2+3}$ that

  • How Can I get bold math symbols into a glossary?

    How Can I get bold math symbols into a glossary?November 12

    I'd like to add a mathematical Expression to my glossary: \newglossaryentry{Fst}{ name = {$F_{st}$-value}, description = {Inbreeding coefficient,...}, sort = {fst} } Unfortunately, the Expression is not written in bold letters. According to How can I

  • BibTeX problem with math symbols

    BibTeX problem with math symbolsJuly 5

    I'm using BibTex for my bibliography, for citing I'm using google scholar. I'm mainly having problems with math symbols: for example, one of the references is: @incollection{deitmar2005schemes, title={Schemes over$\backslash$ mathbb $\{$F$\}$ \_1}, a

  • How can I use math symbols in Ubuntu?

    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 XeLaTeX

    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?

    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 Symbol

    New Large Math SymbolAugust 30

    I want to use symbols from the phaistos package as "numbers" This means that I want to type something like: \documentclass{amsart} \usepackage{phaistos} \newcommand{\lo}{\text{\PHbee}} \newcommand{\loo}{\text{\PHboomerang}} \begin{document} \[ \

  • Math symbols not showing while using fontspec

    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

Copyright (C) 2018 ceus-now.com, All Rights Reserved. webmaster#ceus-now.com 14 q. 0.409 s.