Closed roiholtzman closed 1 year ago
I can't reproduce. I think there are some packages on your side that have adverse interaction. Start with giving more details: what Emacs version, orgmode version, cdlatex version. Do you have org-cdlatex-mode
enabled? try disable yasnippet
and see if you still have issues. What do you use for parenthesis completion, electric-pair-mode
? try to disable it and see what happens.
I am also not able to reproduce the problem.
There are a few scenarios in which left right parenthesis are not expanded properly in org mode.
Inline math mode
Typing an inline math mode with
$
, expandinglr(
does not work. Typinglr(
automatically closes the parenthesis, i.e. I getlr(|)
, and then hittingtab
puts the cursor out of the parenthesis, i.e.lr()|
. However when doing the same withlr[
, it also closes the parenthesis automatically tolr[]
, but the hittingtab
expand it properly to$\left[ | \right]$
.yas snippets
When typing a yas-snippet, with multiple insertion place, like
\frac{}{}
, I get that cdlatex is not expanded properly when the cursor is in the first spot, i.e. when\frac{|}{}
. However, this happens only forlr<
andlr{
. Theselr(
andlr[
are expanded properly when hittingtab
. I mean, when it does not work I get after expanding the snippet, and typinglr<
andtab
and when doing this with
lr(
I getwhere the problem might be
It seems to me like the problem might be related in the special role of
<
and{
, in this functionHowever, I do not know how to solve it. In case anyone does, it would be nice.
Of course, this does not explain the 1st issue with the inline math.