\ character in cson file


#1

Hello there! I’m trying to make a code snippet for latex. The problem is that when I trigger the snipet, the ** character is not inputed in the file.
Any ideas?

This is the code in the snippets.cson file:
’.tex’:
‘Big-Oh notation’:
‘prefix’: ‘oh’
‘body’: “$ \mathcal{O}(1)

I’ve already tried using single-quotes, double-quotes, escape the character using \, and nothing works…

Thanks


#2

Found it! You have to use “$ \\mathcal{O}(1)