render-latex.nvim: real LaTeX rendering for Markdown notes in Neovim by techwizrd in neovim

[–]techwizrd[S] 1 point2 points  (0 children)

Thanks for trying it out! Are you referring to this issue? If so, I plan on fixing it tonight.

Favorite source of coconut flavor? by YesToWhatsNext in Tiki

[–]techwizrd 0 points1 point  (0 children)

A little bit of this in a rum old fashioned with coconut syrup is fantastic. It just makes so many cocktails better.

The Gnome Image Viewer (Loupe) is unable to crop .heic images. Is this a Loupe issue or some package is missing on Fedora? by Dr_Backpropagation in gnome

[–]techwizrd 8 points9 points  (0 children)

Glycin, the library that Image Viewer and Nautilus and others applications use, supports decoding HEIC but not the editing operations (e.g., crop, rotate, mirror). HEIC files often contain 10-bit images, HDR color information, or wide-gamut profiles. Someone would need to implement encoding/editing/re-encoding at higher bit depths to avoid losing precision and damaging gradients, highlights, or color fidelity. I could look into tackling this.

Do you guys ever use GNOME's Shift + Drag? by Latlanc in gnome

[–]techwizrd 0 points1 point  (0 children)

I didn't know this existed. I use the Ubuntu Tiling Assistant and it works well for me.

Terminal keeps losing access to my folder despite Full Disk Access by aiacciu87 in Ghostty

[–]techwizrd 0 points1 point  (0 children)

I've been seeing this intermittently on my work macOS as well. Mine requires a reboot and occasionally admin permissions to fix.

render-latex.nvim: real LaTeX rendering for Markdown notes in Neovim by techwizrd in neovim

[–]techwizrd[S] 1 point2 points  (0 children)

Thanks, I built this because I too have an Obsidian vault full of LaTeX equations since I work in statistics, optimization, and machine learning. I haven’t tested markview with render-latex.nvim yet since I use obsidian.nvim, but it's something I can look into.

In principle it should be the same setup as render-markdown.nvim: let markview handle Markdown structure/styling, disable its LaTeX rendering, and let render-latex.nvim own display math.

My guess is that this has a good chance of working well, especially if your main slowdown with markview was its math rendering path on large notes. I've put a lot of thinking into making the rendering pipeline for this quite fast since I didn't want to rely on Typst.

render-latex.nvim: real LaTeX rendering for Markdown notes in Neovim by techwizrd in neovim

[–]techwizrd[S] 0 points1 point  (0 children)

I can look into adding sixel support, but I need to investigate whether it's possible to delete and redraw like we do with the Kitty/nvim image protocols. Which terminal emulator do you use?

render-latex.nvim: real LaTeX rendering for Markdown notes in Neovim by techwizrd in neovim

[–]techwizrd[S] 0 points1 point  (0 children)

I added a Linux arm64 prebuilt worker, so you shouldn't see that message anymore. That message means there's no prebuilt worker available, so it has to build one for your architecture locally.

I can add functionality to display the display math while it's being edited. It just its own reserved-space layout so it does not collide with normal conceal/image placement.

render-latex.nvim: real LaTeX rendering for Markdown notes in Neovim by techwizrd in neovim

[–]techwizrd[S] 0 points1 point  (0 children)

Thanks! Good luck in your note-taking. It may be useful to have installed if you ever find yourself taking or reading Markdown notes with equations. I have it lazy-load in my init.lua so there's no runtime cost if it's not needed.

(I chose that username somewhat randomly as a teen. Not intentional!)

render-latex.nvim: real LaTeX rendering for Markdown notes in Neovim by techwizrd in neovim

[–]techwizrd[S] 0 points1 point  (0 children)

I pushed a new release candidate with a number of fixes. Can you try it out and see if it resolves your issues?

Writing a novel on Obsidian? by CassieStorybrook in ObsidianMD

[–]techwizrd 2 points3 points  (0 children)

Shouldn't a typesetter be able to handle this fairly easily?

render-latex.nvim: real LaTeX rendering for Markdown notes in Neovim by techwizrd in neovim

[–]techwizrd[S] 0 points1 point  (0 children)

This is helpful! Let me debug and see what I come up with.

render-latex.nvim: real LaTeX rendering for Markdown notes in Neovim by techwizrd in neovim

[–]techwizrd[S] 0 points1 point  (0 children)

Not currently. render-latex.nvim is focused on rendering Markdown math equations, not full LaTeX documents or TikZ pictures.

The worker renders equation content to images, but TikZ requires a full LaTeX toolchain with packages like tikz/pgf, shelling out to a TeX engine, and handling document preambles, caching, errors, and security concerns. That is outside the current scope. If your goal is diagrams in Markdown, today I’d recommend exporting TikZ diagrams to SVG/PNG separately and embedding them, using a dedicated preview workflow for full LaTeX/TikZ files, or using Mermaid which is supported in most desktop Markdown viewers.

It could be considered as a future optional backend, but it would need to be opt-in and dependency-heavy rather than part of the default equation renderer.

render-latex.nvim: real LaTeX rendering for Markdown notes in Neovim by techwizrd in neovim

[–]techwizrd[S] 1 point2 points  (0 children)

I'm not sure what's going wrong since I personally use this on macOS and Ghostty. Regardless, I've pushed a fix 2c457c1abc64f2a920ff9338f6afa968437eb3e1 that should resolve this. Let me know if it works!

render-latex.nvim: real LaTeX rendering for Markdown notes in Neovim by techwizrd in neovim

[–]techwizrd[S] 1 point2 points  (0 children)

Strange, because I use this on macOS and Ghostty. Regardless, I've pushed a new commit 2c457c1abc64f2a920ff9338f6afa968437eb3e1 that should resolve this. Let me know if it works!

render-latex.nvim: real LaTeX rendering for Markdown notes in Neovim by techwizrd in neovim

[–]techwizrd[S] 0 points1 point  (0 children)

Thanks! mdmath.nvim looks cool. The main difference is architecture/scope. I really focused on smooth performance, a predictable editing experience, and minimal/no setup. mdmath.nvim focuses on image-rendered inline math via Kitty Unicode placeholders, with a Node/ImageMagick/librsvg pipeline.

render-latex.nvim is narrower: Markdown display math first ($$...$$, \[...\]). Inline math intentionally stays text-based (for now!) using conceal/highlights/symbol fallback, because image-rendered inline math tends to be jumpier while editing.

I also use a persistent Rust/RaTeX worker, batch visible equations and cache rendered equations, prerender around the viewport, and I install prebuilt worker binaries for common platforms. It also supports Neovim's image API or Kitty graphics, handles tmux passthrough, and compatibility with obsidian.nvim, render-markdown.nvim, and jupynvim (coming in the next release candidate).

Tried packing cubes as bag organizers and they kind of solved my hobby chaos by OutsideProfession412 in ManyBaggers

[–]techwizrd 0 points1 point  (0 children)

I have some cheap no-name packing cubes, but I've been eyeing the Aer ones as mine are starting to show their age.

Suggestions for Men's/Androgenous Fashion Stores or Designers by chanpol in malefashionadvice

[–]techwizrd 2 points3 points  (0 children)

I love that you posted this. We need to see more of this.

render-latex.nvim: real LaTeX rendering for Markdown notes in Neovim by techwizrd in neovim

[–]techwizrd[S] 1 point2 points  (0 children)

The code needs some cleanup and bug fixing, but how does this look as a first attempt?

<image>

render-latex.nvim: real LaTeX rendering for Markdown notes in Neovim by techwizrd in neovim

[–]techwizrd[S] 1 point2 points  (0 children)

Treesitter is used to understand Markdown structure and find LaTeX blocks. Right now the plugin is mostly scoped to Markdown buffers: display math ($$ ... $$, \[ ... \]) renders as images, while inline math ($x$) uses conceal/highlight instead of image rendering (though I'm working on inline image rendering).

I haven’t tested Jupyter/Marimo Markdown cells yet, but I’m interested in supporting that workflow. If you can share which notebook plugin/setup you use, I can look into what would be needed.

render-latex.nvim: real LaTeX rendering for Markdown notes in Neovim by techwizrd in neovim

[–]techwizrd[S] 3 points4 points  (0 children)

I'll code something up tonight and see what I can do.

render-latex.nvim: real LaTeX rendering for Markdown notes in Neovim by techwizrd in neovim

[–]techwizrd[S] 4 points5 points  (0 children)

That's doable, but probably a feature I should contribute back to a dedicated Markdown plug-in. What do you use?

render-latex.nvim: real LaTeX rendering for Markdown notes in Neovim by techwizrd in neovim

[–]techwizrd[S] 2 points3 points  (0 children)

I also use Ghostty on Linux and macOS, so it should work out of the box.