Skip to content

VimTeX 2.9

Compare
Choose a tag to compare
@lervag lervag released this 03 Feb 10:57
· 599 commits to master since this release

I'm happy to announce another release of VimTeX. There is mostly minor improvements since v2.8. The main improvements are:

  • Added ts$ command to toggle inline and displayed math
  • Improved the cs$ command
  • Simplified the viewer interface (this should be mostly invisible to users)
  • Several improvements to syntax highlight

Although, of course, even minor improvements and fixes are useful to ensure long-term stability and life time.

Features

  • Viewers
    • Simplified the viewer interface (refactor)
      • We now never allow latexmk to start the viewer "implicitly"
      • Breaking: Removed option g:vimtex_view_general_options_latexmk
    • Added Sioyek as a native viewer method (let g:vimtex_view_method = 'sioyek')
    • Refactored and improved Skim viewer - this allows it to work well after recent MacOS updates (#2279, #2286, #2289)
    • Allow to override v:progpath used by Zathura with g:vimtex_callback_progpath (#2261, #2262)
    • Add Skim support for g:vimtex_view_automatic option
  • Syntax
    • Add support for chemformula and sagetex package (#2235, #2027)
    • Breaking: Improved g:vimtex_syntax_custom_cmds to allow more flexibility (#2240)
    • Improved Expl3 syntax (#2272)
    • Avoid spell checking in magic comments and expressions like $n$th (#2293)
    • Support \iffalse and \iftrue commands to highlight the corresponding "false" blocks as comments (#1988, #2319)
    • Added conceal symbols for \lhd and \rhd (#2238)
    • Added conceal for more biblatex commands (#2244)
  • Editing commands
    • Add ts$ command to toggle inline vs display math - use g:vimtex_env_toggle_math_map to control behaviour (#1858, #2310)
    • Add <F8> command to add \left and \right math modifiers to all surrounding delimiters (#2313)
    • Improve tsf command: support \dfrac (#1984)
    • Improve gf command (#2111)
    • Improve cs$ command (#1858)
      • Support for math environments in addition to $...$, \(...\), $$...$$, and \[...\]
      • Adjust the formatting after changing to e.g. $...$ and \[...\]
    • Improve i$ and a$ text objects: Support math environments
  • Other
    • Compiler: Add proper user feedback on :VimtexCompileSS (#2276)
    • Quickfix: Improve overflow/underflow parsing (#2256)
    • Initialization: Preserve main root for local standalones (#2234)
    • Allow :VimtexTocToggle inside ToC (#2317)
    • Allow commands like <F7> and csc in .bib files (#2301)

Fixes

  • Viewers
    • Fix default viewer start on Windows (#2309)
    • Avoid race condition for MuPDF (#2299)
  • Syntax
    • Use unicode character for \times conceal (#2242)
    • Fix modern siunitx commands in math mode (#2245)
    • Properly handle \newcommand\name (#2266)
    • Ignore texRefArg in vimtex#syntax#in_mathzone (#2282)
    • Better matching of \(...\) math mode (#2311)
  • Compiler
    • Avoid duplicate compiler callbacks (#2299)
    • Remove trailing <cr>s in compiler output on windows (#2292)
    • Only create subdirectories with build_dir option (#2303)
  • Other
    • Restrict g:vimtex_subfile_start_local to only affect subfiles
    • Temporarily reset 'shell' setting for Vim on unix to avoid problems with shell commands (#2246)
    • Several minor fixes (e.g. #2287, #2288, #2291)
    • Avoid error on empty cache

Documentation

  • Improve requirement section (#2248)
  • Add a configuration section to README (#2248)
  • Add reference to SVED for Evince (#2314, #179)
  • Add configuration guide for nvim-cmp (#2215)
  • Document VimtexEventCompiling (#2290)
  • Improved documentation of g:vimtex_syntax_conceal options (#2308)
  • Add some info on LTeX (#2285)
  • Several general improvements (e.g. #2308, #2267, #2243)

Acknowledgements

Again there has been several contributions from the community, and as before I would like to give a special thanks to everyone who contributes with PRs: @yehoshuapw (#2238), @mathjiajia (#2239), @savq (#2242), @krissen (#2244), @poscat0x04 (#2262, #2267), @ld0891 (#2282), @yongrenjie (#2286), @clason (#2289), @davidlowryduda (#2308, #2314), @habamax (#2309).