Open milanglacier opened 2 years ago
I cannot reproduce this. The highlighting for me looks as you in the Emacs screenshot you posted. @kristijanhusak is a latex parser needed here?
I cannot reproduce this. The highlighting for me looks as you in the Emacs screenshot you posted. @kristijanhusak is a latex parser needed here?
Sorry, I missed the option org_highlight_latex_and_related = 'native',
and ensure_installed = 'latex'
I have updated the minimal config to make it reproducible.
Thanks for reminding me!
When you set org_highlight_latex_and_related = 'native'
it actually loads the whole syntax file from vim's tex
filetype. Support for latex is generally lacking and not stable. Maybe you could disable the native and just rely on what's there with treesitter/markup highlighter. Recently some highlights were added (https://github.com/nvim-orgmode/orgmode/pull/428), but not all of them.
When you set
org_highlight_latex_and_related = 'native'
it actually loads the whole syntax file from vim'stex
filetype. Support for latex is generally lacking and not stable. Maybe you could disable the native and just rely on what's there with treesitter/markup highlighter. Recently some highlights were added (#428), but not all of them.
Thanks for your advice. I decide to go with org_highlight_latex_and_related = 'entity'
right by now
Describe the bug
The highlight for the dollar sign
$
is improperSteps to reproduce
test.org
Expected behavior
$
is closed by two=
, i.e=$=
then verbatim should be respected. i.e there should be no syntax highlight$
are distanced by more two lines, text between them should not be highlighted.Emacs functionality
see description here https://orgmode.org/manual/LaTeX-fragments.html
Minimal init.lua
Screenshots and recordings
the first is neovim
the second is emacs
OS / Distro
macOS 12.6
Neovim version/commit
0.8.1
Additional context
No response