'How to use one atom snippet inside another without breaking the first one
Since I learned about custom snippets, I've been using atom to write documents in latex. The thing is that I have a problem when using one snippet inside another and I cannot find any documentation about it. I'll give an example:
I've got two snippets to write the Earth's symbol and a radio vector (an X with a subindex and a superindex), that look like this.
'Radio Vector':
'prefix': 'xrad'
'body': 'X^{$2,$3}_{$1,$4} $5'
'Earth symbol':
'prefix': 'earth'
'body': '\\\\oplus'
Considering that I use ↩ to accept the snippet and ⇥ to jump from $1 to $2, I would like to write a radio vector in which the earth symbol is the first subindex by typing this ( represents the place where the cursor should be):
- xrad + ↩ : X^{ , }_{
, } - earth + ↩ : X^{ , }{
\oplus, } - ⇥ : X^{
, }{\oplus, } - ⇥ : X^{ ,
}{\oplus, } - ⇥ : X^{ ,}{\oplus,
} - ⇥ : X^{ , }{\oplus, }
The problem is that when I hit ↩ in the second step, the "Radio Vector" snippet breaks, so when I press ⇥, it acts as a tabulator instead of allowing me to jump to the next step.
Thanks in advance!
Sources
This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.
Source: Stack Overflow
| Solution | Source |
|---|
