-
-
Notifications
You must be signed in to change notification settings - Fork 28
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
Replace commands by certain text #43
Comments
@tobiasdiez Thanks for the feature request. Could you please give a real-life example/sentence in which replacing your command with a dummy results in a false positive/negative diagnostic? It's true that this won't work for verbs, but I'm curious where the need to have this actually comes up. Both "i.e." and "\cite" work with dummies (at least for my citation style). (Edit: One example I already came across is a noun that starts with a vowel, but I'm not sure if that use case is so common that it would justify the introduction of a new setting.) |
One example where this comes up is singular vs plural. Concerning the (In general, I agree, it appears that a custom dummy replacement is only necessary in rare cases.) |
I don't get a diagnostic for If it's only about plural citations, that's something that could be fixed specifically for those commands like |
I think the above i.e. rule is only available in 5.0-snapshot, thus not yet released. Otherwise the singular vs plural issue is probably the most relevant one. Adding a new configuration might be the most flexible solution (to support custom commands like |
Thanks for the quick fix once again! |
@tobiasdiez You're welcome. Fix released in 5.0.0. |
Is your feature request related to a problem? Please describe.
Some commands produce text, for example
\Latex
or my custom command\ie
which expands toi.e.
. In these cases, it would be nice to specify the replacement text to allow ltex to pick up the correct sentence structure.Describe the solution you'd like
Extend the dummy replacement map to allow to specify the replacement. For example:
Describe alternatives you've considered
Use normal dummy replacement. This works for example for
\LaTeX
but not for commands that don't produce substantives.The text was updated successfully, but these errors were encountered: