I would like to use curly braces inside a body of the org-mode inline source block. Since the body itself is delimited with curly braces it seems impossible.
The problem occurs when additional pairs of curly braces are used inside the body. For instance the following LaTeX code
src_latex[:results raw]{$x=\frac{1}{2}$}
when executed (with C-c C-c) gets broken into
src_latex[:results raw]{$x=\frac{1} $x=\frac{1{2}$}
Of course this can be easily overcome with the classic (multiline) form of the source block, but the inline counterpart would be more convenient for me.
Is there any other way to solve this problem?
I use Gnu Emacs 25.1.1 with Org-mode 8.3.4.
UPDATE:
It turns out (after short discussion on #org-mode IRC) that this issue does not apply to the Org Mode version 9.0.3 (at the time of writing this, 9.0.3 is the latest version available on Melpa). In fact, after upgrading my Org Mode the problem disappears!
Beware of this issue when updating to 9.X version!