TransWikia.com

Find symbol's font slot

TeX - LaTeX Asked on August 12, 2021

Afte reading the post about Importing a Single Symbol From a Different Font I was curious how the people know the symbol’s font slot, like "80 in that example.

DeclareMathSymbol{varsubset}{3}{matha}{"80}

I’d like to do the similar replacement for cap and cup, but I don’t know their slots.

One Answer

You can, in order of decreasing convenience:

  • Use unicode-math, where you can replace any math symbol with setmathfont[range=symbol]{...}. Many OpenType math fonts have variants in stylistic sets.
  • Check the package documentation for a font table.
  • Check whether it uses a standard LaTeX encoding. If it does, it probably has files with names likeoms*.fd and omx*.fd.
  • Search the .sty file for the symbol and copy-paste the commands needed to define it. Usually this is DeclareSymbolFont, and sometimes SetSymbolFont for bold, followed by DeclareMathSymbol.
  • Make font tables for all the package’s symbol fonts and look for the symbol in there.

Answered by Davislor on August 12, 2021

Add your own answers!

Ask a Question

Get help from others!

© 2024 TransWikia.com. All rights reserved. Sites we Love: PCI Database, UKBizDB, Menu Kuliner, Sharing RPP