I am trying to use a custom font/character in Overleaf. I made a character (a modified integral) as a .ttf, and have uploaded it into Overleaf. I'm referring to the new font as 'specint', and the character can be accessed via the 'a' key.
I can render the character properly in "in-line" math mode, with this example code:
\specint{a}\(_{a}^{b} x^2 dx\)
My problem is I cannot figure out how to render the character in "display" math mode. For example, the following does not work:
\specint{a}\[_{a}^{b} x^2 \,dx\]
If helpful, my entire minimal code is here: https://www.overleaf.com/read/dqssmgmwrysc, and the .ttf is here: https://www.dropbox.com/s/bt8h49ksj565veg/integralsymbol-Regular.ttf?dl=0
Any help understanding how to use 'display' format in math mode with a custom character would be greatly appreciated. (Apologies for what is likely a basic question -- I am very new to LaTeX.)
\specint{a}\(...you are starting the inline math after theaso you have only specified this font for use in text mode. – David Carlisle Jan 01 '22 at 16:48\text{\specint{a}}which will work in math (but not resize like an integral, you would need explicit support for that in the font) – David Carlisle Jan 01 '22 at 16:50aso no math table... – David Carlisle Jan 01 '22 at 17:40