From d8c06e9f49a75c252386cb7fc70c415d798057e6 Mon Sep 17 00:00:00 2001 From: Fabrice Mouhartem Date: Sat, 14 Oct 2023 16:41:34 +0200 Subject: [PATCH] =?UTF-8?q?nvim-latex:=20add=20`see=20also`=20section=20+?= =?UTF-8?q?=20a=20caveat=20about=20b=C3=A9po=20bindings?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- content/software/nvim-latex.md | 33 ++++++++++++++++++++++++++++++++- 1 file changed, 32 insertions(+), 1 deletion(-) diff --git a/content/software/nvim-latex.md b/content/software/nvim-latex.md index 47619b0..fc320b1 100644 --- a/content/software/nvim-latex.md +++ b/content/software/nvim-latex.md @@ -1,6 +1,7 @@ --- Title: Neovim as a LaTex Development Environment Date: 2023-10-14 12:00:00+0200 +Date: 2023-10-14 17:00:00+0200 Lang: en Author: Fabrice Category: software @@ -177,7 +178,7 @@ is possible now: prove to be an [interesting endeavour](https://upload.wikimedia.org/wikipedia/commons/9/9f/Rabbit_Hole.jpg). -**Remark:** vimtex +**Remark.** vimtex [claims](https://github.com/lervag/vimtex/blob/master/doc/vimtex.txt#L6549-L6624) that their coloration is more accurate than what [tree-sitter](https://tree-sitter.github.io/tree-sitter/), then if you are using @@ -436,6 +437,32 @@ For instance, synctex is not fully accurate with beamer slides, and just select the whole slide instead of the selected text. It is still better than nothing in my opinion, and it's a drawback that every LaTeX IDE is subject to. +Now that everything is set up, you can skim the [vimtex +documentation](https://github.com/lervag/vimtex/blob/master/doc/vimtex.txt) to +look for things you want to activate and learn more about its features. +Keep in mind though that you should not be too greedy, just pick some habits one +at a time in order to ingrain them into your workflow. +You can also expand directly `Neovim` with +[snippets](https://github.com/L3MON4D3/LuaSnip) support for instance to automate +some tasks as LaTeX can be quite verbose from time to time. +I leave you now with some further reading about the topic. + +## See Also + +* jdhao. [A Complete Guide on Writing LaTeX with Vimtex in + Neovim](https://jdhao.github.io/2019/03/26/nvim_latex_write_preview/). June 2019. + A blogpost that serves the same purpose as this one, eventhough it's not fully + up to date, for instance regarding backward search. +* Gilles Castel. [How I'm able to take notes in mathematics lectures using LaTeX + and Vim](https://castel.dev/post/lecture-notes-1/). + An example of how to streamline writing maths with Neovim, vimtex and + snippets. The goal may not be for everyone (as writing new maths and following + a lecture are not one and the same), but it's still an interesting read. For + instance it presents the `concealment` feature of [vim](https://www.vim.org/) + that makes previewing the result easier. + I also recommend the rest of the blog, as it contains information about + [inkscape](https://inkscape.org/) and how to integrate it with LaTeX. + # Bonus: Key bindings for bépo users As a [bépo](https://fr.wikipedia.org/wiki/B%C3%A9po) user, I have some remapping @@ -509,6 +536,10 @@ avoid unmapping a mapping that already doesn't exist, which will raise an error (as I have the (bad?) habit to type `:e` to reload the current file when thinking, that what triggered this behaviour in my case). +**Remark.** Please also note that it is not fully remapped yet, for instance in the table of +content navigation there are still collisions, as `t` for instance toggles +showing TODOs or `s` toggles the section numbering. + To finish and for the sake of completeness, here follows the bépo-bindings for zathura, to put in your `zathurarc` file: