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

[FeatureRequest] Ignore additional commands, more precise some of their parameters #171

Closed
atticus-sullivan opened this issue May 12, 2021 · 2 comments
Labels
wontfix This will not be worked on

Comments

@atticus-sullivan
Copy link

Hi,

would it be possible to include a feature that makes it possible to exclude some macros/commands from the checking. Being more precise, I'm searching an equivalent feature to atools add-tex-command <macroname> <sensitivityListOfParameters> (c.f. http://aspell.net/0.50-doc/man-html/4_Customizing.html#4).

I hope, I just didn't found that feature up to now.

@sylvainhalle
Copy link
Owner

Part of this can be achieved using the option to replace patterns, see https://github.com/sylvainhalle/textidote#replacing-strings. In this case the replacement would be a dummy or empty string.

However, while Aspell parses LaTeX, TeXtidote does not (and will not, see #56). This means that you cannot reliably specify such thing as "skip the first two parameters of the command", as you can do with Aspell. The best you can achieve is a regular expression that matches opening/closing braces, but this will break if arguments themselves contain nested commands, etc.

@sylvainhalle sylvainhalle added the wontfix This will not be worked on label May 13, 2021
@atticus-sullivan
Copy link
Author

Ok, alright, thanks for the clarification 👍

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
wontfix This will not be worked on
Projects
None yet
Development

No branches or pull requests

2 participants