Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add missing texMathCmdSI #2245

Closed
QUICKguils opened this issue Nov 13, 2021 · 3 comments
Closed

Add missing texMathCmdSI #2245

QUICKguils opened this issue Nov 13, 2021 · 3 comments
Labels

Comments

@QUICKguils
Copy link

Description

Really minor issue here, but I've noticed that commands \qty, \unit and \qtyrange (from siunitx package) were not properly highlighted in math environment. I think somebody forgot to add

  syntax match texMathCmdSI contained nextgroup=texSIOptU,texSIArgUnit skipwhite "\\unit\>"
  syntax match texMathCmdSI contained nextgroup=texSIOptNU,texSIArgNumU skipwhite "\\qty\>"
  syntax match texMathCmdSI contained nextgroup=texSIOptNNU,texSIArgNumNU skipwhite "\\qtyrange\>"

in autoload/vimtex/syntax/p/siunitx.vim.

Steps to reproduce

No response

Expected behavior

No response

Actual behavior

No response

Do you use a latexmkrc file?

no

VimtexInfo

System info
  OS: Fedora release 35 (Thirty Five)
  Vim version: NVIM v0.5.1
  Has clientserver: true
  Servername: /tmp/nvimZ5NA0N/0

VimTeX project: main
  base: main.tex
  root: /home/guil/Documents/Essais/Latex/Report_small
  tex: /home/guil/Documents/Essais/Latex/Report_small/main.tex
  main parser: recursive search
  document class: article
  packages: babel bm booktabs calc csquotes fancyhdr floatrow geometry graphicx hyperref inputenc lastpage lettrine lipsum listings matlab-prettifier microtype newtxmath pgfplots placeins ragged2e roboto roboto-mono sectsty siunitx stickstootext subfig tabularx tikz tikzscale tocvsec2 varioref xcolor
  source files:
    main.tex
    preambule.tex
    titlepage.tex
    dser.tex
    img/srl-turb.tex
    graph/MNT-turb.tex
    graph/MNT-alt.tex
    img/srl-alt.tex
    graph/dser.tex
    fatigue.tex
    graph/stress-max.tex
    vibratoire.tex
    annexes.tex
  compiler: latexmk
    engine: -pdf
    options:
      -verbose
      -file-line-error
      -synctex=1
      -interaction=nonstopmode
    callback: 1
    continuous: 0
    executable: latexmk
  viewer: Zathura
    xwin id: 0
  qf method: LaTeX logfile
@lervag
Copy link
Owner

lervag commented Nov 13, 2021

Sorry, my mistake. You are right. I believe it is fixed now, please test.

@lervag lervag closed this as completed Nov 13, 2021
@QUICKguils
Copy link
Author

Yes it works fine now. Thanks for fixing, and thanks for this great plugin ! :)

@lervag
Copy link
Owner

lervag commented Nov 14, 2021

No problem; happy you like it!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants