I am using \mathcal{T} to denote types in my paper. For unit type I want to use something like \mathcal{1} but for some reason it renders as infinity symbol. How can I get a number 1 in mathcal font.
Asked
Active
Viewed 2,345 times
1 Answers
1
TL;DR: Use \mathds{1} with the dsfont package instead of \mathcal{1}.
I have previously used $\mathcal{1}_{bla}$ for indicator variables that are 1 if and only if "bla" holds true.
This worked fine in IEEE templates:
But broke in another KOMA-based template, where it also just showed the infinity symbol. As mentioned in the comments, \mathcal is only properly defined for capital letters.
A simple solution for me was to use the dsfont package (\usepackage{dsfont} in preamble), which allows the desired styling with \mathds{1}_{bla}.
The result looks like this (different equation than above but similar styling of the indicator variable):
stefanbschneider
- 1,801


\mathcalcan only be used for uppercase letters – egreg Mar 07 '16 at 23:00\mathcal{1}look like, according to your opinion? – Mar 07 '16 at 23:01\mathcaljust selects the symbol font so only produces caligraphic for uppercase letters. – David Carlisle Mar 07 '16 at 23:11