hunspell icon indicating copy to clipboard operation
hunspell copied to clipboard

disregard `\\texttt{}` (for `format = "latex"`) ?

Open tyner opened this issue 6 months ago • 0 comments

Typically, \texttt{} is used to encapsulate variable names (etc) which would often not appear in a dictionary. Should this be exempted from spellcheck?

hunspell::hunspell(text = "\\texttt{foo\\_bar\\_baz}", format = "latex")

gives

[[1]] [1] "baz"

tyner avatar Jun 03 '25 11:06 tyner