neorg
neorg copied to clipboard
latex-renderer fails to correctly position equations horizontally due to concealed characters
Prerequisites
- [X] I am using the latest stable release of Neovim
- [X] I am using the latest version of the plugin
Neovim Version
NVIM v0.10.0-dev-00e71d3 Build type: Release LuaJIT 2.1.1693350652
Neorg setup
require('neorg').setup({["load"] = {["core.concealer"] = { },["core.defaults"] = { },["core.dirman"] = {["config"] = {["workspaces"] = {["default"] = "~/doc/vault",["vault"] = "~/doc/vault"}}},["core.integrations.image"] = { },["core.integrations.telescope"] = { },["core.integrations.treesitter"] = { },["core.keybinds"] = {["config"] = {["hook"] = function(keybinds)
--keybinds.unmap('norg', 'n', '<C-s>')
keybinds.map(
'norg',
'n',
'<localleader>o',
':Neorg return<CR>',
{silent=true}
)
keybinds.map(
'norg',
'n',
'<localleader>j',
':Neorg journal today<CR>',
{silent=true}
)
keybinds.map(
'norg',
'n',
'<localleader>c',
':Neorg toggle-concealer<CR>',
{silent=true}
)
keybinds.map(
'norg',
'n',
'<localleader><C-l>',
':Neorg render-latex<CR>',
{silent=true}
)
keybinds.map(
'norg',
'n',
'<localleader>f',
':Telescope neorg find_norg_files<CR>',
{silent=true}
)
keybinds.map(
'norg',
'n',
'<localleader>s',
':Telescope neorg find_linkable<CR>',
{silent=true}
)
keybinds.map(
'norg',
'n',
'<localleader>lf',
':Telescope neorg insert_file_link<CR>',
{silent=true}
)
keybinds.map(
'norg',
'n',
'<localleader>ls',
':Telescope neorg insert_link<CR>',
{silent=true}
)
end
}},["core.latex.renderer"] = {["config"] = {["bounded_geometry"] = false,["conceal"] = true,["dpi"] = 300,["render_on_enter"] = false}}}})
Actual behavior
equations are positioned according to their position in the original buffer, however these positions do not take into account the characters that are concealed, and so with several small equations (symbols for example), the images are displayed noticeably out of their correct positions:
without conceal
set conceallevel=0 you can see that the images are being positioned in the original location:
Expected behavior
The equations should be positioned according to their position in buffer after the concealment has been performed (or taken into account).
Steps to reproduce
Try to render a file with several equations in a single line:
$\theta$ and $\tau$ and $\pi$ and $\gamma$ and $\epsilon$
Potentially conflicting plugins
No response
Other information
No response
Help
None
Implementation help
No response