Skip to content

Adding LaTeX delimiters \[...\] and \(...\) #41

@QMeqGR

Description

@QMeqGR

I added the the non-symmetric delimiters [...] and (...). I also changed the search for \begin{} and \end{} regular expressions so they don't have to be on a line by themselves. The diff of the code is shown below. I've been testing this the last few days and found:

  1. poly-org can find the latex expressions and set the mode accordingly
  2. poly-org-mode causes org to not render /italic words/ in the graphical interface. When opening a document containing some words in italics emacs will render them properly, but if poly-org-mode is on and you run the cursor over the italicized word, then it will show the slashes and will not return to being italicized after the cursor leaves the word.
  3. I have observed some times that the mode will get stuck in latex. I don't know for sure why or when this happens.

Any help would be greatly appreciated in figuring this out. Also, I don't know how to approach the symmetric delimiters $...$ or $$...$$.

-EM
edited for clarity

diff.txt

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions