Vim-tex: Difference between revisions
Jump to navigation
Jump to search
(Created page with "We follow setup from [https://castel.dev/post/lecture-notes-1/ Gilles Castel]: * Plugin '''VimTex'''. * Plugin '''UltiSnips'''. * Some extra mappings. ...To be completed...") |
|||
(2 intermediate revisions by the same user not shown) | |||
Line 3: | Line 3: | ||
* Plugin '''UltiSnips'''. |
* Plugin '''UltiSnips'''. |
||
* Some extra mappings. |
* Some extra mappings. |
||
== References == |
|||
* [https://castel.dev/post/lecture-notes-1/ How I'm able to take notes in mathematics lectures using LaTeX and Vim] |
|||
:Also on [https://news.ycombinator.com/item?id=19448678 Hacker News]. |
|||
* [https://www.quora.com/Can-people-actually-keep-up-with-note-taking-in-Mathematics-lectures-with-LaTeX/answer/Gilles-Castel-1 Can people actually keep up with note-taking in Mathematics lectures with LATEX] |
|||
* [https://www.youtube.com/watch?time_continue=70&v=a7gpx0h-BuU YouTube -- Fast LaTeX editing with Vim and Ultisnips] |
|||
...To be completed... |
...To be completed... |
||
== How-to == |
|||
=== Compile with Xelatex === |
|||
The simplest is to add the following lines at the beginning of the {{file|.tex}} file [https://tex.stackexchange.com/questions/392198/vimtex-and-xelatex]: |
|||
<source lang=latex> |
|||
% !TEX program = xelatex |
|||
</source> |
|||
or alternatively |
|||
<source lang=latex> |
|||
% !TEX TS-program = xelatex |
|||
</source> |
|||
Another option is to change <code>g:vimtex_compiler_latexmk</code> variable [https://tex.stackexchange.com/questions/392198/vimtex-and-xelatex]. |
Latest revision as of 09:16, 21 April 2023
We follow setup from Gilles Castel:
- Plugin VimTex.
- Plugin UltiSnips.
- Some extra mappings.
References
- Also on Hacker News.
- Can people actually keep up with note-taking in Mathematics lectures with LATEX
- YouTube -- Fast LaTeX editing with Vim and Ultisnips
...To be completed...
How-to
Compile with Xelatex
The simplest is to add the following lines at the beginning of the .tex file [1]:
% !TEX program = xelatex
or alternatively
% !TEX TS-program = xelatex
Another option is to change g:vimtex_compiler_latexmk
variable [2].