I am using VIM with with syntastic, which is just a syntax checking plugin.
When I am using commands like \raggedright or \raggedleft following a space and then some text, it gives me an annoying warning saying that
Command terminated with space.
In order to remove that warning, I escape the space with a \ e.g \raggedright\ Some text. But when it ends when something like . or ? I don't get any warning.
So my question is why I am getting this behavior? Is it LaTeX or just a syntastic thing?
\raggedright, but because\raggedrightdoes not produce output that is actually a good thing. Compare the output of\raggedright\ Loremand\raggedright Lorem. In the first case you explicitly start your line with a space, which is probably not a good idea. On the other hand you usually want to add an explicit escaped space if the macro produces output, for example\LaTeX is niceand\LaTeX\ is nice(or\LaTeX{} is nice). – moewe Feb 22 '19 at 07:39lacheckandchktex, both have their issues (look around on this site), because serious syntax linting in LaTeX is tricky, see also https://tex.stackexchange.com/q/155424/35864, https://tex.stackexchange.com/q/473890/35864. For your actual question, have a look at https://tex.stackexchange.com/q/31091/35864 – moewe Feb 22 '19 at 07:47syntasticthing. I just installedtexstudioand there were no warnings in the same code. – Nomi Shaw Feb 22 '19 at 08:06