Skip to content
This repository has been archived by the owner on Aug 7, 2023. It is now read-only.

LaTeX measurements are flagged as spelling errors #38

Open
ChristopherBull opened this issue Jan 11, 2019 · 2 comments
Open

LaTeX measurements are flagged as spelling errors #38

ChristopherBull opened this issue Jan 11, 2019 · 2 comments

Comments

@ChristopherBull
Copy link

ChristopherBull commented Jan 11, 2019

Measurement values are flagged as spelling errors, even though they are not. They can't be added to a dictionary, as they are obviously dynamic values used frequently throught a LaTeX document.

For example, .25em, .1pt, and .5em are flagged as spelling errors. E.g:

\renewcommand{\section}[1]{
  {\enspace\headingfont\noindent\Large{\textbf{#1}}}\\[.25em] % Header section name
  \noindent\rule{\textwidth}{.1pt}\\[.5em] % Rule under the header
  % \noindent\hrulefill
}

This is challenging as they are dynamic values. I would usually default to using something like Regex to detect these.

Is it possible to update the grammar provider to skip numbers that end in pt, em, cm etc.

@Luthaf
Copy link

Luthaf commented Jan 22, 2019

There is already code for this in this package, which was just not used. You can fix it locally by editing your own copy of the package, see #39 for the one line change!

@agrossfield
Copy link

I installed today, bug is still present. Will this get merged?

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

Successfully merging a pull request may close this issue.

3 participants